comparison configure @ 153:25f70ba0133c r20-3b3

Import from CVS: tag r20-3b3
author cvs
date Mon, 13 Aug 2007 09:38:25 +0200
parents 59463afc5666
children 43dd3413c7c7
comparison
equal deleted inserted replaced
152:4c132ee2d62b 153:25f70ba0133c
43 43
44 ac_help="$ac_help 44 ac_help="$ac_help
45 --with-x use the X Window System" 45 --with-x use the X Window System"
46 46
47 build=NONE 47 build=NONE
48 cache_file=/dev/null
49 exec_prefix=NONE 48 exec_prefix=NONE
50 host=NONE 49 host=NONE
51 no_create= 50 no_create=
52 nonopt=NONE 51 nonopt=NONE
53 no_recursion= 52 no_recursion=
60 srcdir= 59 srcdir=
61 target=NONE 60 target=NONE
62 verbose= 61 verbose=
63 x_includes=NONE 62 x_includes=NONE
64 x_libraries=NONE 63 x_libraries=NONE
64
65 if test -n "$ZSH_VERSION"; then
66 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
67 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
68 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
69 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
70 fi
71
65 bindir='${exec_prefix}/bin' 72 bindir='${exec_prefix}/bin'
66 sbindir='${exec_prefix}/sbin' 73 sbindir='${exec_prefix}/sbin'
67 libexecdir='${exec_prefix}/libexec' 74 libexecdir='${exec_prefix}/libexec'
68 datadir='${prefix}/share' 75 datadir='${prefix}/share'
69 sysconfdir='${prefix}/etc' 76 sysconfdir='${prefix}/etc'
176 183
177 184
178 ac_ext=c 185 ac_ext=c
179 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 186 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
180 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 187 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
181 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' 188 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
182 ac_cpp='$CPP '"$xe_cppflags" 189 ac_cpp='$CPP '"$xe_cppflags"
183 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 190 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
184 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 191 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
185 cross_compiling=no 192 cross_compiling=no
186 193
197 fi 204 fi
198 205
199 206
200 progname="`echo $0 | sed 's:^\./\./:\./:'`" 207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
201 208
202
203 cache_file=/dev/null
204 209
205 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi 210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
206 211
207 prefix='/usr/local' 212 prefix='/usr/local'
208 exec_prefix='${prefix}' 213 exec_prefix='${prefix}'
232 with_x11='' 237 with_x11=''
233 rel_alloc='default' 238 rel_alloc='default'
234 use_system_malloc='default' 239 use_system_malloc='default'
235 energize_version='' 240 energize_version=''
236 native_sound_lib='' 241 native_sound_lib=''
237 error_check_default='yes' 242 error_check_default="yes"
238 error_check_extents=$error_check_default 243 error_check_extents=$error_check_default
239 error_check_typecheck=$error_check_default 244 error_check_typecheck=$error_check_default
240 error_check_bufpos=$error_check_default 245 error_check_bufpos=$error_check_default
241 error_check_gc=$error_check_default 246 error_check_gc=$error_check_default
242 error_check_malloc=$error_check_default 247 error_check_malloc=$error_check_default
243 debug=$error_check_default 248 debug=$error_check_default
244 extra_verbose=$error_check_default 249 extra_verbose=$error_check_default
245 use_assertions='yes' 250 use_assertions="yes"
246 with_gif='' 251 with_gif=""
247 with_toolbars='' 252 with_toolbars=""
248 use_union_type='no' 253 use_union_type="no"
249 with_dnet='' 254 with_dnet=""
250 255
251 test -n "$CPP" -a -d "$CPP" && CPP= 256 test -n "$CPP" -a -d "$CPP" && CPP=
252 257
253 usage="Usage: $progname CONFIGURATION [-OPTION[=VALUE] ...] 258 usage="Usage: $progname CONFIGURATION [-OPTION[=VALUE] ...]
254 259
336 (not yet implemented). 341 (not yet implemented).
337 342
338 343
339 TTY options: 344 TTY options:
340 345
346 --with-tty=no Don't support TTY-s.
341 --with-ncurses (*) Use the ncurses library for tty support. 347 --with-ncurses (*) Use the ncurses library for tty support.
342 --with-gpm (*) Compile in support for General Purpose Mouse. 348 --with-gpm (*) Compile in support for General Purpose Mouse.
343 349
344 350
345 Additional features: 351 Additional features:
346 352
347 --with-tooltalk (*) Support the ToolTalk IPC protocol. 353 --with-tooltalk (*) Support the ToolTalk IPC protocol.
363 --with-sound=nas Compile with network sound support. 369 --with-sound=nas Compile with network sound support.
364 --with-sound=both Compile with native and network sound support. 370 --with-sound=both Compile with native and network sound support.
365 --native-sound-lib=LIB Native sound support library. Needed on Suns 371 --native-sound-lib=LIB Native sound support library. Needed on Suns
366 with --with-sound=both because both sound libraries 372 with --with-sound=both because both sound libraries
367 are called libaudio. 373 are called libaudio.
368 --with-mocklisp Compile with Mocklisp support. Don't do this
369 unless you have a Mocklisp program that you need
370 to run.
371 --with-pop support POP for mail retrieval 374 --with-pop support POP for mail retrieval
372 --with-kerberos support Kerberos-authenticated POP 375 --with-kerberos support Kerberos-authenticated POP
373 --with-hesiod support Hesiod to get the POP server host 376 --with-hesiod support Hesiod to get the POP server host
374 --with-dnet (*) Compile with support for DECnet. 377 --with-dnet (*) Compile with support for DECnet.
375 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent 378 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent
457 quoted_arguments= 460 quoted_arguments=
458 for i in "$@"; do 461 for i in "$@"; do
459 case "$i" in 462 case "$i" in
460 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
461 | --no-cr | --no-c) ;; 464 | --no-cr | --no-c) ;;
462 -norecursion | --norecursion | --norecursio | --norecursi \ 465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
463 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;; 466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
464 *) 467 *)
465 quoted_i="`echo $i | sed $quoted_sed_magic`" 468 quoted_i="`echo $i | sed $quoted_sed_magic`"
466 quoted_arguments="$quoted_arguments '$quoted_i'" ;; 469 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
467 esac 470 esac
468 done 471 done
516 with_i18n3 | \ 519 with_i18n3 | \
517 with_mule | \ 520 with_mule | \
518 with_canna | \ 521 with_canna | \
519 with_wnn | \ 522 with_wnn | \
520 with_wnn6 | \ 523 with_wnn6 | \
521 with_mocklisp | \
522 with_energize | \ 524 with_energize | \
523 with_workshop | \ 525 with_workshop | \
524 with_sparcworks | \ 526 with_sparcworks | \
525 with_tooltalk | \ 527 with_tooltalk | \
526 with_pop | \ 528 with_pop | \
545 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 547 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
546 esac 548 esac
547 eval "$opt=\"$val\"" ;; 549 eval "$opt=\"$val\"" ;;
548 550
549 551
550 srcdir | \ 552 srcdir | \
551 compiler | \ 553 compiler | \
552 puresize | \ 554 puresize | \
555 cache_file | \
553 native_sound_lib | \ 556 native_sound_lib | \
554 x_includes | \ 557 x_includes | \
555 x_libraries | \ 558 x_libraries | \
556 site_includes | \ 559 site_includes | \
557 site_libraries | \ 560 site_libraries | \
833 fi 836 fi
834 ;; 837 ;;
835 esac 838 esac
836 839
837 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 840 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
838 echo "configure:839: checking whether ln -s works" >&5 841 echo "configure:842: checking whether ln -s works" >&5
839 842
840 rm -f conftestdata 843 rm -f conftestdata
841 if ln -s X conftestdata 2>/dev/null 844 if ln -s X conftestdata 2>/dev/null
842 then 845 then
843 rm -f conftestdata 846 rm -f conftestdata
890 vpath %.in $(srcdir)' 893 vpath %.in $(srcdir)'
891 fi 894 fi
892 895
893 896
894 echo "checking "the configuration name"" 1>&6 897 echo "checking "the configuration name"" 1>&6
895 echo "configure:896: checking "the configuration name"" >&5 898 echo "configure:899: checking "the configuration name"" >&5
896 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'` 899 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'`
897 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 900 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
898 exit $? 901 exit $?
899 fi 902 fi
900 903
1316 1319
1317 test -n "$NON_GNU_CC" -a "$with_gcc" = "no" -a -z "$CC" && CC="$NON_GNU_CC" 1320 test -n "$NON_GNU_CC" -a "$with_gcc" = "no" -a -z "$CC" && CC="$NON_GNU_CC"
1318 # Extract the first word of "gcc", so it can be a program name with args. 1321 # Extract the first word of "gcc", so it can be a program name with args.
1319 set dummy gcc; ac_word=$2 1322 set dummy gcc; ac_word=$2
1320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1321 echo "configure:1322: checking for $ac_word" >&5 1324 echo "configure:1325: checking for $ac_word" >&5
1322 1325
1323 if test -n "$CC"; then 1326 if test -n "$CC"; then
1324 ac_cv_prog_CC="$CC" # Let the user override the test. 1327 ac_cv_prog_CC="$CC" # Let the user override the test.
1325 else 1328 else
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1342 1345
1343 if test -z "$CC"; then 1346 if test -z "$CC"; then
1344 # Extract the first word of "cc", so it can be a program name with args. 1347 # Extract the first word of "cc", so it can be a program name with args.
1345 set dummy cc; ac_word=$2 1348 set dummy cc; ac_word=$2
1346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1347 echo "configure:1348: checking for $ac_word" >&5 1350 echo "configure:1351: checking for $ac_word" >&5
1348 1351
1349 if test -n "$CC"; then 1352 if test -n "$CC"; then
1350 ac_cv_prog_CC="$CC" # Let the user override the test. 1353 ac_cv_prog_CC="$CC" # Let the user override the test.
1351 else 1354 else
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1387 1390
1388 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1391 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1389 fi 1392 fi
1390 1393
1391 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1394 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1392 echo "configure:1393: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1395 echo "configure:1396: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1393 1396
1394 ac_ext=c 1397 ac_ext=c
1395 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1398 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1396 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1399 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1397 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1400 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1398 ac_cpp='$CPP '"$xe_cppflags" 1401 ac_cpp='$CPP '"$xe_cppflags"
1399 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1402 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1400 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1403 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1401 cross_compiling=no 1404 cross_compiling=no
1402 1405
1403 cat > conftest.$ac_ext <<EOF 1406 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure" 1407 #line 1408 "configure"
1405 #include "confdefs.h" 1408 #include "confdefs.h"
1406 main(){return(0);} 1409 main(){return(0);}
1407 EOF 1410 EOF
1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1411 if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1409 ac_cv_prog_cc_works=yes 1412 ac_cv_prog_cc_works=yes
1410 # If we can't run a trivial program, we are probably using a cross compiler. 1413 # If we can't run a trivial program, we are probably using a cross compiler.
1411 if (./conftest; exit) 2>/dev/null; then 1414 if (./conftest; exit) 2>/dev/null; then
1412 ac_cv_prog_cc_cross=no 1415 ac_cv_prog_cc_cross=no
1413 else 1416 else
1423 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1426 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1424 if test $ac_cv_prog_cc_works = no; then 1427 if test $ac_cv_prog_cc_works = no; then
1425 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1428 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1426 fi 1429 fi
1427 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1430 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1431 echo "configure:1432: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1429 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1432 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1430 cross_compiling=$ac_cv_prog_cc_cross 1433 cross_compiling=$ac_cv_prog_cc_cross
1431 1434
1432 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1435 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether we are using GNU C" >&5 1436 echo "configure:1437: checking whether we are using GNU C" >&5
1434 1437
1435 cat > conftest.c <<EOF 1438 cat > conftest.c <<EOF
1436 #ifdef __GNUC__ 1439 #ifdef __GNUC__
1437 yes; 1440 yes;
1438 #endif 1441 #endif
1439 EOF 1442 EOF
1440 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1443 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1441 ac_cv_prog_gcc=yes 1444 ac_cv_prog_gcc=yes
1442 else 1445 else
1443 ac_cv_prog_gcc=no 1446 ac_cv_prog_gcc=no
1444 fi 1447 fi
1445 1448
1449 GCC=yes 1452 GCC=yes
1450 ac_test_CFLAGS="${CFLAGS+set}" 1453 ac_test_CFLAGS="${CFLAGS+set}"
1451 ac_save_CFLAGS="$CFLAGS" 1454 ac_save_CFLAGS="$CFLAGS"
1452 CFLAGS= 1455 CFLAGS=
1453 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1456 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1454 echo "configure:1455: checking whether ${CC-cc} accepts -g" >&5 1457 echo "configure:1458: checking whether ${CC-cc} accepts -g" >&5
1455 1458
1456 echo 'void f(){}' > conftest.c 1459 echo 'void f(){}' > conftest.c
1457 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1460 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1458 ac_cv_prog_cc_g=yes 1461 ac_cv_prog_cc_g=yes
1459 else 1462 else
1479 if test "$with_gcc" = "no" -a "$ac_cv_prog_gcc" = "yes"; then 1482 if test "$with_gcc" = "no" -a "$ac_cv_prog_gcc" = "yes"; then
1480 CC=${NON_GNU_CC-cc} 1483 CC=${NON_GNU_CC-cc}
1481 # Extract the first word of "gcc", so it can be a program name with args. 1484 # Extract the first word of "gcc", so it can be a program name with args.
1482 set dummy gcc; ac_word=$2 1485 set dummy gcc; ac_word=$2
1483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1484 echo "configure:1485: checking for $ac_word" >&5 1487 echo "configure:1488: checking for $ac_word" >&5
1485 1488
1486 if test -n "$CC"; then 1489 if test -n "$CC"; then
1487 ac_cv_prog_CC="$CC" # Let the user override the test. 1490 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 else 1491 else
1489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1505 1508
1506 if test -z "$CC"; then 1509 if test -z "$CC"; then
1507 # Extract the first word of "cc", so it can be a program name with args. 1510 # Extract the first word of "cc", so it can be a program name with args.
1508 set dummy cc; ac_word=$2 1511 set dummy cc; ac_word=$2
1509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1510 echo "configure:1511: checking for $ac_word" >&5 1513 echo "configure:1514: checking for $ac_word" >&5
1511 1514
1512 if test -n "$CC"; then 1515 if test -n "$CC"; then
1513 ac_cv_prog_CC="$CC" # Let the user override the test. 1516 ac_cv_prog_CC="$CC" # Let the user override the test.
1514 else 1517 else
1515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1550 1553
1551 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1554 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1552 fi 1555 fi
1553 1556
1554 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1557 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1555 echo "configure:1556: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1558 echo "configure:1559: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1556 1559
1557 ac_ext=c 1560 ac_ext=c
1558 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1561 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1559 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1562 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1560 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1563 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1561 ac_cpp='$CPP '"$xe_cppflags" 1564 ac_cpp='$CPP '"$xe_cppflags"
1562 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1565 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1563 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1566 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1564 cross_compiling=no 1567 cross_compiling=no
1565 1568
1566 cat > conftest.$ac_ext <<EOF 1569 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure" 1570 #line 1571 "configure"
1568 #include "confdefs.h" 1571 #include "confdefs.h"
1569 main(){return(0);} 1572 main(){return(0);}
1570 EOF 1573 EOF
1571 if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1572 ac_cv_prog_cc_works=yes 1575 ac_cv_prog_cc_works=yes
1573 # If we can't run a trivial program, we are probably using a cross compiler. 1576 # If we can't run a trivial program, we are probably using a cross compiler.
1574 if (./conftest; exit) 2>/dev/null; then 1577 if (./conftest; exit) 2>/dev/null; then
1575 ac_cv_prog_cc_cross=no 1578 ac_cv_prog_cc_cross=no
1576 else 1579 else
1586 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1589 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1587 if test $ac_cv_prog_cc_works = no; then 1590 if test $ac_cv_prog_cc_works = no; then
1588 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1591 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1589 fi 1592 fi
1590 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1593 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1591 echo "configure:1592: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1594 echo "configure:1595: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1592 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1595 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1593 cross_compiling=$ac_cv_prog_cc_cross 1596 cross_compiling=$ac_cv_prog_cc_cross
1594 1597
1595 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1598 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1596 echo "configure:1597: checking whether we are using GNU C" >&5 1599 echo "configure:1600: checking whether we are using GNU C" >&5
1597 1600
1598 cat > conftest.c <<EOF 1601 cat > conftest.c <<EOF
1599 #ifdef __GNUC__ 1602 #ifdef __GNUC__
1600 yes; 1603 yes;
1601 #endif 1604 #endif
1602 EOF 1605 EOF
1603 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1606 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1604 ac_cv_prog_gcc=yes 1607 ac_cv_prog_gcc=yes
1605 else 1608 else
1606 ac_cv_prog_gcc=no 1609 ac_cv_prog_gcc=no
1607 fi 1610 fi
1608 1611
1612 GCC=yes 1615 GCC=yes
1613 ac_test_CFLAGS="${CFLAGS+set}" 1616 ac_test_CFLAGS="${CFLAGS+set}"
1614 ac_save_CFLAGS="$CFLAGS" 1617 ac_save_CFLAGS="$CFLAGS"
1615 CFLAGS= 1618 CFLAGS=
1616 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1619 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1617 echo "configure:1618: checking whether ${CC-cc} accepts -g" >&5 1620 echo "configure:1621: checking whether ${CC-cc} accepts -g" >&5
1618 1621
1619 echo 'void f(){}' > conftest.c 1622 echo 'void f(){}' > conftest.c
1620 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1623 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1621 ac_cv_prog_cc_g=yes 1624 ac_cv_prog_cc_g=yes
1622 else 1625 else
1641 elif test "$with_gcc" = "yes" -a "$ac_cv_prog_gcc" = "no" ; then 1644 elif test "$with_gcc" = "yes" -a "$ac_cv_prog_gcc" = "no" ; then
1642 CC=gcc 1645 CC=gcc
1643 # Extract the first word of "gcc", so it can be a program name with args. 1646 # Extract the first word of "gcc", so it can be a program name with args.
1644 set dummy gcc; ac_word=$2 1647 set dummy gcc; ac_word=$2
1645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1646 echo "configure:1647: checking for $ac_word" >&5 1649 echo "configure:1650: checking for $ac_word" >&5
1647 1650
1648 if test -n "$CC"; then 1651 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test. 1652 ac_cv_prog_CC="$CC" # Let the user override the test.
1650 else 1653 else
1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1667 1670
1668 if test -z "$CC"; then 1671 if test -z "$CC"; then
1669 # Extract the first word of "cc", so it can be a program name with args. 1672 # Extract the first word of "cc", so it can be a program name with args.
1670 set dummy cc; ac_word=$2 1673 set dummy cc; ac_word=$2
1671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1672 echo "configure:1673: checking for $ac_word" >&5 1675 echo "configure:1676: checking for $ac_word" >&5
1673 1676
1674 if test -n "$CC"; then 1677 if test -n "$CC"; then
1675 ac_cv_prog_CC="$CC" # Let the user override the test. 1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1676 else 1679 else
1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1712 1715
1713 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1716 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1714 fi 1717 fi
1715 1718
1716 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1719 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1717 echo "configure:1718: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1720 echo "configure:1721: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1718 1721
1719 ac_ext=c 1722 ac_ext=c
1720 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1723 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1721 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1724 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1722 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1725 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1723 ac_cpp='$CPP '"$xe_cppflags" 1726 ac_cpp='$CPP '"$xe_cppflags"
1724 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1727 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1725 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1728 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1726 cross_compiling=no 1729 cross_compiling=no
1727 1730
1728 cat > conftest.$ac_ext <<EOF 1731 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure" 1732 #line 1733 "configure"
1730 #include "confdefs.h" 1733 #include "confdefs.h"
1731 main(){return(0);} 1734 main(){return(0);}
1732 EOF 1735 EOF
1733 if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1734 ac_cv_prog_cc_works=yes 1737 ac_cv_prog_cc_works=yes
1735 # If we can't run a trivial program, we are probably using a cross compiler. 1738 # If we can't run a trivial program, we are probably using a cross compiler.
1736 if (./conftest; exit) 2>/dev/null; then 1739 if (./conftest; exit) 2>/dev/null; then
1737 ac_cv_prog_cc_cross=no 1740 ac_cv_prog_cc_cross=no
1738 else 1741 else
1748 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1751 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1749 if test $ac_cv_prog_cc_works = no; then 1752 if test $ac_cv_prog_cc_works = no; then
1750 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1753 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1751 fi 1754 fi
1752 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1753 echo "configure:1754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1756 echo "configure:1757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1754 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1757 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1755 cross_compiling=$ac_cv_prog_cc_cross 1758 cross_compiling=$ac_cv_prog_cc_cross
1756 1759
1757 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1760 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1758 echo "configure:1759: checking whether we are using GNU C" >&5 1761 echo "configure:1762: checking whether we are using GNU C" >&5
1759 1762
1760 cat > conftest.c <<EOF 1763 cat > conftest.c <<EOF
1761 #ifdef __GNUC__ 1764 #ifdef __GNUC__
1762 yes; 1765 yes;
1763 #endif 1766 #endif
1764 EOF 1767 EOF
1765 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1768 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1766 ac_cv_prog_gcc=yes 1769 ac_cv_prog_gcc=yes
1767 else 1770 else
1768 ac_cv_prog_gcc=no 1771 ac_cv_prog_gcc=no
1769 fi 1772 fi
1770 1773
1774 GCC=yes 1777 GCC=yes
1775 ac_test_CFLAGS="${CFLAGS+set}" 1778 ac_test_CFLAGS="${CFLAGS+set}"
1776 ac_save_CFLAGS="$CFLAGS" 1779 ac_save_CFLAGS="$CFLAGS"
1777 CFLAGS= 1780 CFLAGS=
1778 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1781 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1779 echo "configure:1780: checking whether ${CC-cc} accepts -g" >&5 1782 echo "configure:1783: checking whether ${CC-cc} accepts -g" >&5
1780 1783
1781 echo 'void f(){}' > conftest.c 1784 echo 'void f(){}' > conftest.c
1782 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1785 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1783 ac_cv_prog_cc_g=yes 1786 ac_cv_prog_cc_g=yes
1784 else 1787 else
1804 1807
1805 if test "$GCC" = "yes"; then with_gcc=yes; else with_gcc=no; fi 1808 if test "$GCC" = "yes"; then with_gcc=yes; else with_gcc=no; fi
1806 test -n "$NON_GNU_CPP" -a "$with_gcc" = "no" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1809 test -n "$NON_GNU_CPP" -a "$with_gcc" = "no" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1807 1810
1808 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1811 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1809 echo "configure:1810: checking how to run the C preprocessor" >&5 1812 echo "configure:1813: checking how to run the C preprocessor" >&5
1810 # On Suns, sometimes $CPP names a directory. 1813 # On Suns, sometimes $CPP names a directory.
1811 if test -n "$CPP" && test -d "$CPP"; then 1814 if test -n "$CPP" && test -d "$CPP"; then
1812 CPP= 1815 CPP=
1813 fi 1816 fi
1814 if test -z "$CPP"; then 1817 if test -z "$CPP"; then
1817 # substituted into the Makefile and "${CC-cc}" will confuse make. 1820 # substituted into the Makefile and "${CC-cc}" will confuse make.
1818 CPP="${CC-cc} -E" 1821 CPP="${CC-cc} -E"
1819 # On the NeXT, cc -E runs the code through the compiler's parser, 1822 # On the NeXT, cc -E runs the code through the compiler's parser,
1820 # not just through cpp. 1823 # not just through cpp.
1821 cat > conftest.$ac_ext <<EOF 1824 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure" 1825 #line 1826 "configure"
1823 #include "confdefs.h" 1826 #include "confdefs.h"
1824 #include <assert.h> 1827 #include <assert.h>
1825 Syntax Error 1828 Syntax Error
1826 EOF 1829 EOF
1827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1828 { (eval echo configure:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1831 { (eval echo configure:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1829 ac_err=`grep -v '^ *+' conftest.out` 1832 ac_err=`grep -v '^ *+' conftest.out`
1830 if test -z "$ac_err"; then 1833 if test -z "$ac_err"; then
1831 : 1834 :
1832 else 1835 else
1833 echo "$ac_err" >&5 1836 echo "$ac_err" >&5
1834 echo "configure: failed program was:" >&5 1837 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5 1838 cat conftest.$ac_ext >&5
1836 rm -rf conftest* 1839 rm -rf conftest*
1837 CPP="${CC-cc} -E -traditional-cpp" 1840 CPP="${CC-cc} -E -traditional-cpp"
1838 cat > conftest.$ac_ext <<EOF 1841 cat > conftest.$ac_ext <<EOF
1839 #line 1840 "configure" 1842 #line 1843 "configure"
1840 #include "confdefs.h" 1843 #include "confdefs.h"
1841 #include <assert.h> 1844 #include <assert.h>
1842 Syntax Error 1845 Syntax Error
1843 EOF 1846 EOF
1844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1845 { (eval echo configure:1846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1848 { (eval echo configure:1849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1846 ac_err=`grep -v '^ *+' conftest.out` 1849 ac_err=`grep -v '^ *+' conftest.out`
1847 if test -z "$ac_err"; then 1850 if test -z "$ac_err"; then
1848 : 1851 :
1849 else 1852 else
1850 echo "$ac_err" >&5 1853 echo "$ac_err" >&5
1949 #define C_OPTIMIZE_SWITCH -O 1952 #define C_OPTIMIZE_SWITCH -O
1950 #endif 1953 #endif
1951 configure___ c_optimize_switch=C_OPTIMIZE_SWITCH 1954 configure___ c_optimize_switch=C_OPTIMIZE_SWITCH
1952 1955
1953 1956
1957 #ifdef ORDINARY_LINK
1958 configure___ ordinary_link=yes
1959 #else
1960 configure___ ordinary_link=no
1961 #endif
1962
1954 #ifdef SYSTEM_MALLOC 1963 #ifdef SYSTEM_MALLOC
1955 configure___ system_malloc=yes 1964 configure___ system_malloc=yes
1956 #else 1965 #else
1957 configure___ system_malloc=no 1966 configure___ system_malloc=no
1958 #endif 1967 #endif
1997 #endif /* not THIS_IS_CONFIGURE */ 2006 #endif /* not THIS_IS_CONFIGURE */
1998 ' > $tempcname 2007 ' > $tempcname
1999 CPP=`eval "echo $CPP"` 2008 CPP=`eval "echo $CPP"`
2000 eval `$CPP -Isrc $tempcname \ 2009 eval `$CPP -Isrc $tempcname \
2001 | grep 'configure___' \ 2010 | grep 'configure___' \
2002 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` 2011 | sed -n -e 's/^configure___ \([^= ]* *=\)\(.*\)$/\1\`echo \2\`/p'`
2003 if test -z "$SPECIFIED_CFLAGS"; then 2012 if test -z "$SPECIFIED_CFLAGS"; then
2004 eval `$CPP -Isrc -DTHIS_IS_CONFIGURE $tempcname \ 2013 eval `$CPP -Isrc -DTHIS_IS_CONFIGURE $tempcname \
2005 | grep 'configure___' \ 2014 | grep 'configure___' \
2006 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` 2015 | sed -n -e 's/^configure___ \([^= ]* *=\)\(.*\)$/\1\`echo \2\`/p'`
2007 else 2016 else
2008 REAL_CFLAGS="$CFLAGS" 2017 REAL_CFLAGS="$CFLAGS"
2009 fi 2018 fi
2019
2010 rm $tempcname 2020 rm $tempcname
2021
2022 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2011 2023
2012 test "$cflags" != "NO_CFLAGS_DEFINED" && REAL_CFLAGS="$cflags" 2024 test "$cflags" != "NO_CFLAGS_DEFINED" && REAL_CFLAGS="$cflags"
2013 2025
2014 extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2026 extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2015 echo " xemacs will be linked with \"$unexec\"" 2027 echo " xemacs will be linked with \"$unexec\""
2048 esac 2060 esac
2049 fi 2061 fi
2050 2062
2051 if test "$add_runtime_path" = "yes"; then 2063 if test "$add_runtime_path" = "yes"; then
2052 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2064 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2053 echo "configure:2054: checking "for runtime libraries flag"" >&5 2065 echo "configure:2066: checking "for runtime libraries flag"" >&5
2054 dash_r="" 2066 dash_r=""
2055 for try_dash_r in "-R" "-R " "-rpath "; do 2067 for try_dash_r in "-R" "-R " "-rpath "; do
2056 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2068 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2057 cat > conftest.$ac_ext <<EOF 2069 cat > conftest.$ac_ext <<EOF
2058 #line 2059 "configure" 2070 #line 2071 "configure"
2059 #include "confdefs.h" 2071 #include "confdefs.h"
2060 2072
2061 int main() { 2073 int main() {
2062 2074
2063 ; return 0; } 2075 ; return 0; }
2064 EOF 2076 EOF
2065 if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2077 if { (eval echo configure:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2066 rm -rf conftest* 2078 rm -rf conftest*
2067 dash_r="$try_dash_r" 2079 dash_r="$try_dash_r"
2068 else 2080 else
2069 echo "configure: failed program was:" >&5 2081 echo "configure: failed program was:" >&5
2070 cat conftest.$ac_ext >&5 2082 cat conftest.$ac_ext >&5
2124 2136
2125 2137
2126 # Extract the first word of "ranlib", so it can be a program name with args. 2138 # Extract the first word of "ranlib", so it can be a program name with args.
2127 set dummy ranlib; ac_word=$2 2139 set dummy ranlib; ac_word=$2
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_word" >&5 2141 echo "configure:2142: checking for $ac_word" >&5
2130 2142
2131 if test -n "$RANLIB"; then 2143 if test -n "$RANLIB"; then
2132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2133 else 2145 else
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2177 # AIX /bin/install 2189 # AIX /bin/install
2178 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2190 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2179 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2191 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2180 # ./install, which can be erroneously created by make from ./install.sh. 2192 # ./install, which can be erroneously created by make from ./install.sh.
2181 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2193 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2182 echo "configure:2183: checking for a BSD compatible install" >&5 2194 echo "configure:2195: checking for a BSD compatible install" >&5
2183 if test -z "$INSTALL"; then 2195 if test -z "$INSTALL"; then
2184 2196
2185 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2197 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2186 for ac_dir in $PATH; do 2198 for ac_dir in $PATH; do
2187 # Account for people who put trailing slashes in PATH elements. 2199 # Account for people who put trailing slashes in PATH elements.
2228 for ac_prog in 'bison -y' byacc 2240 for ac_prog in 'bison -y' byacc
2229 do 2241 do
2230 # Extract the first word of "$ac_prog", so it can be a program name with args. 2242 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2 2243 set dummy $ac_prog; ac_word=$2
2232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_word" >&5 2245 echo "configure:2246: checking for $ac_word" >&5
2234 2246
2235 if test -n "$YACC"; then 2247 if test -n "$YACC"; then
2236 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2248 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2237 else 2249 else
2238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2256 done 2268 done
2257 test -n "$YACC" || YACC="yacc" 2269 test -n "$YACC" || YACC="yacc"
2258 2270
2259 2271
2260 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2272 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2261 echo "configure:2262: checking for AIX" >&5 2273 echo "configure:2274: checking for AIX" >&5
2262 cat > conftest.$ac_ext <<EOF 2274 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure" 2275 #line 2276 "configure"
2264 #include "confdefs.h" 2276 #include "confdefs.h"
2265 #ifdef _AIX 2277 #ifdef _AIX
2266 yes 2278 yes
2267 #endif 2279 #endif
2268 2280
2288 2300
2289 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2301 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2290 do 2302 do
2291 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2292 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2293 echo "configure:2294: checking for $ac_hdr" >&5 2305 echo "configure:2306: checking for $ac_hdr" >&5
2294 2306
2295 cat > conftest.$ac_ext <<EOF 2307 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure" 2308 #line 2309 "configure"
2297 #include "confdefs.h" 2309 #include "confdefs.h"
2298 #include <$ac_hdr> 2310 #include <$ac_hdr>
2299 EOF 2311 EOF
2300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2301 { (eval echo configure:2302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2313 { (eval echo configure:2314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2302 ac_err=`grep -v '^ *+' conftest.out` 2314 ac_err=`grep -v '^ *+' conftest.out`
2303 if test -z "$ac_err"; then 2315 if test -z "$ac_err"; then
2304 rm -rf conftest* 2316 rm -rf conftest*
2305 eval "ac_cv_header_$ac_safe=yes" 2317 eval "ac_cv_header_$ac_safe=yes"
2306 else 2318 else
2329 2341
2330 for ac_hdr in utime.h sys/wait.h libintl.h locale.h libgen.h 2342 for ac_hdr in utime.h sys/wait.h libintl.h locale.h libgen.h
2331 do 2343 do
2332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_hdr" >&5 2346 echo "configure:2347: checking for $ac_hdr" >&5
2335 2347
2336 cat > conftest.$ac_ext <<EOF 2348 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure" 2349 #line 2350 "configure"
2338 #include "confdefs.h" 2350 #include "confdefs.h"
2339 #include <$ac_hdr> 2351 #include <$ac_hdr>
2340 EOF 2352 EOF
2341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2342 { (eval echo configure:2343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2354 { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2343 ac_err=`grep -v '^ *+' conftest.out` 2355 ac_err=`grep -v '^ *+' conftest.out`
2344 if test -z "$ac_err"; then 2356 if test -z "$ac_err"; then
2345 rm -rf conftest* 2357 rm -rf conftest*
2346 eval "ac_cv_header_$ac_safe=yes" 2358 eval "ac_cv_header_$ac_safe=yes"
2347 else 2359 else
2370 2382
2371 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h 2383 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h
2372 do 2384 do
2373 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_hdr" >&5 2387 echo "configure:2388: checking for $ac_hdr" >&5
2376 2388
2377 cat > conftest.$ac_ext <<EOF 2389 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure" 2390 #line 2391 "configure"
2379 #include "confdefs.h" 2391 #include "confdefs.h"
2380 #include <$ac_hdr> 2392 #include <$ac_hdr>
2381 EOF 2393 EOF
2382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2383 { (eval echo configure:2384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2395 { (eval echo configure:2396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2384 ac_err=`grep -v '^ *+' conftest.out` 2396 ac_err=`grep -v '^ *+' conftest.out`
2385 if test -z "$ac_err"; then 2397 if test -z "$ac_err"; then
2386 rm -rf conftest* 2398 rm -rf conftest*
2387 eval "ac_cv_header_$ac_safe=yes" 2399 eval "ac_cv_header_$ac_safe=yes"
2388 else 2400 else
2408 echo "$ac_t""no" 1>&6 2420 echo "$ac_t""no" 1>&6
2409 fi 2421 fi
2410 done 2422 done
2411 2423
2412 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2424 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2413 echo "configure:2414: checking for ANSI C header files" >&5 2425 echo "configure:2426: checking for ANSI C header files" >&5
2414 2426
2415 cat > conftest.$ac_ext <<EOF 2427 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure" 2428 #line 2429 "configure"
2417 #include "confdefs.h" 2429 #include "confdefs.h"
2418 #include <stdlib.h> 2430 #include <stdlib.h>
2419 #include <stdarg.h> 2431 #include <stdarg.h>
2420 #include <string.h> 2432 #include <string.h>
2421 #include <float.h> 2433 #include <float.h>
2422 EOF 2434 EOF
2423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2424 { (eval echo configure:2425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2436 { (eval echo configure:2437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2425 ac_err=`grep -v '^ *+' conftest.out` 2437 ac_err=`grep -v '^ *+' conftest.out`
2426 if test -z "$ac_err"; then 2438 if test -z "$ac_err"; then
2427 rm -rf conftest* 2439 rm -rf conftest*
2428 ac_cv_header_stdc=yes 2440 ac_cv_header_stdc=yes
2429 else 2441 else
2436 rm -f conftest* 2448 rm -f conftest*
2437 2449
2438 if test $ac_cv_header_stdc = yes; then 2450 if test $ac_cv_header_stdc = yes; then
2439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2440 cat > conftest.$ac_ext <<EOF 2452 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure" 2453 #line 2454 "configure"
2442 #include "confdefs.h" 2454 #include "confdefs.h"
2443 #include <string.h> 2455 #include <string.h>
2444 EOF 2456 EOF
2445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2446 egrep "memchr" >/dev/null 2>&1; then 2458 egrep "memchr" >/dev/null 2>&1; then
2454 fi 2466 fi
2455 2467
2456 if test $ac_cv_header_stdc = yes; then 2468 if test $ac_cv_header_stdc = yes; then
2457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2458 cat > conftest.$ac_ext <<EOF 2470 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure" 2471 #line 2472 "configure"
2460 #include "confdefs.h" 2472 #include "confdefs.h"
2461 #include <stdlib.h> 2473 #include <stdlib.h>
2462 EOF 2474 EOF
2463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2464 egrep "free" >/dev/null 2>&1; then 2476 egrep "free" >/dev/null 2>&1; then
2472 fi 2484 fi
2473 2485
2474 if test $ac_cv_header_stdc = yes; then 2486 if test $ac_cv_header_stdc = yes; then
2475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2476 cat > conftest.$ac_ext <<EOF 2488 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure" 2489 #line 2490 "configure"
2478 #include "confdefs.h" 2490 #include "confdefs.h"
2479 #include <ctype.h> 2491 #include <ctype.h>
2480 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2492 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2481 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2493 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2483 int main () { int i; for (i = 0; i < 256; i++) 2495 int main () { int i; for (i = 0; i < 256; i++)
2484 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2496 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2485 exit (0); } 2497 exit (0); }
2486 2498
2487 EOF 2499 EOF
2488 if { (eval echo configure:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2500 if { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2489 then 2501 then
2490 : 2502 :
2491 else 2503 else
2492 echo "configure: failed program was:" >&5 2504 echo "configure: failed program was:" >&5
2493 cat conftest.$ac_ext >&5 2505 cat conftest.$ac_ext >&5
2508 } 2520 }
2509 2521
2510 fi 2522 fi
2511 2523
2512 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2524 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2513 echo "configure:2514: checking whether time.h and sys/time.h may both be included" >&5 2525 echo "configure:2526: checking whether time.h and sys/time.h may both be included" >&5
2514 2526
2515 cat > conftest.$ac_ext <<EOF 2527 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure" 2528 #line 2529 "configure"
2517 #include "confdefs.h" 2529 #include "confdefs.h"
2518 #include <sys/types.h> 2530 #include <sys/types.h>
2519 #include <sys/time.h> 2531 #include <sys/time.h>
2520 #include <time.h> 2532 #include <time.h>
2521 int main() { 2533 int main() {
2522 struct tm *tp; 2534 struct tm *tp;
2523 ; return 0; } 2535 ; return 0; }
2524 EOF 2536 EOF
2525 if { (eval echo configure:2526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2537 if { (eval echo configure:2538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2526 rm -rf conftest* 2538 rm -rf conftest*
2527 ac_cv_header_time=yes 2539 ac_cv_header_time=yes
2528 else 2540 else
2529 echo "configure: failed program was:" >&5 2541 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5 2542 cat conftest.$ac_ext >&5
2544 } 2556 }
2545 2557
2546 fi 2558 fi
2547 2559
2548 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2560 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2549 echo "configure:2550: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2561 echo "configure:2562: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2550 2562
2551 cat > conftest.$ac_ext <<EOF 2563 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure" 2564 #line 2565 "configure"
2553 #include "confdefs.h" 2565 #include "confdefs.h"
2554 #include <sys/types.h> 2566 #include <sys/types.h>
2555 #include <signal.h> 2567 #include <signal.h>
2556 /* NetBSD declares sys_siglist in unistd.h. */ 2568 /* NetBSD declares sys_siglist in unistd.h. */
2557 #ifdef HAVE_UNISTD_H 2569 #ifdef HAVE_UNISTD_H
2559 #endif 2571 #endif
2560 int main() { 2572 int main() {
2561 char *msg = *(sys_siglist + 1); 2573 char *msg = *(sys_siglist + 1);
2562 ; return 0; } 2574 ; return 0; }
2563 EOF 2575 EOF
2564 if { (eval echo configure:2565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2576 if { (eval echo configure:2577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2565 rm -rf conftest* 2577 rm -rf conftest*
2566 ac_cv_decl_sys_siglist=yes 2578 ac_cv_decl_sys_siglist=yes
2567 else 2579 else
2568 echo "configure: failed program was:" >&5 2580 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5 2581 cat conftest.$ac_ext >&5
2584 2596
2585 fi 2597 fi
2586 2598
2587 2599
2588 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2600 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2589 echo "configure:2590: checking for struct utimbuf" >&5 2601 echo "configure:2602: checking for struct utimbuf" >&5
2590 cat > conftest.$ac_ext <<EOF 2602 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure" 2603 #line 2604 "configure"
2592 #include "confdefs.h" 2604 #include "confdefs.h"
2593 #ifdef TIME_WITH_SYS_TIME 2605 #ifdef TIME_WITH_SYS_TIME
2594 #include <sys/time.h> 2606 #include <sys/time.h>
2595 #include <time.h> 2607 #include <time.h>
2596 #else 2608 #else
2605 #endif 2617 #endif
2606 int main() { 2618 int main() {
2607 static struct utimbuf x; x.actime = x.modtime; 2619 static struct utimbuf x; x.actime = x.modtime;
2608 ; return 0; } 2620 ; return 0; }
2609 EOF 2621 EOF
2610 if { (eval echo configure:2611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2622 if { (eval echo configure:2623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2611 rm -rf conftest* 2623 rm -rf conftest*
2612 echo "$ac_t""yes" 1>&6 2624 echo "$ac_t""yes" 1>&6
2613 { test "$extra_verbose" = "yes" && cat << \EOF 2625 { test "$extra_verbose" = "yes" && cat << \EOF
2614 Defining HAVE_STRUCT_UTIMBUF 2626 Defining HAVE_STRUCT_UTIMBUF
2615 EOF 2627 EOF
2625 echo "$ac_t""no" 1>&6 2637 echo "$ac_t""no" 1>&6
2626 fi 2638 fi
2627 rm -f conftest* 2639 rm -f conftest*
2628 2640
2629 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2641 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2630 echo "configure:2631: checking return type of signal handlers" >&5 2642 echo "configure:2643: checking return type of signal handlers" >&5
2631 2643
2632 cat > conftest.$ac_ext <<EOF 2644 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure" 2645 #line 2646 "configure"
2634 #include "confdefs.h" 2646 #include "confdefs.h"
2635 #include <sys/types.h> 2647 #include <sys/types.h>
2636 #include <signal.h> 2648 #include <signal.h>
2637 #ifdef signal 2649 #ifdef signal
2638 #undef signal 2650 #undef signal
2645 2657
2646 int main() { 2658 int main() {
2647 int i; 2659 int i;
2648 ; return 0; } 2660 ; return 0; }
2649 EOF 2661 EOF
2650 if { (eval echo configure:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2662 if { (eval echo configure:2663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2651 rm -rf conftest* 2663 rm -rf conftest*
2652 ac_cv_type_signal=void 2664 ac_cv_type_signal=void
2653 else 2665 else
2654 echo "configure: failed program was:" >&5 2666 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5 2667 cat conftest.$ac_ext >&5
2668 } 2680 }
2669 2681
2670 2682
2671 2683
2672 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2684 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2673 echo "configure:2674: checking for struct timeval" >&5 2685 echo "configure:2686: checking for struct timeval" >&5
2674 cat > conftest.$ac_ext <<EOF 2686 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure" 2687 #line 2688 "configure"
2676 #include "confdefs.h" 2688 #include "confdefs.h"
2677 #ifdef TIME_WITH_SYS_TIME 2689 #ifdef TIME_WITH_SYS_TIME
2678 #include <sys/time.h> 2690 #include <sys/time.h>
2679 #include <time.h> 2691 #include <time.h>
2680 #else 2692 #else
2686 #endif 2698 #endif
2687 int main() { 2699 int main() {
2688 static struct timeval x; x.tv_sec = x.tv_usec; 2700 static struct timeval x; x.tv_sec = x.tv_usec;
2689 ; return 0; } 2701 ; return 0; }
2690 EOF 2702 EOF
2691 if { (eval echo configure:2692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2703 if { (eval echo configure:2704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2692 rm -rf conftest* 2704 rm -rf conftest*
2693 echo "$ac_t""yes" 1>&6 2705 echo "$ac_t""yes" 1>&6
2694 HAVE_TIMEVAL=yes 2706 HAVE_TIMEVAL=yes
2695 { test "$extra_verbose" = "yes" && cat << \EOF 2707 { test "$extra_verbose" = "yes" && cat << \EOF
2696 Defining HAVE_TIMEVAL 2708 Defining HAVE_TIMEVAL
2708 HAVE_TIMEVAL=no 2720 HAVE_TIMEVAL=no
2709 fi 2721 fi
2710 rm -f conftest* 2722 rm -f conftest*
2711 2723
2712 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2724 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2713 echo "configure:2714: checking whether struct tm is in sys/time.h or time.h" >&5 2725 echo "configure:2726: checking whether struct tm is in sys/time.h or time.h" >&5
2714 2726
2715 cat > conftest.$ac_ext <<EOF 2727 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure" 2728 #line 2729 "configure"
2717 #include "confdefs.h" 2729 #include "confdefs.h"
2718 #include <sys/types.h> 2730 #include <sys/types.h>
2719 #include <time.h> 2731 #include <time.h>
2720 int main() { 2732 int main() {
2721 struct tm *tp; tp->tm_sec; 2733 struct tm *tp; tp->tm_sec;
2722 ; return 0; } 2734 ; return 0; }
2723 EOF 2735 EOF
2724 if { (eval echo configure:2725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2736 if { (eval echo configure:2737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2725 rm -rf conftest* 2737 rm -rf conftest*
2726 ac_cv_struct_tm=time.h 2738 ac_cv_struct_tm=time.h
2727 else 2739 else
2728 echo "configure: failed program was:" >&5 2740 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5 2741 cat conftest.$ac_ext >&5
2743 } 2755 }
2744 2756
2745 fi 2757 fi
2746 2758
2747 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2759 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2748 echo "configure:2749: checking for tm_zone in struct tm" >&5 2760 echo "configure:2761: checking for tm_zone in struct tm" >&5
2749 2761
2750 cat > conftest.$ac_ext <<EOF 2762 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure" 2763 #line 2764 "configure"
2752 #include "confdefs.h" 2764 #include "confdefs.h"
2753 #include <sys/types.h> 2765 #include <sys/types.h>
2754 #include <$ac_cv_struct_tm> 2766 #include <$ac_cv_struct_tm>
2755 int main() { 2767 int main() {
2756 struct tm tm; tm.tm_zone; 2768 struct tm tm; tm.tm_zone;
2757 ; return 0; } 2769 ; return 0; }
2758 EOF 2770 EOF
2759 if { (eval echo configure:2760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2771 if { (eval echo configure:2772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2760 rm -rf conftest* 2772 rm -rf conftest*
2761 ac_cv_struct_tm_zone=yes 2773 ac_cv_struct_tm_zone=yes
2762 else 2774 else
2763 echo "configure: failed program was:" >&5 2775 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5 2776 cat conftest.$ac_ext >&5
2777 EOF 2789 EOF
2778 } 2790 }
2779 2791
2780 else 2792 else
2781 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2793 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2782 echo "configure:2783: checking for tzname" >&5 2794 echo "configure:2795: checking for tzname" >&5
2783 2795
2784 cat > conftest.$ac_ext <<EOF 2796 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure" 2797 #line 2798 "configure"
2786 #include "confdefs.h" 2798 #include "confdefs.h"
2787 #include <time.h> 2799 #include <time.h>
2788 #ifndef tzname /* For SGI. */ 2800 #ifndef tzname /* For SGI. */
2789 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2801 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2790 #endif 2802 #endif
2791 int main() { 2803 int main() {
2792 atoi(*tzname); 2804 atoi(*tzname);
2793 ; return 0; } 2805 ; return 0; }
2794 EOF 2806 EOF
2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2807 if { (eval echo configure:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2796 rm -rf conftest* 2808 rm -rf conftest*
2797 ac_cv_var_tzname=yes 2809 ac_cv_var_tzname=yes
2798 else 2810 else
2799 echo "configure: failed program was:" >&5 2811 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5 2812 cat conftest.$ac_ext >&5
2816 fi 2828 fi
2817 fi 2829 fi
2818 2830
2819 2831
2820 echo $ac_n "checking for working const""... $ac_c" 1>&6 2832 echo $ac_n "checking for working const""... $ac_c" 1>&6
2821 echo "configure:2822: checking for working const" >&5 2833 echo "configure:2834: checking for working const" >&5
2822 2834
2823 cat > conftest.$ac_ext <<EOF 2835 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure" 2836 #line 2837 "configure"
2825 #include "confdefs.h" 2837 #include "confdefs.h"
2826 2838
2827 int main() { 2839 int main() {
2828 2840
2829 /* Ultrix mips cc rejects this. */ 2841 /* Ultrix mips cc rejects this. */
2868 const int foo = 10; 2880 const int foo = 10;
2869 } 2881 }
2870 2882
2871 ; return 0; } 2883 ; return 0; }
2872 EOF 2884 EOF
2873 if { (eval echo configure:2874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2885 if { (eval echo configure:2886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2874 rm -rf conftest* 2886 rm -rf conftest*
2875 ac_cv_c_const=yes 2887 ac_cv_c_const=yes
2876 else 2888 else
2877 echo "configure: failed program was:" >&5 2889 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5 2890 cat conftest.$ac_ext >&5
2893 2905
2894 fi 2906 fi
2895 2907
2896 2908
2897 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 2909 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2898 echo "configure:2899: checking whether ${MAKE-make} sets \${MAKE}" >&5 2910 echo "configure:2911: checking whether ${MAKE-make} sets \${MAKE}" >&5
2899 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 2911 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2900 2912
2901 cat > conftestmake <<\EOF 2913 cat > conftestmake <<\EOF
2902 all: 2914 all:
2903 @echo 'ac_maketemp="${MAKE}"' 2915 @echo 'ac_maketemp="${MAKE}"'
2918 SET_MAKE="MAKE=${MAKE-make}" 2930 SET_MAKE="MAKE=${MAKE-make}"
2919 fi 2931 fi
2920 2932
2921 2933
2922 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 2934 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2923 echo "configure:2924: checking whether byte ordering is bigendian" >&5 2935 echo "configure:2936: checking whether byte ordering is bigendian" >&5
2924 2936
2925 ac_cv_c_bigendian=unknown 2937 ac_cv_c_bigendian=unknown
2926 # See if sys/param.h defines the BYTE_ORDER macro. 2938 # See if sys/param.h defines the BYTE_ORDER macro.
2927 cat > conftest.$ac_ext <<EOF 2939 cat > conftest.$ac_ext <<EOF
2928 #line 2929 "configure" 2940 #line 2941 "configure"
2929 #include "confdefs.h" 2941 #include "confdefs.h"
2930 #include <sys/types.h> 2942 #include <sys/types.h>
2931 #include <sys/param.h> 2943 #include <sys/param.h>
2932 int main() { 2944 int main() {
2933 2945
2934 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 2946 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2935 bogus endian macros 2947 bogus endian macros
2936 #endif 2948 #endif
2937 ; return 0; } 2949 ; return 0; }
2938 EOF 2950 EOF
2939 if { (eval echo configure:2940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2951 if { (eval echo configure:2952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2940 rm -rf conftest* 2952 rm -rf conftest*
2941 # It does; now see whether it defined to BIG_ENDIAN or not. 2953 # It does; now see whether it defined to BIG_ENDIAN or not.
2942 cat > conftest.$ac_ext <<EOF 2954 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure" 2955 #line 2956 "configure"
2944 #include "confdefs.h" 2956 #include "confdefs.h"
2945 #include <sys/types.h> 2957 #include <sys/types.h>
2946 #include <sys/param.h> 2958 #include <sys/param.h>
2947 int main() { 2959 int main() {
2948 2960
2949 #if BYTE_ORDER != BIG_ENDIAN 2961 #if BYTE_ORDER != BIG_ENDIAN
2950 not big endian 2962 not big endian
2951 #endif 2963 #endif
2952 ; return 0; } 2964 ; return 0; }
2953 EOF 2965 EOF
2954 if { (eval echo configure:2955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2966 if { (eval echo configure:2967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2955 rm -rf conftest* 2967 rm -rf conftest*
2956 ac_cv_c_bigendian=yes 2968 ac_cv_c_bigendian=yes
2957 else 2969 else
2958 echo "configure: failed program was:" >&5 2970 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5 2971 cat conftest.$ac_ext >&5
2966 cat conftest.$ac_ext >&5 2978 cat conftest.$ac_ext >&5
2967 fi 2979 fi
2968 rm -f conftest* 2980 rm -f conftest*
2969 if test $ac_cv_c_bigendian = unknown; then 2981 if test $ac_cv_c_bigendian = unknown; then
2970 cat > conftest.$ac_ext <<EOF 2982 cat > conftest.$ac_ext <<EOF
2971 #line 2972 "configure" 2983 #line 2984 "configure"
2972 #include "confdefs.h" 2984 #include "confdefs.h"
2973 main () { 2985 main () {
2974 /* Are we little or big endian? From Harbison&Steele. */ 2986 /* Are we little or big endian? From Harbison&Steele. */
2975 union 2987 union
2976 { 2988 {
2979 } u; 2991 } u;
2980 u.l = 1; 2992 u.l = 1;
2981 exit (u.c[sizeof (long) - 1] == 1); 2993 exit (u.c[sizeof (long) - 1] == 1);
2982 } 2994 }
2983 EOF 2995 EOF
2984 if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2996 if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2985 then 2997 then
2986 ac_cv_c_bigendian=no 2998 ac_cv_c_bigendian=no
2987 else 2999 else
2988 echo "configure: failed program was:" >&5 3000 echo "configure: failed program was:" >&5
2989 cat conftest.$ac_ext >&5 3001 cat conftest.$ac_ext >&5
3005 3017
3006 fi 3018 fi
3007 3019
3008 3020
3009 echo $ac_n "checking size of short""... $ac_c" 1>&6 3021 echo $ac_n "checking size of short""... $ac_c" 1>&6
3010 echo "configure:3011: checking size of short" >&5 3022 echo "configure:3023: checking size of short" >&5
3011 3023
3012 cat > conftest.$ac_ext <<EOF 3024 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure" 3025 #line 3026 "configure"
3014 #include "confdefs.h" 3026 #include "confdefs.h"
3015 #include <stdio.h> 3027 #include <stdio.h>
3016 main() 3028 main()
3017 { 3029 {
3018 FILE *f=fopen("conftestval", "w"); 3030 FILE *f=fopen("conftestval", "w");
3019 if (!f) exit(1); 3031 if (!f) exit(1);
3020 fprintf(f, "%d\n", sizeof(short)); 3032 fprintf(f, "%d\n", sizeof(short));
3021 exit(0); 3033 exit(0);
3022 } 3034 }
3023 EOF 3035 EOF
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3036 if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3025 then 3037 then
3026 ac_cv_sizeof_short=`cat conftestval` 3038 ac_cv_sizeof_short=`cat conftestval`
3027 else 3039 else
3028 echo "configure: failed program was:" >&5 3040 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5 3041 cat conftest.$ac_ext >&5
3040 EOF 3052 EOF
3041 } 3053 }
3042 3054
3043 3055
3044 echo $ac_n "checking size of int""... $ac_c" 1>&6 3056 echo $ac_n "checking size of int""... $ac_c" 1>&6
3045 echo "configure:3046: checking size of int" >&5 3057 echo "configure:3058: checking size of int" >&5
3046 3058
3047 cat > conftest.$ac_ext <<EOF 3059 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure" 3060 #line 3061 "configure"
3049 #include "confdefs.h" 3061 #include "confdefs.h"
3050 #include <stdio.h> 3062 #include <stdio.h>
3051 main() 3063 main()
3052 { 3064 {
3053 FILE *f=fopen("conftestval", "w"); 3065 FILE *f=fopen("conftestval", "w");
3054 if (!f) exit(1); 3066 if (!f) exit(1);
3055 fprintf(f, "%d\n", sizeof(int)); 3067 fprintf(f, "%d\n", sizeof(int));
3056 exit(0); 3068 exit(0);
3057 } 3069 }
3058 EOF 3070 EOF
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3060 then 3072 then
3061 ac_cv_sizeof_int=`cat conftestval` 3073 ac_cv_sizeof_int=`cat conftestval`
3062 else 3074 else
3063 echo "configure: failed program was:" >&5 3075 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5 3076 cat conftest.$ac_ext >&5
3075 EOF 3087 EOF
3076 } 3088 }
3077 3089
3078 3090
3079 echo $ac_n "checking size of long""... $ac_c" 1>&6 3091 echo $ac_n "checking size of long""... $ac_c" 1>&6
3080 echo "configure:3081: checking size of long" >&5 3092 echo "configure:3093: checking size of long" >&5
3081 3093
3082 cat > conftest.$ac_ext <<EOF 3094 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure" 3095 #line 3096 "configure"
3084 #include "confdefs.h" 3096 #include "confdefs.h"
3085 #include <stdio.h> 3097 #include <stdio.h>
3086 main() 3098 main()
3087 { 3099 {
3088 FILE *f=fopen("conftestval", "w"); 3100 FILE *f=fopen("conftestval", "w");
3089 if (!f) exit(1); 3101 if (!f) exit(1);
3090 fprintf(f, "%d\n", sizeof(long)); 3102 fprintf(f, "%d\n", sizeof(long));
3091 exit(0); 3103 exit(0);
3092 } 3104 }
3093 EOF 3105 EOF
3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3095 then 3107 then
3096 ac_cv_sizeof_long=`cat conftestval` 3108 ac_cv_sizeof_long=`cat conftestval`
3097 else 3109 else
3098 echo "configure: failed program was:" >&5 3110 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5 3111 cat conftest.$ac_ext >&5
3111 } 3123 }
3112 3124
3113 3125
3114 3126
3115 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3127 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3116 echo "configure:3117: checking for long file names" >&5 3128 echo "configure:3129: checking for long file names" >&5
3117 3129
3118 ac_cv_sys_long_file_names=yes 3130 ac_cv_sys_long_file_names=yes
3119 # Test for long file names in all the places we know might matter: 3131 # Test for long file names in all the places we know might matter:
3120 # . the current directory, where building will happen 3132 # . the current directory, where building will happen
3121 # $prefix/lib where we will be installing things 3133 # $prefix/lib where we will be installing things
3159 3171
3160 3172
3161 3173
3162 3174
3163 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 3175 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
3164 echo "configure:3165: checking for sqrt in -lm" >&5 3176 echo "configure:3177: checking for sqrt in -lm" >&5
3165 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 3177 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
3166 3178
3167 xe_check_libs=" -lm " 3179 xe_check_libs=" -lm "
3168 cat > conftest.$ac_ext <<EOF 3180 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure" 3181 #line 3182 "configure"
3170 #include "confdefs.h" 3182 #include "confdefs.h"
3171 /* Override any gcc2 internal prototype to avoid an error. */ 3183 /* Override any gcc2 internal prototype to avoid an error. */
3172 /* We use char because int might match the return type of a gcc2 3184 /* We use char because int might match the return type of a gcc2
3173 builtin and then its argument prototype would still apply. */ 3185 builtin and then its argument prototype would still apply. */
3174 char sqrt(); 3186 char sqrt();
3175 3187
3176 int main() { 3188 int main() {
3177 sqrt() 3189 sqrt()
3178 ; return 0; } 3190 ; return 0; }
3179 EOF 3191 EOF
3180 if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3192 if { (eval echo configure:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3181 rm -rf conftest* 3193 rm -rf conftest*
3182 eval "ac_cv_lib_$ac_lib_var=yes" 3194 eval "ac_cv_lib_$ac_lib_var=yes"
3183 else 3195 else
3184 echo "configure: failed program was:" >&5 3196 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5 3197 cat conftest.$ac_ext >&5
3217 EOF 3229 EOF
3218 } 3230 }
3219 3231
3220 3232
3221 echo "checking type of mail spool file locking" 1>&6 3233 echo "checking type of mail spool file locking" 1>&6
3222 echo "configure:3223: checking type of mail spool file locking" >&5 3234 echo "configure:3235: checking type of mail spool file locking" >&5
3223 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3235 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3224 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3236 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3225 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3237 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3226 Defining REAL_MAIL_USE_LOCKF 3238 Defining REAL_MAIL_USE_LOCKF
3227 EOF 3239 EOF
3240 3252
3241 fi 3253 fi
3242 3254
3243 3255
3244 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3256 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3245 echo "configure:3246: checking for kstat_open in -lkstat" >&5 3257 echo "configure:3258: checking for kstat_open in -lkstat" >&5
3246 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3258 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3247 3259
3248 xe_check_libs=" -lkstat " 3260 xe_check_libs=" -lkstat "
3249 cat > conftest.$ac_ext <<EOF 3261 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure" 3262 #line 3263 "configure"
3251 #include "confdefs.h" 3263 #include "confdefs.h"
3252 /* Override any gcc2 internal prototype to avoid an error. */ 3264 /* Override any gcc2 internal prototype to avoid an error. */
3253 /* We use char because int might match the return type of a gcc2 3265 /* We use char because int might match the return type of a gcc2
3254 builtin and then its argument prototype would still apply. */ 3266 builtin and then its argument prototype would still apply. */
3255 char kstat_open(); 3267 char kstat_open();
3256 3268
3257 int main() { 3269 int main() {
3258 kstat_open() 3270 kstat_open()
3259 ; return 0; } 3271 ; return 0; }
3260 EOF 3272 EOF
3261 if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3262 rm -rf conftest* 3274 rm -rf conftest*
3263 eval "ac_cv_lib_$ac_lib_var=yes" 3275 eval "ac_cv_lib_$ac_lib_var=yes"
3264 else 3276 else
3265 echo "configure: failed program was:" >&5 3277 echo "configure: failed program was:" >&5
3266 cat conftest.$ac_ext >&5 3278 cat conftest.$ac_ext >&5
3290 3302
3291 3303
3292 3304
3293 3305
3294 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 3306 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3295 echo "configure:3296: checking for kvm_read in -lkvm" >&5 3307 echo "configure:3308: checking for kvm_read in -lkvm" >&5
3296 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 3308 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3297 3309
3298 xe_check_libs=" -lkvm " 3310 xe_check_libs=" -lkvm "
3299 cat > conftest.$ac_ext <<EOF 3311 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure" 3312 #line 3313 "configure"
3301 #include "confdefs.h" 3313 #include "confdefs.h"
3302 /* Override any gcc2 internal prototype to avoid an error. */ 3314 /* Override any gcc2 internal prototype to avoid an error. */
3303 /* We use char because int might match the return type of a gcc2 3315 /* We use char because int might match the return type of a gcc2
3304 builtin and then its argument prototype would still apply. */ 3316 builtin and then its argument prototype would still apply. */
3305 char kvm_read(); 3317 char kvm_read();
3306 3318
3307 int main() { 3319 int main() {
3308 kvm_read() 3320 kvm_read()
3309 ; return 0; } 3321 ; return 0; }
3310 EOF 3322 EOF
3311 if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3312 rm -rf conftest* 3324 rm -rf conftest*
3313 eval "ac_cv_lib_$ac_lib_var=yes" 3325 eval "ac_cv_lib_$ac_lib_var=yes"
3314 else 3326 else
3315 echo "configure: failed program was:" >&5 3327 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5 3328 cat conftest.$ac_ext >&5
3340 3352
3341 3353
3342 3354
3343 3355
3344 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3356 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3345 echo "configure:3346: checking for cma_open in -lpthreads" >&5 3357 echo "configure:3358: checking for cma_open in -lpthreads" >&5
3346 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3358 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3347 3359
3348 xe_check_libs=" -lpthreads " 3360 xe_check_libs=" -lpthreads "
3349 cat > conftest.$ac_ext <<EOF 3361 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure" 3362 #line 3363 "configure"
3351 #include "confdefs.h" 3363 #include "confdefs.h"
3352 /* Override any gcc2 internal prototype to avoid an error. */ 3364 /* Override any gcc2 internal prototype to avoid an error. */
3353 /* We use char because int might match the return type of a gcc2 3365 /* We use char because int might match the return type of a gcc2
3354 builtin and then its argument prototype would still apply. */ 3366 builtin and then its argument prototype would still apply. */
3355 char cma_open(); 3367 char cma_open();
3356 3368
3357 int main() { 3369 int main() {
3358 cma_open() 3370 cma_open()
3359 ; return 0; } 3371 ; return 0; }
3360 EOF 3372 EOF
3361 if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3362 rm -rf conftest* 3374 rm -rf conftest*
3363 eval "ac_cv_lib_$ac_lib_var=yes" 3375 eval "ac_cv_lib_$ac_lib_var=yes"
3364 else 3376 else
3365 echo "configure: failed program was:" >&5 3377 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5 3378 cat conftest.$ac_ext >&5
3392 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 3404 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
3393 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 3405 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
3394 fi 3406 fi
3395 3407
3396 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 3408 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
3397 echo "configure:3398: checking whether the -xildoff compiler flag is required" >&5 3409 echo "configure:3410: checking whether the -xildoff compiler flag is required" >&5
3398 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 3410 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
3399 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 3411 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
3400 then echo "$ac_t""no" 1>&6; 3412 then echo "$ac_t""no" 1>&6;
3401 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi 3413 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
3402 fi 3414 fi
3403 else echo "$ac_t""no" 1>&6 3415 else echo "$ac_t""no" 1>&6
3404 fi 3416 fi
3405 3417
3406 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 3418 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
3407 echo "configure:3408: checking for dynodump" >&5 3419 echo "configure:3420: checking for dynodump" >&5
3408 case "$canonical" in *-solaris2.[0-5]* ) 3420 case "$canonical" in *-solaris2.[0-5]* )
3409 echo "$ac_t""yes" 1>&6 3421 echo "$ac_t""yes" 1>&6
3410 { test "$extra_verbose" = "yes" && cat << \EOF 3422 { test "$extra_verbose" = "yes" && cat << \EOF
3411 Defining DYNODUMP 3423 Defining DYNODUMP
3412 EOF 3424 EOF
3425 *) echo "$ac_t""no" 1>&6 ;; 3437 *) echo "$ac_t""no" 1>&6 ;;
3426 esac 3438 esac
3427 3439
3428 3440
3429 echo "checking "for specified window system"" 1>&6 3441 echo "checking "for specified window system"" 1>&6
3430 echo "configure:3431: checking "for specified window system"" >&5 3442 echo "configure:3443: checking "for specified window system"" >&5
3431 3443
3432 if test "$x_includes $x_libraries" = "NONE NONE"; then 3444 if test "$x_includes $x_libraries" = "NONE NONE"; then
3433 if test -n "$OPENWINHOME" \ 3445 if test -n "$OPENWINHOME" \
3434 -a "$OPENWINHOME" != "/usr/openwin" \ 3446 -a "$OPENWINHOME" != "/usr/openwin" \
3435 -a -d "$OPENWINHOME"; then 3447 -a -d "$OPENWINHOME"; then
3446 # If we find X, set shell vars x_includes and x_libraries to the 3458 # If we find X, set shell vars x_includes and x_libraries to the
3447 # paths, otherwise set no_x=yes. 3459 # paths, otherwise set no_x=yes.
3448 # Uses ac_ vars as temps to allow command line to override cache and checks. 3460 # Uses ac_ vars as temps to allow command line to override cache and checks.
3449 # --without-x overrides everything else, but does not touch the cache. 3461 # --without-x overrides everything else, but does not touch the cache.
3450 echo $ac_n "checking for X""... $ac_c" 1>&6 3462 echo $ac_n "checking for X""... $ac_c" 1>&6
3451 echo "configure:3452: checking for X" >&5 3463 echo "configure:3464: checking for X" >&5
3452 3464
3453 # Check whether --with-x or --without-x was given. 3465 # Check whether --with-x or --without-x was given.
3454 if test "${with_x+set}" = set; then 3466 if test "${with_x+set}" = set; then
3455 withval="$with_x" 3467 withval="$with_x"
3456 : 3468 :
3506 # Guess where to find include files, by looking for this one X11 .h file. 3518 # Guess where to find include files, by looking for this one X11 .h file.
3507 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3519 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3508 3520
3509 # First, try using that file with no special directory specified. 3521 # First, try using that file with no special directory specified.
3510 cat > conftest.$ac_ext <<EOF 3522 cat > conftest.$ac_ext <<EOF
3511 #line 3512 "configure" 3523 #line 3524 "configure"
3512 #include "confdefs.h" 3524 #include "confdefs.h"
3513 #include <$x_direct_test_include> 3525 #include <$x_direct_test_include>
3514 EOF 3526 EOF
3515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3516 { (eval echo configure:3517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3528 { (eval echo configure:3529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3517 ac_err=`grep -v '^ *+' conftest.out` 3529 ac_err=`grep -v '^ *+' conftest.out`
3518 if test -z "$ac_err"; then 3530 if test -z "$ac_err"; then
3519 rm -rf conftest* 3531 rm -rf conftest*
3520 # We can compile using X headers with no special include directory. 3532 # We can compile using X headers with no special include directory.
3521 ac_x_includes= 3533 ac_x_includes=
3580 # See if we find them without any special options. 3592 # See if we find them without any special options.
3581 # Don't add to $LIBS permanently. 3593 # Don't add to $LIBS permanently.
3582 ac_save_LIBS="$LIBS" 3594 ac_save_LIBS="$LIBS"
3583 LIBS="-l$x_direct_test_library $LIBS" 3595 LIBS="-l$x_direct_test_library $LIBS"
3584 cat > conftest.$ac_ext <<EOF 3596 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure" 3597 #line 3598 "configure"
3586 #include "confdefs.h" 3598 #include "confdefs.h"
3587 3599
3588 int main() { 3600 int main() {
3589 ${x_direct_test_function}() 3601 ${x_direct_test_function}()
3590 ; return 0; } 3602 ; return 0; }
3591 EOF 3603 EOF
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3593 rm -rf conftest* 3605 rm -rf conftest*
3594 LIBS="$ac_save_LIBS" 3606 LIBS="$ac_save_LIBS"
3595 # We can link X programs with no special library path. 3607 # We can link X programs with no special library path.
3596 ac_x_libraries= 3608 ac_x_libraries=
3597 else 3609 else
3696 # For Solaris; some versions of Sun CC require a space after -R and 3708 # For Solaris; some versions of Sun CC require a space after -R and
3697 # others require no space. Words are not sufficient . . . . 3709 # others require no space. Words are not sufficient . . . .
3698 case "`(uname -sr) 2>/dev/null`" in 3710 case "`(uname -sr) 2>/dev/null`" in
3699 "SunOS 5"*) 3711 "SunOS 5"*)
3700 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 3712 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3701 echo "configure:3702: checking whether -R must be followed by a space" >&5 3713 echo "configure:3714: checking whether -R must be followed by a space" >&5
3702 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 3714 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3703 cat > conftest.$ac_ext <<EOF 3715 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure" 3716 #line 3717 "configure"
3705 #include "confdefs.h" 3717 #include "confdefs.h"
3706 3718
3707 int main() { 3719 int main() {
3708 3720
3709 ; return 0; } 3721 ; return 0; }
3710 EOF 3722 EOF
3711 if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3723 if { (eval echo configure:3724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3712 rm -rf conftest* 3724 rm -rf conftest*
3713 ac_R_nospace=yes 3725 ac_R_nospace=yes
3714 else 3726 else
3715 echo "configure: failed program was:" >&5 3727 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5 3728 cat conftest.$ac_ext >&5
3722 echo "$ac_t""no" 1>&6 3734 echo "$ac_t""no" 1>&6
3723 X_LIBS="$X_LIBS -R$x_libraries" 3735 X_LIBS="$X_LIBS -R$x_libraries"
3724 else 3736 else
3725 LIBS="$ac_xsave_LIBS -R $x_libraries" 3737 LIBS="$ac_xsave_LIBS -R $x_libraries"
3726 cat > conftest.$ac_ext <<EOF 3738 cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure" 3739 #line 3740 "configure"
3728 #include "confdefs.h" 3740 #include "confdefs.h"
3729 3741
3730 int main() { 3742 int main() {
3731 3743
3732 ; return 0; } 3744 ; return 0; }
3733 EOF 3745 EOF
3734 if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3746 if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3735 rm -rf conftest* 3747 rm -rf conftest*
3736 ac_R_space=yes 3748 ac_R_space=yes
3737 else 3749 else
3738 echo "configure: failed program was:" >&5 3750 echo "configure: failed program was:" >&5
3739 cat conftest.$ac_ext >&5 3751 cat conftest.$ac_ext >&5
3765 if test "$with_dnet" = "no" ; then 3777 if test "$with_dnet" = "no" ; then
3766 ac_cv_lib_dnet_dnet_ntoa=no 3778 ac_cv_lib_dnet_dnet_ntoa=no
3767 else 3779 else
3768 3780
3769 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3781 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3770 echo "configure:3771: checking for dnet_ntoa in -ldnet" >&5 3782 echo "configure:3783: checking for dnet_ntoa in -ldnet" >&5
3771 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3783 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3772 3784
3773 xe_check_libs=" -ldnet " 3785 xe_check_libs=" -ldnet "
3774 cat > conftest.$ac_ext <<EOF 3786 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure" 3787 #line 3788 "configure"
3776 #include "confdefs.h" 3788 #include "confdefs.h"
3777 /* Override any gcc2 internal prototype to avoid an error. */ 3789 /* Override any gcc2 internal prototype to avoid an error. */
3778 /* We use char because int might match the return type of a gcc2 3790 /* We use char because int might match the return type of a gcc2
3779 builtin and then its argument prototype would still apply. */ 3791 builtin and then its argument prototype would still apply. */
3780 char dnet_ntoa(); 3792 char dnet_ntoa();
3781 3793
3782 int main() { 3794 int main() {
3783 dnet_ntoa() 3795 dnet_ntoa()
3784 ; return 0; } 3796 ; return 0; }
3785 EOF 3797 EOF
3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3787 rm -rf conftest* 3799 rm -rf conftest*
3788 eval "ac_cv_lib_$ac_lib_var=yes" 3800 eval "ac_cv_lib_$ac_lib_var=yes"
3789 else 3801 else
3790 echo "configure: failed program was:" >&5 3802 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5 3803 cat conftest.$ac_ext >&5
3805 fi 3817 fi
3806 3818
3807 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 3819 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3808 3820
3809 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 3821 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3810 echo "configure:3811: checking for dnet_ntoa in -ldnet_stub" >&5 3822 echo "configure:3823: checking for dnet_ntoa in -ldnet_stub" >&5
3811 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3823 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3812 3824
3813 xe_check_libs=" -ldnet_stub " 3825 xe_check_libs=" -ldnet_stub "
3814 cat > conftest.$ac_ext <<EOF 3826 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure" 3827 #line 3828 "configure"
3816 #include "confdefs.h" 3828 #include "confdefs.h"
3817 /* Override any gcc2 internal prototype to avoid an error. */ 3829 /* Override any gcc2 internal prototype to avoid an error. */
3818 /* We use char because int might match the return type of a gcc2 3830 /* We use char because int might match the return type of a gcc2
3819 builtin and then its argument prototype would still apply. */ 3831 builtin and then its argument prototype would still apply. */
3820 char dnet_ntoa(); 3832 char dnet_ntoa();
3821 3833
3822 int main() { 3834 int main() {
3823 dnet_ntoa() 3835 dnet_ntoa()
3824 ; return 0; } 3836 ; return 0; }
3825 EOF 3837 EOF
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3838 if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3827 rm -rf conftest* 3839 rm -rf conftest*
3828 eval "ac_cv_lib_$ac_lib_var=yes" 3840 eval "ac_cv_lib_$ac_lib_var=yes"
3829 else 3841 else
3830 echo "configure: failed program was:" >&5 3842 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5 3843 cat conftest.$ac_ext >&5
3850 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 3862 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3851 # needs -lnsl. 3863 # needs -lnsl.
3852 # The nsl library prevents programs from opening the X display 3864 # The nsl library prevents programs from opening the X display
3853 # on Irix 5.2, according to dickey@clark.net. 3865 # on Irix 5.2, according to dickey@clark.net.
3854 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 3866 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3855 echo "configure:3856: checking for gethostbyname" >&5 3867 echo "configure:3868: checking for gethostbyname" >&5
3856 3868
3857 cat > conftest.$ac_ext <<EOF 3869 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure" 3870 #line 3871 "configure"
3859 #include "confdefs.h" 3871 #include "confdefs.h"
3860 /* System header to define __stub macros and hopefully few prototypes, 3872 /* System header to define __stub macros and hopefully few prototypes,
3861 which can conflict with char gethostbyname(); below. */ 3873 which can conflict with char gethostbyname(); below. */
3862 #include <assert.h> 3874 #include <assert.h>
3863 /* Override any gcc2 internal prototype to avoid an error. */ 3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 gethostbyname(); 3888 gethostbyname();
3877 #endif 3889 #endif
3878 3890
3879 ; return 0; } 3891 ; return 0; }
3880 EOF 3892 EOF
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3893 if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3882 rm -rf conftest* 3894 rm -rf conftest*
3883 eval "ac_cv_func_gethostbyname=yes" 3895 eval "ac_cv_func_gethostbyname=yes"
3884 else 3896 else
3885 echo "configure: failed program was:" >&5 3897 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5 3898 cat conftest.$ac_ext >&5
3897 fi 3909 fi
3898 3910
3899 if test $ac_cv_func_gethostbyname = no; then 3911 if test $ac_cv_func_gethostbyname = no; then
3900 3912
3901 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 3913 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3902 echo "configure:3903: checking for gethostbyname in -lnsl" >&5 3914 echo "configure:3915: checking for gethostbyname in -lnsl" >&5
3903 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 3915 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3904 3916
3905 xe_check_libs=" -lnsl " 3917 xe_check_libs=" -lnsl "
3906 cat > conftest.$ac_ext <<EOF 3918 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure" 3919 #line 3920 "configure"
3908 #include "confdefs.h" 3920 #include "confdefs.h"
3909 /* Override any gcc2 internal prototype to avoid an error. */ 3921 /* Override any gcc2 internal prototype to avoid an error. */
3910 /* We use char because int might match the return type of a gcc2 3922 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */ 3923 builtin and then its argument prototype would still apply. */
3912 char gethostbyname(); 3924 char gethostbyname();
3913 3925
3914 int main() { 3926 int main() {
3915 gethostbyname() 3927 gethostbyname()
3916 ; return 0; } 3928 ; return 0; }
3917 EOF 3929 EOF
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3919 rm -rf conftest* 3931 rm -rf conftest*
3920 eval "ac_cv_lib_$ac_lib_var=yes" 3932 eval "ac_cv_lib_$ac_lib_var=yes"
3921 else 3933 else
3922 echo "configure: failed program was:" >&5 3934 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5 3935 cat conftest.$ac_ext >&5
3943 # on later versions), says simon@lia.di.epfl.ch: it contains 3955 # on later versions), says simon@lia.di.epfl.ch: it contains
3944 # gethostby* variants that don't use the nameserver (or something). 3956 # gethostby* variants that don't use the nameserver (or something).
3945 # -lsocket must be given before -lnsl if both are needed. 3957 # -lsocket must be given before -lnsl if both are needed.
3946 # We assume that if connect needs -lnsl, so does gethostbyname. 3958 # We assume that if connect needs -lnsl, so does gethostbyname.
3947 echo $ac_n "checking for connect""... $ac_c" 1>&6 3959 echo $ac_n "checking for connect""... $ac_c" 1>&6
3948 echo "configure:3949: checking for connect" >&5 3960 echo "configure:3961: checking for connect" >&5
3949 3961
3950 cat > conftest.$ac_ext <<EOF 3962 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure" 3963 #line 3964 "configure"
3952 #include "confdefs.h" 3964 #include "confdefs.h"
3953 /* System header to define __stub macros and hopefully few prototypes, 3965 /* System header to define __stub macros and hopefully few prototypes,
3954 which can conflict with char connect(); below. */ 3966 which can conflict with char connect(); below. */
3955 #include <assert.h> 3967 #include <assert.h>
3956 /* Override any gcc2 internal prototype to avoid an error. */ 3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 connect(); 3981 connect();
3970 #endif 3982 #endif
3971 3983
3972 ; return 0; } 3984 ; return 0; }
3973 EOF 3985 EOF
3974 if { (eval echo configure:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3986 if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3975 rm -rf conftest* 3987 rm -rf conftest*
3976 eval "ac_cv_func_connect=yes" 3988 eval "ac_cv_func_connect=yes"
3977 else 3989 else
3978 echo "configure: failed program was:" >&5 3990 echo "configure: failed program was:" >&5
3979 cat conftest.$ac_ext >&5 3991 cat conftest.$ac_ext >&5
3992 if test $ac_cv_func_connect = no; then 4004 if test $ac_cv_func_connect = no; then
3993 4005
3994 xe_msg_checking="for connect in -lsocket" 4006 xe_msg_checking="for connect in -lsocket"
3995 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4007 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
3996 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4008 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
3997 echo "configure:3998: checking "$xe_msg_checking"" >&5 4009 echo "configure:4010: checking "$xe_msg_checking"" >&5
3998 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4010 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3999 4011
4000 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4012 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4001 cat > conftest.$ac_ext <<EOF 4013 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure" 4014 #line 4015 "configure"
4003 #include "confdefs.h" 4015 #include "confdefs.h"
4004 /* Override any gcc2 internal prototype to avoid an error. */ 4016 /* Override any gcc2 internal prototype to avoid an error. */
4005 /* We use char because int might match the return type of a gcc2 4017 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */ 4018 builtin and then its argument prototype would still apply. */
4007 char connect(); 4019 char connect();
4008 4020
4009 int main() { 4021 int main() {
4010 connect() 4022 connect()
4011 ; return 0; } 4023 ; return 0; }
4012 EOF 4024 EOF
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4025 if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4014 rm -rf conftest* 4026 rm -rf conftest*
4015 eval "ac_cv_lib_$ac_lib_var=yes" 4027 eval "ac_cv_lib_$ac_lib_var=yes"
4016 else 4028 else
4017 echo "configure: failed program was:" >&5 4029 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5 4030 cat conftest.$ac_ext >&5
4032 4044
4033 fi 4045 fi
4034 4046
4035 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4047 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4036 echo $ac_n "checking for remove""... $ac_c" 1>&6 4048 echo $ac_n "checking for remove""... $ac_c" 1>&6
4037 echo "configure:4038: checking for remove" >&5 4049 echo "configure:4050: checking for remove" >&5
4038 4050
4039 cat > conftest.$ac_ext <<EOF 4051 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure" 4052 #line 4053 "configure"
4041 #include "confdefs.h" 4053 #include "confdefs.h"
4042 /* System header to define __stub macros and hopefully few prototypes, 4054 /* System header to define __stub macros and hopefully few prototypes,
4043 which can conflict with char remove(); below. */ 4055 which can conflict with char remove(); below. */
4044 #include <assert.h> 4056 #include <assert.h>
4045 /* Override any gcc2 internal prototype to avoid an error. */ 4057 /* Override any gcc2 internal prototype to avoid an error. */
4058 remove(); 4070 remove();
4059 #endif 4071 #endif
4060 4072
4061 ; return 0; } 4073 ; return 0; }
4062 EOF 4074 EOF
4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4064 rm -rf conftest* 4076 rm -rf conftest*
4065 eval "ac_cv_func_remove=yes" 4077 eval "ac_cv_func_remove=yes"
4066 else 4078 else
4067 echo "configure: failed program was:" >&5 4079 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5 4080 cat conftest.$ac_ext >&5
4079 fi 4091 fi
4080 4092
4081 if test $ac_cv_func_remove = no; then 4093 if test $ac_cv_func_remove = no; then
4082 4094
4083 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4095 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4084 echo "configure:4085: checking for remove in -lposix" >&5 4096 echo "configure:4097: checking for remove in -lposix" >&5
4085 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4097 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4086 4098
4087 xe_check_libs=" -lposix " 4099 xe_check_libs=" -lposix "
4088 cat > conftest.$ac_ext <<EOF 4100 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure" 4101 #line 4102 "configure"
4090 #include "confdefs.h" 4102 #include "confdefs.h"
4091 /* Override any gcc2 internal prototype to avoid an error. */ 4103 /* Override any gcc2 internal prototype to avoid an error. */
4092 /* We use char because int might match the return type of a gcc2 4104 /* We use char because int might match the return type of a gcc2
4093 builtin and then its argument prototype would still apply. */ 4105 builtin and then its argument prototype would still apply. */
4094 char remove(); 4106 char remove();
4095 4107
4096 int main() { 4108 int main() {
4097 remove() 4109 remove()
4098 ; return 0; } 4110 ; return 0; }
4099 EOF 4111 EOF
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4101 rm -rf conftest* 4113 rm -rf conftest*
4102 eval "ac_cv_lib_$ac_lib_var=yes" 4114 eval "ac_cv_lib_$ac_lib_var=yes"
4103 else 4115 else
4104 echo "configure: failed program was:" >&5 4116 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5 4117 cat conftest.$ac_ext >&5
4119 4131
4120 fi 4132 fi
4121 4133
4122 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4134 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4123 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4135 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4124 echo "configure:4125: checking for shmat" >&5 4136 echo "configure:4137: checking for shmat" >&5
4125 4137
4126 cat > conftest.$ac_ext <<EOF 4138 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure" 4139 #line 4140 "configure"
4128 #include "confdefs.h" 4140 #include "confdefs.h"
4129 /* System header to define __stub macros and hopefully few prototypes, 4141 /* System header to define __stub macros and hopefully few prototypes,
4130 which can conflict with char shmat(); below. */ 4142 which can conflict with char shmat(); below. */
4131 #include <assert.h> 4143 #include <assert.h>
4132 /* Override any gcc2 internal prototype to avoid an error. */ 4144 /* Override any gcc2 internal prototype to avoid an error. */
4145 shmat(); 4157 shmat();
4146 #endif 4158 #endif
4147 4159
4148 ; return 0; } 4160 ; return 0; }
4149 EOF 4161 EOF
4150 if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4162 if { (eval echo configure:4163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4151 rm -rf conftest* 4163 rm -rf conftest*
4152 eval "ac_cv_func_shmat=yes" 4164 eval "ac_cv_func_shmat=yes"
4153 else 4165 else
4154 echo "configure: failed program was:" >&5 4166 echo "configure: failed program was:" >&5
4155 cat conftest.$ac_ext >&5 4167 cat conftest.$ac_ext >&5
4166 fi 4178 fi
4167 4179
4168 if test $ac_cv_func_shmat = no; then 4180 if test $ac_cv_func_shmat = no; then
4169 4181
4170 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4182 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4171 echo "configure:4172: checking for shmat in -lipc" >&5 4183 echo "configure:4184: checking for shmat in -lipc" >&5
4172 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4184 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4173 4185
4174 xe_check_libs=" -lipc " 4186 xe_check_libs=" -lipc "
4175 cat > conftest.$ac_ext <<EOF 4187 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure" 4188 #line 4189 "configure"
4177 #include "confdefs.h" 4189 #include "confdefs.h"
4178 /* Override any gcc2 internal prototype to avoid an error. */ 4190 /* Override any gcc2 internal prototype to avoid an error. */
4179 /* We use char because int might match the return type of a gcc2 4191 /* We use char because int might match the return type of a gcc2
4180 builtin and then its argument prototype would still apply. */ 4192 builtin and then its argument prototype would still apply. */
4181 char shmat(); 4193 char shmat();
4182 4194
4183 int main() { 4195 int main() {
4184 shmat() 4196 shmat()
4185 ; return 0; } 4197 ; return 0; }
4186 EOF 4198 EOF
4187 if { (eval echo configure:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4199 if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4188 rm -rf conftest* 4200 rm -rf conftest*
4189 eval "ac_cv_lib_$ac_lib_var=yes" 4201 eval "ac_cv_lib_$ac_lib_var=yes"
4190 else 4202 else
4191 echo "configure: failed program was:" >&5 4203 echo "configure: failed program was:" >&5
4192 cat conftest.$ac_ext >&5 4204 cat conftest.$ac_ext >&5
4216 # These have to be linked with before -lX11, unlike the other 4228 # These have to be linked with before -lX11, unlike the other
4217 # libraries we check for below, so use a different variable. 4229 # libraries we check for below, so use a different variable.
4218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4230 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4219 4231
4220 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4232 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4221 echo "configure:4222: checking for IceConnectionNumber in -lICE" >&5 4233 echo "configure:4234: checking for IceConnectionNumber in -lICE" >&5
4222 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4234 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4223 4235
4224 xe_check_libs=" -lICE " 4236 xe_check_libs=" -lICE "
4225 cat > conftest.$ac_ext <<EOF 4237 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure" 4238 #line 4239 "configure"
4227 #include "confdefs.h" 4239 #include "confdefs.h"
4228 /* Override any gcc2 internal prototype to avoid an error. */ 4240 /* Override any gcc2 internal prototype to avoid an error. */
4229 /* We use char because int might match the return type of a gcc2 4241 /* We use char because int might match the return type of a gcc2
4230 builtin and then its argument prototype would still apply. */ 4242 builtin and then its argument prototype would still apply. */
4231 char IceConnectionNumber(); 4243 char IceConnectionNumber();
4232 4244
4233 int main() { 4245 int main() {
4234 IceConnectionNumber() 4246 IceConnectionNumber()
4235 ; return 0; } 4247 ; return 0; }
4236 EOF 4248 EOF
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4238 rm -rf conftest* 4250 rm -rf conftest*
4239 eval "ac_cv_lib_$ac_lib_var=yes" 4251 eval "ac_cv_lib_$ac_lib_var=yes"
4240 else 4252 else
4241 echo "configure: failed program was:" >&5 4253 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5 4254 cat conftest.$ac_ext >&5
4346 echo "x_libraries = $x_libraries" 4358 echo "x_libraries = $x_libraries"
4347 echo "x_includes = $x_includes" 4359 echo "x_includes = $x_includes"
4348 echo "X_CFLAGS = $X_CFLAGS" 4360 echo "X_CFLAGS = $X_CFLAGS"
4349 echo "X_LIBS = $X_LIBS" 4361 echo "X_LIBS = $X_LIBS"
4350 echo "X_PRE_LIBS = $X_PRE_LIBS" 4362 echo "X_PRE_LIBS = $X_PRE_LIBS"
4351 echo "X_EXTRA_LIBS = $X_EXTRA_LIBS" 4363 echo "X_EXTRA_LIBS=\"$X_EXTRA_LIBS\""
4352 echo 4364 echo
4353 fi 4365 fi
4354 4366
4355 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 4367 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
4356 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 4368 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
4357 echo "configure:4358: checking for X11/Intrinsic.h" >&5 4369 echo "configure:4370: checking for X11/Intrinsic.h" >&5
4358 4370
4359 cat > conftest.$ac_ext <<EOF 4371 cat > conftest.$ac_ext <<EOF
4360 #line 4361 "configure" 4372 #line 4373 "configure"
4361 #include "confdefs.h" 4373 #include "confdefs.h"
4362 #include <X11/Intrinsic.h> 4374 #include <X11/Intrinsic.h>
4363 EOF 4375 EOF
4364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4365 { (eval echo configure:4366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4377 { (eval echo configure:4378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4366 ac_err=`grep -v '^ *+' conftest.out` 4378 ac_err=`grep -v '^ *+' conftest.out`
4367 if test -z "$ac_err"; then 4379 if test -z "$ac_err"; then
4368 rm -rf conftest* 4380 rm -rf conftest*
4369 eval "ac_cv_header_$ac_safe=yes" 4381 eval "ac_cv_header_$ac_safe=yes"
4370 else 4382 else
4384 fi 4396 fi
4385 4397
4386 4398
4387 4399
4388 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 4400 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
4389 echo "configure:4390: checking for XOpenDisplay in -lX11" >&5 4401 echo "configure:4402: checking for XOpenDisplay in -lX11" >&5
4390 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 4402 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
4391 4403
4392 xe_check_libs=" -lX11 " 4404 xe_check_libs=" -lX11 "
4393 cat > conftest.$ac_ext <<EOF 4405 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure" 4406 #line 4407 "configure"
4395 #include "confdefs.h" 4407 #include "confdefs.h"
4396 /* Override any gcc2 internal prototype to avoid an error. */ 4408 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2 4409 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */ 4410 builtin and then its argument prototype would still apply. */
4399 char XOpenDisplay(); 4411 char XOpenDisplay();
4400 4412
4401 int main() { 4413 int main() {
4402 XOpenDisplay() 4414 XOpenDisplay()
4403 ; return 0; } 4415 ; return 0; }
4404 EOF 4416 EOF
4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4406 rm -rf conftest* 4418 rm -rf conftest*
4407 eval "ac_cv_lib_$ac_lib_var=yes" 4419 eval "ac_cv_lib_$ac_lib_var=yes"
4408 else 4420 else
4409 echo "configure: failed program was:" >&5 4421 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5 4422 cat conftest.$ac_ext >&5
4425 if test "$have_lib_x11" != "yes"; then 4437 if test "$have_lib_x11" != "yes"; then
4426 4438
4427 xe_msg_checking="for XGetFontProperty in -lX11" 4439 xe_msg_checking="for XGetFontProperty in -lX11"
4428 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 4440 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
4429 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4441 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4430 echo "configure:4431: checking "$xe_msg_checking"" >&5 4442 echo "configure:4443: checking "$xe_msg_checking"" >&5
4431 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 4443 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
4432 4444
4433 xe_check_libs=" -lX11 -b i486-linuxaout" 4445 xe_check_libs=" -lX11 -b i486-linuxaout"
4434 cat > conftest.$ac_ext <<EOF 4446 cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure" 4447 #line 4448 "configure"
4436 #include "confdefs.h" 4448 #include "confdefs.h"
4437 /* Override any gcc2 internal prototype to avoid an error. */ 4449 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2 4450 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */ 4451 builtin and then its argument prototype would still apply. */
4440 char XGetFontProperty(); 4452 char XGetFontProperty();
4441 4453
4442 int main() { 4454 int main() {
4443 XGetFontProperty() 4455 XGetFontProperty()
4444 ; return 0; } 4456 ; return 0; }
4445 EOF 4457 EOF
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4447 rm -rf conftest* 4459 rm -rf conftest*
4448 eval "ac_cv_lib_$ac_lib_var=yes" 4460 eval "ac_cv_lib_$ac_lib_var=yes"
4449 else 4461 else
4450 echo "configure: failed program was:" >&5 4462 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5 4463 cat conftest.$ac_ext >&5
4466 4478
4467 fi 4479 fi
4468 libs_x="-lX11" 4480 libs_x="-lX11"
4469 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 4481 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
4470 4482
4471 case "$canonical" in *-sunos4.* ) # Bug workaround 4483
4484 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4485 echo "configure:4486: checking for XShapeSelectInput in -lXext" >&5
4486 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4487
4488 xe_check_libs=" -lXext "
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 /* Override any gcc2 internal prototype to avoid an error. */
4493 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */
4495 char XShapeSelectInput();
4496
4497 int main() {
4498 XShapeSelectInput()
4499 ; return 0; }
4500 EOF
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4502 rm -rf conftest*
4503 eval "ac_cv_lib_$ac_lib_var=yes"
4504 else
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4507 rm -rf conftest*
4508 eval "ac_cv_lib_$ac_lib_var=no"
4509 fi
4510 rm -f conftest*
4511 xe_check_libs=""
4512
4513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4514 echo "$ac_t""yes" 1>&6
4515 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
4516 else
4517 echo "$ac_t""no" 1>&6
4518 fi
4519
4520
4521
4522 case "$canonical" in *-sunos4.* ) # Bug workaround
4472 ld_switch_x_site="$ld_switch_x_site -u _XtToolkitInitialize" ;; 4523 ld_switch_x_site="$ld_switch_x_site -u _XtToolkitInitialize" ;;
4473 esac 4524 esac
4474 4525
4475 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 4526 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
4476 echo "configure:4477: checking for XtOpenDisplay in -lXt" >&5 4527 echo "configure:4528: checking for XtOpenDisplay in -lXt" >&5
4477 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 4528 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
4478 4529
4479 xe_check_libs=" -lXt " 4530 xe_check_libs=" -lXt "
4480 cat > conftest.$ac_ext <<EOF 4531 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure" 4532 #line 4533 "configure"
4482 #include "confdefs.h" 4533 #include "confdefs.h"
4483 /* Override any gcc2 internal prototype to avoid an error. */ 4534 /* Override any gcc2 internal prototype to avoid an error. */
4484 /* We use char because int might match the return type of a gcc2 4535 /* We use char because int might match the return type of a gcc2
4485 builtin and then its argument prototype would still apply. */ 4536 builtin and then its argument prototype would still apply. */
4486 char XtOpenDisplay(); 4537 char XtOpenDisplay();
4487 4538
4488 int main() { 4539 int main() {
4489 XtOpenDisplay() 4540 XtOpenDisplay()
4490 ; return 0; } 4541 ; return 0; }
4491 EOF 4542 EOF
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4543 if { (eval echo configure:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4493 rm -rf conftest* 4544 rm -rf conftest*
4494 eval "ac_cv_lib_$ac_lib_var=yes" 4545 eval "ac_cv_lib_$ac_lib_var=yes"
4495 else 4546 else
4496 echo "configure: failed program was:" >&5 4547 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5 4548 cat conftest.$ac_ext >&5
4510 fi 4561 fi
4511 4562
4512 4563
4513 4564
4514 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 4565 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
4515 echo "configure:4516: checking the version of X11 being used" >&5 4566 echo "configure:4567: checking the version of X11 being used" >&5
4516 cat > conftest.$ac_ext <<EOF 4567 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure" 4568 #line 4569 "configure"
4518 #include "confdefs.h" 4569 #include "confdefs.h"
4519 #include <X11/Intrinsic.h> 4570 #include <X11/Intrinsic.h>
4520 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 4571 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
4521 EOF 4572 EOF
4522 if { (eval echo configure:4523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 4573 if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
4523 then 4574 then
4524 ./conftest foobar; x11_release=$? 4575 ./conftest foobar; x11_release=$?
4525 else 4576 else
4526 echo "configure: failed program was:" >&5 4577 echo "configure: failed program was:" >&5
4527 cat conftest.$ac_ext >&5 4578 cat conftest.$ac_ext >&5
4541 4592
4542 for ac_hdr in X11/Xlocale.h 4593 for ac_hdr in X11/Xlocale.h
4543 do 4594 do
4544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4546 echo "configure:4547: checking for $ac_hdr" >&5 4597 echo "configure:4598: checking for $ac_hdr" >&5
4547 4598
4548 cat > conftest.$ac_ext <<EOF 4599 cat > conftest.$ac_ext <<EOF
4549 #line 4550 "configure" 4600 #line 4601 "configure"
4550 #include "confdefs.h" 4601 #include "confdefs.h"
4551 #include <$ac_hdr> 4602 #include <$ac_hdr>
4552 EOF 4603 EOF
4553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4554 { (eval echo configure:4555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4605 { (eval echo configure:4606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4555 ac_err=`grep -v '^ *+' conftest.out` 4606 ac_err=`grep -v '^ *+' conftest.out`
4556 if test -z "$ac_err"; then 4607 if test -z "$ac_err"; then
4557 rm -rf conftest* 4608 rm -rf conftest*
4558 eval "ac_cv_header_$ac_safe=yes" 4609 eval "ac_cv_header_$ac_safe=yes"
4559 else 4610 else
4580 fi 4631 fi
4581 done 4632 done
4582 4633
4583 4634
4584 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 4635 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
4585 echo "configure:4586: checking for XFree86" >&5 4636 echo "configure:4637: checking for XFree86" >&5
4586 if test -d "/usr/X386/include" -o \ 4637 if test -d "/usr/X386/include" -o \
4587 -f "/etc/XF86Config" -o \ 4638 -f "/etc/XF86Config" -o \
4588 -f "/etc/X11/XF86Config" -o \ 4639 -f "/etc/X11/XF86Config" -o \
4589 -f "/usr/X11R6/lib/X11/XF86Config"; then 4640 -f "/usr/X11R6/lib/X11/XF86Config"; then
4590 echo "$ac_t""yes" 1>&6 4641 echo "$ac_t""yes" 1>&6
4598 4649
4599 else 4650 else
4600 echo "$ac_t""no" 1>&6 4651 echo "$ac_t""no" 1>&6
4601 fi 4652 fi
4602 4653
4603
4604 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4605 echo "configure:4606: checking for XShapeSelectInput in -lXext" >&5
4606 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4607
4608 xe_check_libs=" -lXext "
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4615 char XShapeSelectInput();
4616
4617 int main() {
4618 XShapeSelectInput()
4619 ; return 0; }
4620 EOF
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4622 rm -rf conftest*
4623 eval "ac_cv_lib_$ac_lib_var=yes"
4624 else
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 rm -rf conftest*
4628 eval "ac_cv_lib_$ac_lib_var=no"
4629 fi
4630 rm -f conftest*
4631 xe_check_libs=""
4632
4633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4634 echo "$ac_t""yes" 1>&6
4635 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
4636 else
4637 echo "$ac_t""no" 1>&6
4638 fi
4639
4640
4641
4642 case "$canonical" in *-sunos4.* ) # Bug workaround 4654 case "$canonical" in *-sunos4.* ) # Bug workaround
4643 ld_switch_x_site="$ld_switch_x_site -u _get_applicationShellWidgetClass" ;; 4655 ld_switch_x_site="$ld_switch_x_site -u _get_applicationShellWidgetClass" ;;
4644 esac 4656 esac
4645 if test -z "$with_xmu"; then 4657 if test -z "$with_xmu"; then
4646 4658
4647 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4659 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4648 echo "configure:4649: checking for XmuConvertStandardSelection in -lXmu" >&5 4660 echo "configure:4661: checking for XmuConvertStandardSelection in -lXmu" >&5
4649 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4661 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4650 4662
4651 xe_check_libs=" -lXmu " 4663 xe_check_libs=" -lXmu "
4652 cat > conftest.$ac_ext <<EOF 4664 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure" 4665 #line 4666 "configure"
4654 #include "confdefs.h" 4666 #include "confdefs.h"
4655 /* Override any gcc2 internal prototype to avoid an error. */ 4667 /* Override any gcc2 internal prototype to avoid an error. */
4656 /* We use char because int might match the return type of a gcc2 4668 /* We use char because int might match the return type of a gcc2
4657 builtin and then its argument prototype would still apply. */ 4669 builtin and then its argument prototype would still apply. */
4658 char XmuConvertStandardSelection(); 4670 char XmuConvertStandardSelection();
4659 4671
4660 int main() { 4672 int main() {
4661 XmuConvertStandardSelection() 4673 XmuConvertStandardSelection()
4662 ; return 0; } 4674 ; return 0; }
4663 EOF 4675 EOF
4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4676 if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4665 rm -rf conftest* 4677 rm -rf conftest*
4666 eval "ac_cv_lib_$ac_lib_var=yes" 4678 eval "ac_cv_lib_$ac_lib_var=yes"
4667 else 4679 else
4668 echo "configure: failed program was:" >&5 4680 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5 4681 cat conftest.$ac_ext >&5
4691 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi 4703 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
4692 fi 4704 fi
4693 4705
4694 4706
4695 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 4707 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4696 echo "configure:4697: checking for main in -lXbsd" >&5 4708 echo "configure:4709: checking for main in -lXbsd" >&5
4697 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 4709 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4698 4710
4699 xe_check_libs=" -lXbsd " 4711 xe_check_libs=" -lXbsd "
4700 cat > conftest.$ac_ext <<EOF 4712 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure" 4713 #line 4714 "configure"
4702 #include "confdefs.h" 4714 #include "confdefs.h"
4703 4715
4704 int main() { 4716 int main() {
4705 main() 4717 main()
4706 ; return 0; } 4718 ; return 0; }
4707 EOF 4719 EOF
4708 if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4709 rm -rf conftest* 4721 rm -rf conftest*
4710 eval "ac_cv_lib_$ac_lib_var=yes" 4722 eval "ac_cv_lib_$ac_lib_var=yes"
4711 else 4723 else
4712 echo "configure: failed program was:" >&5 4724 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5 4725 cat conftest.$ac_ext >&5
4726 4738
4727 4739
4728 4740
4729 4741
4730 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 4742 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
4731 echo "configure:4732: checking for XawScrollbarSetThumb in -lXaw" >&5 4743 echo "configure:4744: checking for XawScrollbarSetThumb in -lXaw" >&5
4732 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4744 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4733 4745
4734 xe_check_libs=" -lXaw " 4746 xe_check_libs=" -lXaw "
4735 cat > conftest.$ac_ext <<EOF 4747 cat > conftest.$ac_ext <<EOF
4736 #line 4737 "configure" 4748 #line 4749 "configure"
4737 #include "confdefs.h" 4749 #include "confdefs.h"
4738 /* Override any gcc2 internal prototype to avoid an error. */ 4750 /* Override any gcc2 internal prototype to avoid an error. */
4739 /* We use char because int might match the return type of a gcc2 4751 /* We use char because int might match the return type of a gcc2
4740 builtin and then its argument prototype would still apply. */ 4752 builtin and then its argument prototype would still apply. */
4741 char XawScrollbarSetThumb(); 4753 char XawScrollbarSetThumb();
4742 4754
4743 int main() { 4755 int main() {
4744 XawScrollbarSetThumb() 4756 XawScrollbarSetThumb()
4745 ; return 0; } 4757 ; return 0; }
4746 EOF 4758 EOF
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4759 if { (eval echo configure:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4748 rm -rf conftest* 4760 rm -rf conftest*
4749 eval "ac_cv_lib_$ac_lib_var=yes" 4761 eval "ac_cv_lib_$ac_lib_var=yes"
4750 else 4762 else
4751 echo "configure: failed program was:" >&5 4763 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5 4764 cat conftest.$ac_ext >&5
4823 esac 4835 esac
4824 4836
4825 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 4837 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
4826 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 4838 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
4827 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 4839 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
4828 echo "configure:4829: checking for X11/Xauth.h" >&5 4840 echo "configure:4841: checking for X11/Xauth.h" >&5
4829 4841
4830 cat > conftest.$ac_ext <<EOF 4842 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure" 4843 #line 4844 "configure"
4832 #include "confdefs.h" 4844 #include "confdefs.h"
4833 #include <X11/Xauth.h> 4845 #include <X11/Xauth.h>
4834 EOF 4846 EOF
4835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4836 { (eval echo configure:4837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4848 { (eval echo configure:4849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4837 ac_err=`grep -v '^ *+' conftest.out` 4849 ac_err=`grep -v '^ *+' conftest.out`
4838 if test -z "$ac_err"; then 4850 if test -z "$ac_err"; then
4839 rm -rf conftest* 4851 rm -rf conftest*
4840 eval "ac_cv_header_$ac_safe=yes" 4852 eval "ac_cv_header_$ac_safe=yes"
4841 else 4853 else
4854 with_xauth=no 4866 with_xauth=no
4855 fi 4867 fi
4856 } 4868 }
4857 test -z "$with_xauth" && { 4869 test -z "$with_xauth" && {
4858 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 4870 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
4859 echo "configure:4860: checking for XauGetAuthByAddr in -lXau" >&5 4871 echo "configure:4872: checking for XauGetAuthByAddr in -lXau" >&5
4860 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 4872 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
4861 4873
4862 xe_check_libs=" -lXau " 4874 xe_check_libs=" -lXau "
4863 cat > conftest.$ac_ext <<EOF 4875 cat > conftest.$ac_ext <<EOF
4864 #line 4865 "configure" 4876 #line 4877 "configure"
4865 #include "confdefs.h" 4877 #include "confdefs.h"
4866 /* Override any gcc2 internal prototype to avoid an error. */ 4878 /* Override any gcc2 internal prototype to avoid an error. */
4867 /* We use char because int might match the return type of a gcc2 4879 /* We use char because int might match the return type of a gcc2
4868 builtin and then its argument prototype would still apply. */ 4880 builtin and then its argument prototype would still apply. */
4869 char XauGetAuthByAddr(); 4881 char XauGetAuthByAddr();
4870 4882
4871 int main() { 4883 int main() {
4872 XauGetAuthByAddr() 4884 XauGetAuthByAddr()
4873 ; return 0; } 4885 ; return 0; }
4874 EOF 4886 EOF
4875 if { (eval echo configure:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4887 if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4876 rm -rf conftest* 4888 rm -rf conftest*
4877 eval "ac_cv_lib_$ac_lib_var=yes" 4889 eval "ac_cv_lib_$ac_lib_var=yes"
4878 else 4890 else
4879 echo "configure: failed program was:" >&5 4891 echo "configure: failed program was:" >&5
4880 cat conftest.$ac_ext >&5 4892 cat conftest.$ac_ext >&5
4906 libs_x="-lXau $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXau\" to \$libs_x"; fi 4918 libs_x="-lXau $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXau\" to \$libs_x"; fi
4907 fi 4919 fi
4908 4920
4909 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` 4921 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'`
4910 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 4922 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6
4911 echo "configure:4912: checking for OffiX/DragAndDrop.h" >&5 4923 echo "configure:4924: checking for OffiX/DragAndDrop.h" >&5
4912 4924
4913 cat > conftest.$ac_ext <<EOF 4925 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure" 4926 #line 4927 "configure"
4915 #include "confdefs.h" 4927 #include "confdefs.h"
4916 #include <OffiX/DragAndDrop.h> 4928 #include <OffiX/DragAndDrop.h>
4917 EOF 4929 EOF
4918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4919 { (eval echo configure:4920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4931 { (eval echo configure:4932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4920 ac_err=`grep -v '^ *+' conftest.out` 4932 ac_err=`grep -v '^ *+' conftest.out`
4921 if test -z "$ac_err"; then 4933 if test -z "$ac_err"; then
4922 rm -rf conftest* 4934 rm -rf conftest*
4923 eval "ac_cv_header_$ac_safe=yes" 4935 eval "ac_cv_header_$ac_safe=yes"
4924 else 4936 else
4937 with_offix=no 4949 with_offix=no
4938 fi 4950 fi
4939 } 4951 }
4940 test -z "$with_offix" && { 4952 test -z "$with_offix" && {
4941 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 4953 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6
4942 echo "configure:4943: checking for DndInitialize in -lDnd" >&5 4954 echo "configure:4955: checking for DndInitialize in -lDnd" >&5
4943 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` 4955 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'`
4944 4956
4945 xe_check_libs=" -lDnd " 4957 xe_check_libs=" -lDnd "
4946 cat > conftest.$ac_ext <<EOF 4958 cat > conftest.$ac_ext <<EOF
4947 #line 4948 "configure" 4959 #line 4960 "configure"
4948 #include "confdefs.h" 4960 #include "confdefs.h"
4949 /* Override any gcc2 internal prototype to avoid an error. */ 4961 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2 4962 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */ 4963 builtin and then its argument prototype would still apply. */
4952 char DndInitialize(); 4964 char DndInitialize();
4953 4965
4954 int main() { 4966 int main() {
4955 DndInitialize() 4967 DndInitialize()
4956 ; return 0; } 4968 ; return 0; }
4957 EOF 4969 EOF
4958 if { (eval echo configure:4959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4970 if { (eval echo configure:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4959 rm -rf conftest* 4971 rm -rf conftest*
4960 eval "ac_cv_lib_$ac_lib_var=yes" 4972 eval "ac_cv_lib_$ac_lib_var=yes"
4961 else 4973 else
4962 echo "configure: failed program was:" >&5 4974 echo "configure: failed program was:" >&5
4963 cat conftest.$ac_ext >&5 4975 cat conftest.$ac_ext >&5
4992 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5004 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
4993 if test "$with_tooltalk" != "no" ; then 5005 if test "$with_tooltalk" != "no" ; then
4994 for dir in "" "Tt/" "desktop/" ; do 5006 for dir in "" "Tt/" "desktop/" ; do
4995 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5007 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
4996 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5008 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
4997 echo "configure:4998: checking for ${dir}tt_c.h" >&5 5009 echo "configure:5010: checking for ${dir}tt_c.h" >&5
4998 5010
4999 cat > conftest.$ac_ext <<EOF 5011 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure" 5012 #line 5013 "configure"
5001 #include "confdefs.h" 5013 #include "confdefs.h"
5002 #include <${dir}tt_c.h> 5014 #include <${dir}tt_c.h>
5003 EOF 5015 EOF
5004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5005 { (eval echo configure:5006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5017 { (eval echo configure:5018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5006 ac_err=`grep -v '^ *+' conftest.out` 5018 ac_err=`grep -v '^ *+' conftest.out`
5007 if test -z "$ac_err"; then 5019 if test -z "$ac_err"; then
5008 rm -rf conftest* 5020 rm -rf conftest*
5009 eval "ac_cv_header_$ac_safe=yes" 5021 eval "ac_cv_header_$ac_safe=yes"
5010 else 5022 else
5029 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5041 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5030 5042
5031 xe_msg_checking="for tt_message_create in -ltt" 5043 xe_msg_checking="for tt_message_create in -ltt"
5032 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5044 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5033 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5045 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5034 echo "configure:5035: checking "$xe_msg_checking"" >&5 5046 echo "configure:5047: checking "$xe_msg_checking"" >&5
5035 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5047 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5036 5048
5037 xe_check_libs=" -ltt $extra_libs" 5049 xe_check_libs=" -ltt $extra_libs"
5038 cat > conftest.$ac_ext <<EOF 5050 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure" 5051 #line 5052 "configure"
5040 #include "confdefs.h" 5052 #include "confdefs.h"
5041 /* Override any gcc2 internal prototype to avoid an error. */ 5053 /* Override any gcc2 internal prototype to avoid an error. */
5042 /* We use char because int might match the return type of a gcc2 5054 /* We use char because int might match the return type of a gcc2
5043 builtin and then its argument prototype would still apply. */ 5055 builtin and then its argument prototype would still apply. */
5044 char tt_message_create(); 5056 char tt_message_create();
5045 5057
5046 int main() { 5058 int main() {
5047 tt_message_create() 5059 tt_message_create()
5048 ; return 0; } 5060 ; return 0; }
5049 EOF 5061 EOF
5050 if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5062 if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5051 rm -rf conftest* 5063 rm -rf conftest*
5052 eval "ac_cv_lib_$ac_lib_var=yes" 5064 eval "ac_cv_lib_$ac_lib_var=yes"
5053 else 5065 else
5054 echo "configure: failed program was:" >&5 5066 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5 5067 cat conftest.$ac_ext >&5
5094 fi 5106 fi
5095 fi 5107 fi
5096 5108
5097 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5109 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5098 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5110 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5099 echo "configure:5100: checking for Dt/Dt.h" >&5 5111 echo "configure:5112: checking for Dt/Dt.h" >&5
5100 5112
5101 cat > conftest.$ac_ext <<EOF 5113 cat > conftest.$ac_ext <<EOF
5102 #line 5103 "configure" 5114 #line 5115 "configure"
5103 #include "confdefs.h" 5115 #include "confdefs.h"
5104 #include <Dt/Dt.h> 5116 #include <Dt/Dt.h>
5105 EOF 5117 EOF
5106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5107 { (eval echo configure:5108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5119 { (eval echo configure:5120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5108 ac_err=`grep -v '^ *+' conftest.out` 5120 ac_err=`grep -v '^ *+' conftest.out`
5109 if test -z "$ac_err"; then 5121 if test -z "$ac_err"; then
5110 rm -rf conftest* 5122 rm -rf conftest*
5111 eval "ac_cv_header_$ac_safe=yes" 5123 eval "ac_cv_header_$ac_safe=yes"
5112 else 5124 else
5125 with_cde=no 5137 with_cde=no
5126 fi 5138 fi
5127 } 5139 }
5128 test -z "$with_cde" && { 5140 test -z "$with_cde" && {
5129 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5141 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5130 echo "configure:5131: checking for DtDndDragStart in -lDtSvc" >&5 5142 echo "configure:5143: checking for DtDndDragStart in -lDtSvc" >&5
5131 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5143 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5132 5144
5133 xe_check_libs=" -lDtSvc " 5145 xe_check_libs=" -lDtSvc "
5134 cat > conftest.$ac_ext <<EOF 5146 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure" 5147 #line 5148 "configure"
5136 #include "confdefs.h" 5148 #include "confdefs.h"
5137 /* Override any gcc2 internal prototype to avoid an error. */ 5149 /* Override any gcc2 internal prototype to avoid an error. */
5138 /* We use char because int might match the return type of a gcc2 5150 /* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */ 5151 builtin and then its argument prototype would still apply. */
5140 char DtDndDragStart(); 5152 char DtDndDragStart();
5141 5153
5142 int main() { 5154 int main() {
5143 DtDndDragStart() 5155 DtDndDragStart()
5144 ; return 0; } 5156 ; return 0; }
5145 EOF 5157 EOF
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5158 if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5147 rm -rf conftest* 5159 rm -rf conftest*
5148 eval "ac_cv_lib_$ac_lib_var=yes" 5160 eval "ac_cv_lib_$ac_lib_var=yes"
5149 else 5161 else
5150 echo "configure: failed program was:" >&5 5162 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5 5163 cat conftest.$ac_ext >&5
5188 EOF 5200 EOF
5189 } 5201 }
5190 5202
5191 5203
5192 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 5204 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6
5193 echo "configure:5194: checking for main in -lenergize" >&5 5205 echo "configure:5206: checking for main in -lenergize" >&5
5194 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` 5206 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'`
5195 5207
5196 xe_check_libs=" -lenergize " 5208 xe_check_libs=" -lenergize "
5197 cat > conftest.$ac_ext <<EOF 5209 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure" 5210 #line 5211 "configure"
5199 #include "confdefs.h" 5211 #include "confdefs.h"
5200 5212
5201 int main() { 5213 int main() {
5202 main() 5214 main()
5203 ; return 0; } 5215 ; return 0; }
5204 EOF 5216 EOF
5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5206 rm -rf conftest* 5218 rm -rf conftest*
5207 eval "ac_cv_lib_$ac_lib_var=yes" 5219 eval "ac_cv_lib_$ac_lib_var=yes"
5208 else 5220 else
5209 echo "configure: failed program was:" >&5 5221 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5 5222 cat conftest.$ac_ext >&5
5232 5244
5233 5245
5234 if test -z "$energize_version"; then 5246 if test -z "$energize_version"; then
5235 5247
5236 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 5248 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6
5237 echo "configure:5238: checking for main in -lconn" >&5 5249 echo "configure:5250: checking for main in -lconn" >&5
5238 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` 5250 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'`
5239 5251
5240 xe_check_libs=" -lconn " 5252 xe_check_libs=" -lconn "
5241 cat > conftest.$ac_ext <<EOF 5253 cat > conftest.$ac_ext <<EOF
5242 #line 5243 "configure" 5254 #line 5255 "configure"
5243 #include "confdefs.h" 5255 #include "confdefs.h"
5244 5256
5245 int main() { 5257 int main() {
5246 main() 5258 main()
5247 ; return 0; } 5259 ; return 0; }
5248 EOF 5260 EOF
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5250 rm -rf conftest* 5262 rm -rf conftest*
5251 eval "ac_cv_lib_$ac_lib_var=yes" 5263 eval "ac_cv_lib_$ac_lib_var=yes"
5252 else 5264 else
5253 echo "configure: failed program was:" >&5 5265 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5 5266 cat conftest.$ac_ext >&5
5277 5289
5278 5290
5279 fi 5291 fi
5280 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` 5292 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'`
5281 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 5293 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6
5282 echo "configure:5283: checking for editorconn.h" >&5 5294 echo "configure:5295: checking for editorconn.h" >&5
5283 5295
5284 cat > conftest.$ac_ext <<EOF 5296 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure" 5297 #line 5298 "configure"
5286 #include "confdefs.h" 5298 #include "confdefs.h"
5287 #include <editorconn.h> 5299 #include <editorconn.h>
5288 EOF 5300 EOF
5289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5290 { (eval echo configure:5291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5302 { (eval echo configure:5303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5291 ac_err=`grep -v '^ *+' conftest.out` 5303 ac_err=`grep -v '^ *+' conftest.out`
5292 if test -z "$ac_err"; then 5304 if test -z "$ac_err"; then
5293 rm -rf conftest* 5305 rm -rf conftest*
5294 eval "ac_cv_header_$ac_safe=yes" 5306 eval "ac_cv_header_$ac_safe=yes"
5295 else 5307 else
5327 5339
5328 fi 5340 fi
5329 5341
5330 5342
5331 echo "checking for graphics libraries" 1>&6 5343 echo "checking for graphics libraries" 1>&6
5332 echo "configure:5333: checking for graphics libraries" >&5 5344 echo "configure:5345: checking for graphics libraries" >&5
5333 test -z "$with_gif" && with_gif=yes; 5345 test -z "$with_gif" && with_gif=yes;
5334 if test "$with_gif" = "yes"; then 5346 if test "$with_gif" = "yes"; then
5335 { test "$extra_verbose" = "yes" && cat << \EOF 5347 { test "$extra_verbose" = "yes" && cat << \EOF
5336 Defining HAVE_GIF 5348 Defining HAVE_GIF
5337 EOF 5349 EOF
5345 fi 5357 fi
5346 fi 5358 fi
5347 5359
5348 test -z "$with_xpm" && { ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 5360 test -z "$with_xpm" && { ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5349 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 5361 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5350 echo "configure:5351: checking for X11/xpm.h" >&5 5362 echo "configure:5363: checking for X11/xpm.h" >&5
5351 5363
5352 cat > conftest.$ac_ext <<EOF 5364 cat > conftest.$ac_ext <<EOF
5353 #line 5354 "configure" 5365 #line 5366 "configure"
5354 #include "confdefs.h" 5366 #include "confdefs.h"
5355 #include <X11/xpm.h> 5367 #include <X11/xpm.h>
5356 EOF 5368 EOF
5357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5358 { (eval echo configure:5359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5370 { (eval echo configure:5371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5359 ac_err=`grep -v '^ *+' conftest.out` 5371 ac_err=`grep -v '^ *+' conftest.out`
5360 if test -z "$ac_err"; then 5372 if test -z "$ac_err"; then
5361 rm -rf conftest* 5373 rm -rf conftest*
5362 eval "ac_cv_header_$ac_safe=yes" 5374 eval "ac_cv_header_$ac_safe=yes"
5363 else 5375 else
5376 with_xpm=no 5388 with_xpm=no
5377 fi 5389 fi
5378 } 5390 }
5379 test -z "$with_xpm" && { 5391 test -z "$with_xpm" && {
5380 echo $ac_n "checking for XpmReadFileToData in -lXpm""... $ac_c" 1>&6 5392 echo $ac_n "checking for XpmReadFileToData in -lXpm""... $ac_c" 1>&6
5381 echo "configure:5382: checking for XpmReadFileToData in -lXpm" >&5 5393 echo "configure:5394: checking for XpmReadFileToData in -lXpm" >&5
5382 ac_lib_var=`echo Xpm'_'XpmReadFileToData | sed 'y%./+-%__p_%'` 5394 ac_lib_var=`echo Xpm'_'XpmReadFileToData | sed 'y%./+-%__p_%'`
5383 5395
5384 xe_check_libs=" -lXpm " 5396 xe_check_libs=" -lXpm "
5385 cat > conftest.$ac_ext <<EOF 5397 cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure" 5398 #line 5399 "configure"
5387 #include "confdefs.h" 5399 #include "confdefs.h"
5388 /* Override any gcc2 internal prototype to avoid an error. */ 5400 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2 5401 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */ 5402 builtin and then its argument prototype would still apply. */
5391 char XpmReadFileToData(); 5403 char XpmReadFileToData();
5392 5404
5393 int main() { 5405 int main() {
5394 XpmReadFileToData() 5406 XpmReadFileToData()
5395 ; return 0; } 5407 ; return 0; }
5396 EOF 5408 EOF
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5398 rm -rf conftest* 5410 rm -rf conftest*
5399 eval "ac_cv_lib_$ac_lib_var=yes" 5411 eval "ac_cv_lib_$ac_lib_var=yes"
5400 else 5412 else
5401 echo "configure: failed program was:" >&5 5413 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5 5414 cat conftest.$ac_ext >&5
5428 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 5440 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
5429 fi 5441 fi
5430 5442
5431 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 5443 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
5432 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 5444 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
5433 echo "configure:5434: checking for compface.h" >&5 5445 echo "configure:5446: checking for compface.h" >&5
5434 5446
5435 cat > conftest.$ac_ext <<EOF 5447 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure" 5448 #line 5449 "configure"
5437 #include "confdefs.h" 5449 #include "confdefs.h"
5438 #include <compface.h> 5450 #include <compface.h>
5439 EOF 5451 EOF
5440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5441 { (eval echo configure:5442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5453 { (eval echo configure:5454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5442 ac_err=`grep -v '^ *+' conftest.out` 5454 ac_err=`grep -v '^ *+' conftest.out`
5443 if test -z "$ac_err"; then 5455 if test -z "$ac_err"; then
5444 rm -rf conftest* 5456 rm -rf conftest*
5445 eval "ac_cv_header_$ac_safe=yes" 5457 eval "ac_cv_header_$ac_safe=yes"
5446 else 5458 else
5459 with_xface=no 5471 with_xface=no
5460 fi 5472 fi
5461 } 5473 }
5462 test -z "$with_xface" && { 5474 test -z "$with_xface" && {
5463 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 5475 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
5464 echo "configure:5465: checking for UnGenFace in -lcompface" >&5 5476 echo "configure:5477: checking for UnGenFace in -lcompface" >&5
5465 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 5477 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
5466 5478
5467 xe_check_libs=" -lcompface " 5479 xe_check_libs=" -lcompface "
5468 cat > conftest.$ac_ext <<EOF 5480 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure" 5481 #line 5482 "configure"
5470 #include "confdefs.h" 5482 #include "confdefs.h"
5471 /* Override any gcc2 internal prototype to avoid an error. */ 5483 /* Override any gcc2 internal prototype to avoid an error. */
5472 /* We use char because int might match the return type of a gcc2 5484 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */ 5485 builtin and then its argument prototype would still apply. */
5474 char UnGenFace(); 5486 char UnGenFace();
5475 5487
5476 int main() { 5488 int main() {
5477 UnGenFace() 5489 UnGenFace()
5478 ; return 0; } 5490 ; return 0; }
5479 EOF 5491 EOF
5480 if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5492 if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5481 rm -rf conftest* 5493 rm -rf conftest*
5482 eval "ac_cv_lib_$ac_lib_var=yes" 5494 eval "ac_cv_lib_$ac_lib_var=yes"
5483 else 5495 else
5484 echo "configure: failed program was:" >&5 5496 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5 5497 cat conftest.$ac_ext >&5
5511 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 5523 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
5512 fi 5524 fi
5513 5525
5514 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 5526 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
5515 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 5527 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
5516 echo "configure:5517: checking for jpeglib.h" >&5 5528 echo "configure:5529: checking for jpeglib.h" >&5
5517 5529
5518 cat > conftest.$ac_ext <<EOF 5530 cat > conftest.$ac_ext <<EOF
5519 #line 5520 "configure" 5531 #line 5532 "configure"
5520 #include "confdefs.h" 5532 #include "confdefs.h"
5521 #include <jpeglib.h> 5533 #include <jpeglib.h>
5522 EOF 5534 EOF
5523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5524 { (eval echo configure:5525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5536 { (eval echo configure:5537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5525 ac_err=`grep -v '^ *+' conftest.out` 5537 ac_err=`grep -v '^ *+' conftest.out`
5526 if test -z "$ac_err"; then 5538 if test -z "$ac_err"; then
5527 rm -rf conftest* 5539 rm -rf conftest*
5528 eval "ac_cv_header_$ac_safe=yes" 5540 eval "ac_cv_header_$ac_safe=yes"
5529 else 5541 else
5542 with_jpeg=no 5554 with_jpeg=no
5543 fi 5555 fi
5544 } 5556 }
5545 test -z "$with_jpeg" && { 5557 test -z "$with_jpeg" && {
5546 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 5558 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
5547 echo "configure:5548: checking for jpeg_destroy_decompress in -ljpeg" >&5 5559 echo "configure:5560: checking for jpeg_destroy_decompress in -ljpeg" >&5
5548 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 5560 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
5549 5561
5550 xe_check_libs=" -ljpeg " 5562 xe_check_libs=" -ljpeg "
5551 cat > conftest.$ac_ext <<EOF 5563 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure" 5564 #line 5565 "configure"
5553 #include "confdefs.h" 5565 #include "confdefs.h"
5554 /* Override any gcc2 internal prototype to avoid an error. */ 5566 /* Override any gcc2 internal prototype to avoid an error. */
5555 /* We use char because int might match the return type of a gcc2 5567 /* We use char because int might match the return type of a gcc2
5556 builtin and then its argument prototype would still apply. */ 5568 builtin and then its argument prototype would still apply. */
5557 char jpeg_destroy_decompress(); 5569 char jpeg_destroy_decompress();
5558 5570
5559 int main() { 5571 int main() {
5560 jpeg_destroy_decompress() 5572 jpeg_destroy_decompress()
5561 ; return 0; } 5573 ; return 0; }
5562 EOF 5574 EOF
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5575 if { (eval echo configure:5576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5564 rm -rf conftest* 5576 rm -rf conftest*
5565 eval "ac_cv_lib_$ac_lib_var=yes" 5577 eval "ac_cv_lib_$ac_lib_var=yes"
5566 else 5578 else
5567 echo "configure: failed program was:" >&5 5579 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5 5580 cat conftest.$ac_ext >&5
5594 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 5606 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
5595 fi 5607 fi
5596 5608
5597 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 5609 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5598 echo $ac_n "checking for png.h""... $ac_c" 1>&6 5610 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5599 echo "configure:5600: checking for png.h" >&5 5611 echo "configure:5612: checking for png.h" >&5
5600 5612
5601 cat > conftest.$ac_ext <<EOF 5613 cat > conftest.$ac_ext <<EOF
5602 #line 5603 "configure" 5614 #line 5615 "configure"
5603 #include "confdefs.h" 5615 #include "confdefs.h"
5604 #include <png.h> 5616 #include <png.h>
5605 EOF 5617 EOF
5606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5607 { (eval echo configure:5608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5619 { (eval echo configure:5620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5608 ac_err=`grep -v '^ *+' conftest.out` 5620 ac_err=`grep -v '^ *+' conftest.out`
5609 if test -z "$ac_err"; then 5621 if test -z "$ac_err"; then
5610 rm -rf conftest* 5622 rm -rf conftest*
5611 eval "ac_cv_header_$ac_safe=yes" 5623 eval "ac_cv_header_$ac_safe=yes"
5612 else 5624 else
5624 echo "$ac_t""no" 1>&6 5636 echo "$ac_t""no" 1>&6
5625 with_png=no 5637 with_png=no
5626 fi 5638 fi
5627 } 5639 }
5628 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 5640 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
5629 echo "configure:5630: checking for pow" >&5 5641 echo "configure:5642: checking for pow" >&5
5630 5642
5631 cat > conftest.$ac_ext <<EOF 5643 cat > conftest.$ac_ext <<EOF
5632 #line 5633 "configure" 5644 #line 5645 "configure"
5633 #include "confdefs.h" 5645 #include "confdefs.h"
5634 /* System header to define __stub macros and hopefully few prototypes, 5646 /* System header to define __stub macros and hopefully few prototypes,
5635 which can conflict with char pow(); below. */ 5647 which can conflict with char pow(); below. */
5636 #include <assert.h> 5648 #include <assert.h>
5637 /* Override any gcc2 internal prototype to avoid an error. */ 5649 /* Override any gcc2 internal prototype to avoid an error. */
5650 pow(); 5662 pow();
5651 #endif 5663 #endif
5652 5664
5653 ; return 0; } 5665 ; return 0; }
5654 EOF 5666 EOF
5655 if { (eval echo configure:5656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5667 if { (eval echo configure:5668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5656 rm -rf conftest* 5668 rm -rf conftest*
5657 eval "ac_cv_func_pow=yes" 5669 eval "ac_cv_func_pow=yes"
5658 else 5670 else
5659 echo "configure: failed program was:" >&5 5671 echo "configure: failed program was:" >&5
5660 cat conftest.$ac_ext >&5 5672 cat conftest.$ac_ext >&5
5675 for extra_libs in "" "-lz" "-lgz"; do 5687 for extra_libs in "" "-lz" "-lgz"; do
5676 5688
5677 xe_msg_checking="for png_read_image in -lpng" 5689 xe_msg_checking="for png_read_image in -lpng"
5678 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5690 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5679 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5691 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5680 echo "configure:5681: checking "$xe_msg_checking"" >&5 5692 echo "configure:5693: checking "$xe_msg_checking"" >&5
5681 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 5693 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
5682 5694
5683 xe_check_libs=" -lpng $extra_libs" 5695 xe_check_libs=" -lpng $extra_libs"
5684 cat > conftest.$ac_ext <<EOF 5696 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure" 5697 #line 5698 "configure"
5686 #include "confdefs.h" 5698 #include "confdefs.h"
5687 /* Override any gcc2 internal prototype to avoid an error. */ 5699 /* Override any gcc2 internal prototype to avoid an error. */
5688 /* We use char because int might match the return type of a gcc2 5700 /* We use char because int might match the return type of a gcc2
5689 builtin and then its argument prototype would still apply. */ 5701 builtin and then its argument prototype would still apply. */
5690 char png_read_image(); 5702 char png_read_image();
5691 5703
5692 int main() { 5704 int main() {
5693 png_read_image() 5705 png_read_image()
5694 ; return 0; } 5706 ; return 0; }
5695 EOF 5707 EOF
5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5708 if { (eval echo configure:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5697 rm -rf conftest* 5709 rm -rf conftest*
5698 eval "ac_cv_lib_$ac_lib_var=yes" 5710 eval "ac_cv_lib_$ac_lib_var=yes"
5699 else 5711 else
5700 echo "configure: failed program was:" >&5 5712 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5 5713 cat conftest.$ac_ext >&5
5741 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi 5753 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
5742 fi 5754 fi
5743 5755
5744 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 5756 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
5745 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 5757 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
5746 echo "configure:5747: checking for Xm/Xm.h" >&5 5758 echo "configure:5759: checking for Xm/Xm.h" >&5
5747 5759
5748 cat > conftest.$ac_ext <<EOF 5760 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure" 5761 #line 5762 "configure"
5750 #include "confdefs.h" 5762 #include "confdefs.h"
5751 #include <Xm/Xm.h> 5763 #include <Xm/Xm.h>
5752 EOF 5764 EOF
5753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5754 { (eval echo configure:5755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5766 { (eval echo configure:5767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5755 ac_err=`grep -v '^ *+' conftest.out` 5767 ac_err=`grep -v '^ *+' conftest.out`
5756 if test -z "$ac_err"; then 5768 if test -z "$ac_err"; then
5757 rm -rf conftest* 5769 rm -rf conftest*
5758 eval "ac_cv_header_$ac_safe=yes" 5770 eval "ac_cv_header_$ac_safe=yes"
5759 else 5771 else
5766 rm -f conftest* 5778 rm -f conftest*
5767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5768 echo "$ac_t""yes" 1>&6 5780 echo "$ac_t""yes" 1>&6
5769 5781
5770 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 5782 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
5771 echo "configure:5772: checking for XmStringFree in -lXm" >&5 5783 echo "configure:5784: checking for XmStringFree in -lXm" >&5
5772 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 5784 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
5773 5785
5774 xe_check_libs=" -lXm " 5786 xe_check_libs=" -lXm "
5775 cat > conftest.$ac_ext <<EOF 5787 cat > conftest.$ac_ext <<EOF
5776 #line 5777 "configure" 5788 #line 5789 "configure"
5777 #include "confdefs.h" 5789 #include "confdefs.h"
5778 /* Override any gcc2 internal prototype to avoid an error. */ 5790 /* Override any gcc2 internal prototype to avoid an error. */
5779 /* We use char because int might match the return type of a gcc2 5791 /* We use char because int might match the return type of a gcc2
5780 builtin and then its argument prototype would still apply. */ 5792 builtin and then its argument prototype would still apply. */
5781 char XmStringFree(); 5793 char XmStringFree();
5782 5794
5783 int main() { 5795 int main() {
5784 XmStringFree() 5796 XmStringFree()
5785 ; return 0; } 5797 ; return 0; }
5786 EOF 5798 EOF
5787 if { (eval echo configure:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5799 if { (eval echo configure:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5788 rm -rf conftest* 5800 rm -rf conftest*
5789 eval "ac_cv_lib_$ac_lib_var=yes" 5801 eval "ac_cv_lib_$ac_lib_var=yes"
5790 else 5802 else
5791 echo "configure: failed program was:" >&5 5803 echo "configure: failed program was:" >&5
5792 cat conftest.$ac_ext >&5 5804 cat conftest.$ac_ext >&5
5996 6008
5997 test -z "$with_mule" && with_mule=no 6009 test -z "$with_mule" && with_mule=no
5998 6010
5999 if test "$with_mule" = "yes" ; then 6011 if test "$with_mule" = "yes" ; then
6000 echo "checking for Mule-related features" 1>&6 6012 echo "checking for Mule-related features" 1>&6
6001 echo "configure:6002: checking for Mule-related features" >&5 6013 echo "configure:6014: checking for Mule-related features" >&5
6002 { test "$extra_verbose" = "yes" && cat << \EOF 6014 { test "$extra_verbose" = "yes" && cat << \EOF
6003 Defining MULE 6015 Defining MULE
6004 EOF 6016 EOF
6005 cat >> confdefs.h <<\EOF 6017 cat >> confdefs.h <<\EOF
6006 #define MULE 1 6018 #define MULE 1
6011 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o\"" 6023 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o\""
6012 fi 6024 fi
6013 6025
6014 6026
6015 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6027 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6016 echo "configure:6017: checking for strerror in -lintl" >&5 6028 echo "configure:6029: checking for strerror in -lintl" >&5
6017 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6029 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6018 6030
6019 xe_check_libs=" -lintl " 6031 xe_check_libs=" -lintl "
6020 cat > conftest.$ac_ext <<EOF 6032 cat > conftest.$ac_ext <<EOF
6021 #line 6022 "configure" 6033 #line 6034 "configure"
6022 #include "confdefs.h" 6034 #include "confdefs.h"
6023 /* Override any gcc2 internal prototype to avoid an error. */ 6035 /* Override any gcc2 internal prototype to avoid an error. */
6024 /* We use char because int might match the return type of a gcc2 6036 /* We use char because int might match the return type of a gcc2
6025 builtin and then its argument prototype would still apply. */ 6037 builtin and then its argument prototype would still apply. */
6026 char strerror(); 6038 char strerror();
6027 6039
6028 int main() { 6040 int main() {
6029 strerror() 6041 strerror()
6030 ; return 0; } 6042 ; return 0; }
6031 EOF 6043 EOF
6032 if { (eval echo configure:6033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6033 rm -rf conftest* 6045 rm -rf conftest*
6034 eval "ac_cv_lib_$ac_lib_var=yes" 6046 eval "ac_cv_lib_$ac_lib_var=yes"
6035 else 6047 else
6036 echo "configure: failed program was:" >&5 6048 echo "configure: failed program was:" >&5
6037 cat conftest.$ac_ext >&5 6049 cat conftest.$ac_ext >&5
6060 fi 6072 fi
6061 6073
6062 6074
6063 6075
6064 echo "checking for Mule input methods" 1>&6 6076 echo "checking for Mule input methods" 1>&6
6065 echo "configure:6066: checking for Mule input methods" >&5 6077 echo "configure:6078: checking for Mule input methods" >&5
6066 test -z "$with_xim" && case "$opsys" in sol2* ) ;; *) with_xim=no ;; esac 6078 test -z "$with_xim" && case "$opsys" in sol2* ) ;; *) with_xim=no ;; esac
6067 case "$with_xim" in "" | "yes" ) 6079 case "$with_xim" in "" | "yes" )
6068 echo "checking for XIM" 1>&6 6080 echo "checking for XIM" 1>&6
6069 echo "configure:6070: checking for XIM" >&5 6081 echo "configure:6082: checking for XIM" >&5
6070 6082
6071 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6083 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6072 echo "configure:6073: checking for XmImMbLookupString in -lXm" >&5 6084 echo "configure:6085: checking for XmImMbLookupString in -lXm" >&5
6073 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6085 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6074 6086
6075 xe_check_libs=" -lXm " 6087 xe_check_libs=" -lXm "
6076 cat > conftest.$ac_ext <<EOF 6088 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure" 6089 #line 6090 "configure"
6078 #include "confdefs.h" 6090 #include "confdefs.h"
6079 /* Override any gcc2 internal prototype to avoid an error. */ 6091 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2 6092 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */ 6093 builtin and then its argument prototype would still apply. */
6082 char XmImMbLookupString(); 6094 char XmImMbLookupString();
6083 6095
6084 int main() { 6096 int main() {
6085 XmImMbLookupString() 6097 XmImMbLookupString()
6086 ; return 0; } 6098 ; return 0; }
6087 EOF 6099 EOF
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6089 rm -rf conftest* 6101 rm -rf conftest*
6090 eval "ac_cv_lib_$ac_lib_var=yes" 6102 eval "ac_cv_lib_$ac_lib_var=yes"
6091 else 6103 else
6092 echo "configure: failed program was:" >&5 6104 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5 6105 cat conftest.$ac_ext >&5
6145 fi 6157 fi
6146 fi 6158 fi
6147 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6159 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6148 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6160 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6149 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6161 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6150 echo "configure:6151: checking for wnn/jllib.h" >&5 6162 echo "configure:6163: checking for wnn/jllib.h" >&5
6151 6163
6152 cat > conftest.$ac_ext <<EOF 6164 cat > conftest.$ac_ext <<EOF
6153 #line 6154 "configure" 6165 #line 6166 "configure"
6154 #include "confdefs.h" 6166 #include "confdefs.h"
6155 #include <wnn/jllib.h> 6167 #include <wnn/jllib.h>
6156 EOF 6168 EOF
6157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6158 { (eval echo configure:6159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6170 { (eval echo configure:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6159 ac_err=`grep -v '^ *+' conftest.out` 6171 ac_err=`grep -v '^ *+' conftest.out`
6160 if test -z "$ac_err"; then 6172 if test -z "$ac_err"; then
6161 rm -rf conftest* 6173 rm -rf conftest*
6162 eval "ac_cv_header_$ac_safe=yes" 6174 eval "ac_cv_header_$ac_safe=yes"
6163 else 6175 else
6176 with_wnn=no 6188 with_wnn=no
6177 fi 6189 fi
6178 } 6190 }
6179 test -z "$with_wnn" && { 6191 test -z "$with_wnn" && {
6180 echo $ac_n "checking for jl_dic_list in -lwnn""... $ac_c" 1>&6 6192 echo $ac_n "checking for jl_dic_list in -lwnn""... $ac_c" 1>&6
6181 echo "configure:6182: checking for jl_dic_list in -lwnn" >&5 6193 echo "configure:6194: checking for jl_dic_list in -lwnn" >&5
6182 ac_lib_var=`echo wnn'_'jl_dic_list | sed 'y%./+-%__p_%'` 6194 ac_lib_var=`echo wnn'_'jl_dic_list | sed 'y%./+-%__p_%'`
6183 6195
6184 xe_check_libs=" -lwnn " 6196 xe_check_libs=" -lwnn "
6185 cat > conftest.$ac_ext <<EOF 6197 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure" 6198 #line 6199 "configure"
6187 #include "confdefs.h" 6199 #include "confdefs.h"
6188 /* Override any gcc2 internal prototype to avoid an error. */ 6200 /* Override any gcc2 internal prototype to avoid an error. */
6189 /* We use char because int might match the return type of a gcc2 6201 /* We use char because int might match the return type of a gcc2
6190 builtin and then its argument prototype would still apply. */ 6202 builtin and then its argument prototype would still apply. */
6191 char jl_dic_list(); 6203 char jl_dic_list();
6192 6204
6193 int main() { 6205 int main() {
6194 jl_dic_list() 6206 jl_dic_list()
6195 ; return 0; } 6207 ; return 0; }
6196 EOF 6208 EOF
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6198 rm -rf conftest* 6210 rm -rf conftest*
6199 eval "ac_cv_lib_$ac_lib_var=yes" 6211 eval "ac_cv_lib_$ac_lib_var=yes"
6200 else 6212 else
6201 echo "configure: failed program was:" >&5 6213 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5 6214 cat conftest.$ac_ext >&5
6229 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 6241 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
6230 echo " xemacs will be linked with \"mule-wnnfns.o\"" 6242 echo " xemacs will be linked with \"mule-wnnfns.o\""
6231 fi 6243 fi
6232 6244
6233 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 6245 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
6234 echo "configure:6235: checking for jl_fi_dic_list in -lwnn" >&5 6246 echo "configure:6247: checking for jl_fi_dic_list in -lwnn" >&5
6235 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 6247 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
6236 6248
6237 xe_check_libs=" -lwnn " 6249 xe_check_libs=" -lwnn "
6238 cat > conftest.$ac_ext <<EOF 6250 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure" 6251 #line 6252 "configure"
6240 #include "confdefs.h" 6252 #include "confdefs.h"
6241 /* Override any gcc2 internal prototype to avoid an error. */ 6253 /* Override any gcc2 internal prototype to avoid an error. */
6242 /* We use char because int might match the return type of a gcc2 6254 /* We use char because int might match the return type of a gcc2
6243 builtin and then its argument prototype would still apply. */ 6255 builtin and then its argument prototype would still apply. */
6244 char jl_fi_dic_list(); 6256 char jl_fi_dic_list();
6245 6257
6246 int main() { 6258 int main() {
6247 jl_fi_dic_list() 6259 jl_fi_dic_list()
6248 ; return 0; } 6260 ; return 0; }
6249 EOF 6261 EOF
6250 if { (eval echo configure:6251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6262 if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6251 rm -rf conftest* 6263 rm -rf conftest*
6252 eval "ac_cv_lib_$ac_lib_var=yes" 6264 eval "ac_cv_lib_$ac_lib_var=yes"
6253 else 6265 else
6254 echo "configure: failed program was:" >&5 6266 echo "configure: failed program was:" >&5
6255 cat conftest.$ac_ext >&5 6267 cat conftest.$ac_ext >&5
6277 6289
6278 fi 6290 fi
6279 6291
6280 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 6292 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
6281 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 6293 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
6282 echo "configure:6283: checking for canna/RK.h" >&5 6294 echo "configure:6295: checking for canna/RK.h" >&5
6283 6295
6284 cat > conftest.$ac_ext <<EOF 6296 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure" 6297 #line 6298 "configure"
6286 #include "confdefs.h" 6298 #include "confdefs.h"
6287 #include <canna/RK.h> 6299 #include <canna/RK.h>
6288 EOF 6300 EOF
6289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6290 { (eval echo configure:6291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6302 { (eval echo configure:6303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6291 ac_err=`grep -v '^ *+' conftest.out` 6303 ac_err=`grep -v '^ *+' conftest.out`
6292 if test -z "$ac_err"; then 6304 if test -z "$ac_err"; then
6293 rm -rf conftest* 6305 rm -rf conftest*
6294 eval "ac_cv_header_$ac_safe=yes" 6306 eval "ac_cv_header_$ac_safe=yes"
6295 else 6307 else
6308 with_canna=no 6320 with_canna=no
6309 fi 6321 fi
6310 } 6322 }
6311 test -z "$with_canna" && { 6323 test -z "$with_canna" && {
6312 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 6324 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
6313 echo "configure:6314: checking for RkBgnBun in -lRKC" >&5 6325 echo "configure:6326: checking for RkBgnBun in -lRKC" >&5
6314 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 6326 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
6315 6327
6316 xe_check_libs=" -lRKC " 6328 xe_check_libs=" -lRKC "
6317 cat > conftest.$ac_ext <<EOF 6329 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure" 6330 #line 6331 "configure"
6319 #include "confdefs.h" 6331 #include "confdefs.h"
6320 /* Override any gcc2 internal prototype to avoid an error. */ 6332 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2 6333 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */ 6334 builtin and then its argument prototype would still apply. */
6323 char RkBgnBun(); 6335 char RkBgnBun();
6324 6336
6325 int main() { 6337 int main() {
6326 RkBgnBun() 6338 RkBgnBun()
6327 ; return 0; } 6339 ; return 0; }
6328 EOF 6340 EOF
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6341 if { (eval echo configure:6342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6330 rm -rf conftest* 6342 rm -rf conftest*
6331 eval "ac_cv_lib_$ac_lib_var=yes" 6343 eval "ac_cv_lib_$ac_lib_var=yes"
6332 else 6344 else
6333 echo "configure: failed program was:" >&5 6345 echo "configure: failed program was:" >&5
6334 cat conftest.$ac_ext >&5 6346 cat conftest.$ac_ext >&5
6347 fi 6359 fi
6348 6360
6349 } 6361 }
6350 test -z "$with_canna" && { 6362 test -z "$with_canna" && {
6351 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 6363 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
6352 echo "configure:6353: checking for jrKanjiControl in -lcanna" >&5 6364 echo "configure:6365: checking for jrKanjiControl in -lcanna" >&5
6353 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 6365 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
6354 6366
6355 xe_check_libs=" -lcanna " 6367 xe_check_libs=" -lcanna "
6356 cat > conftest.$ac_ext <<EOF 6368 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure" 6369 #line 6370 "configure"
6358 #include "confdefs.h" 6370 #include "confdefs.h"
6359 /* Override any gcc2 internal prototype to avoid an error. */ 6371 /* Override any gcc2 internal prototype to avoid an error. */
6360 /* We use char because int might match the return type of a gcc2 6372 /* We use char because int might match the return type of a gcc2
6361 builtin and then its argument prototype would still apply. */ 6373 builtin and then its argument prototype would still apply. */
6362 char jrKanjiControl(); 6374 char jrKanjiControl();
6363 6375
6364 int main() { 6376 int main() {
6365 jrKanjiControl() 6377 jrKanjiControl()
6366 ; return 0; } 6378 ; return 0; }
6367 EOF 6379 EOF
6368 if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6380 if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6369 rm -rf conftest* 6381 rm -rf conftest*
6370 eval "ac_cv_lib_$ac_lib_var=yes" 6382 eval "ac_cv_lib_$ac_lib_var=yes"
6371 else 6383 else
6372 echo "configure: failed program was:" >&5 6384 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5 6385 cat conftest.$ac_ext >&5
6444 fi 6456 fi
6445 6457
6446 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid 6458 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid
6447 do 6459 do
6448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6449 echo "configure:6450: checking for $ac_func" >&5 6461 echo "configure:6462: checking for $ac_func" >&5
6450 6462
6451 cat > conftest.$ac_ext <<EOF 6463 cat > conftest.$ac_ext <<EOF
6452 #line 6453 "configure" 6464 #line 6465 "configure"
6453 #include "confdefs.h" 6465 #include "confdefs.h"
6454 /* System header to define __stub macros and hopefully few prototypes, 6466 /* System header to define __stub macros and hopefully few prototypes,
6455 which can conflict with char $ac_func(); below. */ 6467 which can conflict with char $ac_func(); below. */
6456 #include <assert.h> 6468 #include <assert.h>
6457 /* Override any gcc2 internal prototype to avoid an error. */ 6469 /* Override any gcc2 internal prototype to avoid an error. */
6470 $ac_func(); 6482 $ac_func();
6471 #endif 6483 #endif
6472 6484
6473 ; return 0; } 6485 ; return 0; }
6474 EOF 6486 EOF
6475 if { (eval echo configure:6476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6487 if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6476 rm -rf conftest* 6488 rm -rf conftest*
6477 eval "ac_cv_func_$ac_func=yes" 6489 eval "ac_cv_func_$ac_func=yes"
6478 else 6490 else
6479 echo "configure: failed program was:" >&5 6491 echo "configure: failed program was:" >&5
6480 cat conftest.$ac_ext >&5 6492 cat conftest.$ac_ext >&5
6507 fi ;; 6519 fi ;;
6508 * ) 6520 * )
6509 for ac_func in realpath 6521 for ac_func in realpath
6510 do 6522 do
6511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6512 echo "configure:6513: checking for $ac_func" >&5 6524 echo "configure:6525: checking for $ac_func" >&5
6513 6525
6514 cat > conftest.$ac_ext <<EOF 6526 cat > conftest.$ac_ext <<EOF
6515 #line 6516 "configure" 6527 #line 6528 "configure"
6516 #include "confdefs.h" 6528 #include "confdefs.h"
6517 /* System header to define __stub macros and hopefully few prototypes, 6529 /* System header to define __stub macros and hopefully few prototypes,
6518 which can conflict with char $ac_func(); below. */ 6530 which can conflict with char $ac_func(); below. */
6519 #include <assert.h> 6531 #include <assert.h>
6520 /* Override any gcc2 internal prototype to avoid an error. */ 6532 /* Override any gcc2 internal prototype to avoid an error. */
6533 $ac_func(); 6545 $ac_func();
6534 #endif 6546 #endif
6535 6547
6536 ; return 0; } 6548 ; return 0; }
6537 EOF 6549 EOF
6538 if { (eval echo configure:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6550 if { (eval echo configure:6551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6539 rm -rf conftest* 6551 rm -rf conftest*
6540 eval "ac_cv_func_$ac_func=yes" 6552 eval "ac_cv_func_$ac_func=yes"
6541 else 6553 else
6542 echo "configure: failed program was:" >&5 6554 echo "configure: failed program was:" >&5
6543 cat conftest.$ac_ext >&5 6555 cat conftest.$ac_ext >&5
6565 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then 6577 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
6566 echo " xemacs will be linked with \"realpath.o\"" 6578 echo " xemacs will be linked with \"realpath.o\""
6567 fi ;; 6579 fi ;;
6568 esac 6580 esac
6569 6581
6570 test "$with_mocklisp" = "yes" && extra_objs="$extra_objs mocklisp.o" && if test "$extra_verbose" = "yes"; then
6571 echo " xemacs will be linked with \"mocklisp.o\""
6572 fi
6573
6574 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 6582 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
6575 echo "configure:6576: checking whether netdb declares h_errno" >&5 6583 echo "configure:6584: checking whether netdb declares h_errno" >&5
6576 cat > conftest.$ac_ext <<EOF 6584 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure" 6585 #line 6586 "configure"
6578 #include "confdefs.h" 6586 #include "confdefs.h"
6579 #include <netdb.h> 6587 #include <netdb.h>
6580 int main() { 6588 int main() {
6581 return h_errno; 6589 return h_errno;
6582 ; return 0; } 6590 ; return 0; }
6583 EOF 6591 EOF
6584 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6592 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6585 rm -rf conftest* 6593 rm -rf conftest*
6586 echo "$ac_t""yes" 1>&6 6594 echo "$ac_t""yes" 1>&6
6587 { test "$extra_verbose" = "yes" && cat << \EOF 6595 { test "$extra_verbose" = "yes" && cat << \EOF
6588 Defining HAVE_H_ERRNO 6596 Defining HAVE_H_ERRNO
6589 EOF 6597 EOF
6599 echo "$ac_t""no" 1>&6 6607 echo "$ac_t""no" 1>&6
6600 fi 6608 fi
6601 rm -f conftest* 6609 rm -f conftest*
6602 6610
6603 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 6611 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6604 echo "configure:6605: checking for sigsetjmp" >&5 6612 echo "configure:6613: checking for sigsetjmp" >&5
6605 cat > conftest.$ac_ext <<EOF 6613 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure" 6614 #line 6615 "configure"
6607 #include "confdefs.h" 6615 #include "confdefs.h"
6608 #include <setjmp.h> 6616 #include <setjmp.h>
6609 int main() { 6617 int main() {
6610 sigjmp_buf bar; sigsetjmp (bar, 0); 6618 sigjmp_buf bar; sigsetjmp (bar, 0);
6611 ; return 0; } 6619 ; return 0; }
6612 EOF 6620 EOF
6613 if { (eval echo configure:6614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6621 if { (eval echo configure:6622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6614 rm -rf conftest* 6622 rm -rf conftest*
6615 echo "$ac_t""yes" 1>&6 6623 echo "$ac_t""yes" 1>&6
6616 { test "$extra_verbose" = "yes" && cat << \EOF 6624 { test "$extra_verbose" = "yes" && cat << \EOF
6617 Defining HAVE_SIGSETJMP 6625 Defining HAVE_SIGSETJMP
6618 EOF 6626 EOF
6628 echo "$ac_t""no" 1>&6 6636 echo "$ac_t""no" 1>&6
6629 fi 6637 fi
6630 rm -f conftest* 6638 rm -f conftest*
6631 6639
6632 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 6640 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
6633 echo "configure:6634: checking whether localtime caches TZ" >&5 6641 echo "configure:6642: checking whether localtime caches TZ" >&5
6634 6642
6635 if test "$ac_cv_func_tzset" = "yes"; then 6643 if test "$ac_cv_func_tzset" = "yes"; then
6636 cat > conftest.$ac_ext <<EOF 6644 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure" 6645 #line 6646 "configure"
6638 #include "confdefs.h" 6646 #include "confdefs.h"
6639 #include <time.h> 6647 #include <time.h>
6640 #if STDC_HEADERS 6648 #if STDC_HEADERS
6641 # include <stdlib.h> 6649 # include <stdlib.h>
6642 #endif 6650 #endif
6667 if (localtime (&now)->tm_hour != hour_unset) 6675 if (localtime (&now)->tm_hour != hour_unset)
6668 exit (1); 6676 exit (1);
6669 exit (0); 6677 exit (0);
6670 } 6678 }
6671 EOF 6679 EOF
6672 if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6680 if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6673 then 6681 then
6674 emacs_cv_localtime_cache=no 6682 emacs_cv_localtime_cache=no
6675 else 6683 else
6676 echo "configure: failed program was:" >&5 6684 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5 6685 cat conftest.$ac_ext >&5
6696 6704
6697 fi 6705 fi
6698 6706
6699 if test "$HAVE_TIMEVAL" = "yes"; then 6707 if test "$HAVE_TIMEVAL" = "yes"; then
6700 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 6708 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
6701 echo "configure:6702: checking whether gettimeofday cannot accept two arguments" >&5 6709 echo "configure:6710: checking whether gettimeofday cannot accept two arguments" >&5
6702 cat > conftest.$ac_ext <<EOF 6710 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure" 6711 #line 6712 "configure"
6704 #include "confdefs.h" 6712 #include "confdefs.h"
6705 6713
6706 #ifdef TIME_WITH_SYS_TIME 6714 #ifdef TIME_WITH_SYS_TIME
6707 #include <sys/time.h> 6715 #include <sys/time.h>
6708 #include <time.h> 6716 #include <time.h>
6720 struct timezone dummy; 6728 struct timezone dummy;
6721 gettimeofday (&time, &dummy); 6729 gettimeofday (&time, &dummy);
6722 6730
6723 ; return 0; } 6731 ; return 0; }
6724 EOF 6732 EOF
6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6733 if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6726 rm -rf conftest* 6734 rm -rf conftest*
6727 echo "$ac_t""no" 1>&6 6735 echo "$ac_t""no" 1>&6
6728 else 6736 else
6729 echo "configure: failed program was:" >&5 6737 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5 6738 cat conftest.$ac_ext >&5
6742 rm -f conftest* 6750 rm -f conftest*
6743 fi 6751 fi
6744 6752
6745 6753
6746 echo $ac_n "checking for inline""... $ac_c" 1>&6 6754 echo $ac_n "checking for inline""... $ac_c" 1>&6
6747 echo "configure:6748: checking for inline" >&5 6755 echo "configure:6756: checking for inline" >&5
6748 6756
6749 ac_cv_c_inline=no 6757 ac_cv_c_inline=no
6750 for ac_kw in inline __inline__ __inline; do 6758 for ac_kw in inline __inline__ __inline; do
6751 cat > conftest.$ac_ext <<EOF 6759 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure" 6760 #line 6761 "configure"
6753 #include "confdefs.h" 6761 #include "confdefs.h"
6754 6762
6755 int main() { 6763 int main() {
6756 } $ac_kw foo() { 6764 } $ac_kw foo() {
6757 ; return 0; } 6765 ; return 0; }
6758 EOF 6766 EOF
6759 if { (eval echo configure:6760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6767 if { (eval echo configure:6768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6760 rm -rf conftest* 6768 rm -rf conftest*
6761 ac_cv_c_inline=$ac_kw; break 6769 ac_cv_c_inline=$ac_kw; break
6762 else 6770 else
6763 echo "configure: failed program was:" >&5 6771 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5 6772 cat conftest.$ac_ext >&5
6799 6807
6800 6808
6801 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6809 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6802 # for constant arguments. Useless! 6810 # for constant arguments. Useless!
6803 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 6811 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6804 echo "configure:6805: checking for working alloca.h" >&5 6812 echo "configure:6813: checking for working alloca.h" >&5
6805 6813
6806 cat > conftest.$ac_ext <<EOF 6814 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure" 6815 #line 6816 "configure"
6808 #include "confdefs.h" 6816 #include "confdefs.h"
6809 #include <alloca.h> 6817 #include <alloca.h>
6810 int main() { 6818 int main() {
6811 char *p = alloca(2 * sizeof(int)); 6819 char *p = alloca(2 * sizeof(int));
6812 ; return 0; } 6820 ; return 0; }
6813 EOF 6821 EOF
6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6815 rm -rf conftest* 6823 rm -rf conftest*
6816 ac_cv_header_alloca_h=yes 6824 ac_cv_header_alloca_h=yes
6817 else 6825 else
6818 echo "configure: failed program was:" >&5 6826 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5 6827 cat conftest.$ac_ext >&5
6833 } 6841 }
6834 6842
6835 fi 6843 fi
6836 6844
6837 echo $ac_n "checking for alloca""... $ac_c" 1>&6 6845 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6838 echo "configure:6839: checking for alloca" >&5 6846 echo "configure:6847: checking for alloca" >&5
6839 6847
6840 cat > conftest.$ac_ext <<EOF 6848 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure" 6849 #line 6850 "configure"
6842 #include "confdefs.h" 6850 #include "confdefs.h"
6843 6851
6844 #ifdef __GNUC__ 6852 #ifdef __GNUC__
6845 # define alloca __builtin_alloca 6853 # define alloca __builtin_alloca
6846 #else 6854 #else
6859 6867
6860 int main() { 6868 int main() {
6861 char *p = (char *) alloca(1); 6869 char *p = (char *) alloca(1);
6862 ; return 0; } 6870 ; return 0; }
6863 EOF 6871 EOF
6864 if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6872 if { (eval echo configure:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6865 rm -rf conftest* 6873 rm -rf conftest*
6866 ac_cv_func_alloca_works=yes 6874 ac_cv_func_alloca_works=yes
6867 else 6875 else
6868 echo "configure: failed program was:" >&5 6876 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5 6877 cat conftest.$ac_ext >&5
6898 EOF 6906 EOF
6899 } 6907 }
6900 6908
6901 6909
6902 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 6910 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6903 echo "configure:6904: checking whether alloca needs Cray hooks" >&5 6911 echo "configure:6912: checking whether alloca needs Cray hooks" >&5
6904 6912
6905 cat > conftest.$ac_ext <<EOF 6913 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure" 6914 #line 6915 "configure"
6907 #include "confdefs.h" 6915 #include "confdefs.h"
6908 #if defined(CRAY) && ! defined(CRAY2) 6916 #if defined(CRAY) && ! defined(CRAY2)
6909 webecray 6917 webecray
6910 #else 6918 #else
6911 wenotbecray 6919 wenotbecray
6925 6933
6926 echo "$ac_t""$ac_cv_os_cray" 1>&6 6934 echo "$ac_t""$ac_cv_os_cray" 1>&6
6927 if test $ac_cv_os_cray = yes; then 6935 if test $ac_cv_os_cray = yes; then
6928 for ac_func in _getb67 GETB67 getb67; do 6936 for ac_func in _getb67 GETB67 getb67; do
6929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6930 echo "configure:6931: checking for $ac_func" >&5 6938 echo "configure:6939: checking for $ac_func" >&5
6931 6939
6932 cat > conftest.$ac_ext <<EOF 6940 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure" 6941 #line 6942 "configure"
6934 #include "confdefs.h" 6942 #include "confdefs.h"
6935 /* System header to define __stub macros and hopefully few prototypes, 6943 /* System header to define __stub macros and hopefully few prototypes,
6936 which can conflict with char $ac_func(); below. */ 6944 which can conflict with char $ac_func(); below. */
6937 #include <assert.h> 6945 #include <assert.h>
6938 /* Override any gcc2 internal prototype to avoid an error. */ 6946 /* Override any gcc2 internal prototype to avoid an error. */
6951 $ac_func(); 6959 $ac_func();
6952 #endif 6960 #endif
6953 6961
6954 ; return 0; } 6962 ; return 0; }
6955 EOF 6963 EOF
6956 if { (eval echo configure:6957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6957 rm -rf conftest* 6965 rm -rf conftest*
6958 eval "ac_cv_func_$ac_func=yes" 6966 eval "ac_cv_func_$ac_func=yes"
6959 else 6967 else
6960 echo "configure: failed program was:" >&5 6968 echo "configure: failed program was:" >&5
6961 cat conftest.$ac_ext >&5 6969 cat conftest.$ac_ext >&5
6981 6989
6982 done 6990 done
6983 fi 6991 fi
6984 6992
6985 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 6993 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6986 echo "configure:6987: checking stack direction for C alloca" >&5 6994 echo "configure:6995: checking stack direction for C alloca" >&5
6987 6995
6988 cat > conftest.$ac_ext <<EOF 6996 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure" 6997 #line 6998 "configure"
6990 #include "confdefs.h" 6998 #include "confdefs.h"
6991 find_stack_direction () 6999 find_stack_direction ()
6992 { 7000 {
6993 static char *addr = 0; 7001 static char *addr = 0;
6994 auto char dummy; 7002 auto char dummy;
7003 main () 7011 main ()
7004 { 7012 {
7005 exit (find_stack_direction() < 0); 7013 exit (find_stack_direction() < 0);
7006 } 7014 }
7007 EOF 7015 EOF
7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7016 if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7009 then 7017 then
7010 ac_cv_c_stack_direction=1 7018 ac_cv_c_stack_direction=1
7011 else 7019 else
7012 echo "configure: failed program was:" >&5 7020 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5 7021 cat conftest.$ac_ext >&5
7030 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then 7038 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
7031 echo " xemacs will be linked with \"$ALLOCA\"" 7039 echo " xemacs will be linked with \"$ALLOCA\""
7032 fi 7040 fi
7033 7041
7034 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 7042 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7035 echo "configure:7036: checking for pid_t" >&5 7043 echo "configure:7044: checking for pid_t" >&5
7036 7044
7037 cat > conftest.$ac_ext <<EOF 7045 cat > conftest.$ac_ext <<EOF
7038 #line 7039 "configure" 7046 #line 7047 "configure"
7039 #include "confdefs.h" 7047 #include "confdefs.h"
7040 #include <sys/types.h> 7048 #include <sys/types.h>
7041 #if STDC_HEADERS 7049 #if STDC_HEADERS
7042 #include <stdlib.h> 7050 #include <stdlib.h>
7043 #include <stddef.h> 7051 #include <stddef.h>
7065 7073
7066 fi 7074 fi
7067 7075
7068 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 7076 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7069 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 7077 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7070 echo "configure:7071: checking for vfork.h" >&5 7078 echo "configure:7079: checking for vfork.h" >&5
7071 7079
7072 cat > conftest.$ac_ext <<EOF 7080 cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure" 7081 #line 7082 "configure"
7074 #include "confdefs.h" 7082 #include "confdefs.h"
7075 #include <vfork.h> 7083 #include <vfork.h>
7076 EOF 7084 EOF
7077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7078 { (eval echo configure:7079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7086 { (eval echo configure:7087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7079 ac_err=`grep -v '^ *+' conftest.out` 7087 ac_err=`grep -v '^ *+' conftest.out`
7080 if test -z "$ac_err"; then 7088 if test -z "$ac_err"; then
7081 rm -rf conftest* 7089 rm -rf conftest*
7082 eval "ac_cv_header_$ac_safe=yes" 7090 eval "ac_cv_header_$ac_safe=yes"
7083 else 7091 else
7101 else 7109 else
7102 echo "$ac_t""no" 1>&6 7110 echo "$ac_t""no" 1>&6
7103 fi 7111 fi
7104 7112
7105 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 7113 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
7106 echo "configure:7107: checking for working vfork" >&5 7114 echo "configure:7115: checking for working vfork" >&5
7107 7115
7108 cat > conftest.$ac_ext <<EOF 7116 cat > conftest.$ac_ext <<EOF
7109 #line 7110 "configure" 7117 #line 7118 "configure"
7110 #include "confdefs.h" 7118 #include "confdefs.h"
7111 /* Thanks to Paul Eggert for this test. */ 7119 /* Thanks to Paul Eggert for this test. */
7112 #include <stdio.h> 7120 #include <stdio.h>
7113 #include <sys/types.h> 7121 #include <sys/types.h>
7114 #include <sys/stat.h> 7122 #include <sys/stat.h>
7199 || fstat(fileno(stdout), &st) != 0 7207 || fstat(fileno(stdout), &st) != 0
7200 ); 7208 );
7201 } 7209 }
7202 } 7210 }
7203 EOF 7211 EOF
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7212 if { (eval echo configure:7213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7205 then 7213 then
7206 ac_cv_func_vfork_works=yes 7214 ac_cv_func_vfork_works=yes
7207 else 7215 else
7208 echo "configure: failed program was:" >&5 7216 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5 7217 cat conftest.$ac_ext >&5
7224 7232
7225 fi 7233 fi
7226 7234
7227 7235
7228 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 7236 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
7229 echo "configure:7230: checking for working strcoll" >&5 7237 echo "configure:7238: checking for working strcoll" >&5
7230 7238
7231 cat > conftest.$ac_ext <<EOF 7239 cat > conftest.$ac_ext <<EOF
7232 #line 7233 "configure" 7240 #line 7241 "configure"
7233 #include "confdefs.h" 7241 #include "confdefs.h"
7234 #include <string.h> 7242 #include <string.h>
7235 main () 7243 main ()
7236 { 7244 {
7237 exit (strcoll ("abc", "def") >= 0 || 7245 exit (strcoll ("abc", "def") >= 0 ||
7238 strcoll ("ABC", "DEF") >= 0 || 7246 strcoll ("ABC", "DEF") >= 0 ||
7239 strcoll ("123", "456") >= 0); 7247 strcoll ("123", "456") >= 0);
7240 } 7248 }
7241 EOF 7249 EOF
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7250 if { (eval echo configure:7251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7243 then 7251 then
7244 ac_cv_func_strcoll_works=yes 7252 ac_cv_func_strcoll_works=yes
7245 else 7253 else
7246 echo "configure: failed program was:" >&5 7254 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5 7255 cat conftest.$ac_ext >&5
7261 } 7269 }
7262 7270
7263 fi 7271 fi
7264 7272
7265 7273
7266 for ac_hdr in unistd.h
7267 do
7268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7270 echo "configure:7271: checking for $ac_hdr" >&5
7271
7272 cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7275 #include <$ac_hdr>
7276 EOF
7277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7278 { (eval echo configure:7279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7279 ac_err=`grep -v '^ *+' conftest.out`
7280 if test -z "$ac_err"; then
7281 rm -rf conftest*
7282 eval "ac_cv_header_$ac_safe=yes"
7283 else
7284 echo "$ac_err" >&5
7285 echo "configure: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7287 rm -rf conftest*
7288 eval "ac_cv_header_$ac_safe=no"
7289 fi
7290 rm -f conftest*
7291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7292 echo "$ac_t""yes" 1>&6
7293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7294 { test "$extra_verbose" = "yes" && cat << EOF
7295 Defining $ac_tr_hdr
7296 EOF
7297 cat >> confdefs.h <<EOF
7298 #define $ac_tr_hdr 1
7299 EOF
7300 }
7301
7302 else
7303 echo "$ac_t""no" 1>&6
7304 fi
7305 done
7306
7307 for ac_func in getpagesize
7308 do
7309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7310 echo "configure:7311: checking for $ac_func" >&5
7311
7312 cat > conftest.$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7315 /* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char $ac_func(); below. */
7317 #include <assert.h>
7318 /* Override any gcc2 internal prototype to avoid an error. */
7319 /* We use char because int might match the return type of a gcc2
7320 builtin and then its argument prototype would still apply. */
7321 char $ac_func();
7322
7323 int main() {
7324
7325 /* The GNU C library defines this for functions which it implements
7326 to always fail with ENOSYS. Some functions are actually named
7327 something starting with __ and the normal name is an alias. */
7328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7329 choke me
7330 #else
7331 $ac_func();
7332 #endif
7333
7334 ; return 0; }
7335 EOF
7336 if { (eval echo configure:7337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7337 rm -rf conftest*
7338 eval "ac_cv_func_$ac_func=yes"
7339 else
7340 echo "configure: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 rm -rf conftest*
7343 eval "ac_cv_func_$ac_func=no"
7344 fi
7345 rm -f conftest*
7346
7347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7348 echo "$ac_t""yes" 1>&6
7349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7350 { test "$extra_verbose" = "yes" && cat << EOF
7351 Defining $ac_tr_func
7352 EOF
7353 cat >> confdefs.h <<EOF
7354 #define $ac_tr_func 1
7355 EOF
7356 }
7357
7358 else
7359 echo "$ac_t""no" 1>&6
7360 fi
7361 done
7362
7363 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 7274 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7364 echo "configure:7365: checking for working mmap" >&5 7275 echo "configure:7276: checking for working mmap" >&5
7365 7276 cat > conftest.$ac_ext <<EOF
7366 cat > conftest.$ac_ext <<EOF 7277 #line 7278 "configure"
7367 #line 7368 "configure" 7278 #include "confdefs.h"
7368 #include "confdefs.h" 7279 #include <stdio.h>
7369 7280 #include <unistd.h>
7370 /* Thanks to Mike Haertel and Jim Avera for this test.
7371 Here is a matrix of mmap possibilities:
7372 mmap private not fixed
7373 mmap private fixed at somewhere currently unmapped
7374 mmap private fixed at somewhere already mapped
7375 mmap shared not fixed
7376 mmap shared fixed at somewhere currently unmapped
7377 mmap shared fixed at somewhere already mapped
7378 For private mappings, we should verify that changes cannot be read()
7379 back from the file, nor mmap's back from the file at a different
7380 address. (There have been systems where private was not correctly
7381 implemented like the infamous i386 svr4.0, and systems where the
7382 VM page cache was not coherent with the filesystem buffer cache
7383 like early versions of FreeBSD and possibly contemporary NetBSD.)
7384 For shared mappings, we should conversely verify that changes get
7385 propogated back to all the places they're supposed to be.
7386
7387 Grep wants private fixed already mapped.
7388 The main things grep needs to know about mmap are:
7389 * does it exist and is it safe to write into the mmap'd area
7390 * how to use it (BSD variants) */
7391 #include <sys/types.h>
7392 #include <fcntl.h> 7281 #include <fcntl.h>
7393 #include <sys/mman.h> 7282 #include <sys/mman.h>
7394 7283
7395 /* This mess was copied from the GNU getpagesize.h. */ 7284 #ifndef MAP_VARIABLE
7396 #ifndef HAVE_GETPAGESIZE 7285 #define MAP_VARIABLE 0
7397 # ifdef HAVE_UNISTD_H
7398 # include <unistd.h>
7399 # endif
7400
7401 /* Assume that all systems that can run configure have sys/param.h. */
7402 # ifndef HAVE_SYS_PARAM_H
7403 # define HAVE_SYS_PARAM_H 1
7404 # endif
7405
7406 # ifdef _SC_PAGESIZE
7407 # define getpagesize() sysconf(_SC_PAGESIZE)
7408 # else /* no _SC_PAGESIZE */
7409 # ifdef HAVE_SYS_PARAM_H
7410 # include <sys/param.h>
7411 # ifdef EXEC_PAGESIZE
7412 # define getpagesize() EXEC_PAGESIZE
7413 # else /* no EXEC_PAGESIZE */
7414 # ifdef NBPG
7415 # define getpagesize() NBPG * CLSIZE
7416 # ifndef CLSIZE
7417 # define CLSIZE 1
7418 # endif /* no CLSIZE */
7419 # else /* no NBPG */
7420 # ifdef NBPC
7421 # define getpagesize() NBPC
7422 # else /* no NBPC */
7423 # ifdef PAGESIZE
7424 # define getpagesize() PAGESIZE
7425 # endif /* PAGESIZE */
7426 # endif /* no NBPC */
7427 # endif /* no NBPG */
7428 # endif /* no EXEC_PAGESIZE */
7429 # else /* no HAVE_SYS_PARAM_H */
7430 # define getpagesize() 8192 /* punt totally */
7431 # endif /* no HAVE_SYS_PARAM_H */
7432 # endif /* no _SC_PAGESIZE */
7433
7434 #endif /* no HAVE_GETPAGESIZE */
7435
7436 #ifdef __cplusplus
7437 extern "C" { void *malloc(unsigned); }
7438 #else
7439 char *malloc();
7440 #endif 7286 #endif
7441 7287
7442 int 7288 #ifndef MAP_FAILED
7443 main() 7289 #define MAP_FAILED -1
7290 #endif
7291
7292 int main (int argc, char *argv[])
7444 { 7293 {
7445 char *data, *data2, *data3; 7294 int fd = -1;
7446 int i, pagesize; 7295 caddr_t p;
7447 int fd; 7296 #ifndef MAP_ANONYMOUS
7448 7297 fd = open ("/dev/zero", O_RDWR);
7449 pagesize = getpagesize(); 7298 if (fd < 0)
7450 7299 return 1;
7451 /* 7300 #define MAP_ANONYMOUS 0
7452 * First, make a file with some known garbage in it. 7301 #endif
7453 */ 7302 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
7454 data = malloc(pagesize); 7303 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
7455 if (!data) 7304 fd, 0) != (void *) MAP_FAILED)
7456 exit(1); 7305 return 0;
7457 for (i = 0; i < pagesize; ++i) 7306 perror ("conftest: mmap failed");
7458 *(data + i) = rand(); 7307 return 1;
7459 umask(0); 7308 }
7460 fd = creat("conftestmmap", 0600); 7309 EOF
7461 if (fd < 0) 7310 if { (eval echo configure:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7462 exit(1);
7463 if (write(fd, data, pagesize) != pagesize)
7464 exit(1);
7465 close(fd);
7466
7467 /*
7468 * Next, try to mmap the file at a fixed address which
7469 * already has something else allocated at it. If we can,
7470 * also make sure that we see the same garbage.
7471 */
7472 fd = open("conftestmmap", O_RDWR);
7473 if (fd < 0)
7474 exit(1);
7475 data2 = malloc(2 * pagesize);
7476 if (!data2)
7477 exit(1);
7478 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7479 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7480 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7481 exit(1);
7482 for (i = 0; i < pagesize; ++i)
7483 if (*(data + i) != *(data2 + i))
7484 exit(1);
7485
7486 /*
7487 * Finally, make sure that changes to the mapped area
7488 * do not percolate back to the file as seen by read().
7489 * (This is a bug on some variants of i386 svr4.0.)
7490 */
7491 for (i = 0; i < pagesize; ++i)
7492 *(data2 + i) = *(data2 + i) + 1;
7493 data3 = malloc(pagesize);
7494 if (!data3)
7495 exit(1);
7496 if (read(fd, data3, pagesize) != pagesize)
7497 exit(1);
7498 for (i = 0; i < pagesize; ++i)
7499 if (*(data + i) != *(data3 + i))
7500 exit(1);
7501 close(fd);
7502 unlink("conftestmmap");
7503 exit(0);
7504 }
7505
7506 EOF
7507 if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7508 then 7311 then
7509 ac_cv_func_mmap_fixed_mapped=yes 7312 have_mmap=yes
7510 else 7313 else
7511 echo "configure: failed program was:" >&5 7314 echo "configure: failed program was:" >&5
7512 cat conftest.$ac_ext >&5 7315 cat conftest.$ac_ext >&5
7513 rm -fr conftest* 7316 rm -fr conftest*
7514 ac_cv_func_mmap_fixed_mapped=no 7317 have_mmap=no
7515 fi 7318 fi
7516 rm -fr conftest* 7319 rm -fr conftest*
7517 7320 echo "$ac_t""$have_mmap" 1>&6
7518 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 7321 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
7519 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7520 { test "$extra_verbose" = "yes" && cat << \EOF
7521 Defining HAVE_MMAP 7322 Defining HAVE_MMAP
7522 EOF 7323 EOF
7523 cat >> confdefs.h <<\EOF 7324 cat >> confdefs.h <<\EOF
7524 #define HAVE_MMAP 1 7325 #define HAVE_MMAP 1
7525 EOF 7326 EOF
7526 } 7327 }
7527 7328
7528 fi 7329
7529 7330 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
7530 7331 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
7531 test "$GNU_MALLOC" != "yes" -a "$ac_cv_func_mmap_fixed_mapped" != "yes" && rel_alloc=no
7532 test "$rel_alloc" = "default" -a "$ac_cv_func_mmap_fixed_mapped" = "yes" && rel_alloc=yes
7533 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 7332 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
7534 Defining REL_ALLOC 7333 Defining REL_ALLOC
7535 EOF 7334 EOF
7536 cat >> confdefs.h <<\EOF 7335 cat >> confdefs.h <<\EOF
7537 #define REL_ALLOC 1 7336 #define REL_ALLOC 1
7538 EOF 7337 EOF
7539 } 7338 }
7540 7339
7541 7340
7542 echo $ac_n "checking for socket""... $ac_c" 1>&6 7341 echo $ac_n "checking for socket""... $ac_c" 1>&6
7543 echo "configure:7544: checking for socket" >&5 7342 echo "configure:7343: checking for socket" >&5
7544 7343
7545 cat > conftest.$ac_ext <<EOF 7344 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure" 7345 #line 7346 "configure"
7547 #include "confdefs.h" 7346 #include "confdefs.h"
7548 /* System header to define __stub macros and hopefully few prototypes, 7347 /* System header to define __stub macros and hopefully few prototypes,
7549 which can conflict with char socket(); below. */ 7348 which can conflict with char socket(); below. */
7550 #include <assert.h> 7349 #include <assert.h>
7551 /* Override any gcc2 internal prototype to avoid an error. */ 7350 /* Override any gcc2 internal prototype to avoid an error. */
7564 socket(); 7363 socket();
7565 #endif 7364 #endif
7566 7365
7567 ; return 0; } 7366 ; return 0; }
7568 EOF 7367 EOF
7569 if { (eval echo configure:7570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7368 if { (eval echo configure:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7570 rm -rf conftest* 7369 rm -rf conftest*
7571 eval "ac_cv_func_socket=yes" 7370 eval "ac_cv_func_socket=yes"
7572 else 7371 else
7573 echo "configure: failed program was:" >&5 7372 echo "configure: failed program was:" >&5
7574 cat conftest.$ac_ext >&5 7373 cat conftest.$ac_ext >&5
7579 7378
7580 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 7379 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7581 echo "$ac_t""yes" 1>&6 7380 echo "$ac_t""yes" 1>&6
7582 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 7381 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
7583 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 7382 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
7584 echo "configure:7585: checking for netinet/in.h" >&5 7383 echo "configure:7384: checking for netinet/in.h" >&5
7585 7384
7586 cat > conftest.$ac_ext <<EOF 7385 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure" 7386 #line 7387 "configure"
7588 #include "confdefs.h" 7387 #include "confdefs.h"
7589 #include <netinet/in.h> 7388 #include <netinet/in.h>
7590 EOF 7389 EOF
7591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7592 { (eval echo configure:7593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7391 { (eval echo configure:7392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7593 ac_err=`grep -v '^ *+' conftest.out` 7392 ac_err=`grep -v '^ *+' conftest.out`
7594 if test -z "$ac_err"; then 7393 if test -z "$ac_err"; then
7595 rm -rf conftest* 7394 rm -rf conftest*
7596 eval "ac_cv_header_$ac_safe=yes" 7395 eval "ac_cv_header_$ac_safe=yes"
7597 else 7396 else
7604 rm -f conftest* 7403 rm -f conftest*
7605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6 7405 echo "$ac_t""yes" 1>&6
7607 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 7406 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
7608 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 7407 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
7609 echo "configure:7610: checking for arpa/inet.h" >&5 7408 echo "configure:7409: checking for arpa/inet.h" >&5
7610 7409
7611 cat > conftest.$ac_ext <<EOF 7410 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure" 7411 #line 7412 "configure"
7613 #include "confdefs.h" 7412 #include "confdefs.h"
7614 #include <arpa/inet.h> 7413 #include <arpa/inet.h>
7615 EOF 7414 EOF
7616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7617 { (eval echo configure:7618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7416 { (eval echo configure:7417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7618 ac_err=`grep -v '^ *+' conftest.out` 7417 ac_err=`grep -v '^ *+' conftest.out`
7619 if test -z "$ac_err"; then 7418 if test -z "$ac_err"; then
7620 rm -rf conftest* 7419 rm -rf conftest*
7621 eval "ac_cv_header_$ac_safe=yes" 7420 eval "ac_cv_header_$ac_safe=yes"
7622 else 7421 else
7637 #define HAVE_SOCKETS 1 7436 #define HAVE_SOCKETS 1
7638 EOF 7437 EOF
7639 } 7438 }
7640 7439
7641 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 7440 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
7642 echo "configure:7643: checking "for sun_len member in struct sockaddr_un"" >&5 7441 echo "configure:7442: checking "for sun_len member in struct sockaddr_un"" >&5
7643 cat > conftest.$ac_ext <<EOF 7442 cat > conftest.$ac_ext <<EOF
7644 #line 7645 "configure" 7443 #line 7444 "configure"
7645 #include "confdefs.h" 7444 #include "confdefs.h"
7646 7445
7647 #include <sys/types.h> 7446 #include <sys/types.h>
7648 #include <sys/socket.h> 7447 #include <sys/socket.h>
7649 #include <sys/un.h> 7448 #include <sys/un.h>
7650 7449
7651 int main() { 7450 int main() {
7652 static struct sockaddr_un x; x.sun_len = 1; 7451 static struct sockaddr_un x; x.sun_len = 1;
7653 ; return 0; } 7452 ; return 0; }
7654 EOF 7453 EOF
7655 if { (eval echo configure:7656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7454 if { (eval echo configure:7455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7656 rm -rf conftest* 7455 rm -rf conftest*
7657 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 7456 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
7658 Defining HAVE_SOCKADDR_SUN_LEN 7457 Defining HAVE_SOCKADDR_SUN_LEN
7659 EOF 7458 EOF
7660 cat >> confdefs.h <<\EOF 7459 cat >> confdefs.h <<\EOF
7681 echo "$ac_t""no" 1>&6 7480 echo "$ac_t""no" 1>&6
7682 fi 7481 fi
7683 7482
7684 7483
7685 echo $ac_n "checking for msgget""... $ac_c" 1>&6 7484 echo $ac_n "checking for msgget""... $ac_c" 1>&6
7686 echo "configure:7687: checking for msgget" >&5 7485 echo "configure:7486: checking for msgget" >&5
7687 7486
7688 cat > conftest.$ac_ext <<EOF 7487 cat > conftest.$ac_ext <<EOF
7689 #line 7690 "configure" 7488 #line 7489 "configure"
7690 #include "confdefs.h" 7489 #include "confdefs.h"
7691 /* System header to define __stub macros and hopefully few prototypes, 7490 /* System header to define __stub macros and hopefully few prototypes,
7692 which can conflict with char msgget(); below. */ 7491 which can conflict with char msgget(); below. */
7693 #include <assert.h> 7492 #include <assert.h>
7694 /* Override any gcc2 internal prototype to avoid an error. */ 7493 /* Override any gcc2 internal prototype to avoid an error. */
7707 msgget(); 7506 msgget();
7708 #endif 7507 #endif
7709 7508
7710 ; return 0; } 7509 ; return 0; }
7711 EOF 7510 EOF
7712 if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7511 if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7713 rm -rf conftest* 7512 rm -rf conftest*
7714 eval "ac_cv_func_msgget=yes" 7513 eval "ac_cv_func_msgget=yes"
7715 else 7514 else
7716 echo "configure: failed program was:" >&5 7515 echo "configure: failed program was:" >&5
7717 cat conftest.$ac_ext >&5 7516 cat conftest.$ac_ext >&5
7722 7521
7723 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 7522 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
7724 echo "$ac_t""yes" 1>&6 7523 echo "$ac_t""yes" 1>&6
7725 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 7524 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
7726 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 7525 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
7727 echo "configure:7728: checking for sys/ipc.h" >&5 7526 echo "configure:7527: checking for sys/ipc.h" >&5
7728 7527
7729 cat > conftest.$ac_ext <<EOF 7528 cat > conftest.$ac_ext <<EOF
7730 #line 7731 "configure" 7529 #line 7530 "configure"
7731 #include "confdefs.h" 7530 #include "confdefs.h"
7732 #include <sys/ipc.h> 7531 #include <sys/ipc.h>
7733 EOF 7532 EOF
7734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7735 { (eval echo configure:7736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7534 { (eval echo configure:7535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7736 ac_err=`grep -v '^ *+' conftest.out` 7535 ac_err=`grep -v '^ *+' conftest.out`
7737 if test -z "$ac_err"; then 7536 if test -z "$ac_err"; then
7738 rm -rf conftest* 7537 rm -rf conftest*
7739 eval "ac_cv_header_$ac_safe=yes" 7538 eval "ac_cv_header_$ac_safe=yes"
7740 else 7539 else
7747 rm -f conftest* 7546 rm -f conftest*
7748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7749 echo "$ac_t""yes" 1>&6 7548 echo "$ac_t""yes" 1>&6
7750 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 7549 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
7751 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 7550 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
7752 echo "configure:7753: checking for sys/msg.h" >&5 7551 echo "configure:7552: checking for sys/msg.h" >&5
7753 7552
7754 cat > conftest.$ac_ext <<EOF 7553 cat > conftest.$ac_ext <<EOF
7755 #line 7756 "configure" 7554 #line 7555 "configure"
7756 #include "confdefs.h" 7555 #include "confdefs.h"
7757 #include <sys/msg.h> 7556 #include <sys/msg.h>
7758 EOF 7557 EOF
7759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7760 { (eval echo configure:7761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7559 { (eval echo configure:7560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7761 ac_err=`grep -v '^ *+' conftest.out` 7560 ac_err=`grep -v '^ *+' conftest.out`
7762 if test -z "$ac_err"; then 7561 if test -z "$ac_err"; then
7763 rm -rf conftest* 7562 rm -rf conftest*
7764 eval "ac_cv_header_$ac_safe=yes" 7563 eval "ac_cv_header_$ac_safe=yes"
7765 else 7564 else
7793 fi 7592 fi
7794 7593
7795 7594
7796 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 7595 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
7797 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 7596 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
7798 echo "configure:7799: checking for dirent.h" >&5 7597 echo "configure:7598: checking for dirent.h" >&5
7799 7598
7800 cat > conftest.$ac_ext <<EOF 7599 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure" 7600 #line 7601 "configure"
7802 #include "confdefs.h" 7601 #include "confdefs.h"
7803 #include <dirent.h> 7602 #include <dirent.h>
7804 EOF 7603 EOF
7805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7806 { (eval echo configure:7807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7605 { (eval echo configure:7606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7807 ac_err=`grep -v '^ *+' conftest.out` 7606 ac_err=`grep -v '^ *+' conftest.out`
7808 if test -z "$ac_err"; then 7607 if test -z "$ac_err"; then
7809 rm -rf conftest* 7608 rm -rf conftest*
7810 eval "ac_cv_header_$ac_safe=yes" 7609 eval "ac_cv_header_$ac_safe=yes"
7811 else 7610 else
7828 7627
7829 else 7628 else
7830 echo "$ac_t""no" 1>&6 7629 echo "$ac_t""no" 1>&6
7831 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 7630 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
7832 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 7631 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
7833 echo "configure:7834: checking for sys/dir.h" >&5 7632 echo "configure:7633: checking for sys/dir.h" >&5
7834 7633
7835 cat > conftest.$ac_ext <<EOF 7634 cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure" 7635 #line 7636 "configure"
7837 #include "confdefs.h" 7636 #include "confdefs.h"
7838 #include <sys/dir.h> 7637 #include <sys/dir.h>
7839 EOF 7638 EOF
7840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7841 { (eval echo configure:7842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7640 { (eval echo configure:7641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7842 ac_err=`grep -v '^ *+' conftest.out` 7641 ac_err=`grep -v '^ *+' conftest.out`
7843 if test -z "$ac_err"; then 7642 if test -z "$ac_err"; then
7844 rm -rf conftest* 7643 rm -rf conftest*
7845 eval "ac_cv_header_$ac_safe=yes" 7644 eval "ac_cv_header_$ac_safe=yes"
7846 else 7645 else
7869 fi 7668 fi
7870 7669
7871 7670
7872 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 7671 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
7873 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 7672 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
7874 echo "configure:7875: checking for nlist.h" >&5 7673 echo "configure:7674: checking for nlist.h" >&5
7875 7674
7876 cat > conftest.$ac_ext <<EOF 7675 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure" 7676 #line 7677 "configure"
7878 #include "confdefs.h" 7677 #include "confdefs.h"
7879 #include <nlist.h> 7678 #include <nlist.h>
7880 EOF 7679 EOF
7881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7882 { (eval echo configure:7883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7681 { (eval echo configure:7682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7883 ac_err=`grep -v '^ *+' conftest.out` 7682 ac_err=`grep -v '^ *+' conftest.out`
7884 if test -z "$ac_err"; then 7683 if test -z "$ac_err"; then
7885 rm -rf conftest* 7684 rm -rf conftest*
7886 eval "ac_cv_header_$ac_safe=yes" 7685 eval "ac_cv_header_$ac_safe=yes"
7887 else 7686 else
7947 7746
7948 7747
7949 7748
7950 7749
7951 echo "checking "for sound support"" 1>&6 7750 echo "checking "for sound support"" 1>&6
7952 echo "configure:7953: checking "for sound support"" >&5 7751 echo "configure:7752: checking "for sound support"" >&5
7953 case "$with_sound" in 7752 case "$with_sound" in
7954 native | both ) with_native_sound=yes;; 7753 native | both ) with_native_sound=yes;;
7955 nas | no ) with_native_sound=no;; 7754 nas | no ) with_native_sound=no;;
7956 esac 7755 esac
7957 if test "$with_native_sound" != "no"; then 7756 if test "$with_native_sound" != "no"; then
7973 else 7772 else
7974 case "$canonical" in \ 7773 case "$canonical" in \
7975 *-sgi-* ) 7774 *-sgi-* )
7976 7775
7977 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 7776 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
7978 echo "configure:7979: checking for ALopenport in -laudio" >&5 7777 echo "configure:7778: checking for ALopenport in -laudio" >&5
7979 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 7778 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
7980 7779
7981 xe_check_libs=" -laudio " 7780 xe_check_libs=" -laudio "
7982 cat > conftest.$ac_ext <<EOF 7781 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure" 7782 #line 7783 "configure"
7984 #include "confdefs.h" 7783 #include "confdefs.h"
7985 /* Override any gcc2 internal prototype to avoid an error. */ 7784 /* Override any gcc2 internal prototype to avoid an error. */
7986 /* We use char because int might match the return type of a gcc2 7785 /* We use char because int might match the return type of a gcc2
7987 builtin and then its argument prototype would still apply. */ 7786 builtin and then its argument prototype would still apply. */
7988 char ALopenport(); 7787 char ALopenport();
7989 7788
7990 int main() { 7789 int main() {
7991 ALopenport() 7790 ALopenport()
7992 ; return 0; } 7791 ; return 0; }
7993 EOF 7792 EOF
7994 if { (eval echo configure:7995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7793 if { (eval echo configure:7794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7995 rm -rf conftest* 7794 rm -rf conftest*
7996 eval "ac_cv_lib_$ac_lib_var=yes" 7795 eval "ac_cv_lib_$ac_lib_var=yes"
7997 else 7796 else
7998 echo "configure: failed program was:" >&5 7797 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5 7798 cat conftest.$ac_ext >&5
8018 fi 7817 fi
8019 fi ;; 7818 fi ;;
8020 hppa*-hp-hpux* ) 7819 hppa*-hp-hpux* )
8021 7820
8022 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 7821 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8023 echo "configure:8024: checking for AOpenAudio in -lAlib" >&5 7822 echo "configure:7823: checking for AOpenAudio in -lAlib" >&5
8024 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 7823 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8025 7824
8026 xe_check_libs=" -lAlib " 7825 xe_check_libs=" -lAlib "
8027 cat > conftest.$ac_ext <<EOF 7826 cat > conftest.$ac_ext <<EOF
8028 #line 8029 "configure" 7827 #line 7828 "configure"
8029 #include "confdefs.h" 7828 #include "confdefs.h"
8030 /* Override any gcc2 internal prototype to avoid an error. */ 7829 /* Override any gcc2 internal prototype to avoid an error. */
8031 /* We use char because int might match the return type of a gcc2 7830 /* We use char because int might match the return type of a gcc2
8032 builtin and then its argument prototype would still apply. */ 7831 builtin and then its argument prototype would still apply. */
8033 char AOpenAudio(); 7832 char AOpenAudio();
8034 7833
8035 int main() { 7834 int main() {
8036 AOpenAudio() 7835 AOpenAudio()
8037 ; return 0; } 7836 ; return 0; }
8038 EOF 7837 EOF
8039 if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7838 if { (eval echo configure:7839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8040 rm -rf conftest* 7839 rm -rf conftest*
8041 eval "ac_cv_lib_$ac_lib_var=yes" 7840 eval "ac_cv_lib_$ac_lib_var=yes"
8042 else 7841 else
8043 echo "configure: failed program was:" >&5 7842 echo "configure: failed program was:" >&5
8044 cat conftest.$ac_ext >&5 7843 cat conftest.$ac_ext >&5
8071 7870
8072 if test -z "$sound_found"; then 7871 if test -z "$sound_found"; then
8073 for dir in "machine" "sys" "linux"; do 7872 for dir in "machine" "sys" "linux"; do
8074 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 7873 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
8075 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 7874 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
8076 echo "configure:8077: checking for ${dir}/soundcard.h" >&5 7875 echo "configure:7876: checking for ${dir}/soundcard.h" >&5
8077 7876
8078 cat > conftest.$ac_ext <<EOF 7877 cat > conftest.$ac_ext <<EOF
8079 #line 8080 "configure" 7878 #line 7879 "configure"
8080 #include "confdefs.h" 7879 #include "confdefs.h"
8081 #include <${dir}/soundcard.h> 7880 #include <${dir}/soundcard.h>
8082 EOF 7881 EOF
8083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8084 { (eval echo configure:8085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7883 { (eval echo configure:7884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8085 ac_err=`grep -v '^ *+' conftest.out` 7884 ac_err=`grep -v '^ *+' conftest.out`
8086 if test -z "$ac_err"; then 7885 if test -z "$ac_err"; then
8087 rm -rf conftest* 7886 rm -rf conftest*
8088 eval "ac_cv_header_$ac_safe=yes" 7887 eval "ac_cv_header_$ac_safe=yes"
8089 else 7888 else
8149 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 7948 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
8150 echo " xemacs will be linked with \"nas.o\"" 7949 echo " xemacs will be linked with \"nas.o\""
8151 fi 7950 fi
8152 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi 7951 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi
8153 cat > conftest.$ac_ext <<EOF 7952 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure" 7953 #line 7954 "configure"
8155 #include "confdefs.h" 7954 #include "confdefs.h"
8156 #include <audio/Xtutil.h> 7955 #include <audio/Xtutil.h>
8157 EOF 7956 EOF
8158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8159 egrep "AuXtErrorJump" >/dev/null 2>&1; then 7958 egrep "AuXtErrorJump" >/dev/null 2>&1; then
8176 7975
8177 test -z "$with_tty" && with_tty=yes 7976 test -z "$with_tty" && with_tty=yes
8178 7977
8179 if test "$with_tty" = "yes" ; then 7978 if test "$with_tty" = "yes" ; then
8180 echo "checking for TTY-related features" 1>&6 7979 echo "checking for TTY-related features" 1>&6
8181 echo "configure:8182: checking for TTY-related features" >&5 7980 echo "configure:7981: checking for TTY-related features" >&5
8182 { test "$extra_verbose" = "yes" && cat << \EOF 7981 { test "$extra_verbose" = "yes" && cat << \EOF
8183 Defining HAVE_TTY 7982 Defining HAVE_TTY
8184 EOF 7983 EOF
8185 cat >> confdefs.h <<\EOF 7984 cat >> confdefs.h <<\EOF
8186 #define HAVE_TTY 1 7985 #define HAVE_TTY 1
8191 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\"" 7990 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\""
8192 fi 7991 fi
8193 7992
8194 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 7993 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8195 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 7994 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8196 echo "configure:8197: checking for termios.h" >&5 7995 echo "configure:7996: checking for termios.h" >&5
8197 7996
8198 cat > conftest.$ac_ext <<EOF 7997 cat > conftest.$ac_ext <<EOF
8199 #line 8200 "configure" 7998 #line 7999 "configure"
8200 #include "confdefs.h" 7999 #include "confdefs.h"
8201 #include <termios.h> 8000 #include <termios.h>
8202 EOF 8001 EOF
8203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8204 { (eval echo configure:8205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8003 { (eval echo configure:8004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8205 ac_err=`grep -v '^ *+' conftest.out` 8004 ac_err=`grep -v '^ *+' conftest.out`
8206 if test -z "$ac_err"; then 8005 if test -z "$ac_err"; then
8207 rm -rf conftest* 8006 rm -rf conftest*
8208 eval "ac_cv_header_$ac_safe=yes" 8007 eval "ac_cv_header_$ac_safe=yes"
8209 else 8008 else
8226 8025
8227 else 8026 else
8228 echo "$ac_t""no" 1>&6 8027 echo "$ac_t""no" 1>&6
8229 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8028 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8230 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8029 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8231 echo "configure:8232: checking for termio.h" >&5 8030 echo "configure:8031: checking for termio.h" >&5
8232 8031
8233 cat > conftest.$ac_ext <<EOF 8032 cat > conftest.$ac_ext <<EOF
8234 #line 8235 "configure" 8033 #line 8034 "configure"
8235 #include "confdefs.h" 8034 #include "confdefs.h"
8236 #include <termio.h> 8035 #include <termio.h>
8237 EOF 8036 EOF
8238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8239 { (eval echo configure:8240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8038 { (eval echo configure:8039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8240 ac_err=`grep -v '^ *+' conftest.out` 8039 ac_err=`grep -v '^ *+' conftest.out`
8241 if test -z "$ac_err"; then 8040 if test -z "$ac_err"; then
8242 rm -rf conftest* 8041 rm -rf conftest*
8243 eval "ac_cv_header_$ac_safe=yes" 8042 eval "ac_cv_header_$ac_safe=yes"
8244 else 8043 else
8264 fi 8063 fi
8265 8064
8266 fi 8065 fi
8267 8066
8268 8067
8269 #### Attn: Bill Perry: Remove next line when GPM support is added 8068 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
8270 test -z "$with_gpm" && with_gpm=no
8271
8272 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
8273 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 8069 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
8274 echo "configure:8275: checking for gpm.h" >&5 8070 echo "configure:8071: checking for gpm.h" >&5
8275 8071
8276 cat > conftest.$ac_ext <<EOF 8072 cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure" 8073 #line 8074 "configure"
8278 #include "confdefs.h" 8074 #include "confdefs.h"
8279 #include <gpm.h> 8075 #include <gpm.h>
8280 EOF 8076 EOF
8281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8282 { (eval echo configure:8283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8078 { (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8283 ac_err=`grep -v '^ *+' conftest.out` 8079 ac_err=`grep -v '^ *+' conftest.out`
8284 if test -z "$ac_err"; then 8080 if test -z "$ac_err"; then
8285 rm -rf conftest* 8081 rm -rf conftest*
8286 eval "ac_cv_header_$ac_safe=yes" 8082 eval "ac_cv_header_$ac_safe=yes"
8287 else 8083 else
8299 echo "$ac_t""no" 1>&6 8095 echo "$ac_t""no" 1>&6
8300 with_gpm=no 8096 with_gpm=no
8301 fi 8097 fi
8302 } 8098 }
8303 test -z "$with_gpm" && { 8099 test -z "$with_gpm" && {
8304 echo $ac_n "checking for connect_to_gpm in -lgpm""... $ac_c" 1>&6 8100 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
8305 echo "configure:8306: checking for connect_to_gpm in -lgpm" >&5 8101 echo "configure:8102: checking for Gpm_Open in -lgpm" >&5
8306 ac_lib_var=`echo gpm'_'connect_to_gpm | sed 'y%./+-%__p_%'` 8102 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
8307 8103
8308 xe_check_libs=" -lgpm " 8104 xe_check_libs=" -lgpm "
8309 cat > conftest.$ac_ext <<EOF 8105 cat > conftest.$ac_ext <<EOF
8310 #line 8311 "configure" 8106 #line 8107 "configure"
8311 #include "confdefs.h" 8107 #include "confdefs.h"
8312 /* Override any gcc2 internal prototype to avoid an error. */ 8108 /* Override any gcc2 internal prototype to avoid an error. */
8313 /* We use char because int might match the return type of a gcc2 8109 /* We use char because int might match the return type of a gcc2
8314 builtin and then its argument prototype would still apply. */ 8110 builtin and then its argument prototype would still apply. */
8315 char connect_to_gpm(); 8111 char Gpm_Open();
8316 8112
8317 int main() { 8113 int main() {
8318 connect_to_gpm() 8114 Gpm_Open()
8319 ; return 0; } 8115 ; return 0; }
8320 EOF 8116 EOF
8321 if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8322 rm -rf conftest* 8118 rm -rf conftest*
8323 eval "ac_cv_lib_$ac_lib_var=yes" 8119 eval "ac_cv_lib_$ac_lib_var=yes"
8324 else 8120 else
8325 echo "configure: failed program was:" >&5 8121 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5 8122 cat conftest.$ac_ext >&5
8355 fi 8151 fi
8356 8152
8357 if test -z "$with_ncurses"; then 8153 if test -z "$with_ncurses"; then
8358 8154
8359 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 8155 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
8360 echo "configure:8361: checking for tgetent in -lncurses" >&5 8156 echo "configure:8157: checking for tgetent in -lncurses" >&5
8361 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 8157 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
8362 8158
8363 xe_check_libs=" -lncurses " 8159 xe_check_libs=" -lncurses "
8364 cat > conftest.$ac_ext <<EOF 8160 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure" 8161 #line 8162 "configure"
8366 #include "confdefs.h" 8162 #include "confdefs.h"
8367 /* Override any gcc2 internal prototype to avoid an error. */ 8163 /* Override any gcc2 internal prototype to avoid an error. */
8368 /* We use char because int might match the return type of a gcc2 8164 /* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */ 8165 builtin and then its argument prototype would still apply. */
8370 char tgetent(); 8166 char tgetent();
8371 8167
8372 int main() { 8168 int main() {
8373 tgetent() 8169 tgetent()
8374 ; return 0; } 8170 ; return 0; }
8375 EOF 8171 EOF
8376 if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8172 if { (eval echo configure:8173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8377 rm -rf conftest* 8173 rm -rf conftest*
8378 eval "ac_cv_lib_$ac_lib_var=yes" 8174 eval "ac_cv_lib_$ac_lib_var=yes"
8379 else 8175 else
8380 echo "configure: failed program was:" >&5 8176 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5 8177 cat conftest.$ac_ext >&5
8404 EOF 8200 EOF
8405 } 8201 }
8406 8202
8407 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 8203 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
8408 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 8204 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
8409 echo "configure:8410: checking for ncurses/curses.h" >&5 8205 echo "configure:8206: checking for ncurses/curses.h" >&5
8410 8206
8411 cat > conftest.$ac_ext <<EOF 8207 cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure" 8208 #line 8209 "configure"
8413 #include "confdefs.h" 8209 #include "confdefs.h"
8414 #include <ncurses/curses.h> 8210 #include <ncurses/curses.h>
8415 EOF 8211 EOF
8416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8417 { (eval echo configure:8418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8213 { (eval echo configure:8214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8418 ac_err=`grep -v '^ *+' conftest.out` 8214 ac_err=`grep -v '^ *+' conftest.out`
8419 if test -z "$ac_err"; then 8215 if test -z "$ac_err"; then
8420 rm -rf conftest* 8216 rm -rf conftest*
8421 eval "ac_cv_header_$ac_safe=yes" 8217 eval "ac_cv_header_$ac_safe=yes"
8422 else 8218 else
8434 echo "$ac_t""no" 1>&6 8230 echo "$ac_t""no" 1>&6
8435 fi 8231 fi
8436 8232
8437 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 8233 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
8438 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 8234 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
8439 echo "configure:8440: checking for ncurses/term.h" >&5 8235 echo "configure:8236: checking for ncurses/term.h" >&5
8440 8236
8441 cat > conftest.$ac_ext <<EOF 8237 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure" 8238 #line 8239 "configure"
8443 #include "confdefs.h" 8239 #include "confdefs.h"
8444 #include <ncurses/term.h> 8240 #include <ncurses/term.h>
8445 EOF 8241 EOF
8446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8447 { (eval echo configure:8448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8243 { (eval echo configure:8244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8448 ac_err=`grep -v '^ *+' conftest.out` 8244 ac_err=`grep -v '^ *+' conftest.out`
8449 if test -z "$ac_err"; then 8245 if test -z "$ac_err"; then
8450 rm -rf conftest* 8246 rm -rf conftest*
8451 eval "ac_cv_header_$ac_safe=yes" 8247 eval "ac_cv_header_$ac_safe=yes"
8452 else 8248 else
8467 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then 8263 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
8468 echo " xemacs will be linked with \"terminfo.o\"" 8264 echo " xemacs will be linked with \"terminfo.o\""
8469 fi 8265 fi
8470 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi 8266 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
8471 8267
8472 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 8268 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
8473 save_c_switch_site="$c_switch_site" 8269 save_c_switch_site="$c_switch_site"
8474 c_switch_site="$c_switch_site -I/usr/include/ncurses" 8270 c_switch_site="$c_switch_site -I/usr/include/ncurses"
8475 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 8271 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
8476 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 8272 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
8477 echo "configure:8478: checking for ncurses/curses.h" >&5 8273 echo "configure:8274: checking for ncurses/curses.h" >&5
8478 8274
8479 cat > conftest.$ac_ext <<EOF 8275 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure" 8276 #line 8277 "configure"
8481 #include "confdefs.h" 8277 #include "confdefs.h"
8482 #include <ncurses/curses.h> 8278 #include <ncurses/curses.h>
8483 EOF 8279 EOF
8484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8485 { (eval echo configure:8486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8281 { (eval echo configure:8282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8486 ac_err=`grep -v '^ *+' conftest.out` 8282 ac_err=`grep -v '^ *+' conftest.out`
8487 if test -z "$ac_err"; then 8283 if test -z "$ac_err"; then
8488 rm -rf conftest* 8284 rm -rf conftest*
8489 eval "ac_cv_header_$ac_safe=yes" 8285 eval "ac_cv_header_$ac_safe=yes"
8490 else 8286 else
8500 curses_h_path=ncurses/curses.h 8296 curses_h_path=ncurses/curses.h
8501 else 8297 else
8502 echo "$ac_t""no" 1>&6 8298 echo "$ac_t""no" 1>&6
8503 fi 8299 fi
8504 8300
8505 if test "$ac_cv_header_ncurses_curses_h" = "yes"; 8301 if test "$ac_cv_header_ncurses_curses_h" = "yes"
8506 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2 8302 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
8507 else c_switch_site="$save_c_switch_site" 8303 else c_switch_site="$save_c_switch_site"
8508 fi 8304 fi
8509 fi 8305 fi
8510 else if test "$have_terminfo" = "yes"; then 8306 else if test "$have_terminfo" = "yes"; then
8515 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 8311 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
8516 else 8312 else
8517 for lib in curses termlib termcap; do 8313 for lib in curses termlib termcap; do
8518 8314
8519 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 8315 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
8520 echo "configure:8521: checking for tgetent in -l$lib" >&5 8316 echo "configure:8317: checking for tgetent in -l$lib" >&5
8521 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 8317 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
8522 8318
8523 xe_check_libs=" -l$lib " 8319 xe_check_libs=" -l$lib "
8524 cat > conftest.$ac_ext <<EOF 8320 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure" 8321 #line 8322 "configure"
8526 #include "confdefs.h" 8322 #include "confdefs.h"
8527 /* Override any gcc2 internal prototype to avoid an error. */ 8323 /* Override any gcc2 internal prototype to avoid an error. */
8528 /* We use char because int might match the return type of a gcc2 8324 /* We use char because int might match the return type of a gcc2
8529 builtin and then its argument prototype would still apply. */ 8325 builtin and then its argument prototype would still apply. */
8530 char tgetent(); 8326 char tgetent();
8531 8327
8532 int main() { 8328 int main() {
8533 tgetent() 8329 tgetent()
8534 ; return 0; } 8330 ; return 0; }
8535 EOF 8331 EOF
8536 if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8332 if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8537 rm -rf conftest* 8333 rm -rf conftest*
8538 eval "ac_cv_lib_$ac_lib_var=yes" 8334 eval "ac_cv_lib_$ac_lib_var=yes"
8539 else 8335 else
8540 echo "configure: failed program was:" >&5 8336 echo "configure: failed program was:" >&5
8541 cat conftest.$ac_ext >&5 8337 cat conftest.$ac_ext >&5
8562 if test -n "$libs_termcap"; then 8358 if test -n "$libs_termcap"; then
8563 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 8359 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
8564 else 8360 else
8565 8361
8566 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 8362 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
8567 echo "configure:8568: checking for tgetent in -lcurses" >&5 8363 echo "configure:8364: checking for tgetent in -lcurses" >&5
8568 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 8364 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
8569 8365
8570 xe_check_libs=" -lcurses " 8366 xe_check_libs=" -lcurses "
8571 cat > conftest.$ac_ext <<EOF 8367 cat > conftest.$ac_ext <<EOF
8572 #line 8573 "configure" 8368 #line 8369 "configure"
8573 #include "confdefs.h" 8369 #include "confdefs.h"
8574 /* Override any gcc2 internal prototype to avoid an error. */ 8370 /* Override any gcc2 internal prototype to avoid an error. */
8575 /* We use char because int might match the return type of a gcc2 8371 /* We use char because int might match the return type of a gcc2
8576 builtin and then its argument prototype would still apply. */ 8372 builtin and then its argument prototype would still apply. */
8577 char tgetent(); 8373 char tgetent();
8578 8374
8579 int main() { 8375 int main() {
8580 tgetent() 8376 tgetent()
8581 ; return 0; } 8377 ; return 0; }
8582 EOF 8378 EOF
8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8379 if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8584 rm -rf conftest* 8380 rm -rf conftest*
8585 eval "ac_cv_lib_$ac_lib_var=yes" 8381 eval "ac_cv_lib_$ac_lib_var=yes"
8586 else 8382 else
8587 echo "configure: failed program was:" >&5 8383 echo "configure: failed program was:" >&5
8588 cat conftest.$ac_ext >&5 8384 cat conftest.$ac_ext >&5
8595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 8391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8596 echo "$ac_t""yes" 1>&6 8392 echo "$ac_t""yes" 1>&6
8597 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 8393 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
8598 else 8394 else
8599 echo "$ac_t""no" 1>&6 8395 echo "$ac_t""no" 1>&6
8600
8601 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 8396 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
8602 echo "configure:8603: checking for tgetent in -ltermcap" >&5 8397 echo "configure:8398: checking for tgetent in -ltermcap" >&5
8603 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 8398 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
8604 8399
8605 xe_check_libs=" -ltermcap " 8400 xe_check_libs=" -ltermcap "
8606 cat > conftest.$ac_ext <<EOF 8401 cat > conftest.$ac_ext <<EOF
8607 #line 8608 "configure" 8402 #line 8403 "configure"
8608 #include "confdefs.h" 8403 #include "confdefs.h"
8609 /* Override any gcc2 internal prototype to avoid an error. */ 8404 /* Override any gcc2 internal prototype to avoid an error. */
8610 /* We use char because int might match the return type of a gcc2 8405 /* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */ 8406 builtin and then its argument prototype would still apply. */
8612 char tgetent(); 8407 char tgetent();
8613 8408
8614 int main() { 8409 int main() {
8615 tgetent() 8410 tgetent()
8616 ; return 0; } 8411 ; return 0; }
8617 EOF 8412 EOF
8618 if { (eval echo configure:8619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8413 if { (eval echo configure:8414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8619 rm -rf conftest* 8414 rm -rf conftest*
8620 eval "ac_cv_lib_$ac_lib_var=yes" 8415 eval "ac_cv_lib_$ac_lib_var=yes"
8621 else 8416 else
8622 echo "configure: failed program was:" >&5 8417 echo "configure: failed program was:" >&5
8623 cat conftest.$ac_ext >&5 8418 cat conftest.$ac_ext >&5
8667 eval "with_${feature}=no" 8462 eval "with_${feature}=no"
8668 done 8463 done
8669 fi 8464 fi
8670 8465
8671 echo "checking for database support" 1>&6 8466 echo "checking for database support" 1>&6
8672 echo "configure:8673: checking for database support" >&5 8467 echo "configure:8468: checking for database support" >&5
8673 8468
8674 if test "$with_database_gnudbm" != "no"; then 8469 if test "$with_database_gnudbm" != "no"; then
8675 8470
8676 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 8471 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
8677 echo "configure:8678: checking for dbm_open in -lgdbm" >&5 8472 echo "configure:8473: checking for dbm_open in -lgdbm" >&5
8678 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 8473 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
8679 8474
8680 xe_check_libs=" -lgdbm " 8475 xe_check_libs=" -lgdbm "
8681 cat > conftest.$ac_ext <<EOF 8476 cat > conftest.$ac_ext <<EOF
8682 #line 8683 "configure" 8477 #line 8478 "configure"
8683 #include "confdefs.h" 8478 #include "confdefs.h"
8684 /* Override any gcc2 internal prototype to avoid an error. */ 8479 /* Override any gcc2 internal prototype to avoid an error. */
8685 /* We use char because int might match the return type of a gcc2 8480 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */ 8481 builtin and then its argument prototype would still apply. */
8687 char dbm_open(); 8482 char dbm_open();
8688 8483
8689 int main() { 8484 int main() {
8690 dbm_open() 8485 dbm_open()
8691 ; return 0; } 8486 ; return 0; }
8692 EOF 8487 EOF
8693 if { (eval echo configure:8694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8488 if { (eval echo configure:8489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8694 rm -rf conftest* 8489 rm -rf conftest*
8695 eval "ac_cv_lib_$ac_lib_var=yes" 8490 eval "ac_cv_lib_$ac_lib_var=yes"
8696 else 8491 else
8697 echo "configure: failed program was:" >&5 8492 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5 8493 cat conftest.$ac_ext >&5
8710 fi 8505 fi
8711 8506
8712 8507
8713 if test "$with_database_gnudbm" != "yes"; then 8508 if test "$with_database_gnudbm" != "yes"; then
8714 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 8509 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8715 echo "configure:8716: checking for dbm_open" >&5 8510 echo "configure:8511: checking for dbm_open" >&5
8716 8511
8717 cat > conftest.$ac_ext <<EOF 8512 cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure" 8513 #line 8514 "configure"
8719 #include "confdefs.h" 8514 #include "confdefs.h"
8720 /* System header to define __stub macros and hopefully few prototypes, 8515 /* System header to define __stub macros and hopefully few prototypes,
8721 which can conflict with char dbm_open(); below. */ 8516 which can conflict with char dbm_open(); below. */
8722 #include <assert.h> 8517 #include <assert.h>
8723 /* Override any gcc2 internal prototype to avoid an error. */ 8518 /* Override any gcc2 internal prototype to avoid an error. */
8736 dbm_open(); 8531 dbm_open();
8737 #endif 8532 #endif
8738 8533
8739 ; return 0; } 8534 ; return 0; }
8740 EOF 8535 EOF
8741 if { (eval echo configure:8742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8536 if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8742 rm -rf conftest* 8537 rm -rf conftest*
8743 eval "ac_cv_func_dbm_open=yes" 8538 eval "ac_cv_func_dbm_open=yes"
8744 else 8539 else
8745 echo "configure: failed program was:" >&5 8540 echo "configure: failed program was:" >&5
8746 cat conftest.$ac_ext >&5 8541 cat conftest.$ac_ext >&5
8772 fi 8567 fi
8773 fi 8568 fi
8774 8569
8775 if test "$with_database_dbm" != "no"; then 8570 if test "$with_database_dbm" != "no"; then
8776 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 8571 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8777 echo "configure:8778: checking for dbm_open" >&5 8572 echo "configure:8573: checking for dbm_open" >&5
8778 8573
8779 cat > conftest.$ac_ext <<EOF 8574 cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure" 8575 #line 8576 "configure"
8781 #include "confdefs.h" 8576 #include "confdefs.h"
8782 /* System header to define __stub macros and hopefully few prototypes, 8577 /* System header to define __stub macros and hopefully few prototypes,
8783 which can conflict with char dbm_open(); below. */ 8578 which can conflict with char dbm_open(); below. */
8784 #include <assert.h> 8579 #include <assert.h>
8785 /* Override any gcc2 internal prototype to avoid an error. */ 8580 /* Override any gcc2 internal prototype to avoid an error. */
8798 dbm_open(); 8593 dbm_open();
8799 #endif 8594 #endif
8800 8595
8801 ; return 0; } 8596 ; return 0; }
8802 EOF 8597 EOF
8803 if { (eval echo configure:8804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8598 if { (eval echo configure:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8804 rm -rf conftest* 8599 rm -rf conftest*
8805 eval "ac_cv_func_dbm_open=yes" 8600 eval "ac_cv_func_dbm_open=yes"
8806 else 8601 else
8807 echo "configure: failed program was:" >&5 8602 echo "configure: failed program was:" >&5
8808 cat conftest.$ac_ext >&5 8603 cat conftest.$ac_ext >&5
8819 fi 8614 fi
8820 8615
8821 if test "$need_libdbm" != "no"; then 8616 if test "$need_libdbm" != "no"; then
8822 8617
8823 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 8618 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8824 echo "configure:8825: checking for dbm_open in -ldbm" >&5 8619 echo "configure:8620: checking for dbm_open in -ldbm" >&5
8825 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 8620 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8826 8621
8827 xe_check_libs=" -ldbm " 8622 xe_check_libs=" -ldbm "
8828 cat > conftest.$ac_ext <<EOF 8623 cat > conftest.$ac_ext <<EOF
8829 #line 8830 "configure" 8624 #line 8625 "configure"
8830 #include "confdefs.h" 8625 #include "confdefs.h"
8831 /* Override any gcc2 internal prototype to avoid an error. */ 8626 /* Override any gcc2 internal prototype to avoid an error. */
8832 /* We use char because int might match the return type of a gcc2 8627 /* We use char because int might match the return type of a gcc2
8833 builtin and then its argument prototype would still apply. */ 8628 builtin and then its argument prototype would still apply. */
8834 char dbm_open(); 8629 char dbm_open();
8835 8630
8836 int main() { 8631 int main() {
8837 dbm_open() 8632 dbm_open()
8838 ; return 0; } 8633 ; return 0; }
8839 EOF 8634 EOF
8840 if { (eval echo configure:8841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8635 if { (eval echo configure:8636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8841 rm -rf conftest* 8636 rm -rf conftest*
8842 eval "ac_cv_lib_$ac_lib_var=yes" 8637 eval "ac_cv_lib_$ac_lib_var=yes"
8843 else 8638 else
8844 echo "configure: failed program was:" >&5 8639 echo "configure: failed program was:" >&5
8845 cat conftest.$ac_ext >&5 8640 cat conftest.$ac_ext >&5
8872 fi 8667 fi
8873 fi 8668 fi
8874 8669
8875 if test "$with_database_berkdb" != "no"; then 8670 if test "$with_database_berkdb" != "no"; then
8876 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 8671 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8877 echo "configure:8878: checking for dbopen" >&5 8672 echo "configure:8673: checking for dbopen" >&5
8878 8673
8879 cat > conftest.$ac_ext <<EOF 8674 cat > conftest.$ac_ext <<EOF
8880 #line 8881 "configure" 8675 #line 8676 "configure"
8881 #include "confdefs.h" 8676 #include "confdefs.h"
8882 /* System header to define __stub macros and hopefully few prototypes, 8677 /* System header to define __stub macros and hopefully few prototypes,
8883 which can conflict with char dbopen(); below. */ 8678 which can conflict with char dbopen(); below. */
8884 #include <assert.h> 8679 #include <assert.h>
8885 /* Override any gcc2 internal prototype to avoid an error. */ 8680 /* Override any gcc2 internal prototype to avoid an error. */
8898 dbopen(); 8693 dbopen();
8899 #endif 8694 #endif
8900 8695
8901 ; return 0; } 8696 ; return 0; }
8902 EOF 8697 EOF
8903 if { (eval echo configure:8904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8698 if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8904 rm -rf conftest* 8699 rm -rf conftest*
8905 eval "ac_cv_func_dbopen=yes" 8700 eval "ac_cv_func_dbopen=yes"
8906 else 8701 else
8907 echo "configure: failed program was:" >&5 8702 echo "configure: failed program was:" >&5
8908 cat conftest.$ac_ext >&5 8703 cat conftest.$ac_ext >&5
8919 fi 8714 fi
8920 8715
8921 if test "$need_libdb" != "no"; then 8716 if test "$need_libdb" != "no"; then
8922 8717
8923 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 8718 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8924 echo "configure:8925: checking for dbopen in -ldb" >&5 8719 echo "configure:8720: checking for dbopen in -ldb" >&5
8925 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 8720 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
8926 8721
8927 xe_check_libs=" -ldb " 8722 xe_check_libs=" -ldb "
8928 cat > conftest.$ac_ext <<EOF 8723 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure" 8724 #line 8725 "configure"
8930 #include "confdefs.h" 8725 #include "confdefs.h"
8931 /* Override any gcc2 internal prototype to avoid an error. */ 8726 /* Override any gcc2 internal prototype to avoid an error. */
8932 /* We use char because int might match the return type of a gcc2 8727 /* We use char because int might match the return type of a gcc2
8933 builtin and then its argument prototype would still apply. */ 8728 builtin and then its argument prototype would still apply. */
8934 char dbopen(); 8729 char dbopen();
8935 8730
8936 int main() { 8731 int main() {
8937 dbopen() 8732 dbopen()
8938 ; return 0; } 8733 ; return 0; }
8939 EOF 8734 EOF
8940 if { (eval echo configure:8941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8735 if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8941 rm -rf conftest* 8736 rm -rf conftest*
8942 eval "ac_cv_lib_$ac_lib_var=yes" 8737 eval "ac_cv_lib_$ac_lib_var=yes"
8943 else 8738 else
8944 echo "configure: failed program was:" >&5 8739 echo "configure: failed program was:" >&5
8945 cat conftest.$ac_ext >&5 8740 cat conftest.$ac_ext >&5
8959 8754
8960 fi 8755 fi
8961 if test "$with_database_berkdb" = "yes"; then 8756 if test "$with_database_berkdb" = "yes"; then
8962 for path in "db/db.h" "db.h"; do 8757 for path in "db/db.h" "db.h"; do
8963 cat > conftest.$ac_ext <<EOF 8758 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure" 8759 #line 8760 "configure"
8965 #include "confdefs.h" 8760 #include "confdefs.h"
8966 #ifdef HAVE_INTTYPES_H 8761 #ifdef HAVE_INTTYPES_H
8967 #define __BIT_TYPES_DEFINED__ 8762 #define __BIT_TYPES_DEFINED__
8968 #include <inttypes.h> 8763 #include <inttypes.h>
8969 typedef uint8_t u_int8_t; 8764 typedef uint8_t u_int8_t;
8977 8772
8978 int main() { 8773 int main() {
8979 8774
8980 ; return 0; } 8775 ; return 0; }
8981 EOF 8776 EOF
8982 if { (eval echo configure:8983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8777 if { (eval echo configure:8778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8983 rm -rf conftest* 8778 rm -rf conftest*
8984 db_h_path="$path"; break 8779 db_h_path="$path"; break
8985 else 8780 else
8986 echo "configure: failed program was:" >&5 8781 echo "configure: failed program was:" >&5
8987 cat conftest.$ac_ext >&5 8782 cat conftest.$ac_ext >&5
9029 fi 8824 fi
9030 8825
9031 if test "$with_socks" = "yes"; then 8826 if test "$with_socks" = "yes"; then
9032 8827
9033 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 8828 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9034 echo "configure:9035: checking for SOCKSinit in -lsocks" >&5 8829 echo "configure:8830: checking for SOCKSinit in -lsocks" >&5
9035 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 8830 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9036 8831
9037 xe_check_libs=" -lsocks " 8832 xe_check_libs=" -lsocks "
9038 cat > conftest.$ac_ext <<EOF 8833 cat > conftest.$ac_ext <<EOF
9039 #line 9040 "configure" 8834 #line 8835 "configure"
9040 #include "confdefs.h" 8835 #include "confdefs.h"
9041 /* Override any gcc2 internal prototype to avoid an error. */ 8836 /* Override any gcc2 internal prototype to avoid an error. */
9042 /* We use char because int might match the return type of a gcc2 8837 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */ 8838 builtin and then its argument prototype would still apply. */
9044 char SOCKSinit(); 8839 char SOCKSinit();
9045 8840
9046 int main() { 8841 int main() {
9047 SOCKSinit() 8842 SOCKSinit()
9048 ; return 0; } 8843 ; return 0; }
9049 EOF 8844 EOF
9050 if { (eval echo configure:9051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8845 if { (eval echo configure:8846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9051 rm -rf conftest* 8846 rm -rf conftest*
9052 eval "ac_cv_lib_$ac_lib_var=yes" 8847 eval "ac_cv_lib_$ac_lib_var=yes"
9053 else 8848 else
9054 echo "configure: failed program was:" >&5 8849 echo "configure: failed program was:" >&5
9055 cat conftest.$ac_ext >&5 8850 cat conftest.$ac_ext >&5
9098 } 8893 }
9099 8894
9100 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 8895 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
9101 fi 8896 fi
9102 8897
9103 c_switch_general="-DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system" 8898 c_switch_general=`echo -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system`
9104 c_switch_window_system="$c_switch_x_site $X_CFLAGS" 8899 c_switch_window_system=`echo $c_switch_x_site $X_CFLAGS`
9105 c_switch_all="$c_switch_general $c_switch_window_system" 8900 c_switch_all=`echo $c_switch_general $c_switch_window_system`
9106 ld_switch_general="$ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run" 8901 ld_switch_general=`echo $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run`
9107 ld_switch_window_system="$ld_switch_x_site" 8902 ld_switch_window_system=`echo $ld_switch_x_site`
9108 ld_switch_all="$ld_switch_general $ld_switch_window_system" 8903 ld_switch_all=`echo $ld_switch_general $ld_switch_window_system`
9109 ld_libs_general="$LIBS $libs_machine $libs_system $libs_standard" 8904 ld_libs_general=`echo $LIBS $libs_machine $libs_system $libs_standard`
9110 ld_libs_window_system="$X_PRE_LIBS $libs_x $X_EXTRA_LIBS" 8905 ld_libs_window_system=`echo $X_EXTRA_LIBS $libs_x $X_PRE_LIBS`
9111 ld_libs_all="$ld_libs_window_system $ld_libs_general" 8906 ld_libs_all=`echo $ld_libs_window_system $ld_libs_general`
9112 8907
9113 SRC_SUBDIR_DEPS="$MAKE_SUBDIR" 8908 SRC_SUBDIR_DEPS="$MAKE_SUBDIR"
9114 8909
9115 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi 8910 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
9116 internal_makefile_list="Makefile" 8911 internal_makefile_list="Makefile"
9117 SUBDIR_MAKEFILES='' 8912 SUBDIR_MAKEFILES=''
9118 test -d lock || mkdir lock 8913 test -d lock || mkdir lock
9119 for dir in $MAKE_SUBDIR; do 8914 for dir in $MAKE_SUBDIR; do
9120 test -d "$dir" || mkdir "$dir" 8915 test -d "$dir" || mkdir "$dir"
9121 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $dir/Makefile" 8916 SUBDIR_MAKEFILES=`echo $SUBDIR_MAKEFILES $dir/Makefile`
9122 internal_makefile_list="$internal_makefile_list $dir/Makefile.in" 8917 internal_makefile_list=`echo $internal_makefile_list $dir/Makefile.in`
9123 done 8918 done
9124 8919
9125 8920
9126 8921
9127 if test "$extra_verbose" = "yes"; then 8922 if test "$extra_verbose" = "yes"; then
9133 echo "ld_switch_general = $ld_switch_general" 8928 echo "ld_switch_general = $ld_switch_general"
9134 echo "ld_switch_window_system = $ld_switch_window_system" 8929 echo "ld_switch_window_system = $ld_switch_window_system"
9135 echo "ld_switch_all = $ld_switch_all" 8930 echo "ld_switch_all = $ld_switch_all"
9136 echo "ld_libs_general = $ld_libs_general" 8931 echo "ld_libs_general = $ld_libs_general"
9137 echo "ld_libs_window_system = $ld_libs_window_system" 8932 echo "ld_libs_window_system = $ld_libs_window_system"
9138 echo "ld_libs_all = $ld_libs_all" 8933 echo "ld_libs_all=\"$ld_libs_all\""
9139 echo "" 8934 echo ""
9140 fi 8935 fi
9141 8936
9142 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then 8937 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
9143 echo "creating src/gdbinit" 8938 echo "creating src/gdbinit"; echo ""
9144 echo "source $srcdir/src/gdbinit" > src/gdbinit 8939 echo "source $srcdir/src/gdbinit" > src/gdbinit
9145 fi 8940 fi
9146 8941
9147 cat > conftest.$ac_ext <<EOF 8942 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure" 8943 #line 8944 "configure"
9149 #include "confdefs.h" 8944 #include "confdefs.h"
9150 8945
9151 int main() { 8946 int main() {
9152 #ifndef __SUNPRO_C 8947 #ifndef __SUNPRO_C
9153 #error No Sun source browser capability 8948 #error No Sun source browser capability
9154 #endif 8949 #endif
9155 8950
9156 ; return 0; } 8951 ; return 0; }
9157 EOF 8952 EOF
9158 if { (eval echo configure:9159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8953 if { (eval echo configure:8954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9159 rm -rf conftest* 8954 rm -rf conftest*
9160 echo "creating .sbinit" 8955 echo "creating .sbinit"; echo ""
9161 ( echo "# For use with Sun WorkShop's Source browser." 8956 ( echo "# For use with Sun WorkShop's Source browser."
9162 echo "# See sbquery(1) and sbinit(4) for more information" 8957 echo "# See sbquery(1) and sbinit(4) for more information"
9163 for dir in $MAKE_SUBDIR; do echo "import $dir"; done 8958 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
9164 ) > .sbinit 8959 ) > .sbinit
9165 8960
9326 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 9121 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9327 Defining I18N3 9122 Defining I18N3
9328 EOF 9123 EOF
9329 cat >> confdefs.h <<\EOF 9124 cat >> confdefs.h <<\EOF
9330 #define I18N3 1 9125 #define I18N3 1
9331 EOF
9332 }
9333
9334 test "$with_mocklisp" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9335 Defining MOCKLISP_SUPPORT
9336 EOF
9337 cat >> confdefs.h <<\EOF
9338 #define MOCKLISP_SUPPORT 1
9339 EOF 9126 EOF
9340 } 9127 }
9341 9128
9342 test "$with_gcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 9129 test "$with_gcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9343 Defining USE_GCC 9130 Defining USE_GCC
9537 if test "$with_xmu" != yes -a "$with_x11" = yes; then 9324 if test "$with_xmu" != yes -a "$with_x11" = yes; then
9538 echo " No Xmu; substituting equivalent routines." 9325 echo " No Xmu; substituting equivalent routines."
9539 fi 9326 fi
9540 9327
9541 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." 9328 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
9542 if test "$with_xpm" = yes; then 9329 if test "$with_xpm" = yes; then
9543 echo " Compiling in support for XPM images." 9330 echo " Compiling in support for XPM images."
9544 else 9331 else
9545 echo " --------------------------------------------------------------------" 9332 echo " --------------------------------------------------------------------"
9546 echo " WARNING: Compiling without XPM support." 9333 echo " WARNING: Compiling without XPM support."
9547 echo " WARNING: You should strongly considering installing XPM." 9334 echo " WARNING: You should strongly considering installing XPM."
9579 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." 9366 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
9580 9367
9581 test "$with_cde" = yes && echo " Compiling in support for CDE." 9368 test "$with_cde" = yes && echo " Compiling in support for CDE."
9582 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." 9369 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
9583 test "$with_offix" = yes && echo " Compiling in support for OffiX." 9370 test "$with_offix" = yes && echo " Compiling in support for OffiX."
9584 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp."
9585 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." 9371 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
9586 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)." 9372 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
9587 case "$with_menubars" in 9373 case "$with_menubars" in
9588 lucid ) echo " Using the Lucid menubar." ;; 9374 lucid ) echo " Using the Lucid menubar." ;;
9589 motif ) echo " Using the Motif menubar." 9375 motif ) echo " Using the Motif menubar."