File ns2-2.35-no_x.patch of Package ns2

Index: configure
===================================================================
--- configure.orig
+++ configure
@@ -7006,199 +7006,6 @@ powerpc-apple-darwin*)
 esac
 
 
-xlibdirs="\
-	/usr/openwin/lib \
-	/usr/X11R6/lib \
-	/usr/lib/X11R6 \
-	/usr/X11R5/lib \
-	/usr/lib/X11R5 \
-	/usr/X11R4/lib \
-	/usr/lib/X11R4 \
-	/usr/local/lib \
-	/usr/X386/lib \
-	/usr/X11/lib \
-	/usr/unsupported/lib \
-	/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib \
-	/Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/lib \
-	/Developer/SDKs/MacOSX10.6.sdk/usr/X11R6/lib \
-	/import/X11R4/usr/lib"
-
-xincdirs="\
-	/usr/openwin/include \
-	/usr/X11R6/include \
-	/usr/include/X11R6 \
-	/usr/X11R5/include \
-	/usr/include/X11R5 \
-	/usr/X11R4/include \
-	/usr/include/X11R4 \
-	/usr/local/include \
-	/usr/X386/include \
-	/usr/X11/include \
-	/usr/lpp/X11/include \
-	/usr/unsupported/include \
-	/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include \
-	/Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/include \
-	/Developer/SDKs/MacOSX10.6.sdk/usr/X11R6/include \
-	/import/X11R4/include"
-
-
-echo "checking for X11 header files"
-if test "$x_includes" = NONE ; then
-	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <X11/Intrinsic.h>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-  x_includes=""
-else
-  x_includes=NONE
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-	if test "$x_includes" = NONE ; then
-	        for i in $xincdirs ; do
-			if test -r $i/X11/Intrinsic.h; then
-				x_includes=$i
-				break
-			fi
-	        done
-		if test "$x_includes" = NONE ; then
-			echo "can't find X includes"
-	       		exit 1
-		fi
-	fi
-fi
-if test -n "$x_includes" ; then
-	V_INCLUDE_X11=-I$x_includes
-
-fi
-
-echo "checking for X11 library archive"
-if test "$x_libraries" = NONE ; then
-	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
-$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
-if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lX11  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char XOpenDisplay ();
-int
-main ()
-{
-return XOpenDisplay ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_X11_XOpenDisplay=yes
-else
-  ac_cv_lib_X11_XOpenDisplay=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
-$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
-if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
-  x_libraries=""
-else
-  x_libraries=NONE
-fi
-
-	if test "$x_libraries" = NONE ; then
-		for i in $xlibdirs ; do
-			if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.dll.a -o -r $i/libX11.dylib; then
-				x_libraries=$i
-				break
-			fi
-       		done
-		if test "$x_libraries" = NONE ; then
-			echo "can't find X library"
-			exit 1
-		fi
-	fi
-fi
-
-V_LIB_X11=-lX11
-
-if test -n "$V_SHM" ; then
-	if test -z "$x_libraries" ; then
-		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
-$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
-if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lXext -lX11 $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char XShmAttach ();
-int
-main ()
-{
-return XShmAttach ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_Xext_XShmAttach=yes
-else
-  ac_cv_lib_Xext_XShmAttach=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
-$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
-if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
-  V_Xext="-lXext"
-else
-  V_Xext=NONE
-fi
-
-	else
-		echo "checking for libXext.a"
-		if test -f $x_libraries/libXext.a -o -f $x_libraries/libXext.so -o -f $x_libraries/libXext.dylib; then
-			V_Xext="-lXext"
-		else
-			echo "warning: compiling without -lXext"
-		fi
-	fi
-	if test "$V_Xext" = NONE ; then
-		echo "warning: compiling without -lXext"
-	else
-		V_LIB_X11="$V_Xext $V_LIB_X11"
-	fi
-fi
-
-if test -n "$x_libraries" ; then
-	V_LIB_X11="-L$x_libraries $V_LIB_X11"
-	if test $solaris ; then
-		V_LIB_X11="-R$x_libraries $V_LIB_X11"
-	fi
-fi
-
-
 
 
 # Check whether --with-tcldebug was given.
openSUSE Build Service is sponsored by