Changeset 10207 for trunk/FACT++/configure
- Timestamp:
- 03/02/11 10:26:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/configure
r10202 r10207 761 761 MYSQL_C_LIB_DIR 762 762 MYSQL_C_INC_DIR 763 MOTIF_LIBS 764 MOTIF_CFLAGS 765 MOTIF_INCL 766 MOTIF_LDFLAGS 767 LT_HAVE_XP 768 Have_Libxp_FALSE 769 Have_Libxp_TRUE 770 X_EXTRA_LIBS 771 X_LIBS 772 X_PRE_LIBS 773 X_CFLAGS 774 XMKMF 763 775 PTHREAD_CFLAGS 764 776 PTHREAD_LIBS … … 946 958 enable_doxygen_ps 947 959 enable_doxygen_pdf 960 with_x 961 with_motif_includes 962 with_motif_libraries 948 963 with_mysql_include 949 964 with_mysqlpp … … 973 988 CPP 974 989 CXXCPP 975 DOXYGEN_PAPER_SIZE' 990 DOXYGEN_PAPER_SIZE 991 XMKMF' 976 992 977 993 … … 1578 1594 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1579 1595 1596 X features: 1597 --x-includes=DIR X include files are in DIR 1598 --x-libraries=DIR X library files are in DIR 1599 1580 1600 System types: 1581 1601 --build=BUILD configure for building on BUILD [guessed] … … 1621 1641 both] 1622 1642 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1643 --with-x use the X Window System 1644 --with-motif-includes=DIR Motif include files are in DIR 1645 --with-motif-libraries=DIR Motif libraries are in DIR 1623 1646 --with-mysql-include=<path> directory path of MySQL header installation 1624 1647 --with-mysqlpp=<path> path containing MySQL++ header and library subdirs … … 1678 1701 DOXYGEN_PAPER_SIZE 1679 1702 a4wide (default), a4, letter, legal or executive 1703 XMKMF Path to xmkmf, Makefile generator for X Window System 1680 1704 1681 1705 Use these variables to override the choices made by `configure' or to help … … 2232 2256 2233 2257 } # ac_fn_c_check_header_mongrel 2258 2259 # ac_fn_cxx_check_func LINENO FUNC VAR 2260 # ------------------------------------ 2261 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2262 ac_fn_cxx_check_func () 2263 { 2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2266 $as_echo_n "checking for $2... " >&6; } 2267 if eval "test \"\${$3+set}\"" = set; then : 2268 $as_echo_n "(cached) " >&6 2269 else 2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2271 /* end confdefs.h. */ 2272 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2273 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2274 #define $2 innocuous_$2 2275 2276 /* System header to define __stub macros and hopefully few prototypes, 2277 which can conflict with char $2 (); below. 2278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2279 <limits.h> exists even on freestanding compilers. */ 2280 2281 #ifdef __STDC__ 2282 # include <limits.h> 2283 #else 2284 # include <assert.h> 2285 #endif 2286 2287 #undef $2 2288 2289 /* Override any GCC internal prototype to avoid an error. 2290 Use char because int might match the return type of a GCC 2291 builtin and then its argument prototype would still apply. */ 2292 #ifdef __cplusplus 2293 extern "C" 2294 #endif 2295 char $2 (); 2296 /* The GNU C library defines this for functions which it implements 2297 to always fail with ENOSYS. Some functions are actually named 2298 something starting with __ and the normal name is an alias. */ 2299 #if defined __stub_$2 || defined __stub___$2 2300 choke me 2301 #endif 2302 2303 int 2304 main () 2305 { 2306 return $2 (); 2307 ; 2308 return 0; 2309 } 2310 _ACEOF 2311 if ac_fn_cxx_try_link "$LINENO"; then : 2312 eval "$3=yes" 2313 else 2314 eval "$3=no" 2315 fi 2316 rm -f core conftest.err conftest.$ac_objext \ 2317 conftest$ac_exeext conftest.$ac_ext 2318 fi 2319 eval ac_res=\$$3 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2321 $as_echo "$ac_res" >&6; } 2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2323 2324 } # ac_fn_cxx_check_func 2234 2325 cat >config.log <<_ACEOF 2235 2326 This file contains any messages produced by compilers while … … 4154 4245 lt_cv_nm_interface="BSD nm" 4155 4246 echo "int some_variable = 0;" > conftest.$ac_ext 4156 (eval echo "\"\$as_me:4 156: $ac_compile\"" >&5)4247 (eval echo "\"\$as_me:4247: $ac_compile\"" >&5) 4157 4248 (eval "$ac_compile" 2>conftest.err) 4158 4249 cat conftest.err >&5 4159 (eval echo "\"\$as_me:4 159: $NM \\\"conftest.$ac_objext\\\"\"" >&5)4250 (eval echo "\"\$as_me:4250: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4160 4251 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4161 4252 cat conftest.err >&5 4162 (eval echo "\"\$as_me:4 162: output\"" >&5)4253 (eval echo "\"\$as_me:4253: output\"" >&5) 4163 4254 cat conftest.out >&5 4164 4255 if $GREP 'External.*some_variable' conftest.out > /dev/null; then … … 5366 5457 *-*-irix6*) 5367 5458 # Find out which ABI we are using. 5368 echo '#line 5 368"configure"' > conftest.$ac_ext5459 echo '#line 5459 "configure"' > conftest.$ac_ext 5369 5460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5370 5461 (eval $ac_compile) 2>&5 … … 7294 7385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7295 7386 -e 's:$: $lt_compiler_flag:'` 7296 (eval echo "\"\$as_me:7 296: $lt_compile\"" >&5)7387 (eval echo "\"\$as_me:7387: $lt_compile\"" >&5) 7297 7388 (eval "$lt_compile" 2>conftest.err) 7298 7389 ac_status=$? 7299 7390 cat conftest.err >&5 7300 echo "$as_me:73 00: \$? = $ac_status" >&57391 echo "$as_me:7391: \$? = $ac_status" >&5 7301 7392 if (exit $ac_status) && test -s "$ac_outfile"; then 7302 7393 # The compiler can only warn and ignore the option if not recognized … … 7633 7724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7634 7725 -e 's:$: $lt_compiler_flag:'` 7635 (eval echo "\"\$as_me:7 635: $lt_compile\"" >&5)7726 (eval echo "\"\$as_me:7726: $lt_compile\"" >&5) 7636 7727 (eval "$lt_compile" 2>conftest.err) 7637 7728 ac_status=$? 7638 7729 cat conftest.err >&5 7639 echo "$as_me:7 639: \$? = $ac_status" >&57730 echo "$as_me:7730: \$? = $ac_status" >&5 7640 7731 if (exit $ac_status) && test -s "$ac_outfile"; then 7641 7732 # The compiler can only warn and ignore the option if not recognized … … 7738 7829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7739 7830 -e 's:$: $lt_compiler_flag:'` 7740 (eval echo "\"\$as_me:7 740: $lt_compile\"" >&5)7831 (eval echo "\"\$as_me:7831: $lt_compile\"" >&5) 7741 7832 (eval "$lt_compile" 2>out/conftest.err) 7742 7833 ac_status=$? 7743 7834 cat out/conftest.err >&5 7744 echo "$as_me:7 744: \$? = $ac_status" >&57835 echo "$as_me:7835: \$? = $ac_status" >&5 7745 7836 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7746 7837 then … … 7793 7884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7794 7885 -e 's:$: $lt_compiler_flag:'` 7795 (eval echo "\"\$as_me:7 795: $lt_compile\"" >&5)7886 (eval echo "\"\$as_me:7886: $lt_compile\"" >&5) 7796 7887 (eval "$lt_compile" 2>out/conftest.err) 7797 7888 ac_status=$? 7798 7889 cat out/conftest.err >&5 7799 echo "$as_me:7 799: \$? = $ac_status" >&57890 echo "$as_me:7890: \$? = $ac_status" >&5 7800 7891 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7801 7892 then … … 10177 10268 lt_status=$lt_dlunknown 10178 10269 cat > conftest.$ac_ext <<_LT_EOF 10179 #line 10 179"configure"10270 #line 10270 "configure" 10180 10271 #include "confdefs.h" 10181 10272 … … 10273 10364 lt_status=$lt_dlunknown 10274 10365 cat > conftest.$ac_ext <<_LT_EOF 10275 #line 10 275"configure"10366 #line 10366 "configure" 10276 10367 #include "confdefs.h" 10277 10368 … … 12229 12320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12230 12321 -e 's:$: $lt_compiler_flag:'` 12231 (eval echo "\"\$as_me:12 231: $lt_compile\"" >&5)12322 (eval echo "\"\$as_me:12322: $lt_compile\"" >&5) 12232 12323 (eval "$lt_compile" 2>conftest.err) 12233 12324 ac_status=$? 12234 12325 cat conftest.err >&5 12235 echo "$as_me:12 235: \$? = $ac_status" >&512326 echo "$as_me:12326: \$? = $ac_status" >&5 12236 12327 if (exit $ac_status) && test -s "$ac_outfile"; then 12237 12328 # The compiler can only warn and ignore the option if not recognized … … 12328 12419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12329 12420 -e 's:$: $lt_compiler_flag:'` 12330 (eval echo "\"\$as_me:12 330: $lt_compile\"" >&5)12421 (eval echo "\"\$as_me:12421: $lt_compile\"" >&5) 12331 12422 (eval "$lt_compile" 2>out/conftest.err) 12332 12423 ac_status=$? 12333 12424 cat out/conftest.err >&5 12334 echo "$as_me:12 334: \$? = $ac_status" >&512425 echo "$as_me:12425: \$? = $ac_status" >&5 12335 12426 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12336 12427 then … … 12380 12471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12381 12472 -e 's:$: $lt_compiler_flag:'` 12382 (eval echo "\"\$as_me:12 382: $lt_compile\"" >&5)12473 (eval echo "\"\$as_me:12473: $lt_compile\"" >&5) 12383 12474 (eval "$lt_compile" 2>out/conftest.err) 12384 12475 ac_status=$? 12385 12476 cat out/conftest.err >&5 12386 echo "$as_me:12 386: \$? = $ac_status" >&512477 echo "$as_me:12477: \$? = $ac_status" >&5 12387 12478 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12388 12479 then … … 16763 16854 16764 16855 ###################################################################### 16765 # Xm.h (lesstif/motif )16856 # Xm.h (lesstif/motif, needed by did) 16766 16857 ###################################################################### 16767 16858 16768 ac_ext=c 16769 ac_cpp='$CPP $CPPFLAGS' 16770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16772 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16773 16774 16775 for ac_header in Mrm/MrmAppl.h Xm/Xm.h 16776 do : 16777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16778 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16779 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16780 cat >>confdefs.h <<_ACEOF 16781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16859 16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 16861 $as_echo_n "checking for X... " >&6; } 16862 16863 16864 # Check whether --with-x was given. 16865 if test "${with_x+set}" = set; then : 16866 withval=$with_x; 16867 fi 16868 16869 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 16870 if test "x$with_x" = xno; then 16871 # The user explicitly disabled X. 16872 have_x=disabled 16873 else 16874 case $x_includes,$x_libraries in #( 16875 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( 16876 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 16877 $as_echo_n "(cached) " >&6 16878 else 16879 # One or both of the vars are not set, and there is no cached value. 16880 ac_x_includes=no ac_x_libraries=no 16881 rm -f -r conftest.dir 16882 if mkdir conftest.dir; then 16883 cd conftest.dir 16884 cat >Imakefile <<'_ACEOF' 16885 incroot: 16886 @echo incroot='${INCROOT}' 16887 usrlibdir: 16888 @echo usrlibdir='${USRLIBDIR}' 16889 libdir: 16890 @echo libdir='${LIBDIR}' 16782 16891 _ACEOF 16783 16784 else 16785 16786 echo "Error! Mrm/MrmAppl.h, Xm/Xm.h not properly installed, needed to compile did (you need most probably lesstif2-dev)." 16787 exit -1 16788 16789 16790 fi 16791 16892 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 16893 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 16894 for ac_var in incroot usrlibdir libdir; do 16895 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 16896 done 16897 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 16898 for ac_extension in a so sl dylib la dll; do 16899 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 16900 test -f "$ac_im_libdir/libX11.$ac_extension"; then 16901 ac_im_usrlibdir=$ac_im_libdir; break 16902 fi 16903 done 16904 # Screen out bogus values from the imake configuration. They are 16905 # bogus both because they are the default anyway, and because 16906 # using them would break gcc on systems where it needs fixed includes. 16907 case $ac_im_incroot in 16908 /usr/include) ac_x_includes= ;; 16909 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 16910 esac 16911 case $ac_im_usrlibdir in 16912 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 16913 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 16914 esac 16915 fi 16916 cd .. 16917 rm -f -r conftest.dir 16918 fi 16919 16920 # Standard set of common directories for X headers. 16921 # Check X11 before X11Rn because it is often a symlink to the current release. 16922 ac_x_header_dirs=' 16923 /usr/X11/include 16924 /usr/X11R7/include 16925 /usr/X11R6/include 16926 /usr/X11R5/include 16927 /usr/X11R4/include 16928 16929 /usr/include/X11 16930 /usr/include/X11R7 16931 /usr/include/X11R6 16932 /usr/include/X11R5 16933 /usr/include/X11R4 16934 16935 /usr/local/X11/include 16936 /usr/local/X11R7/include 16937 /usr/local/X11R6/include 16938 /usr/local/X11R5/include 16939 /usr/local/X11R4/include 16940 16941 /usr/local/include/X11 16942 /usr/local/include/X11R7 16943 /usr/local/include/X11R6 16944 /usr/local/include/X11R5 16945 /usr/local/include/X11R4 16946 16947 /usr/X386/include 16948 /usr/x386/include 16949 /usr/XFree86/include/X11 16950 16951 /usr/include 16952 /usr/local/include 16953 /usr/unsupported/include 16954 /usr/athena/include 16955 /usr/local/x11r5/include 16956 /usr/lpp/Xamples/include 16957 16958 /usr/openwin/include 16959 /usr/openwin/share/include' 16960 16961 if test "$ac_x_includes" = no; then 16962 # Guess where to find include files, by looking for Xlib.h. 16963 # First, try using that file with no special directory specified. 16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16965 /* end confdefs.h. */ 16966 #include <X11/Xlib.h> 16967 _ACEOF 16968 if ac_fn_cxx_try_cpp "$LINENO"; then : 16969 # We can compile using X headers with no special include directory. 16970 ac_x_includes= 16971 else 16972 for ac_dir in $ac_x_header_dirs; do 16973 if test -r "$ac_dir/X11/Xlib.h"; then 16974 ac_x_includes=$ac_dir 16975 break 16976 fi 16792 16977 done 16793 16794 16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtToolkitInitialize in -lXm" >&5 16796 $as_echo_n "checking for XtToolkitInitialize in -lXm... " >&6; } 16797 if test "${ac_cv_lib_Xm_XtToolkitInitialize+set}" = set; then : 16798 $as_echo_n "(cached) " >&6 16799 else 16800 ac_check_lib_save_LIBS=$LIBS 16801 LIBS="-lXm $LIBS" 16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16978 fi 16979 rm -f conftest.err conftest.i conftest.$ac_ext 16980 fi # $ac_x_includes = no 16981 16982 if test "$ac_x_libraries" = no; then 16983 # Check for the libraries. 16984 # See if we find them without any special options. 16985 # Don't add to $LIBS permanently. 16986 ac_save_LIBS=$LIBS 16987 LIBS="-lX11 $LIBS" 16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16989 /* end confdefs.h. */ 16990 #include <X11/Xlib.h> 16991 int 16992 main () 16993 { 16994 XrmInitialize () 16995 ; 16996 return 0; 16997 } 16998 _ACEOF 16999 if ac_fn_cxx_try_link "$LINENO"; then : 17000 LIBS=$ac_save_LIBS 17001 # We can link X programs with no special library path. 17002 ac_x_libraries= 17003 else 17004 LIBS=$ac_save_LIBS 17005 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 17006 do 17007 # Don't even attempt the hair of trying to link an X program! 17008 for ac_extension in a so sl dylib la dll; do 17009 if test -r "$ac_dir/libX11.$ac_extension"; then 17010 ac_x_libraries=$ac_dir 17011 break 2 17012 fi 17013 done 17014 done 17015 fi 17016 rm -f core conftest.err conftest.$ac_objext \ 17017 conftest$ac_exeext conftest.$ac_ext 17018 fi # $ac_x_libraries = no 17019 17020 case $ac_x_includes,$ac_x_libraries in #( 17021 no,* | *,no | *\'*) 17022 # Didn't find X, or a directory has "'" in its name. 17023 ac_cv_have_x="have_x=no";; #( 17024 *) 17025 # Record where we found X for the cache. 17026 ac_cv_have_x="have_x=yes\ 17027 ac_x_includes='$ac_x_includes'\ 17028 ac_x_libraries='$ac_x_libraries'" 17029 esac 17030 fi 17031 ;; #( 17032 *) have_x=yes;; 17033 esac 17034 eval "$ac_cv_have_x" 17035 fi # $with_x != no 17036 17037 if test "$have_x" != yes; then 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 17039 $as_echo "$have_x" >&6; } 17040 no_x=yes 17041 else 17042 # If each of the values was on the command line, it overrides each guess. 17043 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 17044 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 17045 # Update the cache value to reflect the command line values. 17046 ac_cv_have_x="have_x=yes\ 17047 ac_x_includes='$x_includes'\ 17048 ac_x_libraries='$x_libraries'" 17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 17050 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 17051 fi 17052 17053 if test "$no_x" = yes; then 17054 # Not all programs may use this symbol, but it does not hurt to define it. 17055 17056 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 17057 17058 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 17059 else 17060 if test -n "$x_includes"; then 17061 X_CFLAGS="$X_CFLAGS -I$x_includes" 17062 fi 17063 17064 # It would also be nice to do this for all -L options, not just this one. 17065 if test -n "$x_libraries"; then 17066 X_LIBS="$X_LIBS -L$x_libraries" 17067 # For Solaris; some versions of Sun CC require a space after -R and 17068 # others require no space. Words are not sufficient . . . . 17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 17070 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 17071 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 17072 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 17073 ac_cxx_werror_flag=yes 17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17075 /* end confdefs.h. */ 17076 17077 int 17078 main () 17079 { 17080 17081 ; 17082 return 0; 17083 } 17084 _ACEOF 17085 if ac_fn_cxx_try_link "$LINENO"; then : 17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17087 $as_echo "no" >&6; } 17088 X_LIBS="$X_LIBS -R$x_libraries" 17089 else 17090 LIBS="$ac_xsave_LIBS -R $x_libraries" 17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17092 /* end confdefs.h. */ 17093 17094 int 17095 main () 17096 { 17097 17098 ; 17099 return 0; 17100 } 17101 _ACEOF 17102 if ac_fn_cxx_try_link "$LINENO"; then : 17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17104 $as_echo "yes" >&6; } 17105 X_LIBS="$X_LIBS -R $x_libraries" 17106 else 17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 17108 $as_echo "neither works" >&6; } 17109 fi 17110 rm -f core conftest.err conftest.$ac_objext \ 17111 conftest$ac_exeext conftest.$ac_ext 17112 fi 17113 rm -f core conftest.err conftest.$ac_objext \ 17114 conftest$ac_exeext conftest.$ac_ext 17115 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 17116 LIBS=$ac_xsave_LIBS 17117 fi 17118 17119 # Check for system-dependent libraries X programs must link with. 17120 # Do this before checking for the system-independent R6 libraries 17121 # (-lICE), since we may need -lsocket or whatever for X linking. 17122 17123 if test "$ISC" = yes; then 17124 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 17125 else 17126 # Martyn Johnson says this is needed for Ultrix, if the X 17127 # libraries were built with DECnet support. And Karl Berry says 17128 # the Alpha needs dnet_stub (dnet does not exist). 17129 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16803 17131 /* end confdefs.h. */ 16804 17132 … … 16809 17137 extern "C" 16810 17138 #endif 16811 char X tToolkitInitialize();17139 char XOpenDisplay (); 16812 17140 int 16813 17141 main () 16814 17142 { 16815 return X tToolkitInitialize();17143 return XOpenDisplay (); 16816 17144 ; 16817 17145 return 0; 16818 17146 } 16819 17147 _ACEOF 16820 if ac_fn_c_try_link "$LINENO"; then : 16821 ac_cv_lib_Xm_XtToolkitInitialize=yes 16822 else 16823 ac_cv_lib_Xm_XtToolkitInitialize=no 17148 if ac_fn_cxx_try_link "$LINENO"; then : 17149 17150 else 17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 17152 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 17153 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 17154 $as_echo_n "(cached) " >&6 17155 else 17156 ac_check_lib_save_LIBS=$LIBS 17157 LIBS="-ldnet $LIBS" 17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17159 /* end confdefs.h. */ 17160 17161 /* Override any GCC internal prototype to avoid an error. 17162 Use char because int might match the return type of a GCC 17163 builtin and then its argument prototype would still apply. */ 17164 #ifdef __cplusplus 17165 extern "C" 17166 #endif 17167 char dnet_ntoa (); 17168 int 17169 main () 17170 { 17171 return dnet_ntoa (); 17172 ; 17173 return 0; 17174 } 17175 _ACEOF 17176 if ac_fn_cxx_try_link "$LINENO"; then : 17177 ac_cv_lib_dnet_dnet_ntoa=yes 17178 else 17179 ac_cv_lib_dnet_dnet_ntoa=no 16824 17180 fi 16825 17181 rm -f core conftest.err conftest.$ac_objext \ … … 16827 17183 LIBS=$ac_check_lib_save_LIBS 16828 17184 fi 16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XtToolkitInitialize" >&5 16830 $as_echo "$ac_cv_lib_Xm_XtToolkitInitialize" >&6; } 16831 if test "x$ac_cv_lib_Xm_XtToolkitInitialize" = x""yes; then : 16832 cat >>confdefs.h <<_ACEOF 16833 #define HAVE_LIBXM 1 17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 17186 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 17187 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 17188 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 17189 fi 17190 17191 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 17193 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 17194 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 17195 $as_echo_n "(cached) " >&6 17196 else 17197 ac_check_lib_save_LIBS=$LIBS 17198 LIBS="-ldnet_stub $LIBS" 17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17200 /* end confdefs.h. */ 17201 17202 /* Override any GCC internal prototype to avoid an error. 17203 Use char because int might match the return type of a GCC 17204 builtin and then its argument prototype would still apply. */ 17205 #ifdef __cplusplus 17206 extern "C" 17207 #endif 17208 char dnet_ntoa (); 17209 int 17210 main () 17211 { 17212 return dnet_ntoa (); 17213 ; 17214 return 0; 17215 } 16834 17216 _ACEOF 16835 16836 LIBS="-lXm $LIBS" 16837 16838 else 16839 16840 echo "Error! libXm (lesstif2) not properly installed in the default library path (needed by dim to link did)." 16841 exit -1 16842 16843 16844 fi 16845 16846 16847 ac_ext=cpp 16848 ac_cpp='$CXXCPP $CPPFLAGS' 16849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17217 if ac_fn_cxx_try_link "$LINENO"; then : 17218 ac_cv_lib_dnet_stub_dnet_ntoa=yes 17219 else 17220 ac_cv_lib_dnet_stub_dnet_ntoa=no 17221 fi 17222 rm -f core conftest.err conftest.$ac_objext \ 17223 conftest$ac_exeext conftest.$ac_ext 17224 LIBS=$ac_check_lib_save_LIBS 17225 fi 17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 17227 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 17228 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 17229 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 17230 fi 17231 17232 fi 17233 fi 17234 rm -f core conftest.err conftest.$ac_objext \ 17235 conftest$ac_exeext conftest.$ac_ext 17236 LIBS="$ac_xsave_LIBS" 17237 17238 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 17239 # to get the SysV transport functions. 17240 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 17241 # needs -lnsl. 17242 # The nsl library prevents programs from opening the X display 17243 # on Irix 5.2, according to T.E. Dickey. 17244 # The functions gethostbyname, getservbyname, and inet_addr are 17245 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 17246 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 17247 if test "x$ac_cv_func_gethostbyname" = x""yes; then : 17248 17249 fi 17250 17251 if test $ac_cv_func_gethostbyname = no; then 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 17253 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 17254 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 17255 $as_echo_n "(cached) " >&6 17256 else 17257 ac_check_lib_save_LIBS=$LIBS 17258 LIBS="-lnsl $LIBS" 17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17260 /* end confdefs.h. */ 17261 17262 /* Override any GCC internal prototype to avoid an error. 17263 Use char because int might match the return type of a GCC 17264 builtin and then its argument prototype would still apply. */ 17265 #ifdef __cplusplus 17266 extern "C" 17267 #endif 17268 char gethostbyname (); 17269 int 17270 main () 17271 { 17272 return gethostbyname (); 17273 ; 17274 return 0; 17275 } 17276 _ACEOF 17277 if ac_fn_cxx_try_link "$LINENO"; then : 17278 ac_cv_lib_nsl_gethostbyname=yes 17279 else 17280 ac_cv_lib_nsl_gethostbyname=no 17281 fi 17282 rm -f core conftest.err conftest.$ac_objext \ 17283 conftest$ac_exeext conftest.$ac_ext 17284 LIBS=$ac_check_lib_save_LIBS 17285 fi 17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 17287 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 17288 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 17289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 17290 fi 17291 17292 if test $ac_cv_lib_nsl_gethostbyname = no; then 17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 17294 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 17295 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 17296 $as_echo_n "(cached) " >&6 17297 else 17298 ac_check_lib_save_LIBS=$LIBS 17299 LIBS="-lbsd $LIBS" 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301 /* end confdefs.h. */ 17302 17303 /* Override any GCC internal prototype to avoid an error. 17304 Use char because int might match the return type of a GCC 17305 builtin and then its argument prototype would still apply. */ 17306 #ifdef __cplusplus 17307 extern "C" 17308 #endif 17309 char gethostbyname (); 17310 int 17311 main () 17312 { 17313 return gethostbyname (); 17314 ; 17315 return 0; 17316 } 17317 _ACEOF 17318 if ac_fn_cxx_try_link "$LINENO"; then : 17319 ac_cv_lib_bsd_gethostbyname=yes 17320 else 17321 ac_cv_lib_bsd_gethostbyname=no 17322 fi 17323 rm -f core conftest.err conftest.$ac_objext \ 17324 conftest$ac_exeext conftest.$ac_ext 17325 LIBS=$ac_check_lib_save_LIBS 17326 fi 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 17328 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 17329 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 17330 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 17331 fi 17332 17333 fi 17334 fi 17335 17336 # lieder@skyler.mavd.honeywell.com says without -lsocket, 17337 # socket/setsockopt and other routines are undefined under SCO ODT 17338 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 17339 # on later versions), says Simon Leinen: it contains gethostby* 17340 # variants that don't use the name server (or something). -lsocket 17341 # must be given before -lnsl if both are needed. We assume that 17342 # if connect needs -lnsl, so does gethostbyname. 17343 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 17344 if test "x$ac_cv_func_connect" = x""yes; then : 17345 17346 fi 17347 17348 if test $ac_cv_func_connect = no; then 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 17350 $as_echo_n "checking for connect in -lsocket... " >&6; } 17351 if test "${ac_cv_lib_socket_connect+set}" = set; then : 17352 $as_echo_n "(cached) " >&6 17353 else 17354 ac_check_lib_save_LIBS=$LIBS 17355 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17357 /* end confdefs.h. */ 17358 17359 /* Override any GCC internal prototype to avoid an error. 17360 Use char because int might match the return type of a GCC 17361 builtin and then its argument prototype would still apply. */ 17362 #ifdef __cplusplus 17363 extern "C" 17364 #endif 17365 char connect (); 17366 int 17367 main () 17368 { 17369 return connect (); 17370 ; 17371 return 0; 17372 } 17373 _ACEOF 17374 if ac_fn_cxx_try_link "$LINENO"; then : 17375 ac_cv_lib_socket_connect=yes 17376 else 17377 ac_cv_lib_socket_connect=no 17378 fi 17379 rm -f core conftest.err conftest.$ac_objext \ 17380 conftest$ac_exeext conftest.$ac_ext 17381 LIBS=$ac_check_lib_save_LIBS 17382 fi 17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 17384 $as_echo "$ac_cv_lib_socket_connect" >&6; } 17385 if test "x$ac_cv_lib_socket_connect" = x""yes; then : 17386 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 17387 fi 17388 17389 fi 17390 17391 # Guillermo Gomez says -lposix is necessary on A/UX. 17392 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 17393 if test "x$ac_cv_func_remove" = x""yes; then : 17394 17395 fi 17396 17397 if test $ac_cv_func_remove = no; then 17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 17399 $as_echo_n "checking for remove in -lposix... " >&6; } 17400 if test "${ac_cv_lib_posix_remove+set}" = set; then : 17401 $as_echo_n "(cached) " >&6 17402 else 17403 ac_check_lib_save_LIBS=$LIBS 17404 LIBS="-lposix $LIBS" 17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17406 /* end confdefs.h. */ 17407 17408 /* Override any GCC internal prototype to avoid an error. 17409 Use char because int might match the return type of a GCC 17410 builtin and then its argument prototype would still apply. */ 17411 #ifdef __cplusplus 17412 extern "C" 17413 #endif 17414 char remove (); 17415 int 17416 main () 17417 { 17418 return remove (); 17419 ; 17420 return 0; 17421 } 17422 _ACEOF 17423 if ac_fn_cxx_try_link "$LINENO"; then : 17424 ac_cv_lib_posix_remove=yes 17425 else 17426 ac_cv_lib_posix_remove=no 17427 fi 17428 rm -f core conftest.err conftest.$ac_objext \ 17429 conftest$ac_exeext conftest.$ac_ext 17430 LIBS=$ac_check_lib_save_LIBS 17431 fi 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 17433 $as_echo "$ac_cv_lib_posix_remove" >&6; } 17434 if test "x$ac_cv_lib_posix_remove" = x""yes; then : 17435 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 17436 fi 17437 17438 fi 17439 17440 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 17441 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 17442 if test "x$ac_cv_func_shmat" = x""yes; then : 17443 17444 fi 17445 17446 if test $ac_cv_func_shmat = no; then 17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 17448 $as_echo_n "checking for shmat in -lipc... " >&6; } 17449 if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 17450 $as_echo_n "(cached) " >&6 17451 else 17452 ac_check_lib_save_LIBS=$LIBS 17453 LIBS="-lipc $LIBS" 17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17455 /* end confdefs.h. */ 17456 17457 /* Override any GCC internal prototype to avoid an error. 17458 Use char because int might match the return type of a GCC 17459 builtin and then its argument prototype would still apply. */ 17460 #ifdef __cplusplus 17461 extern "C" 17462 #endif 17463 char shmat (); 17464 int 17465 main () 17466 { 17467 return shmat (); 17468 ; 17469 return 0; 17470 } 17471 _ACEOF 17472 if ac_fn_cxx_try_link "$LINENO"; then : 17473 ac_cv_lib_ipc_shmat=yes 17474 else 17475 ac_cv_lib_ipc_shmat=no 17476 fi 17477 rm -f core conftest.err conftest.$ac_objext \ 17478 conftest$ac_exeext conftest.$ac_ext 17479 LIBS=$ac_check_lib_save_LIBS 17480 fi 17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 17482 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 17483 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 17484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 17485 fi 17486 17487 fi 17488 fi 17489 17490 # Check for libraries that X11R6 Xt/Xaw programs need. 17491 ac_save_LDFLAGS=$LDFLAGS 17492 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 17493 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 17494 # check for ICE first), but we must link in the order -lSM -lICE or 17495 # we get undefined symbols. So assume we have SM if we have ICE. 17496 # These have to be linked with before -lX11, unlike the other 17497 # libraries we check for below, so use a different variable. 17498 # John Interrante, Karl Berry 17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 17500 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 17501 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 17502 $as_echo_n "(cached) " >&6 17503 else 17504 ac_check_lib_save_LIBS=$LIBS 17505 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17507 /* end confdefs.h. */ 17508 17509 /* Override any GCC internal prototype to avoid an error. 17510 Use char because int might match the return type of a GCC 17511 builtin and then its argument prototype would still apply. */ 17512 #ifdef __cplusplus 17513 extern "C" 17514 #endif 17515 char IceConnectionNumber (); 17516 int 17517 main () 17518 { 17519 return IceConnectionNumber (); 17520 ; 17521 return 0; 17522 } 17523 _ACEOF 17524 if ac_fn_cxx_try_link "$LINENO"; then : 17525 ac_cv_lib_ICE_IceConnectionNumber=yes 17526 else 17527 ac_cv_lib_ICE_IceConnectionNumber=no 17528 fi 17529 rm -f core conftest.err conftest.$ac_objext \ 17530 conftest$ac_exeext conftest.$ac_ext 17531 LIBS=$ac_check_lib_save_LIBS 17532 fi 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 17534 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 17535 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 17536 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 17537 fi 17538 17539 LDFLAGS=$ac_save_LDFLAGS 17540 17541 fi 17542 17543 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libXp is available" >&5 17545 $as_echo_n "checking whether libXp is available... " >&6; } 17546 if test "${lt_cv_libxp+set}" = set; then : 17547 $as_echo_n "(cached) " >&6 17548 else 17549 lt_save_CFLAGS="$CFLAGS" 17550 lt_save_CPPFLAGS="$CPPFLAGS" 17551 lt_save_LIBS="$LIBS" 17552 LIBS="$X_LIBS -lXp -lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 17553 CFLAGS="$X_CFLAGS $CFLAGS" 17554 CPPFLAGS="$X_CFLAGS $CPPFLAGS" 17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17556 /* end confdefs.h. */ 17557 17558 #include <X11/Intrinsic.h> 17559 #include <X11/extensions/Print.h> 17560 17561 int 17562 main () 17563 { 17564 17565 int main() { 17566 Display *display=NULL; 17567 short major_version, minor_version; 17568 Status rc; 17569 rc=XpQueryVersion(display, &major_version, &minor_version); 17570 exit(0); 17571 } 17572 17573 ; 17574 return 0; 17575 } 17576 _ACEOF 17577 if ac_fn_cxx_try_link "$LINENO"; then : 17578 lt_cv_libxp=yes 17579 else 17580 lt_cv_libxp=no 17581 fi 17582 rm -f core conftest.err conftest.$ac_objext \ 17583 conftest$ac_exeext conftest.$ac_ext 17584 17585 fi 17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_libxp" >&5 17587 $as_echo "$lt_cv_libxp" >&6; } 17588 if test "$lt_cv_libxp" = "yes"; then 17589 # remove this until we find a use for it 17590 # a.lacey@man.ac.uk 17591 # AC_DEFINE(HAVE_LIB_XP) 17592 LT_HAVE_XP="yes" 17593 else 17594 LT_HAVE_XP="no" 17595 fi 17596 if test "$lt_cv_libxp" = "yes"; then 17597 Have_Libxp_TRUE= 17598 Have_Libxp_FALSE='#' 17599 else 17600 Have_Libxp_TRUE='#' 17601 Have_Libxp_FALSE= 17602 fi 17603 17604 17605 CFLAGS="$lt_save_CFLAGS" 17606 CPPFLAGS="$lt_save_CPPFLAGS" 17607 LIBS="$lt_save_LIBS" 17608 17609 17610 17611 17612 17613 motif_includes= 17614 motif_libraries= 17615 17616 17617 17618 # Check whether --with-motif-includes was given. 17619 if test "${with_motif_includes+set}" = set; then : 17620 withval=$with_motif_includes; motif_includes="$withval" 17621 fi 17622 17623 17624 17625 # Check whether --with-motif-libraries was given. 17626 if test "${with_motif_libraries+set}" = set; then : 17627 withval=$with_motif_libraries; motif_libraries="$withval" 17628 fi 17629 17630 17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif" >&5 17632 $as_echo_n "checking for Motif... " >&6; } 17633 17634 # 17635 # 17636 # Search the include files. 17637 # 17638 if test "$motif_includes" = ""; then 17639 if test "${ac_cv_motif_includes+set}" = set; then : 17640 $as_echo_n "(cached) " >&6 17641 else 17642 17643 ac_motif_save_LIBS="$LIBS" 17644 ac_motif_save_INCLUDES="$INCLUDES" 17645 ac_motif_save_CPPFLAGS="$CPPFLAGS" 17646 ac_motif_save_LDFLAGS="$LDFLAGS" 17647 # 17648 LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" 17649 INCLUDES="$X_CFLAGS $INCLUDES" 17650 CPPFLAGS="$X_CFLAGS $CPPFLAGS" 17651 LDFLAGS="$X_LIBS $LDFLAGS" 17652 # 17653 ac_cv_motif_includes="none" 17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17655 /* end confdefs.h. */ 17656 #include <Xm/Xm.h> 17657 int 17658 main () 17659 { 17660 int a; 17661 ; 17662 return 0; 17663 } 17664 _ACEOF 17665 if ac_fn_cxx_try_compile "$LINENO"; then : 17666 17667 # Xm/Xm.h is in the standard search path. 17668 ac_cv_motif_includes= 17669 17670 else 17671 17672 # Xm/Xm.h is not in the standard search path. 17673 # Locate it and put its directory in `motif_includes' 17674 # 17675 # /usr/include/Motif* are used on HP-UX (Motif). 17676 # /usr/include/X11* are used on HP-UX (X and Athena). 17677 # /usr/dt is used on Solaris (Motif). 17678 # /usr/openwin is used on Solaris (X and Athena). 17679 # /sw/include is used for fink under OSX 17680 # Other directories are just guesses. 17681 for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ 17682 /usr/include/Motif2.1 /usr/include/Motif2.0 /usr/include/Motif1.2 \ 17683 /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 \ 17684 /usr/X11/include /usr/X11R6/include /usr/X11R5/include \ 17685 /usr/dt/include /usr/openwin/include \ 17686 /usr/dt/*/include /opt/*/include /usr/include/Motif* \ 17687 "${prefix}"/*/include /usr/*/include /usr/local/*/include \ 17688 "${prefix}"/include/* /usr/include/* /usr/local/include/* \ 17689 /sw/include; do 17690 if test -f "$dir/Xm/Xm.h"; then 17691 ac_cv_motif_includes="$dir" 17692 break 17693 fi 17694 done 17695 17696 fi 17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17698 # 17699 LIBS="$ac_motif_save_LIBS" 17700 INCLUDES="$ac_motif_save_INCLUDES" 17701 CPPFLAGS="$ac_motif_save_CPPFLAGS" 17702 LDFLAGS="$ac_motif_save_LDFLAGS" 17703 17704 fi 17705 17706 motif_includes="$ac_cv_motif_includes" 17707 fi 17708 # 17709 # 17710 # Now for the libraries. 17711 # 17712 if test "$motif_libraries" = ""; then 17713 if test "${ac_cv_motif_libraries+set}" = set; then : 17714 $as_echo_n "(cached) " >&6 17715 else 17716 17717 ac_motif_save_LIBS="$LIBS" 17718 ac_motif_save_INCLUDES="$INCLUDES" 17719 ac_motif_save_CPPFLAGS="$CPPFLAGS" 17720 ac_motif_save_LDFLAGS="$LDFLAGS" 17721 # 17722 LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" 17723 INCLUDES="$X_CFLAGS $INCLUDES" 17724 CPPFLAGS="$X_CFLAGS $CPPFLAGS" 17725 LDFLAGS="$X_LIBS $LDFLAGS" 17726 # 17727 ac_cv_motif_libraries="none" 17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17729 /* end confdefs.h. */ 17730 #include <Xm/Xm.h> 17731 int 17732 main () 17733 { 17734 XtToolkitInitialize(); 17735 ; 17736 return 0; 17737 } 17738 _ACEOF 17739 if ac_fn_cxx_try_link "$LINENO"; then : 17740 17741 # libXm.a is in the standard search path. 17742 ac_cv_motif_libraries= 17743 17744 else 17745 17746 # libXm.a is not in the standard search path. 17747 # Locate it and put its directory in `motif_libraries' 17748 # 17749 # /usr/lib/Motif* are used on HP-UX (Motif). 17750 # /usr/lib/X11* are used on HP-UX (X and Athena). 17751 # /usr/dt is used on Solaris (Motif). 17752 # /usr/lesstif is used on Linux (Lesstif). 17753 # /usr/openwin is used on Solaris (X and Athena). 17754 # /sw/lib is used under fink on OSX 17755 # Other directories are just guesses. 17756 for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ 17757 /usr/lib/Motif2.1 /usr/lib/Motif2.0 /usr/lib/Motif1.2 \ 17758 /usr/lib/X11 /usr/lib/X11R6 /usr/lib/X11R5 \ 17759 /usr/X11/lib /usr/X11R6/lib /usr/X11R5/lib \ 17760 /usr/dt/lib /usr/openwin/lib \ 17761 /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ 17762 /usr/lesstif*/lib /usr/lib/Lesstif* \ 17763 "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ 17764 "${prefix}"/lib/* /usr/lib/* /usr/local/lib/* \ 17765 /sw/lib; do 17766 if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then 17767 ac_cv_motif_libraries="$dir" 17768 break 17769 fi 17770 done 17771 17772 fi 17773 rm -f core conftest.err conftest.$ac_objext \ 17774 conftest$ac_exeext conftest.$ac_ext 17775 # 17776 LIBS="$ac_motif_save_LIBS" 17777 INCLUDES="$ac_motif_save_INCLUDES" 17778 CPPFLAGS="$ac_motif_save_CPPFLAGS" 17779 LDFLAGS="$ac_motif_save_LDFLAGS" 17780 17781 fi 17782 17783 # 17784 motif_libraries="$ac_cv_motif_libraries" 17785 fi 17786 # 17787 # Provide an easier way to link 17788 # 17789 if test "$motif_includes" = "none" -o "$motif_libraries" = "none"; then 17790 with_motif="no" 17791 else 17792 with_motif="yes" 17793 fi 17794 17795 17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libXp is available" >&5 17797 $as_echo_n "checking whether libXp is available... " >&6; } 17798 if test "${lt_cv_libxp+set}" = set; then : 17799 $as_echo_n "(cached) " >&6 17800 else 17801 lt_save_CFLAGS="$CFLAGS" 17802 lt_save_CPPFLAGS="$CPPFLAGS" 17803 lt_save_LIBS="$LIBS" 17804 LIBS="$X_LIBS -lXp -lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 17805 CFLAGS="$X_CFLAGS $CFLAGS" 17806 CPPFLAGS="$X_CFLAGS $CPPFLAGS" 17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17808 /* end confdefs.h. */ 17809 17810 #include <X11/Intrinsic.h> 17811 #include <X11/extensions/Print.h> 17812 17813 int 17814 main () 17815 { 17816 17817 int main() { 17818 Display *display=NULL; 17819 short major_version, minor_version; 17820 Status rc; 17821 rc=XpQueryVersion(display, &major_version, &minor_version); 17822 exit(0); 17823 } 17824 17825 ; 17826 return 0; 17827 } 17828 _ACEOF 17829 if ac_fn_cxx_try_link "$LINENO"; then : 17830 lt_cv_libxp=yes 17831 else 17832 lt_cv_libxp=no 17833 fi 17834 rm -f core conftest.err conftest.$ac_objext \ 17835 conftest$ac_exeext conftest.$ac_ext 17836 17837 fi 17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_libxp" >&5 17839 $as_echo "$lt_cv_libxp" >&6; } 17840 if test "$lt_cv_libxp" = "yes"; then 17841 # remove this until we find a use for it 17842 # a.lacey@man.ac.uk 17843 # AC_DEFINE(HAVE_LIB_XP) 17844 LT_HAVE_XP="yes" 17845 else 17846 LT_HAVE_XP="no" 17847 fi 17848 if test "$lt_cv_libxp" = "yes"; then 17849 Have_Libxp_TRUE= 17850 Have_Libxp_FALSE='#' 17851 else 17852 Have_Libxp_TRUE='#' 17853 Have_Libxp_FALSE= 17854 fi 17855 17856 17857 CFLAGS="$lt_save_CFLAGS" 17858 CPPFLAGS="$lt_save_CPPFLAGS" 17859 LIBS="$lt_save_LIBS" 17860 17861 if test "$LT_HAVE_XP" = "yes"; then 17862 XPLIB="-lXp -lXext" 17863 else 17864 XPLIB="" 17865 fi 17866 17867 if test "$with_motif" != "no"; then 17868 if test "$motif_libraries" = ""; then 17869 MOTIF_LDFLAGS="-lXm $XPLIB" 17870 MOTIF_LIBS="-lXm $XPLIB" 17871 else 17872 MOTIF_LDFLAGS="-L$motif_libraries -lXm $XPLIB" 17873 MOTIF_LIBS="-L$motif_libraries -lXm $XPLIB" 17874 fi 17875 if test "$motif_includes" != ""; then 17876 MOTIF_INCL="-I$motif_includes" 17877 MOTIF_CFLAGS="-I$motif_includes" 17878 fi 17879 # remove this until we find a use for it 17880 # a.lacey@man.ac.uk 17881 # AC_DEFINE(HAVE_MOTIF) 17882 else 17883 with_motif="no" 17884 fi 17885 # 17886 17887 17888 17889 17890 # 17891 # 17892 # 17893 motif_libraries_result="$motif_libraries" 17894 motif_includes_result="$motif_includes" 17895 test "$motif_libraries_result" = "" && motif_libraries_result="in default path" 17896 test "$motif_includes_result" = "" && motif_includes_result="in default path" 17897 test "$motif_libraries_result" = "none" && motif_libraries_result="(none)" 17898 test "$motif_includes_result" = "none" && motif_includes_result="(none)" 17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $motif_libraries_result, headers $motif_includes_result" >&5 17900 $as_echo "libraries $motif_libraries_result, headers $motif_includes_result" >&6; } 16852 17901 16853 17902 … … 19176 20225 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then 19177 20226 as_fn_error $? "conditional \"DX_COND_latex\" was never defined. 20227 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20228 fi 20229 if test -z "${Have_Libxp_TRUE}" && test -z "${Have_Libxp_FALSE}"; then 20230 as_fn_error $? "conditional \"Have_Libxp\" was never defined. 20231 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20232 fi 20233 if test -z "${Have_Libxp_TRUE}" && test -z "${Have_Libxp_FALSE}"; then 20234 as_fn_error $? "conditional \"Have_Libxp\" was never defined. 19178 20235 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19179 20236 fi
Note:
See TracChangeset
for help on using the changeset viewer.