| 7753 | | { $as_echo "$as_me:$LINENO: checking for X" >&5 |
| 7754 | | $as_echo_n "checking for X... " >&6; } |
| 7755 | | |
| 7756 | | |
| 7757 | | # Check whether --with-x was given. |
| 7758 | | if test "${with_x+set}" = set; then |
| 7759 | | withval=$with_x; |
| 7760 | | fi |
| 7761 | | |
| 7762 | | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 7763 | | if test "x$with_x" = xno; then |
| 7764 | | # The user explicitly disabled X. |
| 7765 | | have_x=disabled |
| 7766 | | else |
| 7767 | | case $x_includes,$x_libraries in #( |
| 7768 | | *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 |
| 7769 | | $as_echo "$as_me: error: cannot use X directory names containing '" >&2;} |
| 7770 | | { (exit 1); exit 1; }; };; #( |
| 7771 | | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
| 7772 | | $as_echo_n "(cached) " >&6 |
| 7773 | | else |
| 7774 | | # One or both of the vars are not set, and there is no cached value. |
| 7775 | | ac_x_includes=no ac_x_libraries=no |
| 7776 | | rm -f -r conftest.dir |
| 7777 | | if mkdir conftest.dir; then |
| 7778 | | cd conftest.dir |
| 7779 | | cat >Imakefile <<'_ACEOF' |
| 7780 | | incroot: |
| 7781 | | @echo incroot='${INCROOT}' |
| 7782 | | usrlibdir: |
| 7783 | | @echo usrlibdir='${USRLIBDIR}' |
| 7784 | | libdir: |
| 7785 | | @echo libdir='${LIBDIR}' |
| 7786 | | _ACEOF |
| 7787 | | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 7788 | | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 7789 | | for ac_var in incroot usrlibdir libdir; do |
| 7790 | | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 7791 | | done |
| 7792 | | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 7793 | | for ac_extension in a so sl dylib la dll; do |
| 7794 | | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 7795 | | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 7796 | | ac_im_usrlibdir=$ac_im_libdir; break |
| 7797 | | fi |
| 7798 | | done |
| 7799 | | # Screen out bogus values from the imake configuration. They are |
| 7800 | | # bogus both because they are the default anyway, and because |
| 7801 | | # using them would break gcc on systems where it needs fixed includes. |
| 7802 | | case $ac_im_incroot in |
| 7803 | | /usr/include) ac_x_includes= ;; |
| 7804 | | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 7805 | | esac |
| 7806 | | case $ac_im_usrlibdir in |
| 7807 | | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 7808 | | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 7809 | | esac |
| 7810 | | fi |
| 7811 | | cd .. |
| 7812 | | rm -f -r conftest.dir |
| 7813 | | fi |
| 7814 | | |
| 7815 | | # Standard set of common directories for X headers. |
| 7816 | | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 7817 | | ac_x_header_dirs=' |
| 7818 | | /usr/X11/include |
| 7819 | | /usr/X11R6/include |
| 7820 | | /usr/X11R5/include |
| 7821 | | /usr/X11R4/include |
| 7822 | | |
| 7823 | | /usr/include/X11 |
| 7824 | | /usr/include/X11R6 |
| 7825 | | /usr/include/X11R5 |
| 7826 | | /usr/include/X11R4 |
| 7827 | | |
| 7828 | | /usr/local/X11/include |
| 7829 | | /usr/local/X11R6/include |
| 7830 | | /usr/local/X11R5/include |
| 7831 | | /usr/local/X11R4/include |
| 7832 | | |
| 7833 | | /usr/local/include/X11 |
| 7834 | | /usr/local/include/X11R6 |
| 7835 | | /usr/local/include/X11R5 |
| 7836 | | /usr/local/include/X11R4 |
| 7837 | | |
| 7838 | | /usr/X386/include |
| 7839 | | /usr/x386/include |
| 7840 | | /usr/XFree86/include/X11 |
| 7841 | | |
| 7842 | | /usr/include |
| 7843 | | /usr/local/include |
| 7844 | | /usr/unsupported/include |
| 7845 | | /usr/athena/include |
| 7846 | | /usr/local/x11r5/include |
| 7847 | | /usr/lpp/Xamples/include |
| 7848 | | |
| 7849 | | /usr/openwin/include |
| 7850 | | /usr/openwin/share/include' |
| 7851 | | |
| 7852 | | if test "$ac_x_includes" = no; then |
| 7853 | | # Guess where to find include files, by looking for Xlib.h. |
| 7854 | | # First, try using that file with no special directory specified. |
| 7855 | | cat >conftest.$ac_ext <<_ACEOF |
| 7856 | | /* confdefs.h. */ |
| 7857 | | _ACEOF |
| 7858 | | cat confdefs.h >>conftest.$ac_ext |
| 7859 | | cat >>conftest.$ac_ext <<_ACEOF |
| 7860 | | /* end confdefs.h. */ |
| 7861 | | #include <X11/Xlib.h> |
| 7862 | | _ACEOF |
| 7863 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7864 | | case "(($ac_try" in |
| 7865 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7866 | | *) ac_try_echo=$ac_try;; |
| 7867 | | esac |
| 7868 | | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7869 | | $as_echo "$ac_try_echo") >&5 |
| 7870 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7871 | | ac_status=$? |
| 7872 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 7873 | | rm -f conftest.er1 |
| 7874 | | cat conftest.err >&5 |
| 7875 | | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7876 | | (exit $ac_status); } >/dev/null && { |
| 7877 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7878 | | test ! -s conftest.err |
| 7879 | | }; then |
| 7880 | | # We can compile using X headers with no special include directory. |
| 7881 | | ac_x_includes= |
| 7882 | | else |
| 7883 | | $as_echo "$as_me: failed program was:" >&5 |
| 7884 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7885 | | |
| 7886 | | for ac_dir in $ac_x_header_dirs; do |
| 7887 | | if test -r "$ac_dir/X11/Xlib.h"; then |
| 7888 | | ac_x_includes=$ac_dir |
| 7889 | | break |
| 7890 | | fi |
| 7891 | | done |
| 7892 | | fi |
| 7893 | | |
| 7894 | | rm -f conftest.err conftest.$ac_ext |
| 7895 | | fi # $ac_x_includes = no |
| 7896 | | |
| 7897 | | if test "$ac_x_libraries" = no; then |
| 7898 | | # Check for the libraries. |
| 7899 | | # See if we find them without any special options. |
| 7900 | | # Don't add to $LIBS permanently. |
| 7901 | | ac_save_LIBS=$LIBS |
| 7902 | | LIBS="-lX11 $LIBS" |
| 7903 | | cat >conftest.$ac_ext <<_ACEOF |
| 7904 | | /* confdefs.h. */ |
| 7905 | | _ACEOF |
| 7906 | | cat confdefs.h >>conftest.$ac_ext |
| 7907 | | cat >>conftest.$ac_ext <<_ACEOF |
| 7908 | | /* end confdefs.h. */ |
| 7909 | | #include <X11/Xlib.h> |
| 7910 | | int |
| 7911 | | main () |
| 7912 | | { |
| 7913 | | XrmInitialize () |
| 7914 | | ; |
| 7915 | | return 0; |
| 7916 | | } |
| 7917 | | _ACEOF |
| 7918 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7919 | | if { (ac_try="$ac_link" |
| 7920 | | case "(($ac_try" in |
| 7921 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7922 | | *) ac_try_echo=$ac_try;; |
| 7923 | | esac |
| 7924 | | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7925 | | $as_echo "$ac_try_echo") >&5 |
| 7926 | | (eval "$ac_link") 2>conftest.er1 |
| 7927 | | ac_status=$? |
| 7928 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 7929 | | rm -f conftest.er1 |
| 7930 | | cat conftest.err >&5 |
| 7931 | | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7932 | | (exit $ac_status); } && { |
| 7933 | | test -z "$ac_c_werror_flag" || |
| 7934 | | test ! -s conftest.err |
| 7935 | | } && test -s conftest$ac_exeext && { |
| 7936 | | test "$cross_compiling" = yes || |
| 7937 | | $as_test_x conftest$ac_exeext |
| 7938 | | }; then |
| 7939 | | LIBS=$ac_save_LIBS |
| 7940 | | # We can link X programs with no special library path. |
| 7941 | | ac_x_libraries= |
| 7942 | | else |
| 7943 | | $as_echo "$as_me: failed program was:" >&5 |
| 7944 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7945 | | |
| 7946 | | LIBS=$ac_save_LIBS |
| 7947 | | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 7948 | | do |
| 7949 | | # Don't even attempt the hair of trying to link an X program! |
| 7950 | | for ac_extension in a so sl dylib la dll; do |
| 7951 | | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 7952 | | ac_x_libraries=$ac_dir |
| 7953 | | break 2 |
| 7954 | | fi |
| 7955 | | done |
| 7956 | | done |
| 7957 | | fi |
| 7958 | | |
| 7959 | | rm -rf conftest.dSYM |
| 7960 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7961 | | conftest$ac_exeext conftest.$ac_ext |
| 7962 | | fi # $ac_x_libraries = no |
| 7963 | | |
| 7964 | | case $ac_x_includes,$ac_x_libraries in #( |
| 7965 | | no,* | *,no | *\'*) |
| 7966 | | # Didn't find X, or a directory has "'" in its name. |
| 7967 | | ac_cv_have_x="have_x=no";; #( |
| 7968 | | *) |
| 7969 | | # Record where we found X for the cache. |
| 7970 | | ac_cv_have_x="have_x=yes\ |
| 7971 | | ac_x_includes='$ac_x_includes'\ |
| 7972 | | ac_x_libraries='$ac_x_libraries'" |
| 7973 | | esac |
| 7974 | | fi |
| 7975 | | ;; #( |
| 7976 | | *) have_x=yes;; |
| 7977 | | esac |
| 7978 | | eval "$ac_cv_have_x" |
| 7979 | | fi # $with_x != no |
| 7980 | | |
| 7981 | | if test "$have_x" != yes; then |
| 7982 | | { $as_echo "$as_me:$LINENO: result: $have_x" >&5 |
| 7983 | | $as_echo "$have_x" >&6; } |
| 7984 | | no_x=yes |
| 7985 | | else |
| 7986 | | # If each of the values was on the command line, it overrides each guess. |
| 7987 | | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 7988 | | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 7989 | | # Update the cache value to reflect the command line values. |
| 7990 | | ac_cv_have_x="have_x=yes\ |
| 7991 | | ac_x_includes='$x_includes'\ |
| 7992 | | ac_x_libraries='$x_libraries'" |
| 7993 | | { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 7994 | | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 7995 | | fi |
| 7996 | | |
| | 34282 | { $as_echo "$as_me:$LINENO: checking for X" >&5 |
| | 34283 | $as_echo_n "checking for X... " >&6; } |
| | 34284 | |
| | 34285 | |
| | 34286 | # Check whether --with-x was given. |
| | 34287 | if test "${with_x+set}" = set; then |
| | 34288 | withval=$with_x; |
| | 34289 | fi |
| | 34290 | |
| | 34291 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| | 34292 | if test "x$with_x" = xno; then |
| | 34293 | # The user explicitly disabled X. |
| | 34294 | have_x=disabled |
| | 34295 | else |
| | 34296 | case $x_includes,$x_libraries in #( |
| | 34297 | *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 |
| | 34298 | $as_echo "$as_me: error: cannot use X directory names containing '" >&2;} |
| | 34299 | { (exit 1); exit 1; }; };; #( |
| | 34300 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
| | 34301 | $as_echo_n "(cached) " >&6 |
| | 34302 | else |
| | 34303 | # One or both of the vars are not set, and there is no cached value. |
| | 34304 | ac_x_includes=no ac_x_libraries=no |
| | 34305 | rm -f -r conftest.dir |
| | 34306 | if mkdir conftest.dir; then |
| | 34307 | cd conftest.dir |
| | 34308 | cat >Imakefile <<'_ACEOF' |
| | 34309 | incroot: |
| | 34310 | @echo incroot='${INCROOT}' |
| | 34311 | usrlibdir: |
| | 34312 | @echo usrlibdir='${USRLIBDIR}' |
| | 34313 | libdir: |
| | 34314 | @echo libdir='${LIBDIR}' |
| | 34315 | _ACEOF |
| | 34316 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| | 34317 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| | 34318 | for ac_var in incroot usrlibdir libdir; do |
| | 34319 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| | 34320 | done |
| | 34321 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| | 34322 | for ac_extension in a so sl dylib la dll; do |
| | 34323 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| | 34324 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| | 34325 | ac_im_usrlibdir=$ac_im_libdir; break |
| | 34326 | fi |
| | 34327 | done |
| | 34328 | # Screen out bogus values from the imake configuration. They are |
| | 34329 | # bogus both because they are the default anyway, and because |
| | 34330 | # using them would break gcc on systems where it needs fixed includes. |
| | 34331 | case $ac_im_incroot in |
| | 34332 | /usr/include) ac_x_includes= ;; |
| | 34333 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| | 34334 | esac |
| | 34335 | case $ac_im_usrlibdir in |
| | 34336 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| | 34337 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| | 34338 | esac |
| | 34339 | fi |
| | 34340 | cd .. |
| | 34341 | rm -f -r conftest.dir |
| | 34342 | fi |
| | 34343 | |
| | 34344 | # Standard set of common directories for X headers. |
| | 34345 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| | 34346 | ac_x_header_dirs=' |
| | 34347 | /usr/X11/include |
| | 34348 | /usr/X11R6/include |
| | 34349 | /usr/X11R5/include |
| | 34350 | /usr/X11R4/include |
| | 34351 | |
| | 34352 | /usr/include/X11 |
| | 34353 | /usr/include/X11R6 |
| | 34354 | /usr/include/X11R5 |
| | 34355 | /usr/include/X11R4 |
| | 34356 | |
| | 34357 | /usr/local/X11/include |
| | 34358 | /usr/local/X11R6/include |
| | 34359 | /usr/local/X11R5/include |
| | 34360 | /usr/local/X11R4/include |
| | 34361 | |
| | 34362 | /usr/local/include/X11 |
| | 34363 | /usr/local/include/X11R6 |
| | 34364 | /usr/local/include/X11R5 |
| | 34365 | /usr/local/include/X11R4 |
| | 34366 | |
| | 34367 | /usr/X386/include |
| | 34368 | /usr/x386/include |
| | 34369 | /usr/XFree86/include/X11 |
| | 34370 | |
| | 34371 | /usr/include |
| | 34372 | /usr/local/include |
| | 34373 | /usr/unsupported/include |
| | 34374 | /usr/athena/include |
| | 34375 | /usr/local/x11r5/include |
| | 34376 | /usr/lpp/Xamples/include |
| | 34377 | |
| | 34378 | /usr/openwin/include |
| | 34379 | /usr/openwin/share/include' |
| | 34380 | |
| | 34381 | if test "$ac_x_includes" = no; then |
| | 34382 | # Guess where to find include files, by looking for Xlib.h. |
| | 34383 | # First, try using that file with no special directory specified. |
| | 34384 | cat >conftest.$ac_ext <<_ACEOF |
| | 34385 | /* confdefs.h. */ |
| | 34386 | _ACEOF |
| | 34387 | cat confdefs.h >>conftest.$ac_ext |
| | 34388 | cat >>conftest.$ac_ext <<_ACEOF |
| | 34389 | /* end confdefs.h. */ |
| | 34390 | #include <X11/Xlib.h> |
| | 34391 | _ACEOF |
| | 34392 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| | 34393 | case "(($ac_try" in |
| | 34394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 34395 | *) ac_try_echo=$ac_try;; |
| | 34396 | esac |
| | 34397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| | 34398 | $as_echo "$ac_try_echo") >&5 |
| | 34399 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| | 34400 | ac_status=$? |
| | 34401 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 34402 | rm -f conftest.er1 |
| | 34403 | cat conftest.err >&5 |
| | 34404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 34405 | (exit $ac_status); } >/dev/null && { |
| | 34406 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| | 34407 | test ! -s conftest.err |
| | 34408 | }; then |
| | 34409 | # We can compile using X headers with no special include directory. |
| | 34410 | ac_x_includes= |
| | 34411 | else |
| | 34412 | $as_echo "$as_me: failed program was:" >&5 |
| | 34413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 34414 | |
| | 34415 | for ac_dir in $ac_x_header_dirs; do |
| | 34416 | if test -r "$ac_dir/X11/Xlib.h"; then |
| | 34417 | ac_x_includes=$ac_dir |
| | 34418 | break |
| | 34419 | fi |
| | 34420 | done |
| | 34421 | fi |
| | 34422 | |
| | 34423 | rm -f conftest.err conftest.$ac_ext |
| | 34424 | fi # $ac_x_includes = no |
| | 34425 | |
| | 34426 | if test "$ac_x_libraries" = no; then |
| | 34427 | # Check for the libraries. |
| | 34428 | # See if we find them without any special options. |
| | 34429 | # Don't add to $LIBS permanently. |
| | 34430 | ac_save_LIBS=$LIBS |
| | 34431 | LIBS="-lX11 $LIBS" |
| | 34432 | cat >conftest.$ac_ext <<_ACEOF |
| | 34433 | /* confdefs.h. */ |
| | 34434 | _ACEOF |
| | 34435 | cat confdefs.h >>conftest.$ac_ext |
| | 34436 | cat >>conftest.$ac_ext <<_ACEOF |
| | 34437 | /* end confdefs.h. */ |
| | 34438 | #include <X11/Xlib.h> |
| | 34439 | int |
| | 34440 | main () |
| | 34441 | { |
| | 34442 | XrmInitialize () |
| | 34443 | ; |
| | 34444 | return 0; |
| | 34445 | } |
| | 34446 | _ACEOF |
| | 34447 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 34448 | if { (ac_try="$ac_link" |
| | 34449 | case "(($ac_try" in |
| | 34450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 34451 | *) ac_try_echo=$ac_try;; |
| | 34452 | esac |
| | 34453 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| | 34454 | $as_echo "$ac_try_echo") >&5 |
| | 34455 | (eval "$ac_link") 2>conftest.er1 |
| | 34456 | ac_status=$? |
| | 34457 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 34458 | rm -f conftest.er1 |
| | 34459 | cat conftest.err >&5 |
| | 34460 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 34461 | (exit $ac_status); } && { |
| | 34462 | test -z "$ac_c_werror_flag" || |
| | 34463 | test ! -s conftest.err |
| | 34464 | } && test -s conftest$ac_exeext && { |
| | 34465 | test "$cross_compiling" = yes || |
| | 34466 | $as_test_x conftest$ac_exeext |
| | 34467 | }; then |
| | 34468 | LIBS=$ac_save_LIBS |
| | 34469 | # We can link X programs with no special library path. |
| | 34470 | ac_x_libraries= |
| | 34471 | else |
| | 34472 | $as_echo "$as_me: failed program was:" >&5 |
| | 34473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 34474 | |
| | 34475 | LIBS=$ac_save_LIBS |
| | 34476 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| | 34477 | do |
| | 34478 | # Don't even attempt the hair of trying to link an X program! |
| | 34479 | for ac_extension in a so sl dylib la dll; do |
| | 34480 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| | 34481 | ac_x_libraries=$ac_dir |
| | 34482 | break 2 |
| | 34483 | fi |
| | 34484 | done |
| | 34485 | done |
| | 34486 | fi |
| | 34487 | |
| | 34488 | rm -rf conftest.dSYM |
| | 34489 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| | 34490 | conftest$ac_exeext conftest.$ac_ext |
| | 34491 | fi # $ac_x_libraries = no |
| | 34492 | |
| | 34493 | case $ac_x_includes,$ac_x_libraries in #( |
| | 34494 | no,* | *,no | *\'*) |
| | 34495 | # Didn't find X, or a directory has "'" in its name. |
| | 34496 | ac_cv_have_x="have_x=no";; #( |
| | 34497 | *) |
| | 34498 | # Record where we found X for the cache. |
| | 34499 | ac_cv_have_x="have_x=yes\ |
| | 34500 | ac_x_includes='$ac_x_includes'\ |
| | 34501 | ac_x_libraries='$ac_x_libraries'" |
| | 34502 | esac |
| | 34503 | fi |
| | 34504 | ;; #( |
| | 34505 | *) have_x=yes;; |
| | 34506 | esac |
| | 34507 | eval "$ac_cv_have_x" |
| | 34508 | fi # $with_x != no |
| | 34509 | |
| | 34510 | if test "$have_x" != yes; then |
| | 34511 | { $as_echo "$as_me:$LINENO: result: $have_x" >&5 |
| | 34512 | $as_echo "$have_x" >&6; } |
| | 34513 | no_x=yes |
| | 34514 | else |
| | 34515 | # If each of the values was on the command line, it overrides each guess. |
| | 34516 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| | 34517 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| | 34518 | # Update the cache value to reflect the command line values. |
| | 34519 | ac_cv_have_x="have_x=yes\ |
| | 34520 | ac_x_includes='$x_includes'\ |
| | 34521 | ac_x_libraries='$x_libraries'" |
| | 34522 | { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| | 34523 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| | 34524 | fi |
| | 34525 | |