File otcl-1.14-no_x11.patch of Package otcl

Index: configure
===================================================================
--- configure.orig
+++ configure
@@ -5796,283 +5796,6 @@ fi
 
 
 
-
-
-xlibdirs="\
-	/usr/openwin/lib \
-	/usr/X11R6/lib64 \
-	/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 \
-	/Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/lib \
-	/Developer/SDKs/MacOSX10.6.sdk/usr/X11R6/lib \
-	/usr/unsupported/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 \
-	/Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/include \
-	/Developer/SDKs/MacOSX10.6.sdk/usr/X11R6/include \
-	/usr/unsupported/include \
-	/import/X11R4/include"
-
-
-echo "checking for X11 header files"
-if test "$x_includes" = NONE ; then
-	cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <X11/Intrinsic.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
-$as_echo "$ac_try_echo") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-	 test ! -s conftest.err
-       }; then
-  x_includes=""
-else
-  $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  x_includes=NONE
-fi
-
-rm -f conftest.err 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:$LINENO: checking for XOpenDisplay in -lX11" >&5
-$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
-if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lX11  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
-$as_echo "$ac_try_echo") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-	 test -z "$ac_c_werror_flag" ||
-	 test ! -s conftest.err
-       } && test -s conftest$ac_exeext && {
-	 test "$cross_compiling" = yes ||
-	 $as_test_x conftest$ac_exeext
-       }; then
-  ac_cv_lib_X11_XOpenDisplay=yes
-else
-  $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-	ac_cv_lib_X11_XOpenDisplay=no
-fi
-
-rm -rf conftest.dSYM
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
-$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
-if test "x$ac_cv_lib_X11_XOpenDisplay" = x""yes; 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.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:$LINENO: checking for XShmAttach in -lXext" >&5
-$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
-if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lXext -lX11 $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
-$as_echo "$ac_try_echo") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-	 test -z "$ac_c_werror_flag" ||
-	 test ! -s conftest.err
-       } && test -s conftest$ac_exeext && {
-	 test "$cross_compiling" = yes ||
-	 $as_test_x conftest$ac_exeext
-       }; then
-  ac_cv_lib_Xext_XShmAttach=yes
-else
-  $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-	ac_cv_lib_Xext_XShmAttach=no
-fi
-
-rm -rf conftest.dSYM
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
-$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
-if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; 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
-
-
-
 # These must follow configure.in.head because they mess
 # with $*.
 if test -n "$ac_tool_prefix"; then
openSUSE Build Service is sponsored by