comparison configure @ 171:929b76928fce r20-3b12

Import from CVS: tag r20-3b12
author cvs
date Mon, 13 Aug 2007 09:47:52 +0200
parents 15872534500d
children 8eaf7971accc
comparison
equal deleted inserted replaced
170:98a42ee61975 171:929b76928fce
239 with_x11='' 239 with_x11=''
240 rel_alloc='default' 240 rel_alloc='default'
241 use_system_malloc='default' 241 use_system_malloc='default'
242 energize_version='' 242 energize_version=''
243 native_sound_lib='' 243 native_sound_lib=''
244 error_check_default="yes"
245 error_check_extents=$error_check_default
246 error_check_typecheck=$error_check_default
247 error_check_bufpos=$error_check_default
248 error_check_gc=$error_check_default
249 error_check_malloc=$error_check_default
250 debug=$error_check_default
251 extra_verbose=$error_check_default
252 use_assertions="yes" 244 use_assertions="yes"
253 with_gif="" 245 with_gif=""
254 with_toolbars="" 246 with_toolbars=""
255 with_tty="" 247 with_tty=""
256 use_union_type="no" 248 use_union_type="no"
257 with_dnet="" 249 with_dnet=""
258
259 test -n "$CPP" -a -d "$CPP" && CPP=
260 250
261 usage="Usage: $progname CONFIGURATION [-OPTION[=VALUE] ...] 251 usage="Usage: $progname CONFIGURATION [-OPTION[=VALUE] ...]
262 252
263 Set compilation and installation parameters for XEmacs, and report. 253 Set compilation and installation parameters for XEmacs, and report.
264 CONFIGURATION specifies the machine and operating system to build for. 254 CONFIGURATION specifies the machine and operating system to build for.
829 fi 819 fi
830 ;; 820 ;;
831 esac 821 esac
832 822
833 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 823 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
834 echo "configure:835: checking whether ln -s works" >&5 824 echo "configure:825: checking whether ln -s works" >&5
835 825
836 rm -f conftestdata 826 rm -f conftestdata
837 if ln -s X conftestdata 2>/dev/null 827 if ln -s X conftestdata 2>/dev/null
838 then 828 then
839 rm -f conftestdata 829 rm -f conftestdata
883 vpath %.l $(srcdir)\ 873 vpath %.l $(srcdir)\
884 vpath %.s $(srcdir)\ 874 vpath %.s $(srcdir)\
885 vpath %.in $(srcdir)' 875 vpath %.in $(srcdir)'
886 fi 876 fi
887 877
878 . "$srcdir/version.sh" || exit 1;
879 version="${emacs_major_version}.${emacs_minor_version}"
880 { test "$extra_verbose" = "yes" && cat << EOF
881 Defining EMACS_MAJOR_VERSION = $emacs_major_version
882 EOF
883 cat >> confdefs.h <<EOF
884 #define EMACS_MAJOR_VERSION $emacs_major_version
885 EOF
886 }
887
888 { test "$extra_verbose" = "yes" && cat << EOF
889 Defining EMACS_MINOR_VERSION = $emacs_minor_version
890 EOF
891 cat >> confdefs.h <<EOF
892 #define EMACS_MINOR_VERSION $emacs_minor_version
893 EOF
894 }
895
896 if test -n "$emacs_beta_version"; then
897 version="${version}-b${emacs_beta_version}"
898 { test "$extra_verbose" = "yes" && cat << EOF
899 Defining EMACS_BETA_VERSION = $emacs_beta_version
900 EOF
901 cat >> confdefs.h <<EOF
902 #define EMACS_BETA_VERSION $emacs_beta_version
903 EOF
904 }
905
906 fi
907 { test "$extra_verbose" = "yes" && cat << EOF
908 Defining XEMACS_CODENAME = "$xemacs_codename"
909 EOF
910 cat >> confdefs.h <<EOF
911 #define XEMACS_CODENAME "$xemacs_codename"
912 EOF
913 }
914
915 { test "$extra_verbose" = "yes" && cat << EOF
916 Defining EMACS_VERSION = "$version"
917 EOF
918 cat >> confdefs.h <<EOF
919 #define EMACS_VERSION "$version"
920 EOF
921 }
922
923 canonical_version=`echo ${version}_${canonical} | sed 'y/.-/__/'`
924 { test "$extra_verbose" = "yes" && cat << EOF
925 Defining CANONICAL_VERSION = $canonical_version
926 EOF
927 cat >> confdefs.h <<EOF
928 #define CANONICAL_VERSION $canonical_version
929 EOF
930 }
931
932
933 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
934 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
935 Defining ERROR_CHECK_EXTENTS
936 EOF
937 cat >> confdefs.h <<\EOF
938 #define ERROR_CHECK_EXTENTS 1
939 EOF
940 }
941
942 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
943 Defining ERROR_CHECK_TYPECHECK
944 EOF
945 cat >> confdefs.h <<\EOF
946 #define ERROR_CHECK_TYPECHECK 1
947 EOF
948 }
949
950 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
951 Defining ERROR_CHECK_BUFPOS
952 EOF
953 cat >> confdefs.h <<\EOF
954 #define ERROR_CHECK_BUFPOS 1
955 EOF
956 }
957
958 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
959 Defining ERROR_CHECK_GC
960 EOF
961 cat >> confdefs.h <<\EOF
962 #define ERROR_CHECK_GC 1
963 EOF
964 }
965
966 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
967 Defining ERROR_CHECK_MALLOC
968 EOF
969 cat >> confdefs.h <<\EOF
970 #define ERROR_CHECK_MALLOC 1
971 EOF
972 }
973
974 : "${extra_verbose=$beta}"
975 if test "${debug=beta}" = "yes"; then
976 use_assertions=yes memory_usage_stats=yes
977 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
978 echo " xemacs will be linked with \"debug.o\""
979 fi
980 { test "$extra_verbose" = "yes" && cat << \EOF
981 Defining DEBUG_XEMACS
982 EOF
983 cat >> confdefs.h <<\EOF
984 #define DEBUG_XEMACS 1
985 EOF
986 }
987
988 fi
989 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
990 Defining USE_ASSERTIONS
991 EOF
992 cat >> confdefs.h <<\EOF
993 #define USE_ASSERTIONS 1
994 EOF
995 }
996
997 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
998 Defining MEMORY_USAGE_STATS
999 EOF
1000 cat >> confdefs.h <<\EOF
1001 #define MEMORY_USAGE_STATS 1
1002 EOF
1003 }
1004
1005
888 1006
889 echo "checking "the configuration name"" 1>&6 1007 echo "checking "the configuration name"" 1>&6
890 echo "configure:891: checking "the configuration name"" >&5 1008 echo "configure:1009: checking "the configuration name"" >&5
891 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'` 1009 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'`
892 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 1010 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
893 exit $? 1011 exit $?
894 fi 1012 fi
895 1013
1278 1396
1279 machfile="m/${machine}.h" 1397 machfile="m/${machine}.h"
1280 opsysfile="s/${opsys}.h" 1398 opsysfile="s/${opsys}.h"
1281 1399
1282 1400
1283 if test "$debug" = "yes"; then
1284 use_assertions=yes memory_usage_stats=yes
1285 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1286 echo " xemacs will be linked with \"debug.o\""
1287 fi
1288 fi
1289
1290 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias 1401 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
1291 if test "$with_workshop" = "yes"; then 1402 if test "$with_workshop" = "yes"; then
1292 { test "$extra_verbose" = "yes" && cat << \EOF 1403 { test "$extra_verbose" = "yes" && cat << \EOF
1293 Defining SUNPRO 1404 Defining SUNPRO
1294 EOF 1405 EOF
1311 xe_save_CFLAGS="$CFLAGS" 1422 xe_save_CFLAGS="$CFLAGS"
1312 1423
1313 # Extract the first word of "gcc", so it can be a program name with args. 1424 # Extract the first word of "gcc", so it can be a program name with args.
1314 set dummy gcc; ac_word=$2 1425 set dummy gcc; ac_word=$2
1315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1316 echo "configure:1317: checking for $ac_word" >&5 1427 echo "configure:1428: checking for $ac_word" >&5
1317 1428
1318 if test -n "$CC"; then 1429 if test -n "$CC"; then
1319 ac_cv_prog_CC="$CC" # Let the user override the test. 1430 ac_cv_prog_CC="$CC" # Let the user override the test.
1320 else 1431 else
1321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1337 1448
1338 if test -z "$CC"; then 1449 if test -z "$CC"; then
1339 # Extract the first word of "cc", so it can be a program name with args. 1450 # Extract the first word of "cc", so it can be a program name with args.
1340 set dummy cc; ac_word=$2 1451 set dummy cc; ac_word=$2
1341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1342 echo "configure:1343: checking for $ac_word" >&5 1453 echo "configure:1454: checking for $ac_word" >&5
1343 1454
1344 if test -n "$CC"; then 1455 if test -n "$CC"; then
1345 ac_cv_prog_CC="$CC" # Let the user override the test. 1456 ac_cv_prog_CC="$CC" # Let the user override the test.
1346 else 1457 else
1347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1382 1493
1383 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1494 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1384 fi 1495 fi
1385 1496
1386 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1497 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1498 echo "configure:1499: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1388 1499
1389 ac_ext=c 1500 ac_ext=c
1390 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1501 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1391 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1502 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1392 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1503 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1394 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1505 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1395 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1506 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1396 cross_compiling=no 1507 cross_compiling=no
1397 1508
1398 cat > conftest.$ac_ext <<EOF 1509 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure" 1510 #line 1511 "configure"
1400 #include "confdefs.h" 1511 #include "confdefs.h"
1401 main(){return(0);} 1512 main(){return(0);}
1402 EOF 1513 EOF
1403 if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1514 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1404 ac_cv_prog_cc_works=yes 1515 ac_cv_prog_cc_works=yes
1405 # If we can't run a trivial program, we are probably using a cross compiler. 1516 # If we can't run a trivial program, we are probably using a cross compiler.
1406 if (./conftest; exit) 2>/dev/null; then 1517 if (./conftest; exit) 2>/dev/null; then
1407 ac_cv_prog_cc_cross=no 1518 ac_cv_prog_cc_cross=no
1408 else 1519 else
1418 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1529 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1419 if test $ac_cv_prog_cc_works = no; then 1530 if test $ac_cv_prog_cc_works = no; then
1420 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1531 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1421 fi 1532 fi
1422 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1533 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1423 echo "configure:1424: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1534 echo "configure:1535: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1424 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1535 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1425 cross_compiling=$ac_cv_prog_cc_cross 1536 cross_compiling=$ac_cv_prog_cc_cross
1426 1537
1427 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1538 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether we are using GNU C" >&5 1539 echo "configure:1540: checking whether we are using GNU C" >&5
1429 1540
1430 cat > conftest.c <<EOF 1541 cat > conftest.c <<EOF
1431 #ifdef __GNUC__ 1542 #ifdef __GNUC__
1432 yes; 1543 yes;
1433 #endif 1544 #endif
1434 EOF 1545 EOF
1435 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1546 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1436 ac_cv_prog_gcc=yes 1547 ac_cv_prog_gcc=yes
1437 else 1548 else
1438 ac_cv_prog_gcc=no 1549 ac_cv_prog_gcc=no
1439 fi 1550 fi
1440 1551
1444 GCC=yes 1555 GCC=yes
1445 ac_test_CFLAGS="${CFLAGS+set}" 1556 ac_test_CFLAGS="${CFLAGS+set}"
1446 ac_save_CFLAGS="$CFLAGS" 1557 ac_save_CFLAGS="$CFLAGS"
1447 CFLAGS= 1558 CFLAGS=
1448 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1559 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1449 echo "configure:1450: checking whether ${CC-cc} accepts -g" >&5 1560 echo "configure:1561: checking whether ${CC-cc} accepts -g" >&5
1450 1561
1451 echo 'void f(){}' > conftest.c 1562 echo 'void f(){}' > conftest.c
1452 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1563 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1453 ac_cv_prog_cc_g=yes 1564 ac_cv_prog_cc_g=yes
1454 else 1565 else
1473 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1584 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1474 CC=${NON_GNU_CC-cc} 1585 CC=${NON_GNU_CC-cc}
1475 # Extract the first word of "gcc", so it can be a program name with args. 1586 # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2 1587 set dummy gcc; ac_word=$2
1477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1478 echo "configure:1479: checking for $ac_word" >&5 1589 echo "configure:1590: checking for $ac_word" >&5
1479 1590
1480 if test -n "$CC"; then 1591 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test. 1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1482 else 1593 else
1483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1499 1610
1500 if test -z "$CC"; then 1611 if test -z "$CC"; then
1501 # Extract the first word of "cc", so it can be a program name with args. 1612 # Extract the first word of "cc", so it can be a program name with args.
1502 set dummy cc; ac_word=$2 1613 set dummy cc; ac_word=$2
1503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1504 echo "configure:1505: checking for $ac_word" >&5 1615 echo "configure:1616: checking for $ac_word" >&5
1505 1616
1506 if test -n "$CC"; then 1617 if test -n "$CC"; then
1507 ac_cv_prog_CC="$CC" # Let the user override the test. 1618 ac_cv_prog_CC="$CC" # Let the user override the test.
1508 else 1619 else
1509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1544 1655
1545 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1656 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1546 fi 1657 fi
1547 1658
1548 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1659 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1549 echo "configure:1550: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1660 echo "configure:1661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1550 1661
1551 ac_ext=c 1662 ac_ext=c
1552 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1663 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1553 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1664 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1554 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1665 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1556 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1667 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1557 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1668 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1558 cross_compiling=no 1669 cross_compiling=no
1559 1670
1560 cat > conftest.$ac_ext <<EOF 1671 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure" 1672 #line 1673 "configure"
1562 #include "confdefs.h" 1673 #include "confdefs.h"
1563 main(){return(0);} 1674 main(){return(0);}
1564 EOF 1675 EOF
1565 if { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1676 if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1566 ac_cv_prog_cc_works=yes 1677 ac_cv_prog_cc_works=yes
1567 # If we can't run a trivial program, we are probably using a cross compiler. 1678 # If we can't run a trivial program, we are probably using a cross compiler.
1568 if (./conftest; exit) 2>/dev/null; then 1679 if (./conftest; exit) 2>/dev/null; then
1569 ac_cv_prog_cc_cross=no 1680 ac_cv_prog_cc_cross=no
1570 else 1681 else
1580 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1691 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1581 if test $ac_cv_prog_cc_works = no; then 1692 if test $ac_cv_prog_cc_works = no; then
1582 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1693 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1583 fi 1694 fi
1584 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1695 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1585 echo "configure:1586: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1696 echo "configure:1697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1586 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1697 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1587 cross_compiling=$ac_cv_prog_cc_cross 1698 cross_compiling=$ac_cv_prog_cc_cross
1588 1699
1589 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1700 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1590 echo "configure:1591: checking whether we are using GNU C" >&5 1701 echo "configure:1702: checking whether we are using GNU C" >&5
1591 1702
1592 cat > conftest.c <<EOF 1703 cat > conftest.c <<EOF
1593 #ifdef __GNUC__ 1704 #ifdef __GNUC__
1594 yes; 1705 yes;
1595 #endif 1706 #endif
1596 EOF 1707 EOF
1597 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1708 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1598 ac_cv_prog_gcc=yes 1709 ac_cv_prog_gcc=yes
1599 else 1710 else
1600 ac_cv_prog_gcc=no 1711 ac_cv_prog_gcc=no
1601 fi 1712 fi
1602 1713
1606 GCC=yes 1717 GCC=yes
1607 ac_test_CFLAGS="${CFLAGS+set}" 1718 ac_test_CFLAGS="${CFLAGS+set}"
1608 ac_save_CFLAGS="$CFLAGS" 1719 ac_save_CFLAGS="$CFLAGS"
1609 CFLAGS= 1720 CFLAGS=
1610 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1721 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1611 echo "configure:1612: checking whether ${CC-cc} accepts -g" >&5 1722 echo "configure:1723: checking whether ${CC-cc} accepts -g" >&5
1612 1723
1613 echo 'void f(){}' > conftest.c 1724 echo 'void f(){}' > conftest.c
1614 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1725 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1615 ac_cv_prog_cc_g=yes 1726 ac_cv_prog_cc_g=yes
1616 else 1727 else
1635 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1746 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1636 CC=gcc 1747 CC=gcc
1637 # Extract the first word of "gcc", so it can be a program name with args. 1748 # Extract the first word of "gcc", so it can be a program name with args.
1638 set dummy gcc; ac_word=$2 1749 set dummy gcc; ac_word=$2
1639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1640 echo "configure:1641: checking for $ac_word" >&5 1751 echo "configure:1752: checking for $ac_word" >&5
1641 1752
1642 if test -n "$CC"; then 1753 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test. 1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else 1755 else
1645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1661 1772
1662 if test -z "$CC"; then 1773 if test -z "$CC"; then
1663 # Extract the first word of "cc", so it can be a program name with args. 1774 # Extract the first word of "cc", so it can be a program name with args.
1664 set dummy cc; ac_word=$2 1775 set dummy cc; ac_word=$2
1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1666 echo "configure:1667: checking for $ac_word" >&5 1777 echo "configure:1778: checking for $ac_word" >&5
1667 1778
1668 if test -n "$CC"; then 1779 if test -n "$CC"; then
1669 ac_cv_prog_CC="$CC" # Let the user override the test. 1780 ac_cv_prog_CC="$CC" # Let the user override the test.
1670 else 1781 else
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1706 1817
1707 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1818 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1708 fi 1819 fi
1709 1820
1710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1821 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1711 echo "configure:1712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1822 echo "configure:1823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1712 1823
1713 ac_ext=c 1824 ac_ext=c
1714 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1825 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1715 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1826 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1716 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1827 xe_libs='$xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1718 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1829 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1719 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1830 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1720 cross_compiling=no 1831 cross_compiling=no
1721 1832
1722 cat > conftest.$ac_ext <<EOF 1833 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure" 1834 #line 1835 "configure"
1724 #include "confdefs.h" 1835 #include "confdefs.h"
1725 main(){return(0);} 1836 main(){return(0);}
1726 EOF 1837 EOF
1727 if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1728 ac_cv_prog_cc_works=yes 1839 ac_cv_prog_cc_works=yes
1729 # If we can't run a trivial program, we are probably using a cross compiler. 1840 # If we can't run a trivial program, we are probably using a cross compiler.
1730 if (./conftest; exit) 2>/dev/null; then 1841 if (./conftest; exit) 2>/dev/null; then
1731 ac_cv_prog_cc_cross=no 1842 ac_cv_prog_cc_cross=no
1732 else 1843 else
1742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1853 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1743 if test $ac_cv_prog_cc_works = no; then 1854 if test $ac_cv_prog_cc_works = no; then
1744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1855 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1745 fi 1856 fi
1746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1857 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1747 echo "configure:1748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1858 echo "configure:1859: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1859 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1749 cross_compiling=$ac_cv_prog_cc_cross 1860 cross_compiling=$ac_cv_prog_cc_cross
1750 1861
1751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1862 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1752 echo "configure:1753: checking whether we are using GNU C" >&5 1863 echo "configure:1864: checking whether we are using GNU C" >&5
1753 1864
1754 cat > conftest.c <<EOF 1865 cat > conftest.c <<EOF
1755 #ifdef __GNUC__ 1866 #ifdef __GNUC__
1756 yes; 1867 yes;
1757 #endif 1868 #endif
1758 EOF 1869 EOF
1759 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1870 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1760 ac_cv_prog_gcc=yes 1871 ac_cv_prog_gcc=yes
1761 else 1872 else
1762 ac_cv_prog_gcc=no 1873 ac_cv_prog_gcc=no
1763 fi 1874 fi
1764 1875
1768 GCC=yes 1879 GCC=yes
1769 ac_test_CFLAGS="${CFLAGS+set}" 1880 ac_test_CFLAGS="${CFLAGS+set}"
1770 ac_save_CFLAGS="$CFLAGS" 1881 ac_save_CFLAGS="$CFLAGS"
1771 CFLAGS= 1882 CFLAGS=
1772 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1883 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1773 echo "configure:1774: checking whether ${CC-cc} accepts -g" >&5 1884 echo "configure:1885: checking whether ${CC-cc} accepts -g" >&5
1774 1885
1775 echo 'void f(){}' > conftest.c 1886 echo 'void f(){}' > conftest.c
1776 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1887 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1777 ac_cv_prog_cc_g=yes 1888 ac_cv_prog_cc_g=yes
1778 else 1889 else
1795 fi 1906 fi
1796 1907
1797 fi 1908 fi
1798 CFLAGS="$xe_save_CFLAGS" 1909 CFLAGS="$xe_save_CFLAGS"
1799 1910
1911
1912 test -n "$CPP" -a -d "$CPP" && CPP=
1913
1800 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1914 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1801 1915
1802 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1916 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1803 echo "configure:1804: checking how to run the C preprocessor" >&5 1917 echo "configure:1918: checking how to run the C preprocessor" >&5
1804 # On Suns, sometimes $CPP names a directory. 1918 # On Suns, sometimes $CPP names a directory.
1805 if test -n "$CPP" && test -d "$CPP"; then 1919 if test -n "$CPP" && test -d "$CPP"; then
1806 CPP= 1920 CPP=
1807 fi 1921 fi
1808 if test -z "$CPP"; then 1922 if test -z "$CPP"; then
1811 # substituted into the Makefile and "${CC-cc}" will confuse make. 1925 # substituted into the Makefile and "${CC-cc}" will confuse make.
1812 CPP="${CC-cc} -E" 1926 CPP="${CC-cc} -E"
1813 # On the NeXT, cc -E runs the code through the compiler's parser, 1927 # On the NeXT, cc -E runs the code through the compiler's parser,
1814 # not just through cpp. 1928 # not just through cpp.
1815 cat > conftest.$ac_ext <<EOF 1929 cat > conftest.$ac_ext <<EOF
1816 #line 1817 "configure" 1930 #line 1931 "configure"
1817 #include "confdefs.h" 1931 #include "confdefs.h"
1818 #include <assert.h> 1932 #include <assert.h>
1819 Syntax Error 1933 Syntax Error
1820 EOF 1934 EOF
1821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1822 { (eval echo configure:1823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1936 { (eval echo configure:1937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1823 ac_err=`grep -v '^ *+' conftest.out` 1937 ac_err=`grep -v '^ *+' conftest.out`
1824 if test -z "$ac_err"; then 1938 if test -z "$ac_err"; then
1825 : 1939 :
1826 else 1940 else
1827 echo "$ac_err" >&5 1941 echo "$ac_err" >&5
1828 echo "configure: failed program was:" >&5 1942 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5 1943 cat conftest.$ac_ext >&5
1830 rm -rf conftest* 1944 rm -rf conftest*
1831 CPP="${CC-cc} -E -traditional-cpp" 1945 CPP="${CC-cc} -E -traditional-cpp"
1832 cat > conftest.$ac_ext <<EOF 1946 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure" 1947 #line 1948 "configure"
1834 #include "confdefs.h" 1948 #include "confdefs.h"
1835 #include <assert.h> 1949 #include <assert.h>
1836 Syntax Error 1950 Syntax Error
1837 EOF 1951 EOF
1838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1839 { (eval echo configure:1840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1953 { (eval echo configure:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1840 ac_err=`grep -v '^ *+' conftest.out` 1954 ac_err=`grep -v '^ *+' conftest.out`
1841 if test -z "$ac_err"; then 1955 if test -z "$ac_err"; then
1842 : 1956 :
1843 else 1957 else
1844 echo "$ac_err" >&5 1958 echo "$ac_err" >&5
1857 fi 1971 fi
1858 echo "$ac_t""$CPP" 1>&6 1972 echo "$ac_t""$CPP" 1>&6
1859 1973
1860 1974
1861 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1975 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1862 echo "configure:1863: checking for AIX" >&5 1976 echo "configure:1977: checking for AIX" >&5
1863 cat > conftest.$ac_ext <<EOF 1977 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure" 1978 #line 1979 "configure"
1865 #include "confdefs.h" 1979 #include "confdefs.h"
1866 #ifdef _AIX 1980 #ifdef _AIX
1867 yes 1981 yes
1868 #endif 1982 #endif
1869 1983
1886 rm -f conftest* 2000 rm -f conftest*
1887 2001
1888 2002
1889 2003
1890 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6 2004 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
1891 echo "configure:1892: checking whether we are using SunPro C" >&5 2005 echo "configure:2006: checking whether we are using SunPro C" >&5
1892 cat > conftest.$ac_ext <<EOF 2006 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure" 2007 #line 2008 "configure"
1894 #include "confdefs.h" 2008 #include "confdefs.h"
1895 2009
1896 int main() { 2010 int main() {
1897 #ifndef __SUNPRO_C 2011 #ifndef __SUNPRO_C
1898 #error Not a SunPro compiler :-( 2012 #error Not a SunPro compiler :-(
1899 ******* ======= ******** &&&&&&&& 2013 ******* ======= ******** &&&&&&&&
1900 #endif 2014 #endif
1901 2015
1902 ; return 0; } 2016 ; return 0; }
1903 EOF 2017 EOF
1904 if { (eval echo configure:1905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2018 if { (eval echo configure:2019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1905 rm -rf conftest* 2019 rm -rf conftest*
1906 __sunpro_c=yes 2020 __sunpro_c=yes
1907 else 2021 else
1908 echo "configure: failed program was:" >&5 2022 echo "configure: failed program was:" >&5
1909 cat conftest.$ac_ext >&5 2023 cat conftest.$ac_ext >&5
2184 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2298 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2185 echo " xemacs will be linked with \"$unexec\"" 2299 echo " xemacs will be linked with \"$unexec\""
2186 fi 2300 fi
2187 2301
2188 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2302 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2189 echo "configure:2190: checking for dynodump" >&5 2303 echo "configure:2304: checking for dynodump" >&5
2190 if test "$unexec" != "unexsol2.o"; then 2304 if test "$unexec" != "unexsol2.o"; then
2191 echo "$ac_t""no" 1>&6 2305 echo "$ac_t""no" 1>&6
2192 else 2306 else
2193 echo "$ac_t""yes" 1>&6 2307 echo "$ac_t""yes" 1>&6
2194 { test "$extra_verbose" = "yes" && cat << \EOF 2308 { test "$extra_verbose" = "yes" && cat << \EOF
2255 esac 2369 esac
2256 fi 2370 fi
2257 2371
2258 if test "$add_runtime_path" = "yes"; then 2372 if test "$add_runtime_path" = "yes"; then
2259 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2373 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2260 echo "configure:2261: checking "for runtime libraries flag"" >&5 2374 echo "configure:2375: checking "for runtime libraries flag"" >&5
2261 dash_r="" 2375 dash_r=""
2262 for try_dash_r in "-R" "-R " "-rpath "; do 2376 for try_dash_r in "-R" "-R " "-rpath "; do
2263 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2377 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2264 cat > conftest.$ac_ext <<EOF 2378 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure" 2379 #line 2380 "configure"
2266 #include "confdefs.h" 2380 #include "confdefs.h"
2267 2381
2268 int main() { 2382 int main() {
2269 2383
2270 ; return 0; } 2384 ; return 0; }
2271 EOF 2385 EOF
2272 if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2386 if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2273 rm -rf conftest* 2387 rm -rf conftest*
2274 dash_r="$try_dash_r" 2388 dash_r="$try_dash_r"
2275 else 2389 else
2276 echo "configure: failed program was:" >&5 2390 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5 2391 cat conftest.$ac_ext >&5
2361 2475
2362 2476
2363 # Extract the first word of "ranlib", so it can be a program name with args. 2477 # Extract the first word of "ranlib", so it can be a program name with args.
2364 set dummy ranlib; ac_word=$2 2478 set dummy ranlib; ac_word=$2
2365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_word" >&5 2480 echo "configure:2481: checking for $ac_word" >&5
2367 2481
2368 if test -n "$RANLIB"; then 2482 if test -n "$RANLIB"; then
2369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2483 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2370 else 2484 else
2371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2414 # AIX /bin/install 2528 # AIX /bin/install
2415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2529 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2530 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2417 # ./install, which can be erroneously created by make from ./install.sh. 2531 # ./install, which can be erroneously created by make from ./install.sh.
2418 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2532 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2419 echo "configure:2420: checking for a BSD compatible install" >&5 2533 echo "configure:2534: checking for a BSD compatible install" >&5
2420 if test -z "$INSTALL"; then 2534 if test -z "$INSTALL"; then
2421 2535
2422 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2536 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2423 for ac_dir in $PATH; do 2537 for ac_dir in $PATH; do
2424 # Account for people who put trailing slashes in PATH elements. 2538 # Account for people who put trailing slashes in PATH elements.
2465 for ac_prog in 'bison -y' byacc 2579 for ac_prog in 'bison -y' byacc
2466 do 2580 do
2467 # Extract the first word of "$ac_prog", so it can be a program name with args. 2581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2468 set dummy $ac_prog; ac_word=$2 2582 set dummy $ac_prog; ac_word=$2
2469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2470 echo "configure:2471: checking for $ac_word" >&5 2584 echo "configure:2585: checking for $ac_word" >&5
2471 2585
2472 if test -n "$YACC"; then 2586 if test -n "$YACC"; then
2473 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2587 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2474 else 2588 else
2475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2496 2610
2497 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2611 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2498 do 2612 do
2499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2501 echo "configure:2502: checking for $ac_hdr" >&5 2615 echo "configure:2616: checking for $ac_hdr" >&5
2502 2616
2503 cat > conftest.$ac_ext <<EOF 2617 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure" 2618 #line 2619 "configure"
2505 #include "confdefs.h" 2619 #include "confdefs.h"
2506 #include <$ac_hdr> 2620 #include <$ac_hdr>
2507 EOF 2621 EOF
2508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2509 { (eval echo configure:2510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2623 { (eval echo configure:2624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2510 ac_err=`grep -v '^ *+' conftest.out` 2624 ac_err=`grep -v '^ *+' conftest.out`
2511 if test -z "$ac_err"; then 2625 if test -z "$ac_err"; then
2512 rm -rf conftest* 2626 rm -rf conftest*
2513 eval "ac_cv_header_$ac_safe=yes" 2627 eval "ac_cv_header_$ac_safe=yes"
2514 else 2628 else
2537 2651
2538 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2652 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2539 do 2653 do
2540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2542 echo "configure:2543: checking for $ac_hdr" >&5 2656 echo "configure:2657: checking for $ac_hdr" >&5
2543 2657
2544 cat > conftest.$ac_ext <<EOF 2658 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure" 2659 #line 2660 "configure"
2546 #include "confdefs.h" 2660 #include "confdefs.h"
2547 #include <$ac_hdr> 2661 #include <$ac_hdr>
2548 EOF 2662 EOF
2549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2664 { (eval echo configure:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err=`grep -v '^ *+' conftest.out` 2665 ac_err=`grep -v '^ *+' conftest.out`
2552 if test -z "$ac_err"; then 2666 if test -z "$ac_err"; then
2553 rm -rf conftest* 2667 rm -rf conftest*
2554 eval "ac_cv_header_$ac_safe=yes" 2668 eval "ac_cv_header_$ac_safe=yes"
2555 else 2669 else
2578 2692
2579 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h 2693 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h
2580 do 2694 do
2581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2583 echo "configure:2584: checking for $ac_hdr" >&5 2697 echo "configure:2698: checking for $ac_hdr" >&5
2584 2698
2585 cat > conftest.$ac_ext <<EOF 2699 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure" 2700 #line 2701 "configure"
2587 #include "confdefs.h" 2701 #include "confdefs.h"
2588 #include <$ac_hdr> 2702 #include <$ac_hdr>
2589 EOF 2703 EOF
2590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2705 { (eval echo configure:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err=`grep -v '^ *+' conftest.out` 2706 ac_err=`grep -v '^ *+' conftest.out`
2593 if test -z "$ac_err"; then 2707 if test -z "$ac_err"; then
2594 rm -rf conftest* 2708 rm -rf conftest*
2595 eval "ac_cv_header_$ac_safe=yes" 2709 eval "ac_cv_header_$ac_safe=yes"
2596 else 2710 else
2616 echo "$ac_t""no" 1>&6 2730 echo "$ac_t""no" 1>&6
2617 fi 2731 fi
2618 done 2732 done
2619 2733
2620 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2734 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2621 echo "configure:2622: checking for sys/wait.h that is POSIX.1 compatible" >&5 2735 echo "configure:2736: checking for sys/wait.h that is POSIX.1 compatible" >&5
2622 2736
2623 cat > conftest.$ac_ext <<EOF 2737 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure" 2738 #line 2739 "configure"
2625 #include "confdefs.h" 2739 #include "confdefs.h"
2626 #include <sys/types.h> 2740 #include <sys/types.h>
2627 #include <sys/wait.h> 2741 #include <sys/wait.h>
2628 #ifndef WEXITSTATUS 2742 #ifndef WEXITSTATUS
2629 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2743 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2635 int s; 2749 int s;
2636 wait (&s); 2750 wait (&s);
2637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2751 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2638 ; return 0; } 2752 ; return 0; }
2639 EOF 2753 EOF
2640 if { (eval echo configure:2641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2754 if { (eval echo configure:2755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2641 rm -rf conftest* 2755 rm -rf conftest*
2642 ac_cv_header_sys_wait_h=yes 2756 ac_cv_header_sys_wait_h=yes
2643 else 2757 else
2644 echo "configure: failed program was:" >&5 2758 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5 2759 cat conftest.$ac_ext >&5
2659 } 2773 }
2660 2774
2661 fi 2775 fi
2662 2776
2663 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2777 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2664 echo "configure:2665: checking for ANSI C header files" >&5 2778 echo "configure:2779: checking for ANSI C header files" >&5
2665 2779
2666 cat > conftest.$ac_ext <<EOF 2780 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure" 2781 #line 2782 "configure"
2668 #include "confdefs.h" 2782 #include "confdefs.h"
2669 #include <stdlib.h> 2783 #include <stdlib.h>
2670 #include <stdarg.h> 2784 #include <stdarg.h>
2671 #include <string.h> 2785 #include <string.h>
2672 #include <float.h> 2786 #include <float.h>
2673 EOF 2787 EOF
2674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2675 { (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2789 { (eval echo configure:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2676 ac_err=`grep -v '^ *+' conftest.out` 2790 ac_err=`grep -v '^ *+' conftest.out`
2677 if test -z "$ac_err"; then 2791 if test -z "$ac_err"; then
2678 rm -rf conftest* 2792 rm -rf conftest*
2679 ac_cv_header_stdc=yes 2793 ac_cv_header_stdc=yes
2680 else 2794 else
2687 rm -f conftest* 2801 rm -f conftest*
2688 2802
2689 if test $ac_cv_header_stdc = yes; then 2803 if test $ac_cv_header_stdc = yes; then
2690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2691 cat > conftest.$ac_ext <<EOF 2805 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure" 2806 #line 2807 "configure"
2693 #include "confdefs.h" 2807 #include "confdefs.h"
2694 #include <string.h> 2808 #include <string.h>
2695 EOF 2809 EOF
2696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2697 egrep "memchr" >/dev/null 2>&1; then 2811 egrep "memchr" >/dev/null 2>&1; then
2705 fi 2819 fi
2706 2820
2707 if test $ac_cv_header_stdc = yes; then 2821 if test $ac_cv_header_stdc = yes; then
2708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2709 cat > conftest.$ac_ext <<EOF 2823 cat > conftest.$ac_ext <<EOF
2710 #line 2711 "configure" 2824 #line 2825 "configure"
2711 #include "confdefs.h" 2825 #include "confdefs.h"
2712 #include <stdlib.h> 2826 #include <stdlib.h>
2713 EOF 2827 EOF
2714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2715 egrep "free" >/dev/null 2>&1; then 2829 egrep "free" >/dev/null 2>&1; then
2723 fi 2837 fi
2724 2838
2725 if test $ac_cv_header_stdc = yes; then 2839 if test $ac_cv_header_stdc = yes; then
2726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2727 cat > conftest.$ac_ext <<EOF 2841 cat > conftest.$ac_ext <<EOF
2728 #line 2729 "configure" 2842 #line 2843 "configure"
2729 #include "confdefs.h" 2843 #include "confdefs.h"
2730 #include <ctype.h> 2844 #include <ctype.h>
2731 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2845 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2732 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2846 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2734 int main () { int i; for (i = 0; i < 256; i++) 2848 int main () { int i; for (i = 0; i < 256; i++)
2735 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2849 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2736 exit (0); } 2850 exit (0); }
2737 2851
2738 EOF 2852 EOF
2739 if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2853 if { (eval echo configure:2854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2740 then 2854 then
2741 : 2855 :
2742 else 2856 else
2743 echo "configure: failed program was:" >&5 2857 echo "configure: failed program was:" >&5
2744 cat conftest.$ac_ext >&5 2858 cat conftest.$ac_ext >&5
2759 } 2873 }
2760 2874
2761 fi 2875 fi
2762 2876
2763 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2877 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2764 echo "configure:2765: checking whether time.h and sys/time.h may both be included" >&5 2878 echo "configure:2879: checking whether time.h and sys/time.h may both be included" >&5
2765 2879
2766 cat > conftest.$ac_ext <<EOF 2880 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure" 2881 #line 2882 "configure"
2768 #include "confdefs.h" 2882 #include "confdefs.h"
2769 #include <sys/types.h> 2883 #include <sys/types.h>
2770 #include <sys/time.h> 2884 #include <sys/time.h>
2771 #include <time.h> 2885 #include <time.h>
2772 int main() { 2886 int main() {
2773 struct tm *tp; 2887 struct tm *tp;
2774 ; return 0; } 2888 ; return 0; }
2775 EOF 2889 EOF
2776 if { (eval echo configure:2777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2890 if { (eval echo configure:2891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2777 rm -rf conftest* 2891 rm -rf conftest*
2778 ac_cv_header_time=yes 2892 ac_cv_header_time=yes
2779 else 2893 else
2780 echo "configure: failed program was:" >&5 2894 echo "configure: failed program was:" >&5
2781 cat conftest.$ac_ext >&5 2895 cat conftest.$ac_ext >&5
2795 } 2909 }
2796 2910
2797 fi 2911 fi
2798 2912
2799 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2913 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2800 echo "configure:2801: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2914 echo "configure:2915: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2801 2915
2802 cat > conftest.$ac_ext <<EOF 2916 cat > conftest.$ac_ext <<EOF
2803 #line 2804 "configure" 2917 #line 2918 "configure"
2804 #include "confdefs.h" 2918 #include "confdefs.h"
2805 #include <sys/types.h> 2919 #include <sys/types.h>
2806 #include <signal.h> 2920 #include <signal.h>
2807 /* NetBSD declares sys_siglist in unistd.h. */ 2921 /* NetBSD declares sys_siglist in unistd.h. */
2808 #ifdef HAVE_UNISTD_H 2922 #ifdef HAVE_UNISTD_H
2810 #endif 2924 #endif
2811 int main() { 2925 int main() {
2812 char *msg = *(sys_siglist + 1); 2926 char *msg = *(sys_siglist + 1);
2813 ; return 0; } 2927 ; return 0; }
2814 EOF 2928 EOF
2815 if { (eval echo configure:2816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2929 if { (eval echo configure:2930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2816 rm -rf conftest* 2930 rm -rf conftest*
2817 ac_cv_decl_sys_siglist=yes 2931 ac_cv_decl_sys_siglist=yes
2818 else 2932 else
2819 echo "configure: failed program was:" >&5 2933 echo "configure: failed program was:" >&5
2820 cat conftest.$ac_ext >&5 2934 cat conftest.$ac_ext >&5
2835 2949
2836 fi 2950 fi
2837 2951
2838 2952
2839 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2953 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2840 echo "configure:2841: checking for struct utimbuf" >&5 2954 echo "configure:2955: checking for struct utimbuf" >&5
2841 cat > conftest.$ac_ext <<EOF 2955 cat > conftest.$ac_ext <<EOF
2842 #line 2843 "configure" 2956 #line 2957 "configure"
2843 #include "confdefs.h" 2957 #include "confdefs.h"
2844 #ifdef TIME_WITH_SYS_TIME 2958 #ifdef TIME_WITH_SYS_TIME
2845 #include <sys/time.h> 2959 #include <sys/time.h>
2846 #include <time.h> 2960 #include <time.h>
2847 #else 2961 #else
2856 #endif 2970 #endif
2857 int main() { 2971 int main() {
2858 static struct utimbuf x; x.actime = x.modtime; 2972 static struct utimbuf x; x.actime = x.modtime;
2859 ; return 0; } 2973 ; return 0; }
2860 EOF 2974 EOF
2861 if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2975 if { (eval echo configure:2976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2862 rm -rf conftest* 2976 rm -rf conftest*
2863 echo "$ac_t""yes" 1>&6 2977 echo "$ac_t""yes" 1>&6
2864 { test "$extra_verbose" = "yes" && cat << \EOF 2978 { test "$extra_verbose" = "yes" && cat << \EOF
2865 Defining HAVE_STRUCT_UTIMBUF 2979 Defining HAVE_STRUCT_UTIMBUF
2866 EOF 2980 EOF
2876 echo "$ac_t""no" 1>&6 2990 echo "$ac_t""no" 1>&6
2877 fi 2991 fi
2878 rm -f conftest* 2992 rm -f conftest*
2879 2993
2880 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2994 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2881 echo "configure:2882: checking return type of signal handlers" >&5 2995 echo "configure:2996: checking return type of signal handlers" >&5
2882 2996
2883 cat > conftest.$ac_ext <<EOF 2997 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure" 2998 #line 2999 "configure"
2885 #include "confdefs.h" 2999 #include "confdefs.h"
2886 #include <sys/types.h> 3000 #include <sys/types.h>
2887 #include <signal.h> 3001 #include <signal.h>
2888 #ifdef signal 3002 #ifdef signal
2889 #undef signal 3003 #undef signal
2896 3010
2897 int main() { 3011 int main() {
2898 int i; 3012 int i;
2899 ; return 0; } 3013 ; return 0; }
2900 EOF 3014 EOF
2901 if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3015 if { (eval echo configure:3016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2902 rm -rf conftest* 3016 rm -rf conftest*
2903 ac_cv_type_signal=void 3017 ac_cv_type_signal=void
2904 else 3018 else
2905 echo "configure: failed program was:" >&5 3019 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5 3020 cat conftest.$ac_ext >&5
2918 EOF 3032 EOF
2919 } 3033 }
2920 3034
2921 3035
2922 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3036 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2923 echo "configure:2924: checking for size_t" >&5 3037 echo "configure:3038: checking for size_t" >&5
2924 3038
2925 cat > conftest.$ac_ext <<EOF 3039 cat > conftest.$ac_ext <<EOF
2926 #line 2927 "configure" 3040 #line 3041 "configure"
2927 #include "confdefs.h" 3041 #include "confdefs.h"
2928 #include <sys/types.h> 3042 #include <sys/types.h>
2929 #if STDC_HEADERS 3043 #if STDC_HEADERS
2930 #include <stdlib.h> 3044 #include <stdlib.h>
2931 #include <stddef.h> 3045 #include <stddef.h>
2952 } 3066 }
2953 3067
2954 fi 3068 fi
2955 3069
2956 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3070 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2957 echo "configure:2958: checking for pid_t" >&5 3071 echo "configure:3072: checking for pid_t" >&5
2958 3072
2959 cat > conftest.$ac_ext <<EOF 3073 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure" 3074 #line 3075 "configure"
2961 #include "confdefs.h" 3075 #include "confdefs.h"
2962 #include <sys/types.h> 3076 #include <sys/types.h>
2963 #if STDC_HEADERS 3077 #if STDC_HEADERS
2964 #include <stdlib.h> 3078 #include <stdlib.h>
2965 #include <stddef.h> 3079 #include <stddef.h>
2986 } 3100 }
2987 3101
2988 fi 3102 fi
2989 3103
2990 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3104 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2991 echo "configure:2992: checking for uid_t in sys/types.h" >&5 3105 echo "configure:3106: checking for uid_t in sys/types.h" >&5
2992 3106
2993 cat > conftest.$ac_ext <<EOF 3107 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure" 3108 #line 3109 "configure"
2995 #include "confdefs.h" 3109 #include "confdefs.h"
2996 #include <sys/types.h> 3110 #include <sys/types.h>
2997 EOF 3111 EOF
2998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2999 egrep "uid_t" >/dev/null 2>&1; then 3113 egrep "uid_t" >/dev/null 2>&1; then
3025 } 3139 }
3026 3140
3027 fi 3141 fi
3028 3142
3029 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3143 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3030 echo "configure:3031: checking for mode_t" >&5 3144 echo "configure:3145: checking for mode_t" >&5
3031 3145
3032 cat > conftest.$ac_ext <<EOF 3146 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure" 3147 #line 3148 "configure"
3034 #include "confdefs.h" 3148 #include "confdefs.h"
3035 #include <sys/types.h> 3149 #include <sys/types.h>
3036 #if STDC_HEADERS 3150 #if STDC_HEADERS
3037 #include <stdlib.h> 3151 #include <stdlib.h>
3038 #include <stddef.h> 3152 #include <stddef.h>
3059 } 3173 }
3060 3174
3061 fi 3175 fi
3062 3176
3063 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3177 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3064 echo "configure:3065: checking for off_t" >&5 3178 echo "configure:3179: checking for off_t" >&5
3065 3179
3066 cat > conftest.$ac_ext <<EOF 3180 cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure" 3181 #line 3182 "configure"
3068 #include "confdefs.h" 3182 #include "confdefs.h"
3069 #include <sys/types.h> 3183 #include <sys/types.h>
3070 #if STDC_HEADERS 3184 #if STDC_HEADERS
3071 #include <stdlib.h> 3185 #include <stdlib.h>
3072 #include <stddef.h> 3186 #include <stddef.h>
3094 3208
3095 fi 3209 fi
3096 3210
3097 3211
3098 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3212 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3099 echo "configure:3100: checking for struct timeval" >&5 3213 echo "configure:3214: checking for struct timeval" >&5
3100 cat > conftest.$ac_ext <<EOF 3214 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure" 3215 #line 3216 "configure"
3102 #include "confdefs.h" 3216 #include "confdefs.h"
3103 #ifdef TIME_WITH_SYS_TIME 3217 #ifdef TIME_WITH_SYS_TIME
3104 #include <sys/time.h> 3218 #include <sys/time.h>
3105 #include <time.h> 3219 #include <time.h>
3106 #else 3220 #else
3112 #endif 3226 #endif
3113 int main() { 3227 int main() {
3114 static struct timeval x; x.tv_sec = x.tv_usec; 3228 static struct timeval x; x.tv_sec = x.tv_usec;
3115 ; return 0; } 3229 ; return 0; }
3116 EOF 3230 EOF
3117 if { (eval echo configure:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3231 if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3118 rm -rf conftest* 3232 rm -rf conftest*
3119 echo "$ac_t""yes" 1>&6 3233 echo "$ac_t""yes" 1>&6
3120 HAVE_TIMEVAL=yes 3234 HAVE_TIMEVAL=yes
3121 { test "$extra_verbose" = "yes" && cat << \EOF 3235 { test "$extra_verbose" = "yes" && cat << \EOF
3122 Defining HAVE_TIMEVAL 3236 Defining HAVE_TIMEVAL
3134 HAVE_TIMEVAL=no 3248 HAVE_TIMEVAL=no
3135 fi 3249 fi
3136 rm -f conftest* 3250 rm -f conftest*
3137 3251
3138 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3252 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3139 echo "configure:3140: checking whether struct tm is in sys/time.h or time.h" >&5 3253 echo "configure:3254: checking whether struct tm is in sys/time.h or time.h" >&5
3140 3254
3141 cat > conftest.$ac_ext <<EOF 3255 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure" 3256 #line 3257 "configure"
3143 #include "confdefs.h" 3257 #include "confdefs.h"
3144 #include <sys/types.h> 3258 #include <sys/types.h>
3145 #include <time.h> 3259 #include <time.h>
3146 int main() { 3260 int main() {
3147 struct tm *tp; tp->tm_sec; 3261 struct tm *tp; tp->tm_sec;
3148 ; return 0; } 3262 ; return 0; }
3149 EOF 3263 EOF
3150 if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3264 if { (eval echo configure:3265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3151 rm -rf conftest* 3265 rm -rf conftest*
3152 ac_cv_struct_tm=time.h 3266 ac_cv_struct_tm=time.h
3153 else 3267 else
3154 echo "configure: failed program was:" >&5 3268 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5 3269 cat conftest.$ac_ext >&5
3169 } 3283 }
3170 3284
3171 fi 3285 fi
3172 3286
3173 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3287 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3174 echo "configure:3175: checking for tm_zone in struct tm" >&5 3288 echo "configure:3289: checking for tm_zone in struct tm" >&5
3175 3289
3176 cat > conftest.$ac_ext <<EOF 3290 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure" 3291 #line 3292 "configure"
3178 #include "confdefs.h" 3292 #include "confdefs.h"
3179 #include <sys/types.h> 3293 #include <sys/types.h>
3180 #include <$ac_cv_struct_tm> 3294 #include <$ac_cv_struct_tm>
3181 int main() { 3295 int main() {
3182 struct tm tm; tm.tm_zone; 3296 struct tm tm; tm.tm_zone;
3183 ; return 0; } 3297 ; return 0; }
3184 EOF 3298 EOF
3185 if { (eval echo configure:3186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 rm -rf conftest* 3300 rm -rf conftest*
3187 ac_cv_struct_tm_zone=yes 3301 ac_cv_struct_tm_zone=yes
3188 else 3302 else
3189 echo "configure: failed program was:" >&5 3303 echo "configure: failed program was:" >&5
3190 cat conftest.$ac_ext >&5 3304 cat conftest.$ac_ext >&5
3203 EOF 3317 EOF
3204 } 3318 }
3205 3319
3206 else 3320 else
3207 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3321 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3208 echo "configure:3209: checking for tzname" >&5 3322 echo "configure:3323: checking for tzname" >&5
3209 3323
3210 cat > conftest.$ac_ext <<EOF 3324 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure" 3325 #line 3326 "configure"
3212 #include "confdefs.h" 3326 #include "confdefs.h"
3213 #include <time.h> 3327 #include <time.h>
3214 #ifndef tzname /* For SGI. */ 3328 #ifndef tzname /* For SGI. */
3215 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3329 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3216 #endif 3330 #endif
3217 int main() { 3331 int main() {
3218 atoi(*tzname); 3332 atoi(*tzname);
3219 ; return 0; } 3333 ; return 0; }
3220 EOF 3334 EOF
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3335 if { (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3222 rm -rf conftest* 3336 rm -rf conftest*
3223 ac_cv_var_tzname=yes 3337 ac_cv_var_tzname=yes
3224 else 3338 else
3225 echo "configure: failed program was:" >&5 3339 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5 3340 cat conftest.$ac_ext >&5
3242 fi 3356 fi
3243 fi 3357 fi
3244 3358
3245 3359
3246 echo $ac_n "checking for working const""... $ac_c" 1>&6 3360 echo $ac_n "checking for working const""... $ac_c" 1>&6
3247 echo "configure:3248: checking for working const" >&5 3361 echo "configure:3362: checking for working const" >&5
3248 3362
3249 cat > conftest.$ac_ext <<EOF 3363 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure" 3364 #line 3365 "configure"
3251 #include "confdefs.h" 3365 #include "confdefs.h"
3252 3366
3253 int main() { 3367 int main() {
3254 3368
3255 /* Ultrix mips cc rejects this. */ 3369 /* Ultrix mips cc rejects this. */
3294 const int foo = 10; 3408 const int foo = 10;
3295 } 3409 }
3296 3410
3297 ; return 0; } 3411 ; return 0; }
3298 EOF 3412 EOF
3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3413 if { (eval echo configure:3414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3300 rm -rf conftest* 3414 rm -rf conftest*
3301 ac_cv_c_const=yes 3415 ac_cv_c_const=yes
3302 else 3416 else
3303 echo "configure: failed program was:" >&5 3417 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5 3418 cat conftest.$ac_ext >&5
3319 3433
3320 fi 3434 fi
3321 3435
3322 3436
3323 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3437 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3324 echo "configure:3325: checking whether ${MAKE-make} sets \${MAKE}" >&5 3438 echo "configure:3439: checking whether ${MAKE-make} sets \${MAKE}" >&5
3325 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3439 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3326 3440
3327 cat > conftestmake <<\EOF 3441 cat > conftestmake <<\EOF
3328 all: 3442 all:
3329 @echo 'ac_maketemp="${MAKE}"' 3443 @echo 'ac_maketemp="${MAKE}"'
3344 SET_MAKE="MAKE=${MAKE-make}" 3458 SET_MAKE="MAKE=${MAKE-make}"
3345 fi 3459 fi
3346 3460
3347 3461
3348 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3462 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3349 echo "configure:3350: checking whether byte ordering is bigendian" >&5 3463 echo "configure:3464: checking whether byte ordering is bigendian" >&5
3350 3464
3351 ac_cv_c_bigendian=unknown 3465 ac_cv_c_bigendian=unknown
3352 # See if sys/param.h defines the BYTE_ORDER macro. 3466 # See if sys/param.h defines the BYTE_ORDER macro.
3353 cat > conftest.$ac_ext <<EOF 3467 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure" 3468 #line 3469 "configure"
3355 #include "confdefs.h" 3469 #include "confdefs.h"
3356 #include <sys/types.h> 3470 #include <sys/types.h>
3357 #include <sys/param.h> 3471 #include <sys/param.h>
3358 int main() { 3472 int main() {
3359 3473
3360 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3474 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3361 bogus endian macros 3475 bogus endian macros
3362 #endif 3476 #endif
3363 ; return 0; } 3477 ; return 0; }
3364 EOF 3478 EOF
3365 if { (eval echo configure:3366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3479 if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3366 rm -rf conftest* 3480 rm -rf conftest*
3367 # It does; now see whether it defined to BIG_ENDIAN or not. 3481 # It does; now see whether it defined to BIG_ENDIAN or not.
3368 cat > conftest.$ac_ext <<EOF 3482 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure" 3483 #line 3484 "configure"
3370 #include "confdefs.h" 3484 #include "confdefs.h"
3371 #include <sys/types.h> 3485 #include <sys/types.h>
3372 #include <sys/param.h> 3486 #include <sys/param.h>
3373 int main() { 3487 int main() {
3374 3488
3375 #if BYTE_ORDER != BIG_ENDIAN 3489 #if BYTE_ORDER != BIG_ENDIAN
3376 not big endian 3490 not big endian
3377 #endif 3491 #endif
3378 ; return 0; } 3492 ; return 0; }
3379 EOF 3493 EOF
3380 if { (eval echo configure:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3381 rm -rf conftest* 3495 rm -rf conftest*
3382 ac_cv_c_bigendian=yes 3496 ac_cv_c_bigendian=yes
3383 else 3497 else
3384 echo "configure: failed program was:" >&5 3498 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5 3499 cat conftest.$ac_ext >&5
3392 cat conftest.$ac_ext >&5 3506 cat conftest.$ac_ext >&5
3393 fi 3507 fi
3394 rm -f conftest* 3508 rm -f conftest*
3395 if test $ac_cv_c_bigendian = unknown; then 3509 if test $ac_cv_c_bigendian = unknown; then
3396 cat > conftest.$ac_ext <<EOF 3510 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure" 3511 #line 3512 "configure"
3398 #include "confdefs.h" 3512 #include "confdefs.h"
3399 main () { 3513 main () {
3400 /* Are we little or big endian? From Harbison&Steele. */ 3514 /* Are we little or big endian? From Harbison&Steele. */
3401 union 3515 union
3402 { 3516 {
3405 } u; 3519 } u;
3406 u.l = 1; 3520 u.l = 1;
3407 exit (u.c[sizeof (long) - 1] == 1); 3521 exit (u.c[sizeof (long) - 1] == 1);
3408 } 3522 }
3409 EOF 3523 EOF
3410 if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3411 then 3525 then
3412 ac_cv_c_bigendian=no 3526 ac_cv_c_bigendian=no
3413 else 3527 else
3414 echo "configure: failed program was:" >&5 3528 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5 3529 cat conftest.$ac_ext >&5
3431 3545
3432 fi 3546 fi
3433 3547
3434 3548
3435 echo $ac_n "checking size of short""... $ac_c" 1>&6 3549 echo $ac_n "checking size of short""... $ac_c" 1>&6
3436 echo "configure:3437: checking size of short" >&5 3550 echo "configure:3551: checking size of short" >&5
3437 3551
3438 cat > conftest.$ac_ext <<EOF 3552 cat > conftest.$ac_ext <<EOF
3439 #line 3440 "configure" 3553 #line 3554 "configure"
3440 #include "confdefs.h" 3554 #include "confdefs.h"
3441 #include <stdio.h> 3555 #include <stdio.h>
3442 main() 3556 main()
3443 { 3557 {
3444 FILE *f=fopen("conftestval", "w"); 3558 FILE *f=fopen("conftestval", "w");
3445 if (!f) exit(1); 3559 if (!f) exit(1);
3446 fprintf(f, "%d\n", sizeof(short)); 3560 fprintf(f, "%d\n", sizeof(short));
3447 exit(0); 3561 exit(0);
3448 } 3562 }
3449 EOF 3563 EOF
3450 if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3451 then 3565 then
3452 ac_cv_sizeof_short=`cat conftestval` 3566 ac_cv_sizeof_short=`cat conftestval`
3453 else 3567 else
3454 echo "configure: failed program was:" >&5 3568 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5 3569 cat conftest.$ac_ext >&5
3472 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3586 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3473 echo "*** PANIC *** Please examine config.log for compilation errors." 3587 echo "*** PANIC *** Please examine config.log for compilation errors."
3474 exit 1 3588 exit 1
3475 fi 3589 fi
3476 echo $ac_n "checking size of int""... $ac_c" 1>&6 3590 echo $ac_n "checking size of int""... $ac_c" 1>&6
3477 echo "configure:3478: checking size of int" >&5 3591 echo "configure:3592: checking size of int" >&5
3478 3592
3479 cat > conftest.$ac_ext <<EOF 3593 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure" 3594 #line 3595 "configure"
3481 #include "confdefs.h" 3595 #include "confdefs.h"
3482 #include <stdio.h> 3596 #include <stdio.h>
3483 main() 3597 main()
3484 { 3598 {
3485 FILE *f=fopen("conftestval", "w"); 3599 FILE *f=fopen("conftestval", "w");
3486 if (!f) exit(1); 3600 if (!f) exit(1);
3487 fprintf(f, "%d\n", sizeof(int)); 3601 fprintf(f, "%d\n", sizeof(int));
3488 exit(0); 3602 exit(0);
3489 } 3603 }
3490 EOF 3604 EOF
3491 if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3492 then 3606 then
3493 ac_cv_sizeof_int=`cat conftestval` 3607 ac_cv_sizeof_int=`cat conftestval`
3494 else 3608 else
3495 echo "configure: failed program was:" >&5 3609 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5 3610 cat conftest.$ac_ext >&5
3507 EOF 3621 EOF
3508 } 3622 }
3509 3623
3510 3624
3511 echo $ac_n "checking size of long""... $ac_c" 1>&6 3625 echo $ac_n "checking size of long""... $ac_c" 1>&6
3512 echo "configure:3513: checking size of long" >&5 3626 echo "configure:3627: checking size of long" >&5
3513 3627
3514 cat > conftest.$ac_ext <<EOF 3628 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure" 3629 #line 3630 "configure"
3516 #include "confdefs.h" 3630 #include "confdefs.h"
3517 #include <stdio.h> 3631 #include <stdio.h>
3518 main() 3632 main()
3519 { 3633 {
3520 FILE *f=fopen("conftestval", "w"); 3634 FILE *f=fopen("conftestval", "w");
3521 if (!f) exit(1); 3635 if (!f) exit(1);
3522 fprintf(f, "%d\n", sizeof(long)); 3636 fprintf(f, "%d\n", sizeof(long));
3523 exit(0); 3637 exit(0);
3524 } 3638 }
3525 EOF 3639 EOF
3526 if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3640 if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3527 then 3641 then
3528 ac_cv_sizeof_long=`cat conftestval` 3642 ac_cv_sizeof_long=`cat conftestval`
3529 else 3643 else
3530 echo "configure: failed program was:" >&5 3644 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5 3645 cat conftest.$ac_ext >&5
3542 EOF 3656 EOF
3543 } 3657 }
3544 3658
3545 3659
3546 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3660 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3547 echo "configure:3548: checking size of long long" >&5 3661 echo "configure:3662: checking size of long long" >&5
3548 3662
3549 cat > conftest.$ac_ext <<EOF 3663 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure" 3664 #line 3665 "configure"
3551 #include "confdefs.h" 3665 #include "confdefs.h"
3552 #include <stdio.h> 3666 #include <stdio.h>
3553 main() 3667 main()
3554 { 3668 {
3555 FILE *f=fopen("conftestval", "w"); 3669 FILE *f=fopen("conftestval", "w");
3556 if (!f) exit(1); 3670 if (!f) exit(1);
3557 fprintf(f, "%d\n", sizeof(long long)); 3671 fprintf(f, "%d\n", sizeof(long long));
3558 exit(0); 3672 exit(0);
3559 } 3673 }
3560 EOF 3674 EOF
3561 if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3675 if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3562 then 3676 then
3563 ac_cv_sizeof_long_long=`cat conftestval` 3677 ac_cv_sizeof_long_long=`cat conftestval`
3564 else 3678 else
3565 echo "configure: failed program was:" >&5 3679 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5 3680 cat conftest.$ac_ext >&5
3577 EOF 3691 EOF
3578 } 3692 }
3579 3693
3580 3694
3581 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3695 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3582 echo "configure:3583: checking size of void *" >&5 3696 echo "configure:3697: checking size of void *" >&5
3583 3697
3584 cat > conftest.$ac_ext <<EOF 3698 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure" 3699 #line 3700 "configure"
3586 #include "confdefs.h" 3700 #include "confdefs.h"
3587 #include <stdio.h> 3701 #include <stdio.h>
3588 main() 3702 main()
3589 { 3703 {
3590 FILE *f=fopen("conftestval", "w"); 3704 FILE *f=fopen("conftestval", "w");
3591 if (!f) exit(1); 3705 if (!f) exit(1);
3592 fprintf(f, "%d\n", sizeof(void *)); 3706 fprintf(f, "%d\n", sizeof(void *));
3593 exit(0); 3707 exit(0);
3594 } 3708 }
3595 EOF 3709 EOF
3596 if { (eval echo configure:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3597 then 3711 then
3598 ac_cv_sizeof_void_p=`cat conftestval` 3712 ac_cv_sizeof_void_p=`cat conftestval`
3599 else 3713 else
3600 echo "configure: failed program was:" >&5 3714 echo "configure: failed program was:" >&5
3601 cat conftest.$ac_ext >&5 3715 cat conftest.$ac_ext >&5
3613 } 3727 }
3614 3728
3615 3729
3616 3730
3617 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3731 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3618 echo "configure:3619: checking for long file names" >&5 3732 echo "configure:3733: checking for long file names" >&5
3619 3733
3620 ac_cv_sys_long_file_names=yes 3734 ac_cv_sys_long_file_names=yes
3621 # Test for long file names in all the places we know might matter: 3735 # Test for long file names in all the places we know might matter:
3622 # . the current directory, where building will happen 3736 # . the current directory, where building will happen
3623 # $prefix/lib where we will be installing things 3737 # $prefix/lib where we will be installing things
3660 fi 3774 fi
3661 3775
3662 3776
3663 3777
3664 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 3778 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
3665 echo "configure:3666: checking for sqrt in -lm" >&5 3779 echo "configure:3780: checking for sqrt in -lm" >&5
3666 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 3780 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
3667 3781
3668 xe_check_libs=" -lm " 3782 xe_check_libs=" -lm "
3669 cat > conftest.$ac_ext <<EOF 3783 cat > conftest.$ac_ext <<EOF
3670 #line 3671 "configure" 3784 #line 3785 "configure"
3671 #include "confdefs.h" 3785 #include "confdefs.h"
3672 /* Override any gcc2 internal prototype to avoid an error. */ 3786 /* Override any gcc2 internal prototype to avoid an error. */
3673 /* We use char because int might match the return type of a gcc2 3787 /* We use char because int might match the return type of a gcc2
3674 builtin and then its argument prototype would still apply. */ 3788 builtin and then its argument prototype would still apply. */
3675 char sqrt(); 3789 char sqrt();
3676 3790
3677 int main() { 3791 int main() {
3678 sqrt() 3792 sqrt()
3679 ; return 0; } 3793 ; return 0; }
3680 EOF 3794 EOF
3681 if { (eval echo configure:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3795 if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3682 rm -rf conftest* 3796 rm -rf conftest*
3683 eval "ac_cv_lib_$ac_lib_var=yes" 3797 eval "ac_cv_lib_$ac_lib_var=yes"
3684 else 3798 else
3685 echo "configure: failed program was:" >&5 3799 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5 3800 cat conftest.$ac_ext >&5
3719 EOF 3833 EOF
3720 } 3834 }
3721 3835
3722 3836
3723 echo "checking type of mail spool file locking" 1>&6 3837 echo "checking type of mail spool file locking" 1>&6
3724 echo "configure:3725: checking type of mail spool file locking" >&5 3838 echo "configure:3839: checking type of mail spool file locking" >&5
3725 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3839 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3726 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3840 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3727 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3841 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3728 Defining REAL_MAIL_USE_LOCKF 3842 Defining REAL_MAIL_USE_LOCKF
3729 EOF 3843 EOF
3743 else mail_locking="dot-locking" 3857 else mail_locking="dot-locking"
3744 fi 3858 fi
3745 3859
3746 3860
3747 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3861 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3748 echo "configure:3749: checking for kstat_open in -lkstat" >&5 3862 echo "configure:3863: checking for kstat_open in -lkstat" >&5
3749 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3863 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3750 3864
3751 xe_check_libs=" -lkstat " 3865 xe_check_libs=" -lkstat "
3752 cat > conftest.$ac_ext <<EOF 3866 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure" 3867 #line 3868 "configure"
3754 #include "confdefs.h" 3868 #include "confdefs.h"
3755 /* Override any gcc2 internal prototype to avoid an error. */ 3869 /* Override any gcc2 internal prototype to avoid an error. */
3756 /* We use char because int might match the return type of a gcc2 3870 /* We use char because int might match the return type of a gcc2
3757 builtin and then its argument prototype would still apply. */ 3871 builtin and then its argument prototype would still apply. */
3758 char kstat_open(); 3872 char kstat_open();
3759 3873
3760 int main() { 3874 int main() {
3761 kstat_open() 3875 kstat_open()
3762 ; return 0; } 3876 ; return 0; }
3763 EOF 3877 EOF
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3878 if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3765 rm -rf conftest* 3879 rm -rf conftest*
3766 eval "ac_cv_lib_$ac_lib_var=yes" 3880 eval "ac_cv_lib_$ac_lib_var=yes"
3767 else 3881 else
3768 echo "configure: failed program was:" >&5 3882 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5 3883 cat conftest.$ac_ext >&5
3793 3907
3794 3908
3795 3909
3796 3910
3797 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 3911 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3798 echo "configure:3799: checking for kvm_read in -lkvm" >&5 3912 echo "configure:3913: checking for kvm_read in -lkvm" >&5
3799 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 3913 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3800 3914
3801 xe_check_libs=" -lkvm " 3915 xe_check_libs=" -lkvm "
3802 cat > conftest.$ac_ext <<EOF 3916 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure" 3917 #line 3918 "configure"
3804 #include "confdefs.h" 3918 #include "confdefs.h"
3805 /* Override any gcc2 internal prototype to avoid an error. */ 3919 /* Override any gcc2 internal prototype to avoid an error. */
3806 /* We use char because int might match the return type of a gcc2 3920 /* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */ 3921 builtin and then its argument prototype would still apply. */
3808 char kvm_read(); 3922 char kvm_read();
3809 3923
3810 int main() { 3924 int main() {
3811 kvm_read() 3925 kvm_read()
3812 ; return 0; } 3926 ; return 0; }
3813 EOF 3927 EOF
3814 if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3928 if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3815 rm -rf conftest* 3929 rm -rf conftest*
3816 eval "ac_cv_lib_$ac_lib_var=yes" 3930 eval "ac_cv_lib_$ac_lib_var=yes"
3817 else 3931 else
3818 echo "configure: failed program was:" >&5 3932 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5 3933 cat conftest.$ac_ext >&5
3843 3957
3844 3958
3845 3959
3846 3960
3847 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3961 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3848 echo "configure:3849: checking for cma_open in -lpthreads" >&5 3962 echo "configure:3963: checking for cma_open in -lpthreads" >&5
3849 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3963 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3850 3964
3851 xe_check_libs=" -lpthreads " 3965 xe_check_libs=" -lpthreads "
3852 cat > conftest.$ac_ext <<EOF 3966 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure" 3967 #line 3968 "configure"
3854 #include "confdefs.h" 3968 #include "confdefs.h"
3855 /* Override any gcc2 internal prototype to avoid an error. */ 3969 /* Override any gcc2 internal prototype to avoid an error. */
3856 /* We use char because int might match the return type of a gcc2 3970 /* We use char because int might match the return type of a gcc2
3857 builtin and then its argument prototype would still apply. */ 3971 builtin and then its argument prototype would still apply. */
3858 char cma_open(); 3972 char cma_open();
3859 3973
3860 int main() { 3974 int main() {
3861 cma_open() 3975 cma_open()
3862 ; return 0; } 3976 ; return 0; }
3863 EOF 3977 EOF
3864 if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3865 rm -rf conftest* 3979 rm -rf conftest*
3866 eval "ac_cv_lib_$ac_lib_var=yes" 3980 eval "ac_cv_lib_$ac_lib_var=yes"
3867 else 3981 else
3868 echo "configure: failed program was:" >&5 3982 echo "configure: failed program was:" >&5
3869 cat conftest.$ac_ext >&5 3983 cat conftest.$ac_ext >&5
3895 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 4009 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
3896 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 4010 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
3897 fi 4011 fi
3898 4012
3899 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4013 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
3900 echo "configure:3901: checking whether the -xildoff compiler flag is required" >&5 4014 echo "configure:4015: checking whether the -xildoff compiler flag is required" >&5
3901 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4015 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
3902 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4016 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
3903 then echo "$ac_t""no" 1>&6; 4017 then echo "$ac_t""no" 1>&6;
3904 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 4018 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
3905 fi 4019 fi
3906 else echo "$ac_t""no" 1>&6 4020 else echo "$ac_t""no" 1>&6
3907 fi 4021 fi
3908 4022
3909 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4023 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
3910 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4024 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
3911 echo "configure:3912: checking for \"-z ignore\" linker flag" >&5 4025 echo "configure:4026: checking for \"-z ignore\" linker flag" >&5
3912 case "`ld -h 2>&1`" in 4026 case "`ld -h 2>&1`" in
3913 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4027 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
3914 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4028 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
3915 *) echo "$ac_t""no" 1>&6 ;; 4029 *) echo "$ac_t""no" 1>&6 ;;
3916 esac 4030 esac
3917 fi 4031 fi
3918 4032
3919 4033
3920 echo "checking "for specified window system"" 1>&6 4034 echo "checking "for specified window system"" 1>&6
3921 echo "configure:3922: checking "for specified window system"" >&5 4035 echo "configure:4036: checking "for specified window system"" >&5
3922 4036
3923 if test "$x_includes $x_libraries" = "NONE NONE"; then 4037 if test "$x_includes $x_libraries" = "NONE NONE"; then
3924 if test -n "$OPENWINHOME" \ 4038 if test -n "$OPENWINHOME" \
3925 -a "$OPENWINHOME" != "/usr/openwin" \ 4039 -a "$OPENWINHOME" != "/usr/openwin" \
3926 -a -d "$OPENWINHOME"; then 4040 -a -d "$OPENWINHOME"; then
3937 # If we find X, set shell vars x_includes and x_libraries to the 4051 # If we find X, set shell vars x_includes and x_libraries to the
3938 # paths, otherwise set no_x=yes. 4052 # paths, otherwise set no_x=yes.
3939 # Uses ac_ vars as temps to allow command line to override cache and checks. 4053 # Uses ac_ vars as temps to allow command line to override cache and checks.
3940 # --without-x overrides everything else, but does not touch the cache. 4054 # --without-x overrides everything else, but does not touch the cache.
3941 echo $ac_n "checking for X""... $ac_c" 1>&6 4055 echo $ac_n "checking for X""... $ac_c" 1>&6
3942 echo "configure:3943: checking for X" >&5 4056 echo "configure:4057: checking for X" >&5
3943 4057
3944 # Check whether --with-x or --without-x was given. 4058 # Check whether --with-x or --without-x was given.
3945 if test "${with_x+set}" = set; then 4059 if test "${with_x+set}" = set; then
3946 withval="$with_x" 4060 withval="$with_x"
3947 : 4061 :
3997 # Guess where to find include files, by looking for this one X11 .h file. 4111 # Guess where to find include files, by looking for this one X11 .h file.
3998 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4112 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3999 4113
4000 # First, try using that file with no special directory specified. 4114 # First, try using that file with no special directory specified.
4001 cat > conftest.$ac_ext <<EOF 4115 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure" 4116 #line 4117 "configure"
4003 #include "confdefs.h" 4117 #include "confdefs.h"
4004 #include <$x_direct_test_include> 4118 #include <$x_direct_test_include>
4005 EOF 4119 EOF
4006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4007 { (eval echo configure:4008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4121 { (eval echo configure:4122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4008 ac_err=`grep -v '^ *+' conftest.out` 4122 ac_err=`grep -v '^ *+' conftest.out`
4009 if test -z "$ac_err"; then 4123 if test -z "$ac_err"; then
4010 rm -rf conftest* 4124 rm -rf conftest*
4011 # We can compile using X headers with no special include directory. 4125 # We can compile using X headers with no special include directory.
4012 ac_x_includes= 4126 ac_x_includes=
4071 # See if we find them without any special options. 4185 # See if we find them without any special options.
4072 # Don't add to $LIBS permanently. 4186 # Don't add to $LIBS permanently.
4073 ac_save_LIBS="$LIBS" 4187 ac_save_LIBS="$LIBS"
4074 LIBS="-l$x_direct_test_library $LIBS" 4188 LIBS="-l$x_direct_test_library $LIBS"
4075 cat > conftest.$ac_ext <<EOF 4189 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure" 4190 #line 4191 "configure"
4077 #include "confdefs.h" 4191 #include "confdefs.h"
4078 4192
4079 int main() { 4193 int main() {
4080 ${x_direct_test_function}() 4194 ${x_direct_test_function}()
4081 ; return 0; } 4195 ; return 0; }
4082 EOF 4196 EOF
4083 if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4084 rm -rf conftest* 4198 rm -rf conftest*
4085 LIBS="$ac_save_LIBS" 4199 LIBS="$ac_save_LIBS"
4086 # We can link X programs with no special library path. 4200 # We can link X programs with no special library path.
4087 ac_x_libraries= 4201 ac_x_libraries=
4088 else 4202 else
4187 # For Solaris; some versions of Sun CC require a space after -R and 4301 # For Solaris; some versions of Sun CC require a space after -R and
4188 # others require no space. Words are not sufficient . . . . 4302 # others require no space. Words are not sufficient . . . .
4189 case "`(uname -sr) 2>/dev/null`" in 4303 case "`(uname -sr) 2>/dev/null`" in
4190 "SunOS 5"*) 4304 "SunOS 5"*)
4191 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4305 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4192 echo "configure:4193: checking whether -R must be followed by a space" >&5 4306 echo "configure:4307: checking whether -R must be followed by a space" >&5
4193 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4307 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4194 cat > conftest.$ac_ext <<EOF 4308 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure" 4309 #line 4310 "configure"
4196 #include "confdefs.h" 4310 #include "confdefs.h"
4197 4311
4198 int main() { 4312 int main() {
4199 4313
4200 ; return 0; } 4314 ; return 0; }
4201 EOF 4315 EOF
4202 if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4316 if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4203 rm -rf conftest* 4317 rm -rf conftest*
4204 ac_R_nospace=yes 4318 ac_R_nospace=yes
4205 else 4319 else
4206 echo "configure: failed program was:" >&5 4320 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5 4321 cat conftest.$ac_ext >&5
4213 echo "$ac_t""no" 1>&6 4327 echo "$ac_t""no" 1>&6
4214 X_LIBS="$X_LIBS -R$x_libraries" 4328 X_LIBS="$X_LIBS -R$x_libraries"
4215 else 4329 else
4216 LIBS="$ac_xsave_LIBS -R $x_libraries" 4330 LIBS="$ac_xsave_LIBS -R $x_libraries"
4217 cat > conftest.$ac_ext <<EOF 4331 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure" 4332 #line 4333 "configure"
4219 #include "confdefs.h" 4333 #include "confdefs.h"
4220 4334
4221 int main() { 4335 int main() {
4222 4336
4223 ; return 0; } 4337 ; return 0; }
4224 EOF 4338 EOF
4225 if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4339 if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4226 rm -rf conftest* 4340 rm -rf conftest*
4227 ac_R_space=yes 4341 ac_R_space=yes
4228 else 4342 else
4229 echo "configure: failed program was:" >&5 4343 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5 4344 cat conftest.$ac_ext >&5
4256 if test "$with_dnet" = "no" ; then 4370 if test "$with_dnet" = "no" ; then
4257 ac_cv_lib_dnet_dnet_ntoa=no 4371 ac_cv_lib_dnet_dnet_ntoa=no
4258 else 4372 else
4259 4373
4260 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4374 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4261 echo "configure:4262: checking for dnet_ntoa in -ldnet" >&5 4375 echo "configure:4376: checking for dnet_ntoa in -ldnet" >&5
4262 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4376 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4263 4377
4264 xe_check_libs=" -ldnet " 4378 xe_check_libs=" -ldnet "
4265 cat > conftest.$ac_ext <<EOF 4379 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure" 4380 #line 4381 "configure"
4267 #include "confdefs.h" 4381 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */ 4382 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2 4383 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */ 4384 builtin and then its argument prototype would still apply. */
4271 char dnet_ntoa(); 4385 char dnet_ntoa();
4272 4386
4273 int main() { 4387 int main() {
4274 dnet_ntoa() 4388 dnet_ntoa()
4275 ; return 0; } 4389 ; return 0; }
4276 EOF 4390 EOF
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4391 if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4278 rm -rf conftest* 4392 rm -rf conftest*
4279 eval "ac_cv_lib_$ac_lib_var=yes" 4393 eval "ac_cv_lib_$ac_lib_var=yes"
4280 else 4394 else
4281 echo "configure: failed program was:" >&5 4395 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5 4396 cat conftest.$ac_ext >&5
4296 fi 4410 fi
4297 4411
4298 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4412 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4299 4413
4300 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4414 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4301 echo "configure:4302: checking for dnet_ntoa in -ldnet_stub" >&5 4415 echo "configure:4416: checking for dnet_ntoa in -ldnet_stub" >&5
4302 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4416 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4303 4417
4304 xe_check_libs=" -ldnet_stub " 4418 xe_check_libs=" -ldnet_stub "
4305 cat > conftest.$ac_ext <<EOF 4419 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure" 4420 #line 4421 "configure"
4307 #include "confdefs.h" 4421 #include "confdefs.h"
4308 /* Override any gcc2 internal prototype to avoid an error. */ 4422 /* Override any gcc2 internal prototype to avoid an error. */
4309 /* We use char because int might match the return type of a gcc2 4423 /* We use char because int might match the return type of a gcc2
4310 builtin and then its argument prototype would still apply. */ 4424 builtin and then its argument prototype would still apply. */
4311 char dnet_ntoa(); 4425 char dnet_ntoa();
4312 4426
4313 int main() { 4427 int main() {
4314 dnet_ntoa() 4428 dnet_ntoa()
4315 ; return 0; } 4429 ; return 0; }
4316 EOF 4430 EOF
4317 if { (eval echo configure:4318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4318 rm -rf conftest* 4432 rm -rf conftest*
4319 eval "ac_cv_lib_$ac_lib_var=yes" 4433 eval "ac_cv_lib_$ac_lib_var=yes"
4320 else 4434 else
4321 echo "configure: failed program was:" >&5 4435 echo "configure: failed program was:" >&5
4322 cat conftest.$ac_ext >&5 4436 cat conftest.$ac_ext >&5
4341 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4455 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4342 # needs -lnsl. 4456 # needs -lnsl.
4343 # The nsl library prevents programs from opening the X display 4457 # The nsl library prevents programs from opening the X display
4344 # on Irix 5.2, according to dickey@clark.net. 4458 # on Irix 5.2, according to dickey@clark.net.
4345 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4459 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4346 echo "configure:4347: checking for gethostbyname" >&5 4460 echo "configure:4461: checking for gethostbyname" >&5
4347 4461
4348 cat > conftest.$ac_ext <<EOF 4462 cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure" 4463 #line 4464 "configure"
4350 #include "confdefs.h" 4464 #include "confdefs.h"
4351 /* System header to define __stub macros and hopefully few prototypes, 4465 /* System header to define __stub macros and hopefully few prototypes,
4352 which can conflict with char gethostbyname(); below. */ 4466 which can conflict with char gethostbyname(); below. */
4353 #include <assert.h> 4467 #include <assert.h>
4354 /* Override any gcc2 internal prototype to avoid an error. */ 4468 /* Override any gcc2 internal prototype to avoid an error. */
4367 gethostbyname(); 4481 gethostbyname();
4368 #endif 4482 #endif
4369 4483
4370 ; return 0; } 4484 ; return 0; }
4371 EOF 4485 EOF
4372 if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4486 if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4373 rm -rf conftest* 4487 rm -rf conftest*
4374 eval "ac_cv_func_gethostbyname=yes" 4488 eval "ac_cv_func_gethostbyname=yes"
4375 else 4489 else
4376 echo "configure: failed program was:" >&5 4490 echo "configure: failed program was:" >&5
4377 cat conftest.$ac_ext >&5 4491 cat conftest.$ac_ext >&5
4388 fi 4502 fi
4389 4503
4390 if test $ac_cv_func_gethostbyname = no; then 4504 if test $ac_cv_func_gethostbyname = no; then
4391 4505
4392 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4506 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4393 echo "configure:4394: checking for gethostbyname in -lnsl" >&5 4507 echo "configure:4508: checking for gethostbyname in -lnsl" >&5
4394 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4508 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4395 4509
4396 xe_check_libs=" -lnsl " 4510 xe_check_libs=" -lnsl "
4397 cat > conftest.$ac_ext <<EOF 4511 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure" 4512 #line 4513 "configure"
4399 #include "confdefs.h" 4513 #include "confdefs.h"
4400 /* Override any gcc2 internal prototype to avoid an error. */ 4514 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2 4515 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */ 4516 builtin and then its argument prototype would still apply. */
4403 char gethostbyname(); 4517 char gethostbyname();
4404 4518
4405 int main() { 4519 int main() {
4406 gethostbyname() 4520 gethostbyname()
4407 ; return 0; } 4521 ; return 0; }
4408 EOF 4522 EOF
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4410 rm -rf conftest* 4524 rm -rf conftest*
4411 eval "ac_cv_lib_$ac_lib_var=yes" 4525 eval "ac_cv_lib_$ac_lib_var=yes"
4412 else 4526 else
4413 echo "configure: failed program was:" >&5 4527 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5 4528 cat conftest.$ac_ext >&5
4434 # on later versions), says simon@lia.di.epfl.ch: it contains 4548 # on later versions), says simon@lia.di.epfl.ch: it contains
4435 # gethostby* variants that don't use the nameserver (or something). 4549 # gethostby* variants that don't use the nameserver (or something).
4436 # -lsocket must be given before -lnsl if both are needed. 4550 # -lsocket must be given before -lnsl if both are needed.
4437 # We assume that if connect needs -lnsl, so does gethostbyname. 4551 # We assume that if connect needs -lnsl, so does gethostbyname.
4438 echo $ac_n "checking for connect""... $ac_c" 1>&6 4552 echo $ac_n "checking for connect""... $ac_c" 1>&6
4439 echo "configure:4440: checking for connect" >&5 4553 echo "configure:4554: checking for connect" >&5
4440 4554
4441 cat > conftest.$ac_ext <<EOF 4555 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure" 4556 #line 4557 "configure"
4443 #include "confdefs.h" 4557 #include "confdefs.h"
4444 /* System header to define __stub macros and hopefully few prototypes, 4558 /* System header to define __stub macros and hopefully few prototypes,
4445 which can conflict with char connect(); below. */ 4559 which can conflict with char connect(); below. */
4446 #include <assert.h> 4560 #include <assert.h>
4447 /* Override any gcc2 internal prototype to avoid an error. */ 4561 /* Override any gcc2 internal prototype to avoid an error. */
4460 connect(); 4574 connect();
4461 #endif 4575 #endif
4462 4576
4463 ; return 0; } 4577 ; return 0; }
4464 EOF 4578 EOF
4465 if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4579 if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4466 rm -rf conftest* 4580 rm -rf conftest*
4467 eval "ac_cv_func_connect=yes" 4581 eval "ac_cv_func_connect=yes"
4468 else 4582 else
4469 echo "configure: failed program was:" >&5 4583 echo "configure: failed program was:" >&5
4470 cat conftest.$ac_ext >&5 4584 cat conftest.$ac_ext >&5
4483 if test $ac_cv_func_connect = no; then 4597 if test $ac_cv_func_connect = no; then
4484 4598
4485 xe_msg_checking="for connect in -lsocket" 4599 xe_msg_checking="for connect in -lsocket"
4486 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4600 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4487 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4601 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4488 echo "configure:4489: checking "$xe_msg_checking"" >&5 4602 echo "configure:4603: checking "$xe_msg_checking"" >&5
4489 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4603 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4490 4604
4491 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4605 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4492 cat > conftest.$ac_ext <<EOF 4606 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure" 4607 #line 4608 "configure"
4494 #include "confdefs.h" 4608 #include "confdefs.h"
4495 /* Override any gcc2 internal prototype to avoid an error. */ 4609 /* Override any gcc2 internal prototype to avoid an error. */
4496 /* We use char because int might match the return type of a gcc2 4610 /* We use char because int might match the return type of a gcc2
4497 builtin and then its argument prototype would still apply. */ 4611 builtin and then its argument prototype would still apply. */
4498 char connect(); 4612 char connect();
4499 4613
4500 int main() { 4614 int main() {
4501 connect() 4615 connect()
4502 ; return 0; } 4616 ; return 0; }
4503 EOF 4617 EOF
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4505 rm -rf conftest* 4619 rm -rf conftest*
4506 eval "ac_cv_lib_$ac_lib_var=yes" 4620 eval "ac_cv_lib_$ac_lib_var=yes"
4507 else 4621 else
4508 echo "configure: failed program was:" >&5 4622 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5 4623 cat conftest.$ac_ext >&5
4523 4637
4524 fi 4638 fi
4525 4639
4526 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4640 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4527 echo $ac_n "checking for remove""... $ac_c" 1>&6 4641 echo $ac_n "checking for remove""... $ac_c" 1>&6
4528 echo "configure:4529: checking for remove" >&5 4642 echo "configure:4643: checking for remove" >&5
4529 4643
4530 cat > conftest.$ac_ext <<EOF 4644 cat > conftest.$ac_ext <<EOF
4531 #line 4532 "configure" 4645 #line 4646 "configure"
4532 #include "confdefs.h" 4646 #include "confdefs.h"
4533 /* System header to define __stub macros and hopefully few prototypes, 4647 /* System header to define __stub macros and hopefully few prototypes,
4534 which can conflict with char remove(); below. */ 4648 which can conflict with char remove(); below. */
4535 #include <assert.h> 4649 #include <assert.h>
4536 /* Override any gcc2 internal prototype to avoid an error. */ 4650 /* Override any gcc2 internal prototype to avoid an error. */
4549 remove(); 4663 remove();
4550 #endif 4664 #endif
4551 4665
4552 ; return 0; } 4666 ; return 0; }
4553 EOF 4667 EOF
4554 if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4555 rm -rf conftest* 4669 rm -rf conftest*
4556 eval "ac_cv_func_remove=yes" 4670 eval "ac_cv_func_remove=yes"
4557 else 4671 else
4558 echo "configure: failed program was:" >&5 4672 echo "configure: failed program was:" >&5
4559 cat conftest.$ac_ext >&5 4673 cat conftest.$ac_ext >&5
4570 fi 4684 fi
4571 4685
4572 if test $ac_cv_func_remove = no; then 4686 if test $ac_cv_func_remove = no; then
4573 4687
4574 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4688 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4575 echo "configure:4576: checking for remove in -lposix" >&5 4689 echo "configure:4690: checking for remove in -lposix" >&5
4576 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4690 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4577 4691
4578 xe_check_libs=" -lposix " 4692 xe_check_libs=" -lposix "
4579 cat > conftest.$ac_ext <<EOF 4693 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure" 4694 #line 4695 "configure"
4581 #include "confdefs.h" 4695 #include "confdefs.h"
4582 /* Override any gcc2 internal prototype to avoid an error. */ 4696 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* We use char because int might match the return type of a gcc2 4697 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */ 4698 builtin and then its argument prototype would still apply. */
4585 char remove(); 4699 char remove();
4586 4700
4587 int main() { 4701 int main() {
4588 remove() 4702 remove()
4589 ; return 0; } 4703 ; return 0; }
4590 EOF 4704 EOF
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4705 if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4592 rm -rf conftest* 4706 rm -rf conftest*
4593 eval "ac_cv_lib_$ac_lib_var=yes" 4707 eval "ac_cv_lib_$ac_lib_var=yes"
4594 else 4708 else
4595 echo "configure: failed program was:" >&5 4709 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5 4710 cat conftest.$ac_ext >&5
4610 4724
4611 fi 4725 fi
4612 4726
4613 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4727 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4614 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4728 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4615 echo "configure:4616: checking for shmat" >&5 4729 echo "configure:4730: checking for shmat" >&5
4616 4730
4617 cat > conftest.$ac_ext <<EOF 4731 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure" 4732 #line 4733 "configure"
4619 #include "confdefs.h" 4733 #include "confdefs.h"
4620 /* System header to define __stub macros and hopefully few prototypes, 4734 /* System header to define __stub macros and hopefully few prototypes,
4621 which can conflict with char shmat(); below. */ 4735 which can conflict with char shmat(); below. */
4622 #include <assert.h> 4736 #include <assert.h>
4623 /* Override any gcc2 internal prototype to avoid an error. */ 4737 /* Override any gcc2 internal prototype to avoid an error. */
4636 shmat(); 4750 shmat();
4637 #endif 4751 #endif
4638 4752
4639 ; return 0; } 4753 ; return 0; }
4640 EOF 4754 EOF
4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4755 if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4642 rm -rf conftest* 4756 rm -rf conftest*
4643 eval "ac_cv_func_shmat=yes" 4757 eval "ac_cv_func_shmat=yes"
4644 else 4758 else
4645 echo "configure: failed program was:" >&5 4759 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5 4760 cat conftest.$ac_ext >&5
4657 fi 4771 fi
4658 4772
4659 if test $ac_cv_func_shmat = no; then 4773 if test $ac_cv_func_shmat = no; then
4660 4774
4661 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4775 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4662 echo "configure:4663: checking for shmat in -lipc" >&5 4776 echo "configure:4777: checking for shmat in -lipc" >&5
4663 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4777 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4664 4778
4665 xe_check_libs=" -lipc " 4779 xe_check_libs=" -lipc "
4666 cat > conftest.$ac_ext <<EOF 4780 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure" 4781 #line 4782 "configure"
4668 #include "confdefs.h" 4782 #include "confdefs.h"
4669 /* Override any gcc2 internal prototype to avoid an error. */ 4783 /* Override any gcc2 internal prototype to avoid an error. */
4670 /* We use char because int might match the return type of a gcc2 4784 /* We use char because int might match the return type of a gcc2
4671 builtin and then its argument prototype would still apply. */ 4785 builtin and then its argument prototype would still apply. */
4672 char shmat(); 4786 char shmat();
4673 4787
4674 int main() { 4788 int main() {
4675 shmat() 4789 shmat()
4676 ; return 0; } 4790 ; return 0; }
4677 EOF 4791 EOF
4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4679 rm -rf conftest* 4793 rm -rf conftest*
4680 eval "ac_cv_lib_$ac_lib_var=yes" 4794 eval "ac_cv_lib_$ac_lib_var=yes"
4681 else 4795 else
4682 echo "configure: failed program was:" >&5 4796 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5 4797 cat conftest.$ac_ext >&5
4707 # These have to be linked with before -lX11, unlike the other 4821 # These have to be linked with before -lX11, unlike the other
4708 # libraries we check for below, so use a different variable. 4822 # libraries we check for below, so use a different variable.
4709 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4823 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4710 4824
4711 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4825 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4712 echo "configure:4713: checking for IceConnectionNumber in -lICE" >&5 4826 echo "configure:4827: checking for IceConnectionNumber in -lICE" >&5
4713 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4827 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4714 4828
4715 xe_check_libs=" -lICE " 4829 xe_check_libs=" -lICE "
4716 cat > conftest.$ac_ext <<EOF 4830 cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure" 4831 #line 4832 "configure"
4718 #include "confdefs.h" 4832 #include "confdefs.h"
4719 /* Override any gcc2 internal prototype to avoid an error. */ 4833 /* Override any gcc2 internal prototype to avoid an error. */
4720 /* We use char because int might match the return type of a gcc2 4834 /* We use char because int might match the return type of a gcc2
4721 builtin and then its argument prototype would still apply. */ 4835 builtin and then its argument prototype would still apply. */
4722 char IceConnectionNumber(); 4836 char IceConnectionNumber();
4723 4837
4724 int main() { 4838 int main() {
4725 IceConnectionNumber() 4839 IceConnectionNumber()
4726 ; return 0; } 4840 ; return 0; }
4727 EOF 4841 EOF
4728 if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4729 rm -rf conftest* 4843 rm -rf conftest*
4730 eval "ac_cv_lib_$ac_lib_var=yes" 4844 eval "ac_cv_lib_$ac_lib_var=yes"
4731 else 4845 else
4732 echo "configure: failed program was:" >&5 4846 echo "configure: failed program was:" >&5
4733 cat conftest.$ac_ext >&5 4847 cat conftest.$ac_ext >&5
4855 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done 4969 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
4856 echo 4970 echo
4857 fi 4971 fi
4858 4972
4859 echo "checking for X defines extracted by xmkmf" 1>&6 4973 echo "checking for X defines extracted by xmkmf" 1>&6
4860 echo "configure:4861: checking for X defines extracted by xmkmf" >&5 4974 echo "configure:4975: checking for X defines extracted by xmkmf" >&5
4861 rm -fr conftestdir 4975 rm -fr conftestdir
4862 if mkdir conftestdir; then 4976 if mkdir conftestdir; then
4863 cd conftestdir 4977 cd conftestdir
4864 cat > Imakefile <<'EOF' 4978 cat > Imakefile <<'EOF'
4865 xetest: 4979 xetest:
4887 done 5001 done
4888 fi 5002 fi
4889 5003
4890 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5004 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
4891 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5005 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
4892 echo "configure:4893: checking for X11/Intrinsic.h" >&5 5006 echo "configure:5007: checking for X11/Intrinsic.h" >&5
4893 5007
4894 cat > conftest.$ac_ext <<EOF 5008 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure" 5009 #line 5010 "configure"
4896 #include "confdefs.h" 5010 #include "confdefs.h"
4897 #include <X11/Intrinsic.h> 5011 #include <X11/Intrinsic.h>
4898 EOF 5012 EOF
4899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4900 { (eval echo configure:4901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5014 { (eval echo configure:5015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4901 ac_err=`grep -v '^ *+' conftest.out` 5015 ac_err=`grep -v '^ *+' conftest.out`
4902 if test -z "$ac_err"; then 5016 if test -z "$ac_err"; then
4903 rm -rf conftest* 5017 rm -rf conftest*
4904 eval "ac_cv_header_$ac_safe=yes" 5018 eval "ac_cv_header_$ac_safe=yes"
4905 else 5019 else
4919 fi 5033 fi
4920 5034
4921 5035
4922 5036
4923 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5037 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
4924 echo "configure:4925: checking for XOpenDisplay in -lX11" >&5 5038 echo "configure:5039: checking for XOpenDisplay in -lX11" >&5
4925 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5039 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
4926 5040
4927 xe_check_libs=" -lX11 " 5041 xe_check_libs=" -lX11 "
4928 cat > conftest.$ac_ext <<EOF 5042 cat > conftest.$ac_ext <<EOF
4929 #line 4930 "configure" 5043 #line 5044 "configure"
4930 #include "confdefs.h" 5044 #include "confdefs.h"
4931 /* Override any gcc2 internal prototype to avoid an error. */ 5045 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2 5046 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */ 5047 builtin and then its argument prototype would still apply. */
4934 char XOpenDisplay(); 5048 char XOpenDisplay();
4935 5049
4936 int main() { 5050 int main() {
4937 XOpenDisplay() 5051 XOpenDisplay()
4938 ; return 0; } 5052 ; return 0; }
4939 EOF 5053 EOF
4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4941 rm -rf conftest* 5055 rm -rf conftest*
4942 eval "ac_cv_lib_$ac_lib_var=yes" 5056 eval "ac_cv_lib_$ac_lib_var=yes"
4943 else 5057 else
4944 echo "configure: failed program was:" >&5 5058 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5 5059 cat conftest.$ac_ext >&5
4960 if test "$have_lib_x11" != "yes"; then 5074 if test "$have_lib_x11" != "yes"; then
4961 5075
4962 xe_msg_checking="for XGetFontProperty in -lX11" 5076 xe_msg_checking="for XGetFontProperty in -lX11"
4963 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5077 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
4964 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5078 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4965 echo "configure:4966: checking "$xe_msg_checking"" >&5 5079 echo "configure:5080: checking "$xe_msg_checking"" >&5
4966 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5080 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
4967 5081
4968 xe_check_libs=" -lX11 -b i486-linuxaout" 5082 xe_check_libs=" -lX11 -b i486-linuxaout"
4969 cat > conftest.$ac_ext <<EOF 5083 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure" 5084 #line 5085 "configure"
4971 #include "confdefs.h" 5085 #include "confdefs.h"
4972 /* Override any gcc2 internal prototype to avoid an error. */ 5086 /* Override any gcc2 internal prototype to avoid an error. */
4973 /* We use char because int might match the return type of a gcc2 5087 /* We use char because int might match the return type of a gcc2
4974 builtin and then its argument prototype would still apply. */ 5088 builtin and then its argument prototype would still apply. */
4975 char XGetFontProperty(); 5089 char XGetFontProperty();
4976 5090
4977 int main() { 5091 int main() {
4978 XGetFontProperty() 5092 XGetFontProperty()
4979 ; return 0; } 5093 ; return 0; }
4980 EOF 5094 EOF
4981 if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5095 if { (eval echo configure:5096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4982 rm -rf conftest* 5096 rm -rf conftest*
4983 eval "ac_cv_lib_$ac_lib_var=yes" 5097 eval "ac_cv_lib_$ac_lib_var=yes"
4984 else 5098 else
4985 echo "configure: failed program was:" >&5 5099 echo "configure: failed program was:" >&5
4986 cat conftest.$ac_ext >&5 5100 cat conftest.$ac_ext >&5
5003 libs_x="-lX11" 5117 libs_x="-lX11"
5004 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5118 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5005 5119
5006 5120
5007 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5121 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5008 echo "configure:5009: checking for XShapeSelectInput in -lXext" >&5 5122 echo "configure:5123: checking for XShapeSelectInput in -lXext" >&5
5009 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5123 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5010 5124
5011 xe_check_libs=" -lXext " 5125 xe_check_libs=" -lXext "
5012 cat > conftest.$ac_ext <<EOF 5126 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure" 5127 #line 5128 "configure"
5014 #include "confdefs.h" 5128 #include "confdefs.h"
5015 /* Override any gcc2 internal prototype to avoid an error. */ 5129 /* Override any gcc2 internal prototype to avoid an error. */
5016 /* We use char because int might match the return type of a gcc2 5130 /* We use char because int might match the return type of a gcc2
5017 builtin and then its argument prototype would still apply. */ 5131 builtin and then its argument prototype would still apply. */
5018 char XShapeSelectInput(); 5132 char XShapeSelectInput();
5019 5133
5020 int main() { 5134 int main() {
5021 XShapeSelectInput() 5135 XShapeSelectInput()
5022 ; return 0; } 5136 ; return 0; }
5023 EOF 5137 EOF
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5138 if { (eval echo configure:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5025 rm -rf conftest* 5139 rm -rf conftest*
5026 eval "ac_cv_lib_$ac_lib_var=yes" 5140 eval "ac_cv_lib_$ac_lib_var=yes"
5027 else 5141 else
5028 echo "configure: failed program was:" >&5 5142 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5 5143 cat conftest.$ac_ext >&5
5042 5156
5043 5157
5044 5158
5045 5159
5046 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5160 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5047 echo "configure:5048: checking for XtOpenDisplay in -lXt" >&5 5161 echo "configure:5162: checking for XtOpenDisplay in -lXt" >&5
5048 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5162 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5049 5163
5050 xe_check_libs=" -lXt " 5164 xe_check_libs=" -lXt "
5051 cat > conftest.$ac_ext <<EOF 5165 cat > conftest.$ac_ext <<EOF
5052 #line 5053 "configure" 5166 #line 5167 "configure"
5053 #include "confdefs.h" 5167 #include "confdefs.h"
5054 /* Override any gcc2 internal prototype to avoid an error. */ 5168 /* Override any gcc2 internal prototype to avoid an error. */
5055 /* We use char because int might match the return type of a gcc2 5169 /* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */ 5170 builtin and then its argument prototype would still apply. */
5057 char XtOpenDisplay(); 5171 char XtOpenDisplay();
5058 5172
5059 int main() { 5173 int main() {
5060 XtOpenDisplay() 5174 XtOpenDisplay()
5061 ; return 0; } 5175 ; return 0; }
5062 EOF 5176 EOF
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5177 if { (eval echo configure:5178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5064 rm -rf conftest* 5178 rm -rf conftest*
5065 eval "ac_cv_lib_$ac_lib_var=yes" 5179 eval "ac_cv_lib_$ac_lib_var=yes"
5066 else 5180 else
5067 echo "configure: failed program was:" >&5 5181 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5 5182 cat conftest.$ac_ext >&5
5081 fi 5195 fi
5082 5196
5083 5197
5084 5198
5085 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5199 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5086 echo "configure:5087: checking the version of X11 being used" >&5 5200 echo "configure:5201: checking the version of X11 being used" >&5
5087 cat > conftest.$ac_ext <<EOF 5201 cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure" 5202 #line 5203 "configure"
5089 #include "confdefs.h" 5203 #include "confdefs.h"
5090 #include <X11/Intrinsic.h> 5204 #include <X11/Intrinsic.h>
5091 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5205 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5092 EOF 5206 EOF
5093 if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5094 then 5208 then
5095 ./conftest foobar; x11_release=$? 5209 ./conftest foobar; x11_release=$?
5096 else 5210 else
5097 echo "configure: failed program was:" >&5 5211 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5 5212 cat conftest.$ac_ext >&5
5112 5226
5113 for ac_hdr in X11/Xlocale.h 5227 for ac_hdr in X11/Xlocale.h
5114 do 5228 do
5115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5229 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5117 echo "configure:5118: checking for $ac_hdr" >&5 5231 echo "configure:5232: checking for $ac_hdr" >&5
5118 5232
5119 cat > conftest.$ac_ext <<EOF 5233 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure" 5234 #line 5235 "configure"
5121 #include "confdefs.h" 5235 #include "confdefs.h"
5122 #include <$ac_hdr> 5236 #include <$ac_hdr>
5123 EOF 5237 EOF
5124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5125 { (eval echo configure:5126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5239 { (eval echo configure:5240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5126 ac_err=`grep -v '^ *+' conftest.out` 5240 ac_err=`grep -v '^ *+' conftest.out`
5127 if test -z "$ac_err"; then 5241 if test -z "$ac_err"; then
5128 rm -rf conftest* 5242 rm -rf conftest*
5129 eval "ac_cv_header_$ac_safe=yes" 5243 eval "ac_cv_header_$ac_safe=yes"
5130 else 5244 else
5151 fi 5265 fi
5152 done 5266 done
5153 5267
5154 5268
5155 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5269 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5156 echo "configure:5157: checking for XFree86" >&5 5270 echo "configure:5271: checking for XFree86" >&5
5157 if test -d "/usr/X386/include" -o \ 5271 if test -d "/usr/X386/include" -o \
5158 -f "/etc/XF86Config" -o \ 5272 -f "/etc/XF86Config" -o \
5159 -f "/etc/X11/XF86Config" -o \ 5273 -f "/etc/X11/XF86Config" -o \
5160 -f "/usr/X11R6/lib/X11/XF86Config"; then 5274 -f "/usr/X11R6/lib/X11/XF86Config"; then
5161 echo "$ac_t""yes" 1>&6 5275 echo "$ac_t""yes" 1>&6
5171 echo "$ac_t""no" 1>&6 5285 echo "$ac_t""no" 1>&6
5172 fi 5286 fi
5173 5287
5174 test -z "$with_xmu" && { 5288 test -z "$with_xmu" && {
5175 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5289 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5176 echo "configure:5177: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5290 echo "configure:5291: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5177 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5291 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5178 5292
5179 xe_check_libs=" -lXmu " 5293 xe_check_libs=" -lXmu "
5180 cat > conftest.$ac_ext <<EOF 5294 cat > conftest.$ac_ext <<EOF
5181 #line 5182 "configure" 5295 #line 5296 "configure"
5182 #include "confdefs.h" 5296 #include "confdefs.h"
5183 /* Override any gcc2 internal prototype to avoid an error. */ 5297 /* Override any gcc2 internal prototype to avoid an error. */
5184 /* We use char because int might match the return type of a gcc2 5298 /* We use char because int might match the return type of a gcc2
5185 builtin and then its argument prototype would still apply. */ 5299 builtin and then its argument prototype would still apply. */
5186 char XmuReadBitmapDataFromFile(); 5300 char XmuReadBitmapDataFromFile();
5187 5301
5188 int main() { 5302 int main() {
5189 XmuReadBitmapDataFromFile() 5303 XmuReadBitmapDataFromFile()
5190 ; return 0; } 5304 ; return 0; }
5191 EOF 5305 EOF
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5306 if { (eval echo configure:5307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5193 rm -rf conftest* 5307 rm -rf conftest*
5194 eval "ac_cv_lib_$ac_lib_var=yes" 5308 eval "ac_cv_lib_$ac_lib_var=yes"
5195 else 5309 else
5196 echo "configure: failed program was:" >&5 5310 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5 5311 cat conftest.$ac_ext >&5
5217 else libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi 5331 else libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5218 fi 5332 fi
5219 5333
5220 5334
5221 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5335 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5222 echo "configure:5223: checking for main in -lXbsd" >&5 5336 echo "configure:5337: checking for main in -lXbsd" >&5
5223 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5337 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5224 5338
5225 xe_check_libs=" -lXbsd " 5339 xe_check_libs=" -lXbsd "
5226 cat > conftest.$ac_ext <<EOF 5340 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure" 5341 #line 5342 "configure"
5228 #include "confdefs.h" 5342 #include "confdefs.h"
5229 5343
5230 int main() { 5344 int main() {
5231 main() 5345 main()
5232 ; return 0; } 5346 ; return 0; }
5233 EOF 5347 EOF
5234 if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5235 rm -rf conftest* 5349 rm -rf conftest*
5236 eval "ac_cv_lib_$ac_lib_var=yes" 5350 eval "ac_cv_lib_$ac_lib_var=yes"
5237 else 5351 else
5238 echo "configure: failed program was:" >&5 5352 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5 5353 cat conftest.$ac_ext >&5
5252 5366
5253 5367
5254 5368
5255 5369
5256 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 5370 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
5257 echo "configure:5258: checking for XawScrollbarSetThumb in -lXaw" >&5 5371 echo "configure:5372: checking for XawScrollbarSetThumb in -lXaw" >&5
5258 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 5372 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5259 5373
5260 xe_check_libs=" -lXaw " 5374 xe_check_libs=" -lXaw "
5261 cat > conftest.$ac_ext <<EOF 5375 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure" 5376 #line 5377 "configure"
5263 #include "confdefs.h" 5377 #include "confdefs.h"
5264 /* Override any gcc2 internal prototype to avoid an error. */ 5378 /* Override any gcc2 internal prototype to avoid an error. */
5265 /* We use char because int might match the return type of a gcc2 5379 /* We use char because int might match the return type of a gcc2
5266 builtin and then its argument prototype would still apply. */ 5380 builtin and then its argument prototype would still apply. */
5267 char XawScrollbarSetThumb(); 5381 char XawScrollbarSetThumb();
5268 5382
5269 int main() { 5383 int main() {
5270 XawScrollbarSetThumb() 5384 XawScrollbarSetThumb()
5271 ; return 0; } 5385 ; return 0; }
5272 EOF 5386 EOF
5273 if { (eval echo configure:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5387 if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5274 rm -rf conftest* 5388 rm -rf conftest*
5275 eval "ac_cv_lib_$ac_lib_var=yes" 5389 eval "ac_cv_lib_$ac_lib_var=yes"
5276 else 5390 else
5277 echo "configure: failed program was:" >&5 5391 echo "configure: failed program was:" >&5
5278 cat conftest.$ac_ext >&5 5392 cat conftest.$ac_ext >&5
5292 5406
5293 5407
5294 if test "$have_xaw" = "yes"; then 5408 if test "$have_xaw" = "yes"; then
5295 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'` 5409 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'`
5296 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6 5410 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6
5297 echo "configure:5298: checking for X11/Xaw/Reports.h" >&5 5411 echo "configure:5412: checking for X11/Xaw/Reports.h" >&5
5298 5412
5299 cat > conftest.$ac_ext <<EOF 5413 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure" 5414 #line 5415 "configure"
5301 #include "confdefs.h" 5415 #include "confdefs.h"
5302 #include <X11/Xaw/Reports.h> 5416 #include <X11/Xaw/Reports.h>
5303 EOF 5417 EOF
5304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5305 { (eval echo configure:5306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5419 { (eval echo configure:5420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5306 ac_err=`grep -v '^ *+' conftest.out` 5420 ac_err=`grep -v '^ *+' conftest.out`
5307 if test -z "$ac_err"; then 5421 if test -z "$ac_err"; then
5308 rm -rf conftest* 5422 rm -rf conftest*
5309 eval "ac_cv_header_$ac_safe=yes" 5423 eval "ac_cv_header_$ac_safe=yes"
5310 else 5424 else
5359 esac 5473 esac
5360 5474
5361 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5475 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5362 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5476 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5363 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5477 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5364 echo "configure:5365: checking for X11/Xauth.h" >&5 5478 echo "configure:5479: checking for X11/Xauth.h" >&5
5365 5479
5366 cat > conftest.$ac_ext <<EOF 5480 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure" 5481 #line 5482 "configure"
5368 #include "confdefs.h" 5482 #include "confdefs.h"
5369 #include <X11/Xauth.h> 5483 #include <X11/Xauth.h>
5370 EOF 5484 EOF
5371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5372 { (eval echo configure:5373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5486 { (eval echo configure:5487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5373 ac_err=`grep -v '^ *+' conftest.out` 5487 ac_err=`grep -v '^ *+' conftest.out`
5374 if test -z "$ac_err"; then 5488 if test -z "$ac_err"; then
5375 rm -rf conftest* 5489 rm -rf conftest*
5376 eval "ac_cv_header_$ac_safe=yes" 5490 eval "ac_cv_header_$ac_safe=yes"
5377 else 5491 else
5390 with_xauth=no 5504 with_xauth=no
5391 fi 5505 fi
5392 } 5506 }
5393 test -z "$with_xauth" && { 5507 test -z "$with_xauth" && {
5394 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5508 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5395 echo "configure:5396: checking for XauGetAuthByAddr in -lXau" >&5 5509 echo "configure:5510: checking for XauGetAuthByAddr in -lXau" >&5
5396 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5510 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5397 5511
5398 xe_check_libs=" -lXau " 5512 xe_check_libs=" -lXau "
5399 cat > conftest.$ac_ext <<EOF 5513 cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure" 5514 #line 5515 "configure"
5401 #include "confdefs.h" 5515 #include "confdefs.h"
5402 /* Override any gcc2 internal prototype to avoid an error. */ 5516 /* Override any gcc2 internal prototype to avoid an error. */
5403 /* We use char because int might match the return type of a gcc2 5517 /* We use char because int might match the return type of a gcc2
5404 builtin and then its argument prototype would still apply. */ 5518 builtin and then its argument prototype would still apply. */
5405 char XauGetAuthByAddr(); 5519 char XauGetAuthByAddr();
5406 5520
5407 int main() { 5521 int main() {
5408 XauGetAuthByAddr() 5522 XauGetAuthByAddr()
5409 ; return 0; } 5523 ; return 0; }
5410 EOF 5524 EOF
5411 if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5525 if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5412 rm -rf conftest* 5526 rm -rf conftest*
5413 eval "ac_cv_lib_$ac_lib_var=yes" 5527 eval "ac_cv_lib_$ac_lib_var=yes"
5414 else 5528 else
5415 echo "configure: failed program was:" >&5 5529 echo "configure: failed program was:" >&5
5416 cat conftest.$ac_ext >&5 5530 cat conftest.$ac_ext >&5
5447 fi 5561 fi
5448 5562
5449 5563
5450 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` 5564 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'`
5451 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 5565 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6
5452 echo "configure:5453: checking for OffiX/DragAndDrop.h" >&5 5566 echo "configure:5567: checking for OffiX/DragAndDrop.h" >&5
5453 5567
5454 cat > conftest.$ac_ext <<EOF 5568 cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure" 5569 #line 5570 "configure"
5456 #include "confdefs.h" 5570 #include "confdefs.h"
5457 #include <OffiX/DragAndDrop.h> 5571 #include <OffiX/DragAndDrop.h>
5458 EOF 5572 EOF
5459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5460 { (eval echo configure:5461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5574 { (eval echo configure:5575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5461 ac_err=`grep -v '^ *+' conftest.out` 5575 ac_err=`grep -v '^ *+' conftest.out`
5462 if test -z "$ac_err"; then 5576 if test -z "$ac_err"; then
5463 rm -rf conftest* 5577 rm -rf conftest*
5464 eval "ac_cv_header_$ac_safe=yes" 5578 eval "ac_cv_header_$ac_safe=yes"
5465 else 5579 else
5478 with_offix=no 5592 with_offix=no
5479 fi 5593 fi
5480 } 5594 }
5481 test -z "$with_offix" && { 5595 test -z "$with_offix" && {
5482 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 5596 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6
5483 echo "configure:5484: checking for DndInitialize in -lDnd" >&5 5597 echo "configure:5598: checking for DndInitialize in -lDnd" >&5
5484 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` 5598 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'`
5485 5599
5486 xe_check_libs=" -lDnd " 5600 xe_check_libs=" -lDnd "
5487 cat > conftest.$ac_ext <<EOF 5601 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure" 5602 #line 5603 "configure"
5489 #include "confdefs.h" 5603 #include "confdefs.h"
5490 /* Override any gcc2 internal prototype to avoid an error. */ 5604 /* Override any gcc2 internal prototype to avoid an error. */
5491 /* We use char because int might match the return type of a gcc2 5605 /* We use char because int might match the return type of a gcc2
5492 builtin and then its argument prototype would still apply. */ 5606 builtin and then its argument prototype would still apply. */
5493 char DndInitialize(); 5607 char DndInitialize();
5494 5608
5495 int main() { 5609 int main() {
5496 DndInitialize() 5610 DndInitialize()
5497 ; return 0; } 5611 ; return 0; }
5498 EOF 5612 EOF
5499 if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5613 if { (eval echo configure:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5500 rm -rf conftest* 5614 rm -rf conftest*
5501 eval "ac_cv_lib_$ac_lib_var=yes" 5615 eval "ac_cv_lib_$ac_lib_var=yes"
5502 else 5616 else
5503 echo "configure: failed program was:" >&5 5617 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5 5618 cat conftest.$ac_ext >&5
5533 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5647 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5534 if test "$with_tooltalk" != "no" ; then 5648 if test "$with_tooltalk" != "no" ; then
5535 for dir in "" "Tt/" "desktop/" ; do 5649 for dir in "" "Tt/" "desktop/" ; do
5536 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5650 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5537 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5651 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5538 echo "configure:5539: checking for ${dir}tt_c.h" >&5 5652 echo "configure:5653: checking for ${dir}tt_c.h" >&5
5539 5653
5540 cat > conftest.$ac_ext <<EOF 5654 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure" 5655 #line 5656 "configure"
5542 #include "confdefs.h" 5656 #include "confdefs.h"
5543 #include <${dir}tt_c.h> 5657 #include <${dir}tt_c.h>
5544 EOF 5658 EOF
5545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5546 { (eval echo configure:5547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5660 { (eval echo configure:5661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5547 ac_err=`grep -v '^ *+' conftest.out` 5661 ac_err=`grep -v '^ *+' conftest.out`
5548 if test -z "$ac_err"; then 5662 if test -z "$ac_err"; then
5549 rm -rf conftest* 5663 rm -rf conftest*
5550 eval "ac_cv_header_$ac_safe=yes" 5664 eval "ac_cv_header_$ac_safe=yes"
5551 else 5665 else
5570 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5684 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5571 5685
5572 xe_msg_checking="for tt_message_create in -ltt" 5686 xe_msg_checking="for tt_message_create in -ltt"
5573 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5687 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5574 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5688 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5575 echo "configure:5576: checking "$xe_msg_checking"" >&5 5689 echo "configure:5690: checking "$xe_msg_checking"" >&5
5576 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5690 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5577 5691
5578 xe_check_libs=" -ltt $extra_libs" 5692 xe_check_libs=" -ltt $extra_libs"
5579 cat > conftest.$ac_ext <<EOF 5693 cat > conftest.$ac_ext <<EOF
5580 #line 5581 "configure" 5694 #line 5695 "configure"
5581 #include "confdefs.h" 5695 #include "confdefs.h"
5582 /* Override any gcc2 internal prototype to avoid an error. */ 5696 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2 5697 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */ 5698 builtin and then its argument prototype would still apply. */
5585 char tt_message_create(); 5699 char tt_message_create();
5586 5700
5587 int main() { 5701 int main() {
5588 tt_message_create() 5702 tt_message_create()
5589 ; return 0; } 5703 ; return 0; }
5590 EOF 5704 EOF
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5705 if { (eval echo configure:5706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5592 rm -rf conftest* 5706 rm -rf conftest*
5593 eval "ac_cv_lib_$ac_lib_var=yes" 5707 eval "ac_cv_lib_$ac_lib_var=yes"
5594 else 5708 else
5595 echo "configure: failed program was:" >&5 5709 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5 5710 cat conftest.$ac_ext >&5
5635 fi 5749 fi
5636 fi 5750 fi
5637 5751
5638 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5752 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5639 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5753 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5640 echo "configure:5641: checking for Dt/Dt.h" >&5 5754 echo "configure:5755: checking for Dt/Dt.h" >&5
5641 5755
5642 cat > conftest.$ac_ext <<EOF 5756 cat > conftest.$ac_ext <<EOF
5643 #line 5644 "configure" 5757 #line 5758 "configure"
5644 #include "confdefs.h" 5758 #include "confdefs.h"
5645 #include <Dt/Dt.h> 5759 #include <Dt/Dt.h>
5646 EOF 5760 EOF
5647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5648 { (eval echo configure:5649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5762 { (eval echo configure:5763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5649 ac_err=`grep -v '^ *+' conftest.out` 5763 ac_err=`grep -v '^ *+' conftest.out`
5650 if test -z "$ac_err"; then 5764 if test -z "$ac_err"; then
5651 rm -rf conftest* 5765 rm -rf conftest*
5652 eval "ac_cv_header_$ac_safe=yes" 5766 eval "ac_cv_header_$ac_safe=yes"
5653 else 5767 else
5666 with_cde=no 5780 with_cde=no
5667 fi 5781 fi
5668 } 5782 }
5669 test -z "$with_cde" && { 5783 test -z "$with_cde" && {
5670 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5784 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5671 echo "configure:5672: checking for DtDndDragStart in -lDtSvc" >&5 5785 echo "configure:5786: checking for DtDndDragStart in -lDtSvc" >&5
5672 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5786 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5673 5787
5674 xe_check_libs=" -lDtSvc " 5788 xe_check_libs=" -lDtSvc "
5675 cat > conftest.$ac_ext <<EOF 5789 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure" 5790 #line 5791 "configure"
5677 #include "confdefs.h" 5791 #include "confdefs.h"
5678 /* Override any gcc2 internal prototype to avoid an error. */ 5792 /* Override any gcc2 internal prototype to avoid an error. */
5679 /* We use char because int might match the return type of a gcc2 5793 /* We use char because int might match the return type of a gcc2
5680 builtin and then its argument prototype would still apply. */ 5794 builtin and then its argument prototype would still apply. */
5681 char DtDndDragStart(); 5795 char DtDndDragStart();
5682 5796
5683 int main() { 5797 int main() {
5684 DtDndDragStart() 5798 DtDndDragStart()
5685 ; return 0; } 5799 ; return 0; }
5686 EOF 5800 EOF
5687 if { (eval echo configure:5688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5688 rm -rf conftest* 5802 rm -rf conftest*
5689 eval "ac_cv_lib_$ac_lib_var=yes" 5803 eval "ac_cv_lib_$ac_lib_var=yes"
5690 else 5804 else
5691 echo "configure: failed program was:" >&5 5805 echo "configure: failed program was:" >&5
5692 cat conftest.$ac_ext >&5 5806 cat conftest.$ac_ext >&5
5729 EOF 5843 EOF
5730 } 5844 }
5731 5845
5732 5846
5733 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 5847 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6
5734 echo "configure:5735: checking for main in -lenergize" >&5 5848 echo "configure:5849: checking for main in -lenergize" >&5
5735 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` 5849 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'`
5736 5850
5737 xe_check_libs=" -lenergize " 5851 xe_check_libs=" -lenergize "
5738 cat > conftest.$ac_ext <<EOF 5852 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure" 5853 #line 5854 "configure"
5740 #include "confdefs.h" 5854 #include "confdefs.h"
5741 5855
5742 int main() { 5856 int main() {
5743 main() 5857 main()
5744 ; return 0; } 5858 ; return 0; }
5745 EOF 5859 EOF
5746 if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5747 rm -rf conftest* 5861 rm -rf conftest*
5748 eval "ac_cv_lib_$ac_lib_var=yes" 5862 eval "ac_cv_lib_$ac_lib_var=yes"
5749 else 5863 else
5750 echo "configure: failed program was:" >&5 5864 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5 5865 cat conftest.$ac_ext >&5
5773 5887
5774 5888
5775 if test -z "$energize_version"; then 5889 if test -z "$energize_version"; then
5776 5890
5777 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 5891 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6
5778 echo "configure:5779: checking for main in -lconn" >&5 5892 echo "configure:5893: checking for main in -lconn" >&5
5779 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` 5893 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'`
5780 5894
5781 xe_check_libs=" -lconn " 5895 xe_check_libs=" -lconn "
5782 cat > conftest.$ac_ext <<EOF 5896 cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure" 5897 #line 5898 "configure"
5784 #include "confdefs.h" 5898 #include "confdefs.h"
5785 5899
5786 int main() { 5900 int main() {
5787 main() 5901 main()
5788 ; return 0; } 5902 ; return 0; }
5789 EOF 5903 EOF
5790 if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5904 if { (eval echo configure:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5791 rm -rf conftest* 5905 rm -rf conftest*
5792 eval "ac_cv_lib_$ac_lib_var=yes" 5906 eval "ac_cv_lib_$ac_lib_var=yes"
5793 else 5907 else
5794 echo "configure: failed program was:" >&5 5908 echo "configure: failed program was:" >&5
5795 cat conftest.$ac_ext >&5 5909 cat conftest.$ac_ext >&5
5818 5932
5819 5933
5820 fi 5934 fi
5821 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` 5935 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'`
5822 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 5936 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6
5823 echo "configure:5824: checking for editorconn.h" >&5 5937 echo "configure:5938: checking for editorconn.h" >&5
5824 5938
5825 cat > conftest.$ac_ext <<EOF 5939 cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure" 5940 #line 5941 "configure"
5827 #include "confdefs.h" 5941 #include "confdefs.h"
5828 #include <editorconn.h> 5942 #include <editorconn.h>
5829 EOF 5943 EOF
5830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5831 { (eval echo configure:5832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5945 { (eval echo configure:5946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5832 ac_err=`grep -v '^ *+' conftest.out` 5946 ac_err=`grep -v '^ *+' conftest.out`
5833 if test -z "$ac_err"; then 5947 if test -z "$ac_err"; then
5834 rm -rf conftest* 5948 rm -rf conftest*
5835 eval "ac_cv_header_$ac_safe=yes" 5949 eval "ac_cv_header_$ac_safe=yes"
5836 else 5950 else
5868 5982
5869 fi 5983 fi
5870 5984
5871 5985
5872 echo "checking for graphics libraries" 1>&6 5986 echo "checking for graphics libraries" 1>&6
5873 echo "configure:5874: checking for graphics libraries" >&5 5987 echo "configure:5988: checking for graphics libraries" >&5
5874 test -z "$with_gif" && with_gif=yes; 5988 test -z "$with_gif" && with_gif=yes;
5875 if test "$with_gif" = "yes"; then 5989 if test "$with_gif" = "yes"; then
5876 { test "$extra_verbose" = "yes" && cat << \EOF 5990 { test "$extra_verbose" = "yes" && cat << \EOF
5877 Defining HAVE_GIF 5991 Defining HAVE_GIF
5878 EOF 5992 EOF
5885 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\"" 5999 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\""
5886 fi 6000 fi
5887 fi 6001 fi
5888 6002
5889 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6003 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
5890 echo "configure:5891: checking for Xpm - no older than 3.4f" >&5 6004 echo "configure:6005: checking for Xpm - no older than 3.4f" >&5
5891 xe_check_libs=-lXpm 6005 xe_check_libs=-lXpm
5892 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 6006 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure" 6007 #line 6008 "configure"
5894 #include "confdefs.h" 6008 #include "confdefs.h"
5895 #include <X11/xpm.h> 6009 #include <X11/xpm.h>
5896 int main(int c, char **v) { 6010 int main(int c, char **v) {
5897 return c == 1 ? 0 : 6011 return c == 1 ? 0 :
5898 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6012 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
5899 XpmIncludeVersion < 30406 ? 2 : 6013 XpmIncludeVersion < 30406 ? 2 :
5900 0 ; 6014 0 ;
5901 } 6015 }
5902 EOF 6016 EOF
5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6017 if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5904 then 6018 then
5905 ./conftest foobar; xpm_status=$?; 6019 ./conftest foobar; xpm_status=$?;
5906 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 6020 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
5907 else 6021 else
5908 echo "configure: failed program was:" >&5 6022 echo "configure: failed program was:" >&5
5936 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6050 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
5937 fi 6051 fi
5938 6052
5939 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 6053 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
5940 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 6054 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
5941 echo "configure:5942: checking for compface.h" >&5 6055 echo "configure:6056: checking for compface.h" >&5
5942 6056
5943 cat > conftest.$ac_ext <<EOF 6057 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure" 6058 #line 6059 "configure"
5945 #include "confdefs.h" 6059 #include "confdefs.h"
5946 #include <compface.h> 6060 #include <compface.h>
5947 EOF 6061 EOF
5948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5949 { (eval echo configure:5950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6063 { (eval echo configure:6064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5950 ac_err=`grep -v '^ *+' conftest.out` 6064 ac_err=`grep -v '^ *+' conftest.out`
5951 if test -z "$ac_err"; then 6065 if test -z "$ac_err"; then
5952 rm -rf conftest* 6066 rm -rf conftest*
5953 eval "ac_cv_header_$ac_safe=yes" 6067 eval "ac_cv_header_$ac_safe=yes"
5954 else 6068 else
5967 with_xface=no 6081 with_xface=no
5968 fi 6082 fi
5969 } 6083 }
5970 test -z "$with_xface" && { 6084 test -z "$with_xface" && {
5971 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 6085 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
5972 echo "configure:5973: checking for UnGenFace in -lcompface" >&5 6086 echo "configure:6087: checking for UnGenFace in -lcompface" >&5
5973 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 6087 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
5974 6088
5975 xe_check_libs=" -lcompface " 6089 xe_check_libs=" -lcompface "
5976 cat > conftest.$ac_ext <<EOF 6090 cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure" 6091 #line 6092 "configure"
5978 #include "confdefs.h" 6092 #include "confdefs.h"
5979 /* Override any gcc2 internal prototype to avoid an error. */ 6093 /* Override any gcc2 internal prototype to avoid an error. */
5980 /* We use char because int might match the return type of a gcc2 6094 /* We use char because int might match the return type of a gcc2
5981 builtin and then its argument prototype would still apply. */ 6095 builtin and then its argument prototype would still apply. */
5982 char UnGenFace(); 6096 char UnGenFace();
5983 6097
5984 int main() { 6098 int main() {
5985 UnGenFace() 6099 UnGenFace()
5986 ; return 0; } 6100 ; return 0; }
5987 EOF 6101 EOF
5988 if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6102 if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5989 rm -rf conftest* 6103 rm -rf conftest*
5990 eval "ac_cv_lib_$ac_lib_var=yes" 6104 eval "ac_cv_lib_$ac_lib_var=yes"
5991 else 6105 else
5992 echo "configure: failed program was:" >&5 6106 echo "configure: failed program was:" >&5
5993 cat conftest.$ac_ext >&5 6107 cat conftest.$ac_ext >&5
6019 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 6133 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6020 fi 6134 fi
6021 6135
6022 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6136 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6023 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6137 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6024 echo "configure:6025: checking for jpeglib.h" >&5 6138 echo "configure:6139: checking for jpeglib.h" >&5
6025 6139
6026 cat > conftest.$ac_ext <<EOF 6140 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure" 6141 #line 6142 "configure"
6028 #include "confdefs.h" 6142 #include "confdefs.h"
6029 #include <jpeglib.h> 6143 #include <jpeglib.h>
6030 EOF 6144 EOF
6031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6032 { (eval echo configure:6033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6146 { (eval echo configure:6147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6033 ac_err=`grep -v '^ *+' conftest.out` 6147 ac_err=`grep -v '^ *+' conftest.out`
6034 if test -z "$ac_err"; then 6148 if test -z "$ac_err"; then
6035 rm -rf conftest* 6149 rm -rf conftest*
6036 eval "ac_cv_header_$ac_safe=yes" 6150 eval "ac_cv_header_$ac_safe=yes"
6037 else 6151 else
6050 with_jpeg=no 6164 with_jpeg=no
6051 fi 6165 fi
6052 } 6166 }
6053 test -z "$with_jpeg" && { 6167 test -z "$with_jpeg" && {
6054 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6168 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6055 echo "configure:6056: checking for jpeg_destroy_decompress in -ljpeg" >&5 6169 echo "configure:6170: checking for jpeg_destroy_decompress in -ljpeg" >&5
6056 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6170 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6057 6171
6058 xe_check_libs=" -ljpeg " 6172 xe_check_libs=" -ljpeg "
6059 cat > conftest.$ac_ext <<EOF 6173 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure" 6174 #line 6175 "configure"
6061 #include "confdefs.h" 6175 #include "confdefs.h"
6062 /* Override any gcc2 internal prototype to avoid an error. */ 6176 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2 6177 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */ 6178 builtin and then its argument prototype would still apply. */
6065 char jpeg_destroy_decompress(); 6179 char jpeg_destroy_decompress();
6066 6180
6067 int main() { 6181 int main() {
6068 jpeg_destroy_decompress() 6182 jpeg_destroy_decompress()
6069 ; return 0; } 6183 ; return 0; }
6070 EOF 6184 EOF
6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6072 rm -rf conftest* 6186 rm -rf conftest*
6073 eval "ac_cv_lib_$ac_lib_var=yes" 6187 eval "ac_cv_lib_$ac_lib_var=yes"
6074 else 6188 else
6075 echo "configure: failed program was:" >&5 6189 echo "configure: failed program was:" >&5
6076 cat conftest.$ac_ext >&5 6190 cat conftest.$ac_ext >&5
6102 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6216 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6103 fi 6217 fi
6104 6218
6105 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6219 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6106 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6220 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6107 echo "configure:6108: checking for png.h" >&5 6221 echo "configure:6222: checking for png.h" >&5
6108 6222
6109 cat > conftest.$ac_ext <<EOF 6223 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure" 6224 #line 6225 "configure"
6111 #include "confdefs.h" 6225 #include "confdefs.h"
6112 #include <png.h> 6226 #include <png.h>
6113 EOF 6227 EOF
6114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6115 { (eval echo configure:6116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6229 { (eval echo configure:6230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6116 ac_err=`grep -v '^ *+' conftest.out` 6230 ac_err=`grep -v '^ *+' conftest.out`
6117 if test -z "$ac_err"; then 6231 if test -z "$ac_err"; then
6118 rm -rf conftest* 6232 rm -rf conftest*
6119 eval "ac_cv_header_$ac_safe=yes" 6233 eval "ac_cv_header_$ac_safe=yes"
6120 else 6234 else
6132 echo "$ac_t""no" 1>&6 6246 echo "$ac_t""no" 1>&6
6133 with_png=no 6247 with_png=no
6134 fi 6248 fi
6135 } 6249 }
6136 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6250 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6137 echo "configure:6138: checking for pow" >&5 6251 echo "configure:6252: checking for pow" >&5
6138 6252
6139 cat > conftest.$ac_ext <<EOF 6253 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure" 6254 #line 6255 "configure"
6141 #include "confdefs.h" 6255 #include "confdefs.h"
6142 /* System header to define __stub macros and hopefully few prototypes, 6256 /* System header to define __stub macros and hopefully few prototypes,
6143 which can conflict with char pow(); below. */ 6257 which can conflict with char pow(); below. */
6144 #include <assert.h> 6258 #include <assert.h>
6145 /* Override any gcc2 internal prototype to avoid an error. */ 6259 /* Override any gcc2 internal prototype to avoid an error. */
6158 pow(); 6272 pow();
6159 #endif 6273 #endif
6160 6274
6161 ; return 0; } 6275 ; return 0; }
6162 EOF 6276 EOF
6163 if { (eval echo configure:6164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6277 if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6164 rm -rf conftest* 6278 rm -rf conftest*
6165 eval "ac_cv_func_pow=yes" 6279 eval "ac_cv_func_pow=yes"
6166 else 6280 else
6167 echo "configure: failed program was:" >&5 6281 echo "configure: failed program was:" >&5
6168 cat conftest.$ac_ext >&5 6282 cat conftest.$ac_ext >&5
6183 for extra_libs in "" "-lz" "-lgz"; do 6297 for extra_libs in "" "-lz" "-lgz"; do
6184 6298
6185 xe_msg_checking="for png_read_image in -lpng" 6299 xe_msg_checking="for png_read_image in -lpng"
6186 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6300 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6187 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6301 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6188 echo "configure:6189: checking "$xe_msg_checking"" >&5 6302 echo "configure:6303: checking "$xe_msg_checking"" >&5
6189 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6303 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6190 6304
6191 xe_check_libs=" -lpng $extra_libs" 6305 xe_check_libs=" -lpng $extra_libs"
6192 cat > conftest.$ac_ext <<EOF 6306 cat > conftest.$ac_ext <<EOF
6193 #line 6194 "configure" 6307 #line 6308 "configure"
6194 #include "confdefs.h" 6308 #include "confdefs.h"
6195 /* Override any gcc2 internal prototype to avoid an error. */ 6309 /* Override any gcc2 internal prototype to avoid an error. */
6196 /* We use char because int might match the return type of a gcc2 6310 /* We use char because int might match the return type of a gcc2
6197 builtin and then its argument prototype would still apply. */ 6311 builtin and then its argument prototype would still apply. */
6198 char png_read_image(); 6312 char png_read_image();
6199 6313
6200 int main() { 6314 int main() {
6201 png_read_image() 6315 png_read_image()
6202 ; return 0; } 6316 ; return 0; }
6203 EOF 6317 EOF
6204 if { (eval echo configure:6205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6318 if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6205 rm -rf conftest* 6319 rm -rf conftest*
6206 eval "ac_cv_lib_$ac_lib_var=yes" 6320 eval "ac_cv_lib_$ac_lib_var=yes"
6207 else 6321 else
6208 echo "configure: failed program was:" >&5 6322 echo "configure: failed program was:" >&5
6209 cat conftest.$ac_ext >&5 6323 cat conftest.$ac_ext >&5
6249 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi 6363 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
6250 fi 6364 fi
6251 6365
6252 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6366 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6253 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6367 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6254 echo "configure:6255: checking for Xm/Xm.h" >&5 6368 echo "configure:6369: checking for Xm/Xm.h" >&5
6255 6369
6256 cat > conftest.$ac_ext <<EOF 6370 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure" 6371 #line 6372 "configure"
6258 #include "confdefs.h" 6372 #include "confdefs.h"
6259 #include <Xm/Xm.h> 6373 #include <Xm/Xm.h>
6260 EOF 6374 EOF
6261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6262 { (eval echo configure:6263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6376 { (eval echo configure:6377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6263 ac_err=`grep -v '^ *+' conftest.out` 6377 ac_err=`grep -v '^ *+' conftest.out`
6264 if test -z "$ac_err"; then 6378 if test -z "$ac_err"; then
6265 rm -rf conftest* 6379 rm -rf conftest*
6266 eval "ac_cv_header_$ac_safe=yes" 6380 eval "ac_cv_header_$ac_safe=yes"
6267 else 6381 else
6274 rm -f conftest* 6388 rm -f conftest*
6275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6276 echo "$ac_t""yes" 1>&6 6390 echo "$ac_t""yes" 1>&6
6277 6391
6278 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6392 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6279 echo "configure:6280: checking for XmStringFree in -lXm" >&5 6393 echo "configure:6394: checking for XmStringFree in -lXm" >&5
6280 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6394 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6281 6395
6282 xe_check_libs=" -lXm " 6396 xe_check_libs=" -lXm "
6283 cat > conftest.$ac_ext <<EOF 6397 cat > conftest.$ac_ext <<EOF
6284 #line 6285 "configure" 6398 #line 6399 "configure"
6285 #include "confdefs.h" 6399 #include "confdefs.h"
6286 /* Override any gcc2 internal prototype to avoid an error. */ 6400 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2 6401 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */ 6402 builtin and then its argument prototype would still apply. */
6289 char XmStringFree(); 6403 char XmStringFree();
6290 6404
6291 int main() { 6405 int main() {
6292 XmStringFree() 6406 XmStringFree()
6293 ; return 0; } 6407 ; return 0; }
6294 EOF 6408 EOF
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6296 rm -rf conftest* 6410 rm -rf conftest*
6297 eval "ac_cv_lib_$ac_lib_var=yes" 6411 eval "ac_cv_lib_$ac_lib_var=yes"
6298 else 6412 else
6299 echo "configure: failed program was:" >&5 6413 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5 6414 cat conftest.$ac_ext >&5
6538 6652
6539 test -z "$with_mule" && with_mule=no 6653 test -z "$with_mule" && with_mule=no
6540 6654
6541 if test "$with_mule" = "yes" ; then 6655 if test "$with_mule" = "yes" ; then
6542 echo "checking for Mule-related features" 1>&6 6656 echo "checking for Mule-related features" 1>&6
6543 echo "configure:6544: checking for Mule-related features" >&5 6657 echo "configure:6658: checking for Mule-related features" >&5
6544 { test "$extra_verbose" = "yes" && cat << \EOF 6658 { test "$extra_verbose" = "yes" && cat << \EOF
6545 Defining MULE 6659 Defining MULE
6546 EOF 6660 EOF
6547 cat >> confdefs.h <<\EOF 6661 cat >> confdefs.h <<\EOF
6548 #define MULE 1 6662 #define MULE 1
6555 6669
6556 for ac_hdr in libintl.h 6670 for ac_hdr in libintl.h
6557 do 6671 do
6558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6560 echo "configure:6561: checking for $ac_hdr" >&5 6674 echo "configure:6675: checking for $ac_hdr" >&5
6561 6675
6562 cat > conftest.$ac_ext <<EOF 6676 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure" 6677 #line 6678 "configure"
6564 #include "confdefs.h" 6678 #include "confdefs.h"
6565 #include <$ac_hdr> 6679 #include <$ac_hdr>
6566 EOF 6680 EOF
6567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6568 { (eval echo configure:6569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6682 { (eval echo configure:6683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6569 ac_err=`grep -v '^ *+' conftest.out` 6683 ac_err=`grep -v '^ *+' conftest.out`
6570 if test -z "$ac_err"; then 6684 if test -z "$ac_err"; then
6571 rm -rf conftest* 6685 rm -rf conftest*
6572 eval "ac_cv_header_$ac_safe=yes" 6686 eval "ac_cv_header_$ac_safe=yes"
6573 else 6687 else
6594 fi 6708 fi
6595 done 6709 done
6596 6710
6597 6711
6598 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6712 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6599 echo "configure:6600: checking for strerror in -lintl" >&5 6713 echo "configure:6714: checking for strerror in -lintl" >&5
6600 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6714 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6601 6715
6602 xe_check_libs=" -lintl " 6716 xe_check_libs=" -lintl "
6603 cat > conftest.$ac_ext <<EOF 6717 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure" 6718 #line 6719 "configure"
6605 #include "confdefs.h" 6719 #include "confdefs.h"
6606 /* Override any gcc2 internal prototype to avoid an error. */ 6720 /* Override any gcc2 internal prototype to avoid an error. */
6607 /* We use char because int might match the return type of a gcc2 6721 /* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */ 6722 builtin and then its argument prototype would still apply. */
6609 char strerror(); 6723 char strerror();
6610 6724
6611 int main() { 6725 int main() {
6612 strerror() 6726 strerror()
6613 ; return 0; } 6727 ; return 0; }
6614 EOF 6728 EOF
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6616 rm -rf conftest* 6730 rm -rf conftest*
6617 eval "ac_cv_lib_$ac_lib_var=yes" 6731 eval "ac_cv_lib_$ac_lib_var=yes"
6618 else 6732 else
6619 echo "configure: failed program was:" >&5 6733 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5 6734 cat conftest.$ac_ext >&5
6643 fi 6757 fi
6644 6758
6645 6759
6646 6760
6647 echo "checking for Mule input methods" 1>&6 6761 echo "checking for Mule input methods" 1>&6
6648 echo "configure:6649: checking for Mule input methods" >&5 6762 echo "configure:6763: checking for Mule input methods" >&5
6649 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 6763 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6650 case "$with_xim" in "" | "yes" ) 6764 case "$with_xim" in "" | "yes" )
6651 echo "checking for XIM" 1>&6 6765 echo "checking for XIM" 1>&6
6652 echo "configure:6653: checking for XIM" >&5 6766 echo "configure:6767: checking for XIM" >&5
6653 6767
6654 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6768 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6655 echo "configure:6656: checking for XmImMbLookupString in -lXm" >&5 6769 echo "configure:6770: checking for XmImMbLookupString in -lXm" >&5
6656 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6770 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6657 6771
6658 xe_check_libs=" -lXm " 6772 xe_check_libs=" -lXm "
6659 cat > conftest.$ac_ext <<EOF 6773 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure" 6774 #line 6775 "configure"
6661 #include "confdefs.h" 6775 #include "confdefs.h"
6662 /* Override any gcc2 internal prototype to avoid an error. */ 6776 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2 6777 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */ 6778 builtin and then its argument prototype would still apply. */
6665 char XmImMbLookupString(); 6779 char XmImMbLookupString();
6666 6780
6667 int main() { 6781 int main() {
6668 XmImMbLookupString() 6782 XmImMbLookupString()
6669 ; return 0; } 6783 ; return 0; }
6670 EOF 6784 EOF
6671 if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6785 if { (eval echo configure:6786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6672 rm -rf conftest* 6786 rm -rf conftest*
6673 eval "ac_cv_lib_$ac_lib_var=yes" 6787 eval "ac_cv_lib_$ac_lib_var=yes"
6674 else 6788 else
6675 echo "configure: failed program was:" >&5 6789 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5 6790 cat conftest.$ac_ext >&5
6728 fi 6842 fi
6729 fi 6843 fi
6730 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6844 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6731 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6845 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6732 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6846 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6733 echo "configure:6734: checking for wnn/jllib.h" >&5 6847 echo "configure:6848: checking for wnn/jllib.h" >&5
6734 6848
6735 cat > conftest.$ac_ext <<EOF 6849 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure" 6850 #line 6851 "configure"
6737 #include "confdefs.h" 6851 #include "confdefs.h"
6738 #include <wnn/jllib.h> 6852 #include <wnn/jllib.h>
6739 EOF 6853 EOF
6740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6741 { (eval echo configure:6742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6855 { (eval echo configure:6856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6742 ac_err=`grep -v '^ *+' conftest.out` 6856 ac_err=`grep -v '^ *+' conftest.out`
6743 if test -z "$ac_err"; then 6857 if test -z "$ac_err"; then
6744 rm -rf conftest* 6858 rm -rf conftest*
6745 eval "ac_cv_header_$ac_safe=yes" 6859 eval "ac_cv_header_$ac_safe=yes"
6746 else 6860 else
6761 } 6875 }
6762 if test "$with_wnn" != "no"; then 6876 if test "$with_wnn" != "no"; then
6763 for ac_func in crypt 6877 for ac_func in crypt
6764 do 6878 do
6765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6766 echo "configure:6767: checking for $ac_func" >&5 6880 echo "configure:6881: checking for $ac_func" >&5
6767 6881
6768 cat > conftest.$ac_ext <<EOF 6882 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure" 6883 #line 6884 "configure"
6770 #include "confdefs.h" 6884 #include "confdefs.h"
6771 /* System header to define __stub macros and hopefully few prototypes, 6885 /* System header to define __stub macros and hopefully few prototypes,
6772 which can conflict with char $ac_func(); below. */ 6886 which can conflict with char $ac_func(); below. */
6773 #include <assert.h> 6887 #include <assert.h>
6774 /* Override any gcc2 internal prototype to avoid an error. */ 6888 /* Override any gcc2 internal prototype to avoid an error. */
6787 $ac_func(); 6901 $ac_func();
6788 #endif 6902 #endif
6789 6903
6790 ; return 0; } 6904 ; return 0; }
6791 EOF 6905 EOF
6792 if { (eval echo configure:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6906 if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6793 rm -rf conftest* 6907 rm -rf conftest*
6794 eval "ac_cv_func_$ac_func=yes" 6908 eval "ac_cv_func_$ac_func=yes"
6795 else 6909 else
6796 echo "configure: failed program was:" >&5 6910 echo "configure: failed program was:" >&5
6797 cat conftest.$ac_ext >&5 6911 cat conftest.$ac_ext >&5
6816 fi 6930 fi
6817 done 6931 done
6818 6932
6819 test "$ac_cv_func_crypt" != "yes" && { 6933 test "$ac_cv_func_crypt" != "yes" && {
6820 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 6934 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6821 echo "configure:6822: checking for crypt in -lcrypt" >&5 6935 echo "configure:6936: checking for crypt in -lcrypt" >&5
6822 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 6936 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6823 6937
6824 xe_check_libs=" -lcrypt " 6938 xe_check_libs=" -lcrypt "
6825 cat > conftest.$ac_ext <<EOF 6939 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure" 6940 #line 6941 "configure"
6827 #include "confdefs.h" 6941 #include "confdefs.h"
6828 /* Override any gcc2 internal prototype to avoid an error. */ 6942 /* Override any gcc2 internal prototype to avoid an error. */
6829 /* We use char because int might match the return type of a gcc2 6943 /* We use char because int might match the return type of a gcc2
6830 builtin and then its argument prototype would still apply. */ 6944 builtin and then its argument prototype would still apply. */
6831 char crypt(); 6945 char crypt();
6832 6946
6833 int main() { 6947 int main() {
6834 crypt() 6948 crypt()
6835 ; return 0; } 6949 ; return 0; }
6836 EOF 6950 EOF
6837 if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6951 if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6838 rm -rf conftest* 6952 rm -rf conftest*
6839 eval "ac_cv_lib_$ac_lib_var=yes" 6953 eval "ac_cv_lib_$ac_lib_var=yes"
6840 else 6954 else
6841 echo "configure: failed program was:" >&5 6955 echo "configure: failed program was:" >&5
6842 cat conftest.$ac_ext >&5 6956 cat conftest.$ac_ext >&5
6866 6980
6867 } 6981 }
6868 fi 6982 fi
6869 test -z "$with_wnn" && { 6983 test -z "$with_wnn" && {
6870 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 6984 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
6871 echo "configure:6872: checking for jl_dic_list_e in -lwnn" >&5 6985 echo "configure:6986: checking for jl_dic_list_e in -lwnn" >&5
6872 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 6986 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
6873 6987
6874 xe_check_libs=" -lwnn " 6988 xe_check_libs=" -lwnn "
6875 cat > conftest.$ac_ext <<EOF 6989 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure" 6990 #line 6991 "configure"
6877 #include "confdefs.h" 6991 #include "confdefs.h"
6878 /* Override any gcc2 internal prototype to avoid an error. */ 6992 /* Override any gcc2 internal prototype to avoid an error. */
6879 /* We use char because int might match the return type of a gcc2 6993 /* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */ 6994 builtin and then its argument prototype would still apply. */
6881 char jl_dic_list_e(); 6995 char jl_dic_list_e();
6882 6996
6883 int main() { 6997 int main() {
6884 jl_dic_list_e() 6998 jl_dic_list_e()
6885 ; return 0; } 6999 ; return 0; }
6886 EOF 7000 EOF
6887 if { (eval echo configure:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7001 if { (eval echo configure:7002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6888 rm -rf conftest* 7002 rm -rf conftest*
6889 eval "ac_cv_lib_$ac_lib_var=yes" 7003 eval "ac_cv_lib_$ac_lib_var=yes"
6890 else 7004 else
6891 echo "configure: failed program was:" >&5 7005 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5 7006 cat conftest.$ac_ext >&5
6919 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7033 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
6920 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7034 echo " xemacs will be linked with \"mule-wnnfns.o\""
6921 fi 7035 fi
6922 7036
6923 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7037 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
6924 echo "configure:6925: checking for jl_fi_dic_list in -lwnn" >&5 7038 echo "configure:7039: checking for jl_fi_dic_list in -lwnn" >&5
6925 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7039 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
6926 7040
6927 xe_check_libs=" -lwnn " 7041 xe_check_libs=" -lwnn "
6928 cat > conftest.$ac_ext <<EOF 7042 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure" 7043 #line 7044 "configure"
6930 #include "confdefs.h" 7044 #include "confdefs.h"
6931 /* Override any gcc2 internal prototype to avoid an error. */ 7045 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2 7046 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */ 7047 builtin and then its argument prototype would still apply. */
6934 char jl_fi_dic_list(); 7048 char jl_fi_dic_list();
6935 7049
6936 int main() { 7050 int main() {
6937 jl_fi_dic_list() 7051 jl_fi_dic_list()
6938 ; return 0; } 7052 ; return 0; }
6939 EOF 7053 EOF
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7054 if { (eval echo configure:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6941 rm -rf conftest* 7055 rm -rf conftest*
6942 eval "ac_cv_lib_$ac_lib_var=yes" 7056 eval "ac_cv_lib_$ac_lib_var=yes"
6943 else 7057 else
6944 echo "configure: failed program was:" >&5 7058 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5 7059 cat conftest.$ac_ext >&5
6967 7081
6968 fi 7082 fi
6969 7083
6970 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7084 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
6971 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7085 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
6972 echo "configure:6973: checking for canna/RK.h" >&5 7086 echo "configure:7087: checking for canna/RK.h" >&5
6973 7087
6974 cat > conftest.$ac_ext <<EOF 7088 cat > conftest.$ac_ext <<EOF
6975 #line 6976 "configure" 7089 #line 7090 "configure"
6976 #include "confdefs.h" 7090 #include "confdefs.h"
6977 #include <canna/RK.h> 7091 #include <canna/RK.h>
6978 EOF 7092 EOF
6979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6980 { (eval echo configure:6981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7094 { (eval echo configure:7095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6981 ac_err=`grep -v '^ *+' conftest.out` 7095 ac_err=`grep -v '^ *+' conftest.out`
6982 if test -z "$ac_err"; then 7096 if test -z "$ac_err"; then
6983 rm -rf conftest* 7097 rm -rf conftest*
6984 eval "ac_cv_header_$ac_safe=yes" 7098 eval "ac_cv_header_$ac_safe=yes"
6985 else 7099 else
6998 with_canna=no 7112 with_canna=no
6999 fi 7113 fi
7000 } 7114 }
7001 test -z "$with_canna" && { 7115 test -z "$with_canna" && {
7002 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7116 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7003 echo "configure:7004: checking for RkBgnBun in -lRKC" >&5 7117 echo "configure:7118: checking for RkBgnBun in -lRKC" >&5
7004 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7118 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7005 7119
7006 xe_check_libs=" -lRKC " 7120 xe_check_libs=" -lRKC "
7007 cat > conftest.$ac_ext <<EOF 7121 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure" 7122 #line 7123 "configure"
7009 #include "confdefs.h" 7123 #include "confdefs.h"
7010 /* Override any gcc2 internal prototype to avoid an error. */ 7124 /* Override any gcc2 internal prototype to avoid an error. */
7011 /* We use char because int might match the return type of a gcc2 7125 /* We use char because int might match the return type of a gcc2
7012 builtin and then its argument prototype would still apply. */ 7126 builtin and then its argument prototype would still apply. */
7013 char RkBgnBun(); 7127 char RkBgnBun();
7014 7128
7015 int main() { 7129 int main() {
7016 RkBgnBun() 7130 RkBgnBun()
7017 ; return 0; } 7131 ; return 0; }
7018 EOF 7132 EOF
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7133 if { (eval echo configure:7134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7020 rm -rf conftest* 7134 rm -rf conftest*
7021 eval "ac_cv_lib_$ac_lib_var=yes" 7135 eval "ac_cv_lib_$ac_lib_var=yes"
7022 else 7136 else
7023 echo "configure: failed program was:" >&5 7137 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5 7138 cat conftest.$ac_ext >&5
7037 fi 7151 fi
7038 7152
7039 } 7153 }
7040 test -z "$with_canna" && { 7154 test -z "$with_canna" && {
7041 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7155 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7042 echo "configure:7043: checking for jrKanjiControl in -lcanna" >&5 7156 echo "configure:7157: checking for jrKanjiControl in -lcanna" >&5
7043 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7157 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7044 7158
7045 xe_check_libs=" -lcanna " 7159 xe_check_libs=" -lcanna "
7046 cat > conftest.$ac_ext <<EOF 7160 cat > conftest.$ac_ext <<EOF
7047 #line 7048 "configure" 7161 #line 7162 "configure"
7048 #include "confdefs.h" 7162 #include "confdefs.h"
7049 /* Override any gcc2 internal prototype to avoid an error. */ 7163 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2 7164 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */ 7165 builtin and then its argument prototype would still apply. */
7052 char jrKanjiControl(); 7166 char jrKanjiControl();
7053 7167
7054 int main() { 7168 int main() {
7055 jrKanjiControl() 7169 jrKanjiControl()
7056 ; return 0; } 7170 ; return 0; }
7057 EOF 7171 EOF
7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7172 if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7059 rm -rf conftest* 7173 rm -rf conftest*
7060 eval "ac_cv_lib_$ac_lib_var=yes" 7174 eval "ac_cv_lib_$ac_lib_var=yes"
7061 else 7175 else
7062 echo "configure: failed program was:" >&5 7176 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5 7177 cat conftest.$ac_ext >&5
7153 fi 7267 fi
7154 7268
7155 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 ulimit usleep utimes waitpid 7269 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 ulimit usleep utimes waitpid
7156 do 7270 do
7157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7158 echo "configure:7159: checking for $ac_func" >&5 7272 echo "configure:7273: checking for $ac_func" >&5
7159 7273
7160 cat > conftest.$ac_ext <<EOF 7274 cat > conftest.$ac_ext <<EOF
7161 #line 7162 "configure" 7275 #line 7276 "configure"
7162 #include "confdefs.h" 7276 #include "confdefs.h"
7163 /* System header to define __stub macros and hopefully few prototypes, 7277 /* System header to define __stub macros and hopefully few prototypes,
7164 which can conflict with char $ac_func(); below. */ 7278 which can conflict with char $ac_func(); below. */
7165 #include <assert.h> 7279 #include <assert.h>
7166 /* Override any gcc2 internal prototype to avoid an error. */ 7280 /* Override any gcc2 internal prototype to avoid an error. */
7179 $ac_func(); 7293 $ac_func();
7180 #endif 7294 #endif
7181 7295
7182 ; return 0; } 7296 ; return 0; }
7183 EOF 7297 EOF
7184 if { (eval echo configure:7185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7298 if { (eval echo configure:7299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7185 rm -rf conftest* 7299 rm -rf conftest*
7186 eval "ac_cv_func_$ac_func=yes" 7300 eval "ac_cv_func_$ac_func=yes"
7187 else 7301 else
7188 echo "configure: failed program was:" >&5 7302 echo "configure: failed program was:" >&5
7189 cat conftest.$ac_ext >&5 7303 cat conftest.$ac_ext >&5
7216 fi ;; 7330 fi ;;
7217 * ) 7331 * )
7218 for ac_func in realpath 7332 for ac_func in realpath
7219 do 7333 do
7220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7221 echo "configure:7222: checking for $ac_func" >&5 7335 echo "configure:7336: checking for $ac_func" >&5
7222 7336
7223 cat > conftest.$ac_ext <<EOF 7337 cat > conftest.$ac_ext <<EOF
7224 #line 7225 "configure" 7338 #line 7339 "configure"
7225 #include "confdefs.h" 7339 #include "confdefs.h"
7226 /* System header to define __stub macros and hopefully few prototypes, 7340 /* System header to define __stub macros and hopefully few prototypes,
7227 which can conflict with char $ac_func(); below. */ 7341 which can conflict with char $ac_func(); below. */
7228 #include <assert.h> 7342 #include <assert.h>
7229 /* Override any gcc2 internal prototype to avoid an error. */ 7343 /* Override any gcc2 internal prototype to avoid an error. */
7242 $ac_func(); 7356 $ac_func();
7243 #endif 7357 #endif
7244 7358
7245 ; return 0; } 7359 ; return 0; }
7246 EOF 7360 EOF
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7361 if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7248 rm -rf conftest* 7362 rm -rf conftest*
7249 eval "ac_cv_func_$ac_func=yes" 7363 eval "ac_cv_func_$ac_func=yes"
7250 else 7364 else
7251 echo "configure: failed program was:" >&5 7365 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5 7366 cat conftest.$ac_ext >&5
7275 echo " xemacs will be linked with \"realpath.o\"" 7389 echo " xemacs will be linked with \"realpath.o\""
7276 fi ;; 7390 fi ;;
7277 esac 7391 esac
7278 7392
7279 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7393 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7280 echo "configure:7281: checking whether netdb declares h_errno" >&5 7394 echo "configure:7395: checking whether netdb declares h_errno" >&5
7281 cat > conftest.$ac_ext <<EOF 7395 cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure" 7396 #line 7397 "configure"
7283 #include "confdefs.h" 7397 #include "confdefs.h"
7284 #include <netdb.h> 7398 #include <netdb.h>
7285 int main() { 7399 int main() {
7286 return h_errno; 7400 return h_errno;
7287 ; return 0; } 7401 ; return 0; }
7288 EOF 7402 EOF
7289 if { (eval echo configure:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7403 if { (eval echo configure:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7290 rm -rf conftest* 7404 rm -rf conftest*
7291 echo "$ac_t""yes" 1>&6 7405 echo "$ac_t""yes" 1>&6
7292 { test "$extra_verbose" = "yes" && cat << \EOF 7406 { test "$extra_verbose" = "yes" && cat << \EOF
7293 Defining HAVE_H_ERRNO 7407 Defining HAVE_H_ERRNO
7294 EOF 7408 EOF
7304 echo "$ac_t""no" 1>&6 7418 echo "$ac_t""no" 1>&6
7305 fi 7419 fi
7306 rm -f conftest* 7420 rm -f conftest*
7307 7421
7308 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7422 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7309 echo "configure:7310: checking for sigsetjmp" >&5 7423 echo "configure:7424: checking for sigsetjmp" >&5
7310 cat > conftest.$ac_ext <<EOF 7424 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure" 7425 #line 7426 "configure"
7312 #include "confdefs.h" 7426 #include "confdefs.h"
7313 #include <setjmp.h> 7427 #include <setjmp.h>
7314 int main() { 7428 int main() {
7315 sigjmp_buf bar; sigsetjmp (bar, 0); 7429 sigjmp_buf bar; sigsetjmp (bar, 0);
7316 ; return 0; } 7430 ; return 0; }
7317 EOF 7431 EOF
7318 if { (eval echo configure:7319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7432 if { (eval echo configure:7433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7319 rm -rf conftest* 7433 rm -rf conftest*
7320 echo "$ac_t""yes" 1>&6 7434 echo "$ac_t""yes" 1>&6
7321 { test "$extra_verbose" = "yes" && cat << \EOF 7435 { test "$extra_verbose" = "yes" && cat << \EOF
7322 Defining HAVE_SIGSETJMP 7436 Defining HAVE_SIGSETJMP
7323 EOF 7437 EOF
7333 echo "$ac_t""no" 1>&6 7447 echo "$ac_t""no" 1>&6
7334 fi 7448 fi
7335 rm -f conftest* 7449 rm -f conftest*
7336 7450
7337 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7451 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7338 echo "configure:7339: checking whether localtime caches TZ" >&5 7452 echo "configure:7453: checking whether localtime caches TZ" >&5
7339 7453
7340 if test "$ac_cv_func_tzset" = "yes"; then 7454 if test "$ac_cv_func_tzset" = "yes"; then
7341 cat > conftest.$ac_ext <<EOF 7455 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure" 7456 #line 7457 "configure"
7343 #include "confdefs.h" 7457 #include "confdefs.h"
7344 #include <time.h> 7458 #include <time.h>
7345 #if STDC_HEADERS 7459 #if STDC_HEADERS
7346 # include <stdlib.h> 7460 # include <stdlib.h>
7347 #endif 7461 #endif
7372 if (localtime (&now)->tm_hour != hour_unset) 7486 if (localtime (&now)->tm_hour != hour_unset)
7373 exit (1); 7487 exit (1);
7374 exit (0); 7488 exit (0);
7375 } 7489 }
7376 EOF 7490 EOF
7377 if { (eval echo configure:7378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7491 if { (eval echo configure:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7378 then 7492 then
7379 emacs_cv_localtime_cache=no 7493 emacs_cv_localtime_cache=no
7380 else 7494 else
7381 echo "configure: failed program was:" >&5 7495 echo "configure: failed program was:" >&5
7382 cat conftest.$ac_ext >&5 7496 cat conftest.$ac_ext >&5
7401 7515
7402 fi 7516 fi
7403 7517
7404 if test "$HAVE_TIMEVAL" = "yes"; then 7518 if test "$HAVE_TIMEVAL" = "yes"; then
7405 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7519 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7406 echo "configure:7407: checking whether gettimeofday cannot accept two arguments" >&5 7520 echo "configure:7521: checking whether gettimeofday cannot accept two arguments" >&5
7407 cat > conftest.$ac_ext <<EOF 7521 cat > conftest.$ac_ext <<EOF
7408 #line 7409 "configure" 7522 #line 7523 "configure"
7409 #include "confdefs.h" 7523 #include "confdefs.h"
7410 7524
7411 #ifdef TIME_WITH_SYS_TIME 7525 #ifdef TIME_WITH_SYS_TIME
7412 #include <sys/time.h> 7526 #include <sys/time.h>
7413 #include <time.h> 7527 #include <time.h>
7425 struct timezone dummy; 7539 struct timezone dummy;
7426 gettimeofday (&time, &dummy); 7540 gettimeofday (&time, &dummy);
7427 7541
7428 ; return 0; } 7542 ; return 0; }
7429 EOF 7543 EOF
7430 if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7544 if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7431 rm -rf conftest* 7545 rm -rf conftest*
7432 echo "$ac_t""no" 1>&6 7546 echo "$ac_t""no" 1>&6
7433 else 7547 else
7434 echo "configure: failed program was:" >&5 7548 echo "configure: failed program was:" >&5
7435 cat conftest.$ac_ext >&5 7549 cat conftest.$ac_ext >&5
7447 rm -f conftest* 7561 rm -f conftest*
7448 fi 7562 fi
7449 7563
7450 7564
7451 echo $ac_n "checking for inline""... $ac_c" 1>&6 7565 echo $ac_n "checking for inline""... $ac_c" 1>&6
7452 echo "configure:7453: checking for inline" >&5 7566 echo "configure:7567: checking for inline" >&5
7453 7567
7454 ac_cv_c_inline=no 7568 ac_cv_c_inline=no
7455 for ac_kw in inline __inline__ __inline; do 7569 for ac_kw in inline __inline__ __inline; do
7456 cat > conftest.$ac_ext <<EOF 7570 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure" 7571 #line 7572 "configure"
7458 #include "confdefs.h" 7572 #include "confdefs.h"
7459 7573
7460 int main() { 7574 int main() {
7461 } $ac_kw foo() { 7575 } $ac_kw foo() {
7462 ; return 0; } 7576 ; return 0; }
7463 EOF 7577 EOF
7464 if { (eval echo configure:7465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7578 if { (eval echo configure:7579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7465 rm -rf conftest* 7579 rm -rf conftest*
7466 ac_cv_c_inline=$ac_kw; break 7580 ac_cv_c_inline=$ac_kw; break
7467 else 7581 else
7468 echo "configure: failed program was:" >&5 7582 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5 7583 cat conftest.$ac_ext >&5
7509 7623
7510 7624
7511 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7625 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7512 # for constant arguments. Useless! 7626 # for constant arguments. Useless!
7513 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7627 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7514 echo "configure:7515: checking for working alloca.h" >&5 7628 echo "configure:7629: checking for working alloca.h" >&5
7515 7629
7516 cat > conftest.$ac_ext <<EOF 7630 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure" 7631 #line 7632 "configure"
7518 #include "confdefs.h" 7632 #include "confdefs.h"
7519 #include <alloca.h> 7633 #include <alloca.h>
7520 int main() { 7634 int main() {
7521 char *p = alloca(2 * sizeof(int)); 7635 char *p = alloca(2 * sizeof(int));
7522 ; return 0; } 7636 ; return 0; }
7523 EOF 7637 EOF
7524 if { (eval echo configure:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7638 if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7525 rm -rf conftest* 7639 rm -rf conftest*
7526 ac_cv_header_alloca_h=yes 7640 ac_cv_header_alloca_h=yes
7527 else 7641 else
7528 echo "configure: failed program was:" >&5 7642 echo "configure: failed program was:" >&5
7529 cat conftest.$ac_ext >&5 7643 cat conftest.$ac_ext >&5
7543 } 7657 }
7544 7658
7545 fi 7659 fi
7546 7660
7547 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7661 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7548 echo "configure:7549: checking for alloca" >&5 7662 echo "configure:7663: checking for alloca" >&5
7549 7663
7550 cat > conftest.$ac_ext <<EOF 7664 cat > conftest.$ac_ext <<EOF
7551 #line 7552 "configure" 7665 #line 7666 "configure"
7552 #include "confdefs.h" 7666 #include "confdefs.h"
7553 7667
7554 #ifdef __GNUC__ 7668 #ifdef __GNUC__
7555 # define alloca __builtin_alloca 7669 # define alloca __builtin_alloca
7556 #else 7670 #else
7569 7683
7570 int main() { 7684 int main() {
7571 char *p = (char *) alloca(1); 7685 char *p = (char *) alloca(1);
7572 ; return 0; } 7686 ; return 0; }
7573 EOF 7687 EOF
7574 if { (eval echo configure:7575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7688 if { (eval echo configure:7689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7575 rm -rf conftest* 7689 rm -rf conftest*
7576 ac_cv_func_alloca_works=yes 7690 ac_cv_func_alloca_works=yes
7577 else 7691 else
7578 echo "configure: failed program was:" >&5 7692 echo "configure: failed program was:" >&5
7579 cat conftest.$ac_ext >&5 7693 cat conftest.$ac_ext >&5
7608 EOF 7722 EOF
7609 } 7723 }
7610 7724
7611 7725
7612 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7726 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7613 echo "configure:7614: checking whether alloca needs Cray hooks" >&5 7727 echo "configure:7728: checking whether alloca needs Cray hooks" >&5
7614 7728
7615 cat > conftest.$ac_ext <<EOF 7729 cat > conftest.$ac_ext <<EOF
7616 #line 7617 "configure" 7730 #line 7731 "configure"
7617 #include "confdefs.h" 7731 #include "confdefs.h"
7618 #if defined(CRAY) && ! defined(CRAY2) 7732 #if defined(CRAY) && ! defined(CRAY2)
7619 webecray 7733 webecray
7620 #else 7734 #else
7621 wenotbecray 7735 wenotbecray
7635 7749
7636 echo "$ac_t""$ac_cv_os_cray" 1>&6 7750 echo "$ac_t""$ac_cv_os_cray" 1>&6
7637 if test $ac_cv_os_cray = yes; then 7751 if test $ac_cv_os_cray = yes; then
7638 for ac_func in _getb67 GETB67 getb67; do 7752 for ac_func in _getb67 GETB67 getb67; do
7639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7640 echo "configure:7641: checking for $ac_func" >&5 7754 echo "configure:7755: checking for $ac_func" >&5
7641 7755
7642 cat > conftest.$ac_ext <<EOF 7756 cat > conftest.$ac_ext <<EOF
7643 #line 7644 "configure" 7757 #line 7758 "configure"
7644 #include "confdefs.h" 7758 #include "confdefs.h"
7645 /* System header to define __stub macros and hopefully few prototypes, 7759 /* System header to define __stub macros and hopefully few prototypes,
7646 which can conflict with char $ac_func(); below. */ 7760 which can conflict with char $ac_func(); below. */
7647 #include <assert.h> 7761 #include <assert.h>
7648 /* Override any gcc2 internal prototype to avoid an error. */ 7762 /* Override any gcc2 internal prototype to avoid an error. */
7661 $ac_func(); 7775 $ac_func();
7662 #endif 7776 #endif
7663 7777
7664 ; return 0; } 7778 ; return 0; }
7665 EOF 7779 EOF
7666 if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7667 rm -rf conftest* 7781 rm -rf conftest*
7668 eval "ac_cv_func_$ac_func=yes" 7782 eval "ac_cv_func_$ac_func=yes"
7669 else 7783 else
7670 echo "configure: failed program was:" >&5 7784 echo "configure: failed program was:" >&5
7671 cat conftest.$ac_ext >&5 7785 cat conftest.$ac_ext >&5
7691 7805
7692 done 7806 done
7693 fi 7807 fi
7694 7808
7695 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7809 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7696 echo "configure:7697: checking stack direction for C alloca" >&5 7810 echo "configure:7811: checking stack direction for C alloca" >&5
7697 7811
7698 cat > conftest.$ac_ext <<EOF 7812 cat > conftest.$ac_ext <<EOF
7699 #line 7700 "configure" 7813 #line 7814 "configure"
7700 #include "confdefs.h" 7814 #include "confdefs.h"
7701 find_stack_direction () 7815 find_stack_direction ()
7702 { 7816 {
7703 static char *addr = 0; 7817 static char *addr = 0;
7704 auto char dummy; 7818 auto char dummy;
7713 main () 7827 main ()
7714 { 7828 {
7715 exit (find_stack_direction() < 0); 7829 exit (find_stack_direction() < 0);
7716 } 7830 }
7717 EOF 7831 EOF
7718 if { (eval echo configure:7719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7832 if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7719 then 7833 then
7720 ac_cv_c_stack_direction=1 7834 ac_cv_c_stack_direction=1
7721 else 7835 else
7722 echo "configure: failed program was:" >&5 7836 echo "configure: failed program was:" >&5
7723 cat conftest.$ac_ext >&5 7837 cat conftest.$ac_ext >&5
7741 echo " xemacs will be linked with \"$ALLOCA\"" 7855 echo " xemacs will be linked with \"$ALLOCA\""
7742 fi 7856 fi
7743 7857
7744 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 7858 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7745 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 7859 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7746 echo "configure:7747: checking for vfork.h" >&5 7860 echo "configure:7861: checking for vfork.h" >&5
7747 7861
7748 cat > conftest.$ac_ext <<EOF 7862 cat > conftest.$ac_ext <<EOF
7749 #line 7750 "configure" 7863 #line 7864 "configure"
7750 #include "confdefs.h" 7864 #include "confdefs.h"
7751 #include <vfork.h> 7865 #include <vfork.h>
7752 EOF 7866 EOF
7753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7754 { (eval echo configure:7755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7868 { (eval echo configure:7869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7755 ac_err=`grep -v '^ *+' conftest.out` 7869 ac_err=`grep -v '^ *+' conftest.out`
7756 if test -z "$ac_err"; then 7870 if test -z "$ac_err"; then
7757 rm -rf conftest* 7871 rm -rf conftest*
7758 eval "ac_cv_header_$ac_safe=yes" 7872 eval "ac_cv_header_$ac_safe=yes"
7759 else 7873 else
7777 else 7891 else
7778 echo "$ac_t""no" 1>&6 7892 echo "$ac_t""no" 1>&6
7779 fi 7893 fi
7780 7894
7781 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 7895 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
7782 echo "configure:7783: checking for working vfork" >&5 7896 echo "configure:7897: checking for working vfork" >&5
7783 7897
7784 cat > conftest.$ac_ext <<EOF 7898 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure" 7899 #line 7900 "configure"
7786 #include "confdefs.h" 7900 #include "confdefs.h"
7787 /* Thanks to Paul Eggert for this test. */ 7901 /* Thanks to Paul Eggert for this test. */
7788 #include <stdio.h> 7902 #include <stdio.h>
7789 #include <sys/types.h> 7903 #include <sys/types.h>
7790 #include <sys/stat.h> 7904 #include <sys/stat.h>
7875 || fstat(fileno(stdout), &st) != 0 7989 || fstat(fileno(stdout), &st) != 0
7876 ); 7990 );
7877 } 7991 }
7878 } 7992 }
7879 EOF 7993 EOF
7880 if { (eval echo configure:7881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7994 if { (eval echo configure:7995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7881 then 7995 then
7882 ac_cv_func_vfork_works=yes 7996 ac_cv_func_vfork_works=yes
7883 else 7997 else
7884 echo "configure: failed program was:" >&5 7998 echo "configure: failed program was:" >&5
7885 cat conftest.$ac_ext >&5 7999 cat conftest.$ac_ext >&5
7900 8014
7901 fi 8015 fi
7902 8016
7903 8017
7904 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8018 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
7905 echo "configure:7906: checking for working strcoll" >&5 8019 echo "configure:8020: checking for working strcoll" >&5
7906 8020
7907 cat > conftest.$ac_ext <<EOF 8021 cat > conftest.$ac_ext <<EOF
7908 #line 7909 "configure" 8022 #line 8023 "configure"
7909 #include "confdefs.h" 8023 #include "confdefs.h"
7910 #include <string.h> 8024 #include <string.h>
7911 main () 8025 main ()
7912 { 8026 {
7913 exit (strcoll ("abc", "def") >= 0 || 8027 exit (strcoll ("abc", "def") >= 0 ||
7914 strcoll ("ABC", "DEF") >= 0 || 8028 strcoll ("ABC", "DEF") >= 0 ||
7915 strcoll ("123", "456") >= 0); 8029 strcoll ("123", "456") >= 0);
7916 } 8030 }
7917 EOF 8031 EOF
7918 if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8032 if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7919 then 8033 then
7920 ac_cv_func_strcoll_works=yes 8034 ac_cv_func_strcoll_works=yes
7921 else 8035 else
7922 echo "configure: failed program was:" >&5 8036 echo "configure: failed program was:" >&5
7923 cat conftest.$ac_ext >&5 8037 cat conftest.$ac_ext >&5
7940 8054
7941 8055
7942 for ac_func in getpgrp 8056 for ac_func in getpgrp
7943 do 8057 do
7944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7945 echo "configure:7946: checking for $ac_func" >&5 8059 echo "configure:8060: checking for $ac_func" >&5
7946 8060
7947 cat > conftest.$ac_ext <<EOF 8061 cat > conftest.$ac_ext <<EOF
7948 #line 7949 "configure" 8062 #line 8063 "configure"
7949 #include "confdefs.h" 8063 #include "confdefs.h"
7950 /* System header to define __stub macros and hopefully few prototypes, 8064 /* System header to define __stub macros and hopefully few prototypes,
7951 which can conflict with char $ac_func(); below. */ 8065 which can conflict with char $ac_func(); below. */
7952 #include <assert.h> 8066 #include <assert.h>
7953 /* Override any gcc2 internal prototype to avoid an error. */ 8067 /* Override any gcc2 internal prototype to avoid an error. */
7966 $ac_func(); 8080 $ac_func();
7967 #endif 8081 #endif
7968 8082
7969 ; return 0; } 8083 ; return 0; }
7970 EOF 8084 EOF
7971 if { (eval echo configure:7972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8085 if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7972 rm -rf conftest* 8086 rm -rf conftest*
7973 eval "ac_cv_func_$ac_func=yes" 8087 eval "ac_cv_func_$ac_func=yes"
7974 else 8088 else
7975 echo "configure: failed program was:" >&5 8089 echo "configure: failed program was:" >&5
7976 cat conftest.$ac_ext >&5 8090 cat conftest.$ac_ext >&5
7994 echo "$ac_t""no" 1>&6 8108 echo "$ac_t""no" 1>&6
7995 fi 8109 fi
7996 done 8110 done
7997 8111
7998 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8112 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
7999 echo "configure:8000: checking whether getpgrp takes no argument" >&5 8113 echo "configure:8114: checking whether getpgrp takes no argument" >&5
8000 8114
8001 cat > conftest.$ac_ext <<EOF 8115 cat > conftest.$ac_ext <<EOF
8002 #line 8003 "configure" 8116 #line 8117 "configure"
8003 #include "confdefs.h" 8117 #include "confdefs.h"
8004 8118
8005 /* 8119 /*
8006 * If this system has a BSD-style getpgrp(), 8120 * If this system has a BSD-style getpgrp(),
8007 * which takes a pid argument, exit unsuccessfully. 8121 * which takes a pid argument, exit unsuccessfully.
8052 exit(s>>8); 8166 exit(s>>8);
8053 } 8167 }
8054 } 8168 }
8055 8169
8056 EOF 8170 EOF
8057 if { (eval echo configure:8058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8058 then 8172 then
8059 ac_cv_func_getpgrp_void=yes 8173 ac_cv_func_getpgrp_void=yes
8060 else 8174 else
8061 echo "configure: failed program was:" >&5 8175 echo "configure: failed program was:" >&5
8062 cat conftest.$ac_ext >&5 8176 cat conftest.$ac_ext >&5
8078 8192
8079 fi 8193 fi
8080 8194
8081 8195
8082 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8196 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8083 echo "configure:8084: checking for working mmap" >&5 8197 echo "configure:8198: checking for working mmap" >&5
8084 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8198 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8085 cat > conftest.$ac_ext <<EOF 8199 cat > conftest.$ac_ext <<EOF
8086 #line 8087 "configure" 8200 #line 8201 "configure"
8087 #include "confdefs.h" 8201 #include "confdefs.h"
8088 #include <stdio.h> 8202 #include <stdio.h>
8089 #include <unistd.h> 8203 #include <unistd.h>
8090 #include <fcntl.h> 8204 #include <fcntl.h>
8091 #include <sys/mman.h> 8205 #include <sys/mman.h>
8114 return 0; 8228 return 0;
8115 perror ("conftest: mmap failed"); 8229 perror ("conftest: mmap failed");
8116 return 1; 8230 return 1;
8117 } 8231 }
8118 EOF 8232 EOF
8119 if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8233 if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8120 then 8234 then
8121 have_mmap=yes 8235 have_mmap=yes
8122 else 8236 else
8123 echo "configure: failed program was:" >&5 8237 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5 8238 cat conftest.$ac_ext >&5
8147 EOF 8261 EOF
8148 } 8262 }
8149 8263
8150 8264
8151 echo $ac_n "checking for socket""... $ac_c" 1>&6 8265 echo $ac_n "checking for socket""... $ac_c" 1>&6
8152 echo "configure:8153: checking for socket" >&5 8266 echo "configure:8267: checking for socket" >&5
8153 8267
8154 cat > conftest.$ac_ext <<EOF 8268 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure" 8269 #line 8270 "configure"
8156 #include "confdefs.h" 8270 #include "confdefs.h"
8157 /* System header to define __stub macros and hopefully few prototypes, 8271 /* System header to define __stub macros and hopefully few prototypes,
8158 which can conflict with char socket(); below. */ 8272 which can conflict with char socket(); below. */
8159 #include <assert.h> 8273 #include <assert.h>
8160 /* Override any gcc2 internal prototype to avoid an error. */ 8274 /* Override any gcc2 internal prototype to avoid an error. */
8173 socket(); 8287 socket();
8174 #endif 8288 #endif
8175 8289
8176 ; return 0; } 8290 ; return 0; }
8177 EOF 8291 EOF
8178 if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8292 if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8179 rm -rf conftest* 8293 rm -rf conftest*
8180 eval "ac_cv_func_socket=yes" 8294 eval "ac_cv_func_socket=yes"
8181 else 8295 else
8182 echo "configure: failed program was:" >&5 8296 echo "configure: failed program was:" >&5
8183 cat conftest.$ac_ext >&5 8297 cat conftest.$ac_ext >&5
8188 8302
8189 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8303 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8190 echo "$ac_t""yes" 1>&6 8304 echo "$ac_t""yes" 1>&6
8191 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8305 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8192 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8306 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8193 echo "configure:8194: checking for netinet/in.h" >&5 8307 echo "configure:8308: checking for netinet/in.h" >&5
8194 8308
8195 cat > conftest.$ac_ext <<EOF 8309 cat > conftest.$ac_ext <<EOF
8196 #line 8197 "configure" 8310 #line 8311 "configure"
8197 #include "confdefs.h" 8311 #include "confdefs.h"
8198 #include <netinet/in.h> 8312 #include <netinet/in.h>
8199 EOF 8313 EOF
8200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8201 { (eval echo configure:8202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8315 { (eval echo configure:8316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8202 ac_err=`grep -v '^ *+' conftest.out` 8316 ac_err=`grep -v '^ *+' conftest.out`
8203 if test -z "$ac_err"; then 8317 if test -z "$ac_err"; then
8204 rm -rf conftest* 8318 rm -rf conftest*
8205 eval "ac_cv_header_$ac_safe=yes" 8319 eval "ac_cv_header_$ac_safe=yes"
8206 else 8320 else
8213 rm -f conftest* 8327 rm -f conftest*
8214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8215 echo "$ac_t""yes" 1>&6 8329 echo "$ac_t""yes" 1>&6
8216 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8330 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8217 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8331 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8218 echo "configure:8219: checking for arpa/inet.h" >&5 8332 echo "configure:8333: checking for arpa/inet.h" >&5
8219 8333
8220 cat > conftest.$ac_ext <<EOF 8334 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure" 8335 #line 8336 "configure"
8222 #include "confdefs.h" 8336 #include "confdefs.h"
8223 #include <arpa/inet.h> 8337 #include <arpa/inet.h>
8224 EOF 8338 EOF
8225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8226 { (eval echo configure:8227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8340 { (eval echo configure:8341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8227 ac_err=`grep -v '^ *+' conftest.out` 8341 ac_err=`grep -v '^ *+' conftest.out`
8228 if test -z "$ac_err"; then 8342 if test -z "$ac_err"; then
8229 rm -rf conftest* 8343 rm -rf conftest*
8230 eval "ac_cv_header_$ac_safe=yes" 8344 eval "ac_cv_header_$ac_safe=yes"
8231 else 8345 else
8246 #define HAVE_SOCKETS 1 8360 #define HAVE_SOCKETS 1
8247 EOF 8361 EOF
8248 } 8362 }
8249 8363
8250 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8364 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8251 echo "configure:8252: checking "for sun_len member in struct sockaddr_un"" >&5 8365 echo "configure:8366: checking "for sun_len member in struct sockaddr_un"" >&5
8252 cat > conftest.$ac_ext <<EOF 8366 cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure" 8367 #line 8368 "configure"
8254 #include "confdefs.h" 8368 #include "confdefs.h"
8255 8369
8256 #include <sys/types.h> 8370 #include <sys/types.h>
8257 #include <sys/socket.h> 8371 #include <sys/socket.h>
8258 #include <sys/un.h> 8372 #include <sys/un.h>
8259 8373
8260 int main() { 8374 int main() {
8261 static struct sockaddr_un x; x.sun_len = 1; 8375 static struct sockaddr_un x; x.sun_len = 1;
8262 ; return 0; } 8376 ; return 0; }
8263 EOF 8377 EOF
8264 if { (eval echo configure:8265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8378 if { (eval echo configure:8379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8265 rm -rf conftest* 8379 rm -rf conftest*
8266 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8380 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8267 Defining HAVE_SOCKADDR_SUN_LEN 8381 Defining HAVE_SOCKADDR_SUN_LEN
8268 EOF 8382 EOF
8269 cat >> confdefs.h <<\EOF 8383 cat >> confdefs.h <<\EOF
8290 echo "$ac_t""no" 1>&6 8404 echo "$ac_t""no" 1>&6
8291 fi 8405 fi
8292 8406
8293 8407
8294 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8408 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8295 echo "configure:8296: checking for msgget" >&5 8409 echo "configure:8410: checking for msgget" >&5
8296 8410
8297 cat > conftest.$ac_ext <<EOF 8411 cat > conftest.$ac_ext <<EOF
8298 #line 8299 "configure" 8412 #line 8413 "configure"
8299 #include "confdefs.h" 8413 #include "confdefs.h"
8300 /* System header to define __stub macros and hopefully few prototypes, 8414 /* System header to define __stub macros and hopefully few prototypes,
8301 which can conflict with char msgget(); below. */ 8415 which can conflict with char msgget(); below. */
8302 #include <assert.h> 8416 #include <assert.h>
8303 /* Override any gcc2 internal prototype to avoid an error. */ 8417 /* Override any gcc2 internal prototype to avoid an error. */
8316 msgget(); 8430 msgget();
8317 #endif 8431 #endif
8318 8432
8319 ; return 0; } 8433 ; return 0; }
8320 EOF 8434 EOF
8321 if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8435 if { (eval echo configure:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8322 rm -rf conftest* 8436 rm -rf conftest*
8323 eval "ac_cv_func_msgget=yes" 8437 eval "ac_cv_func_msgget=yes"
8324 else 8438 else
8325 echo "configure: failed program was:" >&5 8439 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5 8440 cat conftest.$ac_ext >&5
8331 8445
8332 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8446 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8333 echo "$ac_t""yes" 1>&6 8447 echo "$ac_t""yes" 1>&6
8334 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8448 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8335 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8449 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8336 echo "configure:8337: checking for sys/ipc.h" >&5 8450 echo "configure:8451: checking for sys/ipc.h" >&5
8337 8451
8338 cat > conftest.$ac_ext <<EOF 8452 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure" 8453 #line 8454 "configure"
8340 #include "confdefs.h" 8454 #include "confdefs.h"
8341 #include <sys/ipc.h> 8455 #include <sys/ipc.h>
8342 EOF 8456 EOF
8343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8344 { (eval echo configure:8345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8458 { (eval echo configure:8459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8345 ac_err=`grep -v '^ *+' conftest.out` 8459 ac_err=`grep -v '^ *+' conftest.out`
8346 if test -z "$ac_err"; then 8460 if test -z "$ac_err"; then
8347 rm -rf conftest* 8461 rm -rf conftest*
8348 eval "ac_cv_header_$ac_safe=yes" 8462 eval "ac_cv_header_$ac_safe=yes"
8349 else 8463 else
8356 rm -f conftest* 8470 rm -f conftest*
8357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6 8472 echo "$ac_t""yes" 1>&6
8359 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8473 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8360 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8474 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8361 echo "configure:8362: checking for sys/msg.h" >&5 8475 echo "configure:8476: checking for sys/msg.h" >&5
8362 8476
8363 cat > conftest.$ac_ext <<EOF 8477 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure" 8478 #line 8479 "configure"
8365 #include "confdefs.h" 8479 #include "confdefs.h"
8366 #include <sys/msg.h> 8480 #include <sys/msg.h>
8367 EOF 8481 EOF
8368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8369 { (eval echo configure:8370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8483 { (eval echo configure:8484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8370 ac_err=`grep -v '^ *+' conftest.out` 8484 ac_err=`grep -v '^ *+' conftest.out`
8371 if test -z "$ac_err"; then 8485 if test -z "$ac_err"; then
8372 rm -rf conftest* 8486 rm -rf conftest*
8373 eval "ac_cv_header_$ac_safe=yes" 8487 eval "ac_cv_header_$ac_safe=yes"
8374 else 8488 else
8402 fi 8516 fi
8403 8517
8404 8518
8405 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8519 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8406 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8520 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8407 echo "configure:8408: checking for dirent.h" >&5 8521 echo "configure:8522: checking for dirent.h" >&5
8408 8522
8409 cat > conftest.$ac_ext <<EOF 8523 cat > conftest.$ac_ext <<EOF
8410 #line 8411 "configure" 8524 #line 8525 "configure"
8411 #include "confdefs.h" 8525 #include "confdefs.h"
8412 #include <dirent.h> 8526 #include <dirent.h>
8413 EOF 8527 EOF
8414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8415 { (eval echo configure:8416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8529 { (eval echo configure:8530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8416 ac_err=`grep -v '^ *+' conftest.out` 8530 ac_err=`grep -v '^ *+' conftest.out`
8417 if test -z "$ac_err"; then 8531 if test -z "$ac_err"; then
8418 rm -rf conftest* 8532 rm -rf conftest*
8419 eval "ac_cv_header_$ac_safe=yes" 8533 eval "ac_cv_header_$ac_safe=yes"
8420 else 8534 else
8437 8551
8438 else 8552 else
8439 echo "$ac_t""no" 1>&6 8553 echo "$ac_t""no" 1>&6
8440 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8554 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8441 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8555 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8442 echo "configure:8443: checking for sys/dir.h" >&5 8556 echo "configure:8557: checking for sys/dir.h" >&5
8443 8557
8444 cat > conftest.$ac_ext <<EOF 8558 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure" 8559 #line 8560 "configure"
8446 #include "confdefs.h" 8560 #include "confdefs.h"
8447 #include <sys/dir.h> 8561 #include <sys/dir.h>
8448 EOF 8562 EOF
8449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8450 { (eval echo configure:8451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8564 { (eval echo configure:8565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8451 ac_err=`grep -v '^ *+' conftest.out` 8565 ac_err=`grep -v '^ *+' conftest.out`
8452 if test -z "$ac_err"; then 8566 if test -z "$ac_err"; then
8453 rm -rf conftest* 8567 rm -rf conftest*
8454 eval "ac_cv_header_$ac_safe=yes" 8568 eval "ac_cv_header_$ac_safe=yes"
8455 else 8569 else
8478 fi 8592 fi
8479 8593
8480 8594
8481 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8595 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8482 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8596 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8483 echo "configure:8484: checking for nlist.h" >&5 8597 echo "configure:8598: checking for nlist.h" >&5
8484 8598
8485 cat > conftest.$ac_ext <<EOF 8599 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure" 8600 #line 8601 "configure"
8487 #include "confdefs.h" 8601 #include "confdefs.h"
8488 #include <nlist.h> 8602 #include <nlist.h>
8489 EOF 8603 EOF
8490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8491 { (eval echo configure:8492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8605 { (eval echo configure:8606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8492 ac_err=`grep -v '^ *+' conftest.out` 8606 ac_err=`grep -v '^ *+' conftest.out`
8493 if test -z "$ac_err"; then 8607 if test -z "$ac_err"; then
8494 rm -rf conftest* 8608 rm -rf conftest*
8495 eval "ac_cv_header_$ac_safe=yes" 8609 eval "ac_cv_header_$ac_safe=yes"
8496 else 8610 else
8525 EOF 8639 EOF
8526 } 8640 }
8527 break; fi 8641 break; fi
8528 done 8642 done
8529 8643
8530 . "$srcdir/version.sh" || exit 1;
8531 #version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
8532 #if test -z "$version"; then
8533 # echo "$progname: can't find current emacs version in \"$file\"." >&2
8534 # exit 1
8535 #fi
8536 #beta=`sed -ne 's/^.*beta.*(beta\([[0-9]][[0-9]]*\)).*$/\1/p' "$file"`
8537 #test -n "$beta" && version="${version}-b${beta}"
8538 version="${emacs_major_version}.${emacs_minor_version}"
8539 { test "$extra_verbose" = "yes" && cat << EOF
8540 Defining EMACS_MAJOR_VERSION = $emacs_major_version
8541 EOF
8542 cat >> confdefs.h <<EOF
8543 #define EMACS_MAJOR_VERSION $emacs_major_version
8544 EOF
8545 }
8546
8547 { test "$extra_verbose" = "yes" && cat << EOF
8548 Defining EMACS_MINOR_VERSION = $emacs_minor_version
8549 EOF
8550 cat >> confdefs.h <<EOF
8551 #define EMACS_MINOR_VERSION $emacs_minor_version
8552 EOF
8553 }
8554
8555 if test -n "$emacs_beta_version"; then
8556 version="${version}-b${emacs_beta_version}"
8557 { test "$extra_verbose" = "yes" && cat << EOF
8558 Defining EMACS_BETA_VERSION = $emacs_beta_version
8559 EOF
8560 cat >> confdefs.h <<EOF
8561 #define EMACS_BETA_VERSION $emacs_beta_version
8562 EOF
8563 }
8564
8565 fi
8566 { test "$extra_verbose" = "yes" && cat << EOF
8567 Defining XEMACS_CODENAME = "$xemacs_codename"
8568 EOF
8569 cat >> confdefs.h <<EOF
8570 #define XEMACS_CODENAME "$xemacs_codename"
8571 EOF
8572 }
8573
8574 { test "$extra_verbose" = "yes" && cat << EOF
8575 Defining EMACS_VERSION = "$version"
8576 EOF
8577 cat >> confdefs.h <<EOF
8578 #define EMACS_VERSION "$version"
8579 EOF
8580 }
8581
8582 canonical_version=`echo ${version}_${canonical} | sed 'y/.-/__/'`
8583 { test "$extra_verbose" = "yes" && cat << EOF
8584 Defining CANONICAL_VERSION = $canonical_version
8585 EOF
8586 cat >> confdefs.h <<EOF
8587 #define CANONICAL_VERSION $canonical_version
8588 EOF
8589 }
8590
8591
8592
8593 8644
8594 echo "checking "for sound support"" 1>&6 8645 echo "checking "for sound support"" 1>&6
8595 echo "configure:8596: checking "for sound support"" >&5 8646 echo "configure:8647: checking "for sound support"" >&5
8596 case "$with_sound" in 8647 case "$with_sound" in
8597 native | both ) with_native_sound=yes;; 8648 native | both ) with_native_sound=yes;;
8598 nas | no ) with_native_sound=no;; 8649 nas | no ) with_native_sound=no;;
8599 esac 8650 esac
8600 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8651 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8601 8652
8602 if test "$with_native_sound" != "no"; then 8653 if test "$with_native_sound" != "no"; then
8603 if test -n "$native_sound_lib"; then 8654 if test -n "$native_sound_lib"; then
8604 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8655 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8605 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8656 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8606 echo "configure:8607: checking for multimedia/audio_device.h" >&5 8657 echo "configure:8658: checking for multimedia/audio_device.h" >&5
8607 8658
8608 cat > conftest.$ac_ext <<EOF 8659 cat > conftest.$ac_ext <<EOF
8609 #line 8610 "configure" 8660 #line 8661 "configure"
8610 #include "confdefs.h" 8661 #include "confdefs.h"
8611 #include <multimedia/audio_device.h> 8662 #include <multimedia/audio_device.h>
8612 EOF 8663 EOF
8613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8614 { (eval echo configure:8615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8665 { (eval echo configure:8666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8615 ac_err=`grep -v '^ *+' conftest.out` 8666 ac_err=`grep -v '^ *+' conftest.out`
8616 if test -z "$ac_err"; then 8667 if test -z "$ac_err"; then
8617 rm -rf conftest* 8668 rm -rf conftest*
8618 eval "ac_cv_header_$ac_safe=yes" 8669 eval "ac_cv_header_$ac_safe=yes"
8619 else 8670 else
8657 case "$canonical" in 8708 case "$canonical" in
8658 *-sgi-* ) 8709 *-sgi-* )
8659 if test -z "$native_sound_lib"; then 8710 if test -z "$native_sound_lib"; then
8660 8711
8661 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8712 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8662 echo "configure:8663: checking for ALopenport in -laudio" >&5 8713 echo "configure:8714: checking for ALopenport in -laudio" >&5
8663 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8714 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8664 8715
8665 xe_check_libs=" -laudio " 8716 xe_check_libs=" -laudio "
8666 cat > conftest.$ac_ext <<EOF 8717 cat > conftest.$ac_ext <<EOF
8667 #line 8668 "configure" 8718 #line 8719 "configure"
8668 #include "confdefs.h" 8719 #include "confdefs.h"
8669 /* Override any gcc2 internal prototype to avoid an error. */ 8720 /* Override any gcc2 internal prototype to avoid an error. */
8670 /* We use char because int might match the return type of a gcc2 8721 /* We use char because int might match the return type of a gcc2
8671 builtin and then its argument prototype would still apply. */ 8722 builtin and then its argument prototype would still apply. */
8672 char ALopenport(); 8723 char ALopenport();
8673 8724
8674 int main() { 8725 int main() {
8675 ALopenport() 8726 ALopenport()
8676 ; return 0; } 8727 ; return 0; }
8677 EOF 8728 EOF
8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8679 rm -rf conftest* 8730 rm -rf conftest*
8680 eval "ac_cv_lib_$ac_lib_var=yes" 8731 eval "ac_cv_lib_$ac_lib_var=yes"
8681 else 8732 else
8682 echo "configure: failed program was:" >&5 8733 echo "configure: failed program was:" >&5
8683 cat conftest.$ac_ext >&5 8734 cat conftest.$ac_ext >&5
8704 fi ;; 8755 fi ;;
8705 hppa*-hp-hpux* ) 8756 hppa*-hp-hpux* )
8706 if test -z "$native_sound_lib"; then 8757 if test -z "$native_sound_lib"; then
8707 8758
8708 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 8759 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8709 echo "configure:8710: checking for AOpenAudio in -lAlib" >&5 8760 echo "configure:8761: checking for AOpenAudio in -lAlib" >&5
8710 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 8761 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8711 8762
8712 xe_check_libs=" -lAlib " 8763 xe_check_libs=" -lAlib "
8713 cat > conftest.$ac_ext <<EOF 8764 cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure" 8765 #line 8766 "configure"
8715 #include "confdefs.h" 8766 #include "confdefs.h"
8716 /* Override any gcc2 internal prototype to avoid an error. */ 8767 /* Override any gcc2 internal prototype to avoid an error. */
8717 /* We use char because int might match the return type of a gcc2 8768 /* We use char because int might match the return type of a gcc2
8718 builtin and then its argument prototype would still apply. */ 8769 builtin and then its argument prototype would still apply. */
8719 char AOpenAudio(); 8770 char AOpenAudio();
8720 8771
8721 int main() { 8772 int main() {
8722 AOpenAudio() 8773 AOpenAudio()
8723 ; return 0; } 8774 ; return 0; }
8724 EOF 8775 EOF
8725 if { (eval echo configure:8726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8776 if { (eval echo configure:8777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8726 rm -rf conftest* 8777 rm -rf conftest*
8727 eval "ac_cv_lib_$ac_lib_var=yes" 8778 eval "ac_cv_lib_$ac_lib_var=yes"
8728 else 8779 else
8729 echo "configure: failed program was:" >&5 8780 echo "configure: failed program was:" >&5
8730 cat conftest.$ac_ext >&5 8781 cat conftest.$ac_ext >&5
8758 8809
8759 if test -z "$sound_found"; then 8810 if test -z "$sound_found"; then
8760 for dir in "machine" "sys" "linux"; do 8811 for dir in "machine" "sys" "linux"; do
8761 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 8812 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
8762 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 8813 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
8763 echo "configure:8764: checking for ${dir}/soundcard.h" >&5 8814 echo "configure:8815: checking for ${dir}/soundcard.h" >&5
8764 8815
8765 cat > conftest.$ac_ext <<EOF 8816 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure" 8817 #line 8818 "configure"
8767 #include "confdefs.h" 8818 #include "confdefs.h"
8768 #include <${dir}/soundcard.h> 8819 #include <${dir}/soundcard.h>
8769 EOF 8820 EOF
8770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8771 { (eval echo configure:8772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8822 { (eval echo configure:8823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8772 ac_err=`grep -v '^ *+' conftest.out` 8823 ac_err=`grep -v '^ *+' conftest.out`
8773 if test -z "$ac_err"; then 8824 if test -z "$ac_err"; then
8774 rm -rf conftest* 8825 rm -rf conftest*
8775 eval "ac_cv_header_$ac_safe=yes" 8826 eval "ac_cv_header_$ac_safe=yes"
8776 else 8827 else
8836 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 8887 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
8837 echo " xemacs will be linked with \"nas.o\"" 8888 echo " xemacs will be linked with \"nas.o\""
8838 fi 8889 fi
8839 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi 8890 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi
8840 cat > conftest.$ac_ext <<EOF 8891 cat > conftest.$ac_ext <<EOF
8841 #line 8842 "configure" 8892 #line 8893 "configure"
8842 #include "confdefs.h" 8893 #include "confdefs.h"
8843 #include <audio/Xtutil.h> 8894 #include <audio/Xtutil.h>
8844 EOF 8895 EOF
8845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8846 egrep "AuXtErrorJump" >/dev/null 2>&1; then 8897 egrep "AuXtErrorJump" >/dev/null 2>&1; then
8863 8914
8864 test -z "$with_tty" && with_tty=yes 8915 test -z "$with_tty" && with_tty=yes
8865 8916
8866 if test "$with_tty" = "yes" ; then 8917 if test "$with_tty" = "yes" ; then
8867 echo "checking for TTY-related features" 1>&6 8918 echo "checking for TTY-related features" 1>&6
8868 echo "configure:8869: checking for TTY-related features" >&5 8919 echo "configure:8920: checking for TTY-related features" >&5
8869 { test "$extra_verbose" = "yes" && cat << \EOF 8920 { test "$extra_verbose" = "yes" && cat << \EOF
8870 Defining HAVE_TTY 8921 Defining HAVE_TTY
8871 EOF 8922 EOF
8872 cat >> confdefs.h <<\EOF 8923 cat >> confdefs.h <<\EOF
8873 #define HAVE_TTY 1 8924 #define HAVE_TTY 1
8878 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\"" 8929 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\""
8879 fi 8930 fi
8880 8931
8881 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8932 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8882 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8933 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8883 echo "configure:8884: checking for termios.h" >&5 8934 echo "configure:8935: checking for termios.h" >&5
8884 8935
8885 cat > conftest.$ac_ext <<EOF 8936 cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure" 8937 #line 8938 "configure"
8887 #include "confdefs.h" 8938 #include "confdefs.h"
8888 #include <termios.h> 8939 #include <termios.h>
8889 EOF 8940 EOF
8890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8891 { (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8942 { (eval echo configure:8943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8892 ac_err=`grep -v '^ *+' conftest.out` 8943 ac_err=`grep -v '^ *+' conftest.out`
8893 if test -z "$ac_err"; then 8944 if test -z "$ac_err"; then
8894 rm -rf conftest* 8945 rm -rf conftest*
8895 eval "ac_cv_header_$ac_safe=yes" 8946 eval "ac_cv_header_$ac_safe=yes"
8896 else 8947 else
8913 8964
8914 else 8965 else
8915 echo "$ac_t""no" 1>&6 8966 echo "$ac_t""no" 1>&6
8916 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8967 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8917 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8968 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8918 echo "configure:8919: checking for termio.h" >&5 8969 echo "configure:8970: checking for termio.h" >&5
8919 8970
8920 cat > conftest.$ac_ext <<EOF 8971 cat > conftest.$ac_ext <<EOF
8921 #line 8922 "configure" 8972 #line 8973 "configure"
8922 #include "confdefs.h" 8973 #include "confdefs.h"
8923 #include <termio.h> 8974 #include <termio.h>
8924 EOF 8975 EOF
8925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8926 { (eval echo configure:8927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8977 { (eval echo configure:8978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8927 ac_err=`grep -v '^ *+' conftest.out` 8978 ac_err=`grep -v '^ *+' conftest.out`
8928 if test -z "$ac_err"; then 8979 if test -z "$ac_err"; then
8929 rm -rf conftest* 8980 rm -rf conftest*
8930 eval "ac_cv_header_$ac_safe=yes" 8981 eval "ac_cv_header_$ac_safe=yes"
8931 else 8982 else
8954 9005
8955 9006
8956 if test -z "$with_ncurses"; then 9007 if test -z "$with_ncurses"; then
8957 9008
8958 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9009 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
8959 echo "configure:8960: checking for tgetent in -lncurses" >&5 9010 echo "configure:9011: checking for tgetent in -lncurses" >&5
8960 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9011 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
8961 9012
8962 xe_check_libs=" -lncurses " 9013 xe_check_libs=" -lncurses "
8963 cat > conftest.$ac_ext <<EOF 9014 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure" 9015 #line 9016 "configure"
8965 #include "confdefs.h" 9016 #include "confdefs.h"
8966 /* Override any gcc2 internal prototype to avoid an error. */ 9017 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2 9018 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */ 9019 builtin and then its argument prototype would still apply. */
8969 char tgetent(); 9020 char tgetent();
8970 9021
8971 int main() { 9022 int main() {
8972 tgetent() 9023 tgetent()
8973 ; return 0; } 9024 ; return 0; }
8974 EOF 9025 EOF
8975 if { (eval echo configure:8976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9026 if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8976 rm -rf conftest* 9027 rm -rf conftest*
8977 eval "ac_cv_lib_$ac_lib_var=yes" 9028 eval "ac_cv_lib_$ac_lib_var=yes"
8978 else 9029 else
8979 echo "configure: failed program was:" >&5 9030 echo "configure: failed program was:" >&5
8980 cat conftest.$ac_ext >&5 9031 cat conftest.$ac_ext >&5
9003 EOF 9054 EOF
9004 } 9055 }
9005 9056
9006 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9057 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9007 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9058 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9008 echo "configure:9009: checking for ncurses/curses.h" >&5 9059 echo "configure:9060: checking for ncurses/curses.h" >&5
9009 9060
9010 cat > conftest.$ac_ext <<EOF 9061 cat > conftest.$ac_ext <<EOF
9011 #line 9012 "configure" 9062 #line 9063 "configure"
9012 #include "confdefs.h" 9063 #include "confdefs.h"
9013 #include <ncurses/curses.h> 9064 #include <ncurses/curses.h>
9014 EOF 9065 EOF
9015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9016 { (eval echo configure:9017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9067 { (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9017 ac_err=`grep -v '^ *+' conftest.out` 9068 ac_err=`grep -v '^ *+' conftest.out`
9018 if test -z "$ac_err"; then 9069 if test -z "$ac_err"; then
9019 rm -rf conftest* 9070 rm -rf conftest*
9020 eval "ac_cv_header_$ac_safe=yes" 9071 eval "ac_cv_header_$ac_safe=yes"
9021 else 9072 else
9033 echo "$ac_t""no" 1>&6 9084 echo "$ac_t""no" 1>&6
9034 fi 9085 fi
9035 9086
9036 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9087 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9037 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9088 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9038 echo "configure:9039: checking for ncurses/term.h" >&5 9089 echo "configure:9090: checking for ncurses/term.h" >&5
9039 9090
9040 cat > conftest.$ac_ext <<EOF 9091 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure" 9092 #line 9093 "configure"
9042 #include "confdefs.h" 9093 #include "confdefs.h"
9043 #include <ncurses/term.h> 9094 #include <ncurses/term.h>
9044 EOF 9095 EOF
9045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9046 { (eval echo configure:9047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9097 { (eval echo configure:9098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9047 ac_err=`grep -v '^ *+' conftest.out` 9098 ac_err=`grep -v '^ *+' conftest.out`
9048 if test -z "$ac_err"; then 9099 if test -z "$ac_err"; then
9049 rm -rf conftest* 9100 rm -rf conftest*
9050 eval "ac_cv_header_$ac_safe=yes" 9101 eval "ac_cv_header_$ac_safe=yes"
9051 else 9102 else
9071 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9122 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9072 save_c_switch_site="$c_switch_site" 9123 save_c_switch_site="$c_switch_site"
9073 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9124 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9074 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9125 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9075 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9126 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9076 echo "configure:9077: checking for ncurses/curses.h" >&5 9127 echo "configure:9128: checking for ncurses/curses.h" >&5
9077 9128
9078 cat > conftest.$ac_ext <<EOF 9129 cat > conftest.$ac_ext <<EOF
9079 #line 9080 "configure" 9130 #line 9131 "configure"
9080 #include "confdefs.h" 9131 #include "confdefs.h"
9081 #include <ncurses/curses.h> 9132 #include <ncurses/curses.h>
9082 EOF 9133 EOF
9083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9084 { (eval echo configure:9085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9135 { (eval echo configure:9136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9085 ac_err=`grep -v '^ *+' conftest.out` 9136 ac_err=`grep -v '^ *+' conftest.out`
9086 if test -z "$ac_err"; then 9137 if test -z "$ac_err"; then
9087 rm -rf conftest* 9138 rm -rf conftest*
9088 eval "ac_cv_header_$ac_safe=yes" 9139 eval "ac_cv_header_$ac_safe=yes"
9089 else 9140 else
9114 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9165 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9115 else 9166 else
9116 for lib in curses termlib termcap; do 9167 for lib in curses termlib termcap; do
9117 9168
9118 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9169 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9119 echo "configure:9120: checking for tgetent in -l$lib" >&5 9170 echo "configure:9171: checking for tgetent in -l$lib" >&5
9120 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9171 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9121 9172
9122 xe_check_libs=" -l$lib " 9173 xe_check_libs=" -l$lib "
9123 cat > conftest.$ac_ext <<EOF 9174 cat > conftest.$ac_ext <<EOF
9124 #line 9125 "configure" 9175 #line 9176 "configure"
9125 #include "confdefs.h" 9176 #include "confdefs.h"
9126 /* Override any gcc2 internal prototype to avoid an error. */ 9177 /* Override any gcc2 internal prototype to avoid an error. */
9127 /* We use char because int might match the return type of a gcc2 9178 /* We use char because int might match the return type of a gcc2
9128 builtin and then its argument prototype would still apply. */ 9179 builtin and then its argument prototype would still apply. */
9129 char tgetent(); 9180 char tgetent();
9130 9181
9131 int main() { 9182 int main() {
9132 tgetent() 9183 tgetent()
9133 ; return 0; } 9184 ; return 0; }
9134 EOF 9185 EOF
9135 if { (eval echo configure:9136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9186 if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9136 rm -rf conftest* 9187 rm -rf conftest*
9137 eval "ac_cv_lib_$ac_lib_var=yes" 9188 eval "ac_cv_lib_$ac_lib_var=yes"
9138 else 9189 else
9139 echo "configure: failed program was:" >&5 9190 echo "configure: failed program was:" >&5
9140 cat conftest.$ac_ext >&5 9191 cat conftest.$ac_ext >&5
9161 if test -n "$libs_termcap"; then 9212 if test -n "$libs_termcap"; then
9162 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9213 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9163 else 9214 else
9164 9215
9165 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9216 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9166 echo "configure:9167: checking for tgetent in -lcurses" >&5 9217 echo "configure:9218: checking for tgetent in -lcurses" >&5
9167 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9218 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9168 9219
9169 xe_check_libs=" -lcurses " 9220 xe_check_libs=" -lcurses "
9170 cat > conftest.$ac_ext <<EOF 9221 cat > conftest.$ac_ext <<EOF
9171 #line 9172 "configure" 9222 #line 9223 "configure"
9172 #include "confdefs.h" 9223 #include "confdefs.h"
9173 /* Override any gcc2 internal prototype to avoid an error. */ 9224 /* Override any gcc2 internal prototype to avoid an error. */
9174 /* We use char because int might match the return type of a gcc2 9225 /* We use char because int might match the return type of a gcc2
9175 builtin and then its argument prototype would still apply. */ 9226 builtin and then its argument prototype would still apply. */
9176 char tgetent(); 9227 char tgetent();
9177 9228
9178 int main() { 9229 int main() {
9179 tgetent() 9230 tgetent()
9180 ; return 0; } 9231 ; return 0; }
9181 EOF 9232 EOF
9182 if { (eval echo configure:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9233 if { (eval echo configure:9234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9183 rm -rf conftest* 9234 rm -rf conftest*
9184 eval "ac_cv_lib_$ac_lib_var=yes" 9235 eval "ac_cv_lib_$ac_lib_var=yes"
9185 else 9236 else
9186 echo "configure: failed program was:" >&5 9237 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5 9238 cat conftest.$ac_ext >&5
9195 echo "$ac_t""yes" 1>&6 9246 echo "$ac_t""yes" 1>&6
9196 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9247 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9197 else 9248 else
9198 echo "$ac_t""no" 1>&6 9249 echo "$ac_t""no" 1>&6
9199 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9250 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9200 echo "configure:9201: checking for tgetent in -ltermcap" >&5 9251 echo "configure:9252: checking for tgetent in -ltermcap" >&5
9201 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9252 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9202 9253
9203 xe_check_libs=" -ltermcap " 9254 xe_check_libs=" -ltermcap "
9204 cat > conftest.$ac_ext <<EOF 9255 cat > conftest.$ac_ext <<EOF
9205 #line 9206 "configure" 9256 #line 9257 "configure"
9206 #include "confdefs.h" 9257 #include "confdefs.h"
9207 /* Override any gcc2 internal prototype to avoid an error. */ 9258 /* Override any gcc2 internal prototype to avoid an error. */
9208 /* We use char because int might match the return type of a gcc2 9259 /* We use char because int might match the return type of a gcc2
9209 builtin and then its argument prototype would still apply. */ 9260 builtin and then its argument prototype would still apply. */
9210 char tgetent(); 9261 char tgetent();
9211 9262
9212 int main() { 9263 int main() {
9213 tgetent() 9264 tgetent()
9214 ; return 0; } 9265 ; return 0; }
9215 EOF 9266 EOF
9216 if { (eval echo configure:9217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9267 if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9217 rm -rf conftest* 9268 rm -rf conftest*
9218 eval "ac_cv_lib_$ac_lib_var=yes" 9269 eval "ac_cv_lib_$ac_lib_var=yes"
9219 else 9270 else
9220 echo "configure: failed program was:" >&5 9271 echo "configure: failed program was:" >&5
9221 cat conftest.$ac_ext >&5 9272 cat conftest.$ac_ext >&5
9259 } 9310 }
9260 9311
9261 9312
9262 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9313 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9263 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9314 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9264 echo "configure:9265: checking for gpm.h" >&5 9315 echo "configure:9316: checking for gpm.h" >&5
9265 9316
9266 cat > conftest.$ac_ext <<EOF 9317 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure" 9318 #line 9319 "configure"
9268 #include "confdefs.h" 9319 #include "confdefs.h"
9269 #include <gpm.h> 9320 #include <gpm.h>
9270 EOF 9321 EOF
9271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9272 { (eval echo configure:9273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9323 { (eval echo configure:9324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9273 ac_err=`grep -v '^ *+' conftest.out` 9324 ac_err=`grep -v '^ *+' conftest.out`
9274 if test -z "$ac_err"; then 9325 if test -z "$ac_err"; then
9275 rm -rf conftest* 9326 rm -rf conftest*
9276 eval "ac_cv_header_$ac_safe=yes" 9327 eval "ac_cv_header_$ac_safe=yes"
9277 else 9328 else
9290 with_gpm=no 9341 with_gpm=no
9291 fi 9342 fi
9292 } 9343 }
9293 test -z "$with_gpm" && { 9344 test -z "$with_gpm" && {
9294 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9345 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9295 echo "configure:9296: checking for Gpm_Open in -lgpm" >&5 9346 echo "configure:9347: checking for Gpm_Open in -lgpm" >&5
9296 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9347 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9297 9348
9298 xe_check_libs=" -lgpm " 9349 xe_check_libs=" -lgpm "
9299 cat > conftest.$ac_ext <<EOF 9350 cat > conftest.$ac_ext <<EOF
9300 #line 9301 "configure" 9351 #line 9352 "configure"
9301 #include "confdefs.h" 9352 #include "confdefs.h"
9302 /* Override any gcc2 internal prototype to avoid an error. */ 9353 /* Override any gcc2 internal prototype to avoid an error. */
9303 /* We use char because int might match the return type of a gcc2 9354 /* We use char because int might match the return type of a gcc2
9304 builtin and then its argument prototype would still apply. */ 9355 builtin and then its argument prototype would still apply. */
9305 char Gpm_Open(); 9356 char Gpm_Open();
9306 9357
9307 int main() { 9358 int main() {
9308 Gpm_Open() 9359 Gpm_Open()
9309 ; return 0; } 9360 ; return 0; }
9310 EOF 9361 EOF
9311 if { (eval echo configure:9312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9362 if { (eval echo configure:9363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9312 rm -rf conftest* 9363 rm -rf conftest*
9313 eval "ac_cv_lib_$ac_lib_var=yes" 9364 eval "ac_cv_lib_$ac_lib_var=yes"
9314 else 9365 else
9315 echo "configure: failed program was:" >&5 9366 echo "configure: failed program was:" >&5
9316 cat conftest.$ac_ext >&5 9367 cat conftest.$ac_ext >&5
9355 echo " xemacs will be linked with \"event-unixoid.o\"" 9406 echo " xemacs will be linked with \"event-unixoid.o\""
9356 fi 9407 fi
9357 9408
9358 9409
9359 echo "checking for database support" 1>&6 9410 echo "checking for database support" 1>&6
9360 echo "configure:9361: checking for database support" >&5 9411 echo "configure:9412: checking for database support" >&5
9361 9412
9362 if test "$with_database_gnudbm" != "no"; then 9413 if test "$with_database_gnudbm" != "no"; then
9363 9414
9364 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9415 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9365 echo "configure:9366: checking for dbm_open in -lgdbm" >&5 9416 echo "configure:9417: checking for dbm_open in -lgdbm" >&5
9366 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9417 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9367 9418
9368 xe_check_libs=" -lgdbm " 9419 xe_check_libs=" -lgdbm "
9369 cat > conftest.$ac_ext <<EOF 9420 cat > conftest.$ac_ext <<EOF
9370 #line 9371 "configure" 9421 #line 9422 "configure"
9371 #include "confdefs.h" 9422 #include "confdefs.h"
9372 /* Override any gcc2 internal prototype to avoid an error. */ 9423 /* Override any gcc2 internal prototype to avoid an error. */
9373 /* We use char because int might match the return type of a gcc2 9424 /* We use char because int might match the return type of a gcc2
9374 builtin and then its argument prototype would still apply. */ 9425 builtin and then its argument prototype would still apply. */
9375 char dbm_open(); 9426 char dbm_open();
9376 9427
9377 int main() { 9428 int main() {
9378 dbm_open() 9429 dbm_open()
9379 ; return 0; } 9430 ; return 0; }
9380 EOF 9431 EOF
9381 if { (eval echo configure:9382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9432 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9382 rm -rf conftest* 9433 rm -rf conftest*
9383 eval "ac_cv_lib_$ac_lib_var=yes" 9434 eval "ac_cv_lib_$ac_lib_var=yes"
9384 else 9435 else
9385 echo "configure: failed program was:" >&5 9436 echo "configure: failed program was:" >&5
9386 cat conftest.$ac_ext >&5 9437 cat conftest.$ac_ext >&5
9398 fi 9449 fi
9399 9450
9400 9451
9401 if test "$with_database_gnudbm" != "yes"; then 9452 if test "$with_database_gnudbm" != "yes"; then
9402 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9453 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9403 echo "configure:9404: checking for dbm_open" >&5 9454 echo "configure:9455: checking for dbm_open" >&5
9404 9455
9405 cat > conftest.$ac_ext <<EOF 9456 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure" 9457 #line 9458 "configure"
9407 #include "confdefs.h" 9458 #include "confdefs.h"
9408 /* System header to define __stub macros and hopefully few prototypes, 9459 /* System header to define __stub macros and hopefully few prototypes,
9409 which can conflict with char dbm_open(); below. */ 9460 which can conflict with char dbm_open(); below. */
9410 #include <assert.h> 9461 #include <assert.h>
9411 /* Override any gcc2 internal prototype to avoid an error. */ 9462 /* Override any gcc2 internal prototype to avoid an error. */
9424 dbm_open(); 9475 dbm_open();
9425 #endif 9476 #endif
9426 9477
9427 ; return 0; } 9478 ; return 0; }
9428 EOF 9479 EOF
9429 if { (eval echo configure:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9480 if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9430 rm -rf conftest* 9481 rm -rf conftest*
9431 eval "ac_cv_func_dbm_open=yes" 9482 eval "ac_cv_func_dbm_open=yes"
9432 else 9483 else
9433 echo "configure: failed program was:" >&5 9484 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5 9485 cat conftest.$ac_ext >&5
9460 fi 9511 fi
9461 fi 9512 fi
9462 9513
9463 if test "$with_database_dbm" != "no"; then 9514 if test "$with_database_dbm" != "no"; then
9464 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9515 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9465 echo "configure:9466: checking for dbm_open" >&5 9516 echo "configure:9517: checking for dbm_open" >&5
9466 9517
9467 cat > conftest.$ac_ext <<EOF 9518 cat > conftest.$ac_ext <<EOF
9468 #line 9469 "configure" 9519 #line 9520 "configure"
9469 #include "confdefs.h" 9520 #include "confdefs.h"
9470 /* System header to define __stub macros and hopefully few prototypes, 9521 /* System header to define __stub macros and hopefully few prototypes,
9471 which can conflict with char dbm_open(); below. */ 9522 which can conflict with char dbm_open(); below. */
9472 #include <assert.h> 9523 #include <assert.h>
9473 /* Override any gcc2 internal prototype to avoid an error. */ 9524 /* Override any gcc2 internal prototype to avoid an error. */
9486 dbm_open(); 9537 dbm_open();
9487 #endif 9538 #endif
9488 9539
9489 ; return 0; } 9540 ; return 0; }
9490 EOF 9541 EOF
9491 if { (eval echo configure:9492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9542 if { (eval echo configure:9543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9492 rm -rf conftest* 9543 rm -rf conftest*
9493 eval "ac_cv_func_dbm_open=yes" 9544 eval "ac_cv_func_dbm_open=yes"
9494 else 9545 else
9495 echo "configure: failed program was:" >&5 9546 echo "configure: failed program was:" >&5
9496 cat conftest.$ac_ext >&5 9547 cat conftest.$ac_ext >&5
9507 fi 9558 fi
9508 9559
9509 if test "$need_libdbm" != "no"; then 9560 if test "$need_libdbm" != "no"; then
9510 9561
9511 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9562 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9512 echo "configure:9513: checking for dbm_open in -ldbm" >&5 9563 echo "configure:9564: checking for dbm_open in -ldbm" >&5
9513 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9564 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9514 9565
9515 xe_check_libs=" -ldbm " 9566 xe_check_libs=" -ldbm "
9516 cat > conftest.$ac_ext <<EOF 9567 cat > conftest.$ac_ext <<EOF
9517 #line 9518 "configure" 9568 #line 9569 "configure"
9518 #include "confdefs.h" 9569 #include "confdefs.h"
9519 /* Override any gcc2 internal prototype to avoid an error. */ 9570 /* Override any gcc2 internal prototype to avoid an error. */
9520 /* We use char because int might match the return type of a gcc2 9571 /* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */ 9572 builtin and then its argument prototype would still apply. */
9522 char dbm_open(); 9573 char dbm_open();
9523 9574
9524 int main() { 9575 int main() {
9525 dbm_open() 9576 dbm_open()
9526 ; return 0; } 9577 ; return 0; }
9527 EOF 9578 EOF
9528 if { (eval echo configure:9529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9579 if { (eval echo configure:9580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9529 rm -rf conftest* 9580 rm -rf conftest*
9530 eval "ac_cv_lib_$ac_lib_var=yes" 9581 eval "ac_cv_lib_$ac_lib_var=yes"
9531 else 9582 else
9532 echo "configure: failed program was:" >&5 9583 echo "configure: failed program was:" >&5
9533 cat conftest.$ac_ext >&5 9584 cat conftest.$ac_ext >&5
9560 fi 9611 fi
9561 fi 9612 fi
9562 9613
9563 if test "$with_database_berkdb" != "no"; then 9614 if test "$with_database_berkdb" != "no"; then
9564 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9615 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9565 echo "configure:9566: checking for dbopen" >&5 9616 echo "configure:9617: checking for dbopen" >&5
9566 9617
9567 cat > conftest.$ac_ext <<EOF 9618 cat > conftest.$ac_ext <<EOF
9568 #line 9569 "configure" 9619 #line 9620 "configure"
9569 #include "confdefs.h" 9620 #include "confdefs.h"
9570 /* System header to define __stub macros and hopefully few prototypes, 9621 /* System header to define __stub macros and hopefully few prototypes,
9571 which can conflict with char dbopen(); below. */ 9622 which can conflict with char dbopen(); below. */
9572 #include <assert.h> 9623 #include <assert.h>
9573 /* Override any gcc2 internal prototype to avoid an error. */ 9624 /* Override any gcc2 internal prototype to avoid an error. */
9586 dbopen(); 9637 dbopen();
9587 #endif 9638 #endif
9588 9639
9589 ; return 0; } 9640 ; return 0; }
9590 EOF 9641 EOF
9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9592 rm -rf conftest* 9643 rm -rf conftest*
9593 eval "ac_cv_func_dbopen=yes" 9644 eval "ac_cv_func_dbopen=yes"
9594 else 9645 else
9595 echo "configure: failed program was:" >&5 9646 echo "configure: failed program was:" >&5
9596 cat conftest.$ac_ext >&5 9647 cat conftest.$ac_ext >&5
9607 fi 9658 fi
9608 9659
9609 if test "$need_libdb" != "no"; then 9660 if test "$need_libdb" != "no"; then
9610 9661
9611 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9662 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9612 echo "configure:9613: checking for dbopen in -ldb" >&5 9663 echo "configure:9664: checking for dbopen in -ldb" >&5
9613 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9664 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9614 9665
9615 xe_check_libs=" -ldb " 9666 xe_check_libs=" -ldb "
9616 cat > conftest.$ac_ext <<EOF 9667 cat > conftest.$ac_ext <<EOF
9617 #line 9618 "configure" 9668 #line 9669 "configure"
9618 #include "confdefs.h" 9669 #include "confdefs.h"
9619 /* Override any gcc2 internal prototype to avoid an error. */ 9670 /* Override any gcc2 internal prototype to avoid an error. */
9620 /* We use char because int might match the return type of a gcc2 9671 /* We use char because int might match the return type of a gcc2
9621 builtin and then its argument prototype would still apply. */ 9672 builtin and then its argument prototype would still apply. */
9622 char dbopen(); 9673 char dbopen();
9623 9674
9624 int main() { 9675 int main() {
9625 dbopen() 9676 dbopen()
9626 ; return 0; } 9677 ; return 0; }
9627 EOF 9678 EOF
9628 if { (eval echo configure:9629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9679 if { (eval echo configure:9680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9629 rm -rf conftest* 9680 rm -rf conftest*
9630 eval "ac_cv_lib_$ac_lib_var=yes" 9681 eval "ac_cv_lib_$ac_lib_var=yes"
9631 else 9682 else
9632 echo "configure: failed program was:" >&5 9683 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5 9684 cat conftest.$ac_ext >&5
9647 9698
9648 fi 9699 fi
9649 if test "$with_database_berkdb" = "yes"; then 9700 if test "$with_database_berkdb" = "yes"; then
9650 for path in "db/db.h" "db.h"; do 9701 for path in "db/db.h" "db.h"; do
9651 cat > conftest.$ac_ext <<EOF 9702 cat > conftest.$ac_ext <<EOF
9652 #line 9653 "configure" 9703 #line 9704 "configure"
9653 #include "confdefs.h" 9704 #include "confdefs.h"
9654 #ifdef HAVE_INTTYPES_H 9705 #ifdef HAVE_INTTYPES_H
9655 #define __BIT_TYPES_DEFINED__ 9706 #define __BIT_TYPES_DEFINED__
9656 #include <inttypes.h> 9707 #include <inttypes.h>
9657 typedef uint8_t u_int8_t; 9708 typedef uint8_t u_int8_t;
9665 9716
9666 int main() { 9717 int main() {
9667 9718
9668 ; return 0; } 9719 ; return 0; }
9669 EOF 9720 EOF
9670 if { (eval echo configure:9671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9721 if { (eval echo configure:9722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9671 rm -rf conftest* 9722 rm -rf conftest*
9672 db_h_path="$path"; break 9723 db_h_path="$path"; break
9673 else 9724 else
9674 echo "configure: failed program was:" >&5 9725 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5 9726 cat conftest.$ac_ext >&5
9717 fi 9768 fi
9718 9769
9719 if test "$with_socks" = "yes"; then 9770 if test "$with_socks" = "yes"; then
9720 9771
9721 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9772 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9722 echo "configure:9723: checking for SOCKSinit in -lsocks" >&5 9773 echo "configure:9774: checking for SOCKSinit in -lsocks" >&5
9723 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9774 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9724 9775
9725 xe_check_libs=" -lsocks " 9776 xe_check_libs=" -lsocks "
9726 cat > conftest.$ac_ext <<EOF 9777 cat > conftest.$ac_ext <<EOF
9727 #line 9728 "configure" 9778 #line 9779 "configure"
9728 #include "confdefs.h" 9779 #include "confdefs.h"
9729 /* Override any gcc2 internal prototype to avoid an error. */ 9780 /* Override any gcc2 internal prototype to avoid an error. */
9730 /* We use char because int might match the return type of a gcc2 9781 /* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */ 9782 builtin and then its argument prototype would still apply. */
9732 char SOCKSinit(); 9783 char SOCKSinit();
9733 9784
9734 int main() { 9785 int main() {
9735 SOCKSinit() 9786 SOCKSinit()
9736 ; return 0; } 9787 ; return 0; }
9737 EOF 9788 EOF
9738 if { (eval echo configure:9739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9789 if { (eval echo configure:9790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9739 rm -rf conftest* 9790 rm -rf conftest*
9740 eval "ac_cv_lib_$ac_lib_var=yes" 9791 eval "ac_cv_lib_$ac_lib_var=yes"
9741 else 9792 else
9742 echo "configure: failed program was:" >&5 9793 echo "configure: failed program was:" >&5
9743 cat conftest.$ac_ext >&5 9794 cat conftest.$ac_ext >&5
10094 cat >> confdefs.h <<\EOF 10145 cat >> confdefs.h <<\EOF
10095 #define CONST_IS_LOSING 1 10146 #define CONST_IS_LOSING 1
10096 EOF 10147 EOF
10097 } 10148 }
10098 10149
10099 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10100 Defining USE_ASSERTIONS
10101 EOF
10102 cat >> confdefs.h <<\EOF
10103 #define USE_ASSERTIONS 1
10104 EOF
10105 }
10106
10107 test "$debug" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10108 Defining DEBUG_XEMACS
10109 EOF
10110 cat >> confdefs.h <<\EOF
10111 #define DEBUG_XEMACS 1
10112 EOF
10113 }
10114
10115 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 10150 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10116 Defining QUANTIFY 10151 Defining QUANTIFY
10117 EOF 10152 EOF
10118 cat >> confdefs.h <<\EOF 10153 cat >> confdefs.h <<\EOF
10119 #define QUANTIFY 1 10154 #define QUANTIFY 1
10120 EOF 10155 EOF
10121 } 10156 }
10122 10157
10123 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10124 Defining MEMORY_USAGE_STATS
10125 EOF
10126 cat >> confdefs.h <<\EOF
10127 #define MEMORY_USAGE_STATS 1
10128 EOF
10129 }
10130
10131 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 10158 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10132 Defining MAIL_USE_POP 10159 Defining MAIL_USE_POP
10133 EOF 10160 EOF
10134 cat >> confdefs.h <<\EOF 10161 cat >> confdefs.h <<\EOF
10135 #define MAIL_USE_POP 1 10162 #define MAIL_USE_POP 1
10147 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 10174 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10148 Defining HESIOD 10175 Defining HESIOD
10149 EOF 10176 EOF
10150 cat >> confdefs.h <<\EOF 10177 cat >> confdefs.h <<\EOF
10151 #define HESIOD 1 10178 #define HESIOD 1
10152 EOF
10153 }
10154
10155
10156 test "$error_check_extents" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10157 Defining ERROR_CHECK_EXTENTS
10158 EOF
10159 cat >> confdefs.h <<\EOF
10160 #define ERROR_CHECK_EXTENTS 1
10161 EOF
10162 }
10163
10164 test "$error_check_typecheck" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10165 Defining ERROR_CHECK_TYPECHECK
10166 EOF
10167 cat >> confdefs.h <<\EOF
10168 #define ERROR_CHECK_TYPECHECK 1
10169 EOF
10170 }
10171
10172 test "$error_check_bufpos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10173 Defining ERROR_CHECK_BUFPOS
10174 EOF
10175 cat >> confdefs.h <<\EOF
10176 #define ERROR_CHECK_BUFPOS 1
10177 EOF
10178 }
10179
10180 test "$error_check_gc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10181 Defining ERROR_CHECK_GC
10182 EOF
10183 cat >> confdefs.h <<\EOF
10184 #define ERROR_CHECK_GC 1
10185 EOF
10186 }
10187
10188 test "$error_check_malloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10189 Defining ERROR_CHECK_MALLOC
10190 EOF
10191 cat >> confdefs.h <<\EOF
10192 #define ERROR_CHECK_MALLOC 1
10193 EOF 10179 EOF
10194 } 10180 }
10195 10181
10196 10182
10197 test "$use_union_type" != yes && { test "$extra_verbose" = "yes" && cat << \EOF 10183 test "$use_union_type" != yes && { test "$extra_verbose" = "yes" && cat << \EOF