comparison configure @ 239:41f2f0e326e9 r20-5b18

Import from CVS: tag r20-5b18
author cvs
date Mon, 13 Aug 2007 10:15:48 +0200
parents 557eaa0339bf
children f220cc83d72e
comparison
equal deleted inserted replaced
238:b5f2e56b938d 239:41f2f0e326e9
218 statedir='${prefix}/lib' 218 statedir='${prefix}/lib'
219 libdir='${exec_prefix}/lib' 219 libdir='${exec_prefix}/lib'
220 mandir='${prefix}/man/man1' 220 mandir='${prefix}/man/man1'
221 infodir='${datadir}/xemacs-${version}/info' 221 infodir='${datadir}/xemacs-${version}/info'
222 infodir_user_defined='no' 222 infodir_user_defined='no'
223 infopath='/usr/local/info:/usr/info:/usr/local/lib/texmf/doc/info:/usr/lib/texmf/doc/info' 223 infopath='/usr/local/lib/texmf/doc/info:/usr/local/lib/texmf/info:/usr/lib/texmf/doc/info:/usr/lib/texmf/info:/usr/local/info:/usr/info'
224 infopath_user_defined='no' 224 infopath_user_defined='no'
225 lispdir='${datadir}/xemacs-${version}/lisp' 225 lispdir='${datadir}/xemacs-${version}/lisp'
226 lispdir_user_defined='no' 226 lispdir_user_defined='no'
227 sitelispdir='${datadir}/xemacs/site-lisp' 227 sitelispdir='${datadir}/xemacs/site-lisp'
228 etcdir='${datadir}/xemacs-${version}/etc' 228 etcdir='${datadir}/xemacs-${version}/etc'
567 567
568 esac 568 esac
569 done 569 done
570 570
571 571
572 if test "$infopath_user_defined" = "no" -a -n "$INFOPATH" ; then
573 infopath="$INFOPATH"
574 fi
575 572
576 eval set x "$quoted_arguments"; shift 573 eval set x "$quoted_arguments"; shift
577 574
578 test "$extra_verbose" = "yes" && verbose=yes 575 test "$extra_verbose" = "yes" && verbose=yes
579 576
636 fi 633 fi
637 ;; 634 ;;
638 esac 635 esac
639 636
640 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 637 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
641 echo "configure:642: checking whether ln -s works" >&5 638 echo "configure:639: checking whether ln -s works" >&5
642 639
643 rm -f conftestdata 640 rm -f conftestdata
644 if ln -s X conftestdata 2>/dev/null 641 if ln -s X conftestdata 2>/dev/null
645 then 642 then
646 rm -f conftestdata 643 rm -f conftestdata
813 } 810 }
814 811
815 812
816 813
817 echo "checking "the configuration name"" 1>&6 814 echo "checking "the configuration name"" 1>&6
818 echo "configure:819: checking "the configuration name"" >&5 815 echo "configure:816: checking "the configuration name"" >&5
819 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 816 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
820 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 817 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
821 exit $? 818 exit $?
822 fi 819 fi
823 820
1270 xe_save_CFLAGS="$CFLAGS" 1267 xe_save_CFLAGS="$CFLAGS"
1271 1268
1272 # Extract the first word of "gcc", so it can be a program name with args. 1269 # Extract the first word of "gcc", so it can be a program name with args.
1273 set dummy gcc; ac_word=$2 1270 set dummy gcc; ac_word=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1276: checking for $ac_word" >&5 1272 echo "configure:1273: checking for $ac_word" >&5
1276 1273
1277 if test -n "$CC"; then 1274 if test -n "$CC"; then
1278 ac_cv_prog_CC="$CC" # Let the user override the test. 1275 ac_cv_prog_CC="$CC" # Let the user override the test.
1279 else 1276 else
1280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1296 1293
1297 if test -z "$CC"; then 1294 if test -z "$CC"; then
1298 # Extract the first word of "cc", so it can be a program name with args. 1295 # Extract the first word of "cc", so it can be a program name with args.
1299 set dummy cc; ac_word=$2 1296 set dummy cc; ac_word=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5 1298 echo "configure:1299: checking for $ac_word" >&5
1302 1299
1303 if test -n "$CC"; then 1300 if test -n "$CC"; then
1304 ac_cv_prog_CC="$CC" # Let the user override the test. 1301 ac_cv_prog_CC="$CC" # Let the user override the test.
1305 else 1302 else
1306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1341 1338
1342 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1339 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1343 fi 1340 fi
1344 1341
1345 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1342 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1346 echo "configure:1347: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1343 echo "configure:1344: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1347 1344
1348 ac_ext=c 1345 ac_ext=c
1349 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1346 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1350 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1347 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1351 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1348 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1353 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1350 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1354 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1351 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1355 cross_compiling=no 1352 cross_compiling=no
1356 1353
1357 cat > conftest.$ac_ext <<EOF 1354 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure" 1355 #line 1356 "configure"
1359 #include "confdefs.h" 1356 #include "confdefs.h"
1360 main(){return(0);} 1357 main(){return(0);}
1361 EOF 1358 EOF
1362 if { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1363 ac_cv_prog_cc_works=yes 1360 ac_cv_prog_cc_works=yes
1364 # If we can't run a trivial program, we are probably using a cross compiler. 1361 # If we can't run a trivial program, we are probably using a cross compiler.
1365 if (./conftest; exit) 2>/dev/null; then 1362 if (./conftest; exit) 2>/dev/null; then
1366 ac_cv_prog_cc_cross=no 1363 ac_cv_prog_cc_cross=no
1367 else 1364 else
1377 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1374 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1378 if test $ac_cv_prog_cc_works = no; then 1375 if test $ac_cv_prog_cc_works = no; then
1379 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1376 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1380 fi 1377 fi
1381 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1378 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1382 echo "configure:1383: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1379 echo "configure:1380: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1383 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1380 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1384 cross_compiling=$ac_cv_prog_cc_cross 1381 cross_compiling=$ac_cv_prog_cc_cross
1385 1382
1386 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1383 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether we are using GNU C" >&5 1384 echo "configure:1385: checking whether we are using GNU C" >&5
1388 1385
1389 cat > conftest.c <<EOF 1386 cat > conftest.c <<EOF
1390 #ifdef __GNUC__ 1387 #ifdef __GNUC__
1391 yes; 1388 yes;
1392 #endif 1389 #endif
1393 EOF 1390 EOF
1394 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1391 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1395 ac_cv_prog_gcc=yes 1392 ac_cv_prog_gcc=yes
1396 else 1393 else
1397 ac_cv_prog_gcc=no 1394 ac_cv_prog_gcc=no
1398 fi 1395 fi
1399 1396
1403 GCC=yes 1400 GCC=yes
1404 ac_test_CFLAGS="${CFLAGS+set}" 1401 ac_test_CFLAGS="${CFLAGS+set}"
1405 ac_save_CFLAGS="$CFLAGS" 1402 ac_save_CFLAGS="$CFLAGS"
1406 CFLAGS= 1403 CFLAGS=
1407 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1404 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1408 echo "configure:1409: checking whether ${CC-cc} accepts -g" >&5 1405 echo "configure:1406: checking whether ${CC-cc} accepts -g" >&5
1409 1406
1410 echo 'void f(){}' > conftest.c 1407 echo 'void f(){}' > conftest.c
1411 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1408 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1412 ac_cv_prog_cc_g=yes 1409 ac_cv_prog_cc_g=yes
1413 else 1410 else
1432 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1429 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1433 CC=${NON_GNU_CC-cc} 1430 CC=${NON_GNU_CC-cc}
1434 # Extract the first word of "gcc", so it can be a program name with args. 1431 # Extract the first word of "gcc", so it can be a program name with args.
1435 set dummy gcc; ac_word=$2 1432 set dummy gcc; ac_word=$2
1436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1437 echo "configure:1438: checking for $ac_word" >&5 1434 echo "configure:1435: checking for $ac_word" >&5
1438 1435
1439 if test -n "$CC"; then 1436 if test -n "$CC"; then
1440 ac_cv_prog_CC="$CC" # Let the user override the test. 1437 ac_cv_prog_CC="$CC" # Let the user override the test.
1441 else 1438 else
1442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1458 1455
1459 if test -z "$CC"; then 1456 if test -z "$CC"; then
1460 # Extract the first word of "cc", so it can be a program name with args. 1457 # Extract the first word of "cc", so it can be a program name with args.
1461 set dummy cc; ac_word=$2 1458 set dummy cc; ac_word=$2
1462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1463 echo "configure:1464: checking for $ac_word" >&5 1460 echo "configure:1461: checking for $ac_word" >&5
1464 1461
1465 if test -n "$CC"; then 1462 if test -n "$CC"; then
1466 ac_cv_prog_CC="$CC" # Let the user override the test. 1463 ac_cv_prog_CC="$CC" # Let the user override the test.
1467 else 1464 else
1468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1503 1500
1504 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1501 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1505 fi 1502 fi
1506 1503
1507 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1504 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1508 echo "configure:1509: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1505 echo "configure:1506: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1509 1506
1510 ac_ext=c 1507 ac_ext=c
1511 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1508 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1512 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1509 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1513 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1510 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1515 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1512 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1516 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1513 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1517 cross_compiling=no 1514 cross_compiling=no
1518 1515
1519 cat > conftest.$ac_ext <<EOF 1516 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure" 1517 #line 1518 "configure"
1521 #include "confdefs.h" 1518 #include "confdefs.h"
1522 main(){return(0);} 1519 main(){return(0);}
1523 EOF 1520 EOF
1524 if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1521 if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1525 ac_cv_prog_cc_works=yes 1522 ac_cv_prog_cc_works=yes
1526 # If we can't run a trivial program, we are probably using a cross compiler. 1523 # If we can't run a trivial program, we are probably using a cross compiler.
1527 if (./conftest; exit) 2>/dev/null; then 1524 if (./conftest; exit) 2>/dev/null; then
1528 ac_cv_prog_cc_cross=no 1525 ac_cv_prog_cc_cross=no
1529 else 1526 else
1539 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1536 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1540 if test $ac_cv_prog_cc_works = no; then 1537 if test $ac_cv_prog_cc_works = no; then
1541 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1538 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1542 fi 1539 fi
1543 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1540 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1544 echo "configure:1545: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1541 echo "configure:1542: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1545 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1542 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1546 cross_compiling=$ac_cv_prog_cc_cross 1543 cross_compiling=$ac_cv_prog_cc_cross
1547 1544
1548 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1545 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1549 echo "configure:1550: checking whether we are using GNU C" >&5 1546 echo "configure:1547: checking whether we are using GNU C" >&5
1550 1547
1551 cat > conftest.c <<EOF 1548 cat > conftest.c <<EOF
1552 #ifdef __GNUC__ 1549 #ifdef __GNUC__
1553 yes; 1550 yes;
1554 #endif 1551 #endif
1555 EOF 1552 EOF
1556 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1553 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1557 ac_cv_prog_gcc=yes 1554 ac_cv_prog_gcc=yes
1558 else 1555 else
1559 ac_cv_prog_gcc=no 1556 ac_cv_prog_gcc=no
1560 fi 1557 fi
1561 1558
1565 GCC=yes 1562 GCC=yes
1566 ac_test_CFLAGS="${CFLAGS+set}" 1563 ac_test_CFLAGS="${CFLAGS+set}"
1567 ac_save_CFLAGS="$CFLAGS" 1564 ac_save_CFLAGS="$CFLAGS"
1568 CFLAGS= 1565 CFLAGS=
1569 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1566 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1570 echo "configure:1571: checking whether ${CC-cc} accepts -g" >&5 1567 echo "configure:1568: checking whether ${CC-cc} accepts -g" >&5
1571 1568
1572 echo 'void f(){}' > conftest.c 1569 echo 'void f(){}' > conftest.c
1573 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1570 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1574 ac_cv_prog_cc_g=yes 1571 ac_cv_prog_cc_g=yes
1575 else 1572 else
1594 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1591 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1595 CC=gcc 1592 CC=gcc
1596 # Extract the first word of "gcc", so it can be a program name with args. 1593 # Extract the first word of "gcc", so it can be a program name with args.
1597 set dummy gcc; ac_word=$2 1594 set dummy gcc; ac_word=$2
1598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1599 echo "configure:1600: checking for $ac_word" >&5 1596 echo "configure:1597: checking for $ac_word" >&5
1600 1597
1601 if test -n "$CC"; then 1598 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test. 1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 else 1600 else
1604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1620 1617
1621 if test -z "$CC"; then 1618 if test -z "$CC"; then
1622 # Extract the first word of "cc", so it can be a program name with args. 1619 # Extract the first word of "cc", so it can be a program name with args.
1623 set dummy cc; ac_word=$2 1620 set dummy cc; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5 1622 echo "configure:1623: checking for $ac_word" >&5
1626 1623
1627 if test -n "$CC"; then 1624 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test. 1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else 1626 else
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1665 1662
1666 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1663 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1667 fi 1664 fi
1668 1665
1669 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1666 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1670 echo "configure:1671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1667 echo "configure:1668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1671 1668
1672 ac_ext=c 1669 ac_ext=c
1673 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1670 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1674 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1671 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1675 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1672 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1677 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1674 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1678 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1675 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1679 cross_compiling=no 1676 cross_compiling=no
1680 1677
1681 cat > conftest.$ac_ext <<EOF 1678 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure" 1679 #line 1680 "configure"
1683 #include "confdefs.h" 1680 #include "confdefs.h"
1684 main(){return(0);} 1681 main(){return(0);}
1685 EOF 1682 EOF
1686 if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1683 if { (eval echo configure:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1687 ac_cv_prog_cc_works=yes 1684 ac_cv_prog_cc_works=yes
1688 # If we can't run a trivial program, we are probably using a cross compiler. 1685 # If we can't run a trivial program, we are probably using a cross compiler.
1689 if (./conftest; exit) 2>/dev/null; then 1686 if (./conftest; exit) 2>/dev/null; then
1690 ac_cv_prog_cc_cross=no 1687 ac_cv_prog_cc_cross=no
1691 else 1688 else
1701 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1698 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1702 if test $ac_cv_prog_cc_works = no; then 1699 if test $ac_cv_prog_cc_works = no; then
1703 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1700 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1704 fi 1701 fi
1705 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1706 echo "configure:1707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1703 echo "configure:1704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1707 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1704 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1708 cross_compiling=$ac_cv_prog_cc_cross 1705 cross_compiling=$ac_cv_prog_cc_cross
1709 1706
1710 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1707 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1711 echo "configure:1712: checking whether we are using GNU C" >&5 1708 echo "configure:1709: checking whether we are using GNU C" >&5
1712 1709
1713 cat > conftest.c <<EOF 1710 cat > conftest.c <<EOF
1714 #ifdef __GNUC__ 1711 #ifdef __GNUC__
1715 yes; 1712 yes;
1716 #endif 1713 #endif
1717 EOF 1714 EOF
1718 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1715 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1719 ac_cv_prog_gcc=yes 1716 ac_cv_prog_gcc=yes
1720 else 1717 else
1721 ac_cv_prog_gcc=no 1718 ac_cv_prog_gcc=no
1722 fi 1719 fi
1723 1720
1727 GCC=yes 1724 GCC=yes
1728 ac_test_CFLAGS="${CFLAGS+set}" 1725 ac_test_CFLAGS="${CFLAGS+set}"
1729 ac_save_CFLAGS="$CFLAGS" 1726 ac_save_CFLAGS="$CFLAGS"
1730 CFLAGS= 1727 CFLAGS=
1731 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1728 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1732 echo "configure:1733: checking whether ${CC-cc} accepts -g" >&5 1729 echo "configure:1730: checking whether ${CC-cc} accepts -g" >&5
1733 1730
1734 echo 'void f(){}' > conftest.c 1731 echo 'void f(){}' > conftest.c
1735 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1732 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1736 ac_cv_prog_cc_g=yes 1733 ac_cv_prog_cc_g=yes
1737 else 1734 else
1760 test -n "$CPP" -a -d "$CPP" && CPP= 1757 test -n "$CPP" -a -d "$CPP" && CPP=
1761 1758
1762 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1759 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1763 1760
1764 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1761 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1765 echo "configure:1766: checking how to run the C preprocessor" >&5 1762 echo "configure:1763: checking how to run the C preprocessor" >&5
1766 # On Suns, sometimes $CPP names a directory. 1763 # On Suns, sometimes $CPP names a directory.
1767 if test -n "$CPP" && test -d "$CPP"; then 1764 if test -n "$CPP" && test -d "$CPP"; then
1768 CPP= 1765 CPP=
1769 fi 1766 fi
1770 if test -z "$CPP"; then 1767 if test -z "$CPP"; then
1773 # substituted into the Makefile and "${CC-cc}" will confuse make. 1770 # substituted into the Makefile and "${CC-cc}" will confuse make.
1774 CPP="${CC-cc} -E" 1771 CPP="${CC-cc} -E"
1775 # On the NeXT, cc -E runs the code through the compiler's parser, 1772 # On the NeXT, cc -E runs the code through the compiler's parser,
1776 # not just through cpp. 1773 # not just through cpp.
1777 cat > conftest.$ac_ext <<EOF 1774 cat > conftest.$ac_ext <<EOF
1778 #line 1779 "configure" 1775 #line 1776 "configure"
1779 #include "confdefs.h" 1776 #include "confdefs.h"
1780 #include <assert.h> 1777 #include <assert.h>
1781 Syntax Error 1778 Syntax Error
1782 EOF 1779 EOF
1783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1784 { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1781 { (eval echo configure:1782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1785 ac_err=`grep -v '^ *+' conftest.out` 1782 ac_err=`grep -v '^ *+' conftest.out`
1786 if test -z "$ac_err"; then 1783 if test -z "$ac_err"; then
1787 : 1784 :
1788 else 1785 else
1789 echo "$ac_err" >&5 1786 echo "$ac_err" >&5
1790 echo "configure: failed program was:" >&5 1787 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5 1788 cat conftest.$ac_ext >&5
1792 rm -rf conftest* 1789 rm -rf conftest*
1793 CPP="${CC-cc} -E -traditional-cpp" 1790 CPP="${CC-cc} -E -traditional-cpp"
1794 cat > conftest.$ac_ext <<EOF 1791 cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure" 1792 #line 1793 "configure"
1796 #include "confdefs.h" 1793 #include "confdefs.h"
1797 #include <assert.h> 1794 #include <assert.h>
1798 Syntax Error 1795 Syntax Error
1799 EOF 1796 EOF
1800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1801 { (eval echo configure:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1798 { (eval echo configure:1799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1802 ac_err=`grep -v '^ *+' conftest.out` 1799 ac_err=`grep -v '^ *+' conftest.out`
1803 if test -z "$ac_err"; then 1800 if test -z "$ac_err"; then
1804 : 1801 :
1805 else 1802 else
1806 echo "$ac_err" >&5 1803 echo "$ac_err" >&5
1819 fi 1816 fi
1820 echo "$ac_t""$CPP" 1>&6 1817 echo "$ac_t""$CPP" 1>&6
1821 1818
1822 1819
1823 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1820 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1824 echo "configure:1825: checking for AIX" >&5 1821 echo "configure:1822: checking for AIX" >&5
1825 cat > conftest.$ac_ext <<EOF 1822 cat > conftest.$ac_ext <<EOF
1826 #line 1827 "configure" 1823 #line 1824 "configure"
1827 #include "confdefs.h" 1824 #include "confdefs.h"
1828 #ifdef _AIX 1825 #ifdef _AIX
1829 yes 1826 yes
1830 #endif 1827 #endif
1831 1828
1848 rm -f conftest* 1845 rm -f conftest*
1849 1846
1850 1847
1851 1848
1852 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6 1849 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
1853 echo "configure:1854: checking whether we are using SunPro C" >&5 1850 echo "configure:1851: checking whether we are using SunPro C" >&5
1854 cat > conftest.$ac_ext <<EOF 1851 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure" 1852 #line 1853 "configure"
1856 #include "confdefs.h" 1853 #include "confdefs.h"
1857 1854
1858 int main() { 1855 int main() {
1859 #ifndef __SUNPRO_C 1856 #ifndef __SUNPRO_C
1860 #error Not a SunPro compiler :-( 1857 #error Not a SunPro compiler :-(
1861 ******* ======= ******** &&&&&&&& 1858 ******* ======= ******** &&&&&&&&
1862 #endif 1859 #endif
1863 1860
1864 ; return 0; } 1861 ; return 0; }
1865 EOF 1862 EOF
1866 if { (eval echo configure:1867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1863 if { (eval echo configure:1864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1867 rm -rf conftest* 1864 rm -rf conftest*
1868 __sunpro_c=yes 1865 __sunpro_c=yes
1869 else 1866 else
1870 echo "configure: failed program was:" >&5 1867 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5 1868 cat conftest.$ac_ext >&5
2137 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2134 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2138 echo " xemacs will be linked with \"$unexec\"" 2135 echo " xemacs will be linked with \"$unexec\""
2139 fi 2136 fi
2140 2137
2141 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2138 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2142 echo "configure:2143: checking for dynodump" >&5 2139 echo "configure:2140: checking for dynodump" >&5
2143 if test "$unexec" != "unexsol2.o"; then 2140 if test "$unexec" != "unexsol2.o"; then
2144 echo "$ac_t""no" 1>&6 2141 echo "$ac_t""no" 1>&6
2145 else 2142 else
2146 echo "$ac_t""yes" 1>&6 2143 echo "$ac_t""yes" 1>&6
2147 { test "$extra_verbose" = "yes" && cat << \EOF 2144 { test "$extra_verbose" = "yes" && cat << \EOF
2235 esac 2232 esac
2236 fi 2233 fi
2237 2234
2238 if test "$add_runtime_path" = "yes"; then 2235 if test "$add_runtime_path" = "yes"; then
2239 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2236 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2240 echo "configure:2241: checking "for runtime libraries flag"" >&5 2237 echo "configure:2238: checking "for runtime libraries flag"" >&5
2241 dash_r="" 2238 dash_r=""
2242 for try_dash_r in "-R" "-R " "-rpath "; do 2239 for try_dash_r in "-R" "-R " "-rpath "; do
2243 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2240 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2244 cat > conftest.$ac_ext <<EOF 2241 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure" 2242 #line 2243 "configure"
2246 #include "confdefs.h" 2243 #include "confdefs.h"
2247 2244
2248 int main() { 2245 int main() {
2249 2246
2250 ; return 0; } 2247 ; return 0; }
2251 EOF 2248 EOF
2252 if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2249 if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2253 rm -rf conftest* 2250 rm -rf conftest*
2254 dash_r="$try_dash_r" 2251 dash_r="$try_dash_r"
2255 else 2252 else
2256 echo "configure: failed program was:" >&5 2253 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5 2254 cat conftest.$ac_ext >&5
2345 2342
2346 2343
2347 # Extract the first word of "ranlib", so it can be a program name with args. 2344 # Extract the first word of "ranlib", so it can be a program name with args.
2348 set dummy ranlib; ac_word=$2 2345 set dummy ranlib; ac_word=$2
2349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2350 echo "configure:2351: checking for $ac_word" >&5 2347 echo "configure:2348: checking for $ac_word" >&5
2351 2348
2352 if test -n "$RANLIB"; then 2349 if test -n "$RANLIB"; then
2353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2354 else 2351 else
2355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2398 # AIX /bin/install 2395 # AIX /bin/install
2399 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2400 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2401 # ./install, which can be erroneously created by make from ./install.sh. 2398 # ./install, which can be erroneously created by make from ./install.sh.
2402 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2399 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2403 echo "configure:2404: checking for a BSD compatible install" >&5 2400 echo "configure:2401: checking for a BSD compatible install" >&5
2404 if test -z "$INSTALL"; then 2401 if test -z "$INSTALL"; then
2405 2402
2406 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2403 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2407 for ac_dir in $PATH; do 2404 for ac_dir in $PATH; do
2408 # Account for people who put trailing slashes in PATH elements. 2405 # Account for people who put trailing slashes in PATH elements.
2449 for ac_prog in 'bison -y' byacc 2446 for ac_prog in 'bison -y' byacc
2450 do 2447 do
2451 # Extract the first word of "$ac_prog", so it can be a program name with args. 2448 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2 2449 set dummy $ac_prog; ac_word=$2
2453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2454 echo "configure:2455: checking for $ac_word" >&5 2451 echo "configure:2452: checking for $ac_word" >&5
2455 2452
2456 if test -n "$YACC"; then 2453 if test -n "$YACC"; then
2457 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2454 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2458 else 2455 else
2459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2480 2477
2481 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2478 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2482 do 2479 do
2483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2485 echo "configure:2486: checking for $ac_hdr" >&5 2482 echo "configure:2483: checking for $ac_hdr" >&5
2486 2483
2487 cat > conftest.$ac_ext <<EOF 2484 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure" 2485 #line 2486 "configure"
2489 #include "confdefs.h" 2486 #include "confdefs.h"
2490 #include <$ac_hdr> 2487 #include <$ac_hdr>
2491 EOF 2488 EOF
2492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2493 { (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2490 { (eval echo configure:2491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2494 ac_err=`grep -v '^ *+' conftest.out` 2491 ac_err=`grep -v '^ *+' conftest.out`
2495 if test -z "$ac_err"; then 2492 if test -z "$ac_err"; then
2496 rm -rf conftest* 2493 rm -rf conftest*
2497 eval "ac_cv_header_$ac_safe=yes" 2494 eval "ac_cv_header_$ac_safe=yes"
2498 else 2495 else
2521 2518
2522 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2519 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2523 do 2520 do
2524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2526 echo "configure:2527: checking for $ac_hdr" >&5 2523 echo "configure:2524: checking for $ac_hdr" >&5
2527 2524
2528 cat > conftest.$ac_ext <<EOF 2525 cat > conftest.$ac_ext <<EOF
2529 #line 2530 "configure" 2526 #line 2527 "configure"
2530 #include "confdefs.h" 2527 #include "confdefs.h"
2531 #include <$ac_hdr> 2528 #include <$ac_hdr>
2532 EOF 2529 EOF
2533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2534 { (eval echo configure:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2531 { (eval echo configure:2532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2535 ac_err=`grep -v '^ *+' conftest.out` 2532 ac_err=`grep -v '^ *+' conftest.out`
2536 if test -z "$ac_err"; then 2533 if test -z "$ac_err"; then
2537 rm -rf conftest* 2534 rm -rf conftest*
2538 eval "ac_cv_header_$ac_safe=yes" 2535 eval "ac_cv_header_$ac_safe=yes"
2539 else 2536 else
2562 2559
2563 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h 2560 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h
2564 do 2561 do
2565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2567 echo "configure:2568: checking for $ac_hdr" >&5 2564 echo "configure:2565: checking for $ac_hdr" >&5
2568 2565
2569 cat > conftest.$ac_ext <<EOF 2566 cat > conftest.$ac_ext <<EOF
2570 #line 2571 "configure" 2567 #line 2568 "configure"
2571 #include "confdefs.h" 2568 #include "confdefs.h"
2572 #include <$ac_hdr> 2569 #include <$ac_hdr>
2573 EOF 2570 EOF
2574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2575 { (eval echo configure:2576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2572 { (eval echo configure:2573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2576 ac_err=`grep -v '^ *+' conftest.out` 2573 ac_err=`grep -v '^ *+' conftest.out`
2577 if test -z "$ac_err"; then 2574 if test -z "$ac_err"; then
2578 rm -rf conftest* 2575 rm -rf conftest*
2579 eval "ac_cv_header_$ac_safe=yes" 2576 eval "ac_cv_header_$ac_safe=yes"
2580 else 2577 else
2599 else 2596 else
2600 echo "$ac_t""no" 1>&6 2597 echo "$ac_t""no" 1>&6
2601 fi 2598 fi
2602 done 2599 done
2603 2600
2601 for ac_hdr in sys/un.h
2602 do
2603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_hdr" >&5
2606
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 #include <$ac_hdr>
2611 EOF
2612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2613 { (eval echo configure:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2614 ac_err=`grep -v '^ *+' conftest.out`
2615 if test -z "$ac_err"; then
2616 rm -rf conftest*
2617 eval "ac_cv_header_$ac_safe=yes"
2618 else
2619 echo "$ac_err" >&5
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2622 rm -rf conftest*
2623 eval "ac_cv_header_$ac_safe=no"
2624 fi
2625 rm -f conftest*
2626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2627 echo "$ac_t""yes" 1>&6
2628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2629 { test "$extra_verbose" = "yes" && cat << EOF
2630 Defining $ac_tr_hdr
2631 EOF
2632 cat >> confdefs.h <<EOF
2633 #define $ac_tr_hdr 1
2634 EOF
2635 }
2636
2637 else
2638 echo "$ac_t""no" 1>&6
2639 fi
2640 done
2641
2604 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2642 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2605 echo "configure:2606: checking for sys/wait.h that is POSIX.1 compatible" >&5 2643 echo "configure:2644: checking for sys/wait.h that is POSIX.1 compatible" >&5
2606 2644
2607 cat > conftest.$ac_ext <<EOF 2645 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure" 2646 #line 2647 "configure"
2609 #include "confdefs.h" 2647 #include "confdefs.h"
2610 #include <sys/types.h> 2648 #include <sys/types.h>
2611 #include <sys/wait.h> 2649 #include <sys/wait.h>
2612 #ifndef WEXITSTATUS 2650 #ifndef WEXITSTATUS
2613 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2651 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2619 int s; 2657 int s;
2620 wait (&s); 2658 wait (&s);
2621 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2659 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2622 ; return 0; } 2660 ; return 0; }
2623 EOF 2661 EOF
2624 if { (eval echo configure:2625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2662 if { (eval echo configure:2663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2625 rm -rf conftest* 2663 rm -rf conftest*
2626 ac_cv_header_sys_wait_h=yes 2664 ac_cv_header_sys_wait_h=yes
2627 else 2665 else
2628 echo "configure: failed program was:" >&5 2666 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5 2667 cat conftest.$ac_ext >&5
2643 } 2681 }
2644 2682
2645 fi 2683 fi
2646 2684
2647 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2685 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2648 echo "configure:2649: checking for ANSI C header files" >&5 2686 echo "configure:2687: checking for ANSI C header files" >&5
2649 2687
2650 cat > conftest.$ac_ext <<EOF 2688 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure" 2689 #line 2690 "configure"
2652 #include "confdefs.h" 2690 #include "confdefs.h"
2653 #include <stdlib.h> 2691 #include <stdlib.h>
2654 #include <stdarg.h> 2692 #include <stdarg.h>
2655 #include <string.h> 2693 #include <string.h>
2656 #include <float.h> 2694 #include <float.h>
2657 EOF 2695 EOF
2658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2659 { (eval echo configure:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2697 { (eval echo configure:2698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2660 ac_err=`grep -v '^ *+' conftest.out` 2698 ac_err=`grep -v '^ *+' conftest.out`
2661 if test -z "$ac_err"; then 2699 if test -z "$ac_err"; then
2662 rm -rf conftest* 2700 rm -rf conftest*
2663 ac_cv_header_stdc=yes 2701 ac_cv_header_stdc=yes
2664 else 2702 else
2671 rm -f conftest* 2709 rm -f conftest*
2672 2710
2673 if test $ac_cv_header_stdc = yes; then 2711 if test $ac_cv_header_stdc = yes; then
2674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2675 cat > conftest.$ac_ext <<EOF 2713 cat > conftest.$ac_ext <<EOF
2676 #line 2677 "configure" 2714 #line 2715 "configure"
2677 #include "confdefs.h" 2715 #include "confdefs.h"
2678 #include <string.h> 2716 #include <string.h>
2679 EOF 2717 EOF
2680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2681 egrep "memchr" >/dev/null 2>&1; then 2719 egrep "memchr" >/dev/null 2>&1; then
2689 fi 2727 fi
2690 2728
2691 if test $ac_cv_header_stdc = yes; then 2729 if test $ac_cv_header_stdc = yes; then
2692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2693 cat > conftest.$ac_ext <<EOF 2731 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure" 2732 #line 2733 "configure"
2695 #include "confdefs.h" 2733 #include "confdefs.h"
2696 #include <stdlib.h> 2734 #include <stdlib.h>
2697 EOF 2735 EOF
2698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2699 egrep "free" >/dev/null 2>&1; then 2737 egrep "free" >/dev/null 2>&1; then
2707 fi 2745 fi
2708 2746
2709 if test $ac_cv_header_stdc = yes; then 2747 if test $ac_cv_header_stdc = yes; then
2710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2711 cat > conftest.$ac_ext <<EOF 2749 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure" 2750 #line 2751 "configure"
2713 #include "confdefs.h" 2751 #include "confdefs.h"
2714 #include <ctype.h> 2752 #include <ctype.h>
2715 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2753 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2716 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2754 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2718 int main () { int i; for (i = 0; i < 256; i++) 2756 int main () { int i; for (i = 0; i < 256; i++)
2719 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2757 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2720 exit (0); } 2758 exit (0); }
2721 2759
2722 EOF 2760 EOF
2723 if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2761 if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2724 then 2762 then
2725 : 2763 :
2726 else 2764 else
2727 echo "configure: failed program was:" >&5 2765 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5 2766 cat conftest.$ac_ext >&5
2743 } 2781 }
2744 2782
2745 fi 2783 fi
2746 2784
2747 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2785 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2748 echo "configure:2749: checking whether time.h and sys/time.h may both be included" >&5 2786 echo "configure:2787: checking whether time.h and sys/time.h may both be included" >&5
2749 2787
2750 cat > conftest.$ac_ext <<EOF 2788 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure" 2789 #line 2790 "configure"
2752 #include "confdefs.h" 2790 #include "confdefs.h"
2753 #include <sys/types.h> 2791 #include <sys/types.h>
2754 #include <sys/time.h> 2792 #include <sys/time.h>
2755 #include <time.h> 2793 #include <time.h>
2756 int main() { 2794 int main() {
2757 struct tm *tp; 2795 struct tm *tp;
2758 ; return 0; } 2796 ; return 0; }
2759 EOF 2797 EOF
2760 if { (eval echo configure:2761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2798 if { (eval echo configure:2799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2761 rm -rf conftest* 2799 rm -rf conftest*
2762 ac_cv_header_time=yes 2800 ac_cv_header_time=yes
2763 else 2801 else
2764 echo "configure: failed program was:" >&5 2802 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5 2803 cat conftest.$ac_ext >&5
2779 } 2817 }
2780 2818
2781 fi 2819 fi
2782 2820
2783 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2821 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2784 echo "configure:2785: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2822 echo "configure:2823: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2785 2823
2786 cat > conftest.$ac_ext <<EOF 2824 cat > conftest.$ac_ext <<EOF
2787 #line 2788 "configure" 2825 #line 2826 "configure"
2788 #include "confdefs.h" 2826 #include "confdefs.h"
2789 #include <sys/types.h> 2827 #include <sys/types.h>
2790 #include <signal.h> 2828 #include <signal.h>
2791 /* NetBSD declares sys_siglist in unistd.h. */ 2829 /* NetBSD declares sys_siglist in unistd.h. */
2792 #ifdef HAVE_UNISTD_H 2830 #ifdef HAVE_UNISTD_H
2794 #endif 2832 #endif
2795 int main() { 2833 int main() {
2796 char *msg = *(sys_siglist + 1); 2834 char *msg = *(sys_siglist + 1);
2797 ; return 0; } 2835 ; return 0; }
2798 EOF 2836 EOF
2799 if { (eval echo configure:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2837 if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2800 rm -rf conftest* 2838 rm -rf conftest*
2801 ac_cv_decl_sys_siglist=yes 2839 ac_cv_decl_sys_siglist=yes
2802 else 2840 else
2803 echo "configure: failed program was:" >&5 2841 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5 2842 cat conftest.$ac_ext >&5
2819 2857
2820 fi 2858 fi
2821 2859
2822 2860
2823 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2861 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2824 echo "configure:2825: checking for struct utimbuf" >&5 2862 echo "configure:2863: checking for struct utimbuf" >&5
2825 cat > conftest.$ac_ext <<EOF 2863 cat > conftest.$ac_ext <<EOF
2826 #line 2827 "configure" 2864 #line 2865 "configure"
2827 #include "confdefs.h" 2865 #include "confdefs.h"
2828 #ifdef TIME_WITH_SYS_TIME 2866 #ifdef TIME_WITH_SYS_TIME
2829 #include <sys/time.h> 2867 #include <sys/time.h>
2830 #include <time.h> 2868 #include <time.h>
2831 #else 2869 #else
2840 #endif 2878 #endif
2841 int main() { 2879 int main() {
2842 static struct utimbuf x; x.actime = x.modtime; 2880 static struct utimbuf x; x.actime = x.modtime;
2843 ; return 0; } 2881 ; return 0; }
2844 EOF 2882 EOF
2845 if { (eval echo configure:2846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2883 if { (eval echo configure:2884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2846 rm -rf conftest* 2884 rm -rf conftest*
2847 echo "$ac_t""yes" 1>&6 2885 echo "$ac_t""yes" 1>&6
2848 { test "$extra_verbose" = "yes" && cat << \EOF 2886 { test "$extra_verbose" = "yes" && cat << \EOF
2849 Defining HAVE_STRUCT_UTIMBUF 2887 Defining HAVE_STRUCT_UTIMBUF
2850 EOF 2888 EOF
2860 echo "$ac_t""no" 1>&6 2898 echo "$ac_t""no" 1>&6
2861 fi 2899 fi
2862 rm -f conftest* 2900 rm -f conftest*
2863 2901
2864 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2902 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2865 echo "configure:2866: checking return type of signal handlers" >&5 2903 echo "configure:2904: checking return type of signal handlers" >&5
2866 2904
2867 cat > conftest.$ac_ext <<EOF 2905 cat > conftest.$ac_ext <<EOF
2868 #line 2869 "configure" 2906 #line 2907 "configure"
2869 #include "confdefs.h" 2907 #include "confdefs.h"
2870 #include <sys/types.h> 2908 #include <sys/types.h>
2871 #include <signal.h> 2909 #include <signal.h>
2872 #ifdef signal 2910 #ifdef signal
2873 #undef signal 2911 #undef signal
2880 2918
2881 int main() { 2919 int main() {
2882 int i; 2920 int i;
2883 ; return 0; } 2921 ; return 0; }
2884 EOF 2922 EOF
2885 if { (eval echo configure:2886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2923 if { (eval echo configure:2924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2886 rm -rf conftest* 2924 rm -rf conftest*
2887 ac_cv_type_signal=void 2925 ac_cv_type_signal=void
2888 else 2926 else
2889 echo "configure: failed program was:" >&5 2927 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5 2928 cat conftest.$ac_ext >&5
2902 EOF 2940 EOF
2903 } 2941 }
2904 2942
2905 2943
2906 echo $ac_n "checking for size_t""... $ac_c" 1>&6 2944 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2907 echo "configure:2908: checking for size_t" >&5 2945 echo "configure:2946: checking for size_t" >&5
2908 2946
2909 cat > conftest.$ac_ext <<EOF 2947 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure" 2948 #line 2949 "configure"
2911 #include "confdefs.h" 2949 #include "confdefs.h"
2912 #include <sys/types.h> 2950 #include <sys/types.h>
2913 #if STDC_HEADERS 2951 #if STDC_HEADERS
2914 #include <stdlib.h> 2952 #include <stdlib.h>
2915 #include <stddef.h> 2953 #include <stddef.h>
2936 } 2974 }
2937 2975
2938 fi 2976 fi
2939 2977
2940 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 2978 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2941 echo "configure:2942: checking for pid_t" >&5 2979 echo "configure:2980: checking for pid_t" >&5
2942 2980
2943 cat > conftest.$ac_ext <<EOF 2981 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure" 2982 #line 2983 "configure"
2945 #include "confdefs.h" 2983 #include "confdefs.h"
2946 #include <sys/types.h> 2984 #include <sys/types.h>
2947 #if STDC_HEADERS 2985 #if STDC_HEADERS
2948 #include <stdlib.h> 2986 #include <stdlib.h>
2949 #include <stddef.h> 2987 #include <stddef.h>
2970 } 3008 }
2971 3009
2972 fi 3010 fi
2973 3011
2974 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3012 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2975 echo "configure:2976: checking for uid_t in sys/types.h" >&5 3013 echo "configure:3014: checking for uid_t in sys/types.h" >&5
2976 3014
2977 cat > conftest.$ac_ext <<EOF 3015 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure" 3016 #line 3017 "configure"
2979 #include "confdefs.h" 3017 #include "confdefs.h"
2980 #include <sys/types.h> 3018 #include <sys/types.h>
2981 EOF 3019 EOF
2982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2983 egrep "uid_t" >/dev/null 2>&1; then 3021 egrep "uid_t" >/dev/null 2>&1; then
3009 } 3047 }
3010 3048
3011 fi 3049 fi
3012 3050
3013 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3051 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3014 echo "configure:3015: checking for mode_t" >&5 3052 echo "configure:3053: checking for mode_t" >&5
3015 3053
3016 cat > conftest.$ac_ext <<EOF 3054 cat > conftest.$ac_ext <<EOF
3017 #line 3018 "configure" 3055 #line 3056 "configure"
3018 #include "confdefs.h" 3056 #include "confdefs.h"
3019 #include <sys/types.h> 3057 #include <sys/types.h>
3020 #if STDC_HEADERS 3058 #if STDC_HEADERS
3021 #include <stdlib.h> 3059 #include <stdlib.h>
3022 #include <stddef.h> 3060 #include <stddef.h>
3043 } 3081 }
3044 3082
3045 fi 3083 fi
3046 3084
3047 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3085 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3048 echo "configure:3049: checking for off_t" >&5 3086 echo "configure:3087: checking for off_t" >&5
3049 3087
3050 cat > conftest.$ac_ext <<EOF 3088 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure" 3089 #line 3090 "configure"
3052 #include "confdefs.h" 3090 #include "confdefs.h"
3053 #include <sys/types.h> 3091 #include <sys/types.h>
3054 #if STDC_HEADERS 3092 #if STDC_HEADERS
3055 #include <stdlib.h> 3093 #include <stdlib.h>
3056 #include <stddef.h> 3094 #include <stddef.h>
3078 3116
3079 fi 3117 fi
3080 3118
3081 3119
3082 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3120 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3083 echo "configure:3084: checking for struct timeval" >&5 3121 echo "configure:3122: checking for struct timeval" >&5
3084 cat > conftest.$ac_ext <<EOF 3122 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure" 3123 #line 3124 "configure"
3086 #include "confdefs.h" 3124 #include "confdefs.h"
3087 #ifdef TIME_WITH_SYS_TIME 3125 #ifdef TIME_WITH_SYS_TIME
3088 #include <sys/time.h> 3126 #include <sys/time.h>
3089 #include <time.h> 3127 #include <time.h>
3090 #else 3128 #else
3096 #endif 3134 #endif
3097 int main() { 3135 int main() {
3098 static struct timeval x; x.tv_sec = x.tv_usec; 3136 static struct timeval x; x.tv_sec = x.tv_usec;
3099 ; return 0; } 3137 ; return 0; }
3100 EOF 3138 EOF
3101 if { (eval echo configure:3102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3139 if { (eval echo configure:3140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3102 rm -rf conftest* 3140 rm -rf conftest*
3103 echo "$ac_t""yes" 1>&6 3141 echo "$ac_t""yes" 1>&6
3104 HAVE_TIMEVAL=yes 3142 HAVE_TIMEVAL=yes
3105 { test "$extra_verbose" = "yes" && cat << \EOF 3143 { test "$extra_verbose" = "yes" && cat << \EOF
3106 Defining HAVE_TIMEVAL 3144 Defining HAVE_TIMEVAL
3118 HAVE_TIMEVAL=no 3156 HAVE_TIMEVAL=no
3119 fi 3157 fi
3120 rm -f conftest* 3158 rm -f conftest*
3121 3159
3122 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3160 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3123 echo "configure:3124: checking whether struct tm is in sys/time.h or time.h" >&5 3161 echo "configure:3162: checking whether struct tm is in sys/time.h or time.h" >&5
3124 3162
3125 cat > conftest.$ac_ext <<EOF 3163 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure" 3164 #line 3165 "configure"
3127 #include "confdefs.h" 3165 #include "confdefs.h"
3128 #include <sys/types.h> 3166 #include <sys/types.h>
3129 #include <time.h> 3167 #include <time.h>
3130 int main() { 3168 int main() {
3131 struct tm *tp; tp->tm_sec; 3169 struct tm *tp; tp->tm_sec;
3132 ; return 0; } 3170 ; return 0; }
3133 EOF 3171 EOF
3134 if { (eval echo configure:3135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3172 if { (eval echo configure:3173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3135 rm -rf conftest* 3173 rm -rf conftest*
3136 ac_cv_struct_tm=time.h 3174 ac_cv_struct_tm=time.h
3137 else 3175 else
3138 echo "configure: failed program was:" >&5 3176 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5 3177 cat conftest.$ac_ext >&5
3153 } 3191 }
3154 3192
3155 fi 3193 fi
3156 3194
3157 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3195 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3158 echo "configure:3159: checking for tm_zone in struct tm" >&5 3196 echo "configure:3197: checking for tm_zone in struct tm" >&5
3159 3197
3160 cat > conftest.$ac_ext <<EOF 3198 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure" 3199 #line 3200 "configure"
3162 #include "confdefs.h" 3200 #include "confdefs.h"
3163 #include <sys/types.h> 3201 #include <sys/types.h>
3164 #include <$ac_cv_struct_tm> 3202 #include <$ac_cv_struct_tm>
3165 int main() { 3203 int main() {
3166 struct tm tm; tm.tm_zone; 3204 struct tm tm; tm.tm_zone;
3167 ; return 0; } 3205 ; return 0; }
3168 EOF 3206 EOF
3169 if { (eval echo configure:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3207 if { (eval echo configure:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3170 rm -rf conftest* 3208 rm -rf conftest*
3171 ac_cv_struct_tm_zone=yes 3209 ac_cv_struct_tm_zone=yes
3172 else 3210 else
3173 echo "configure: failed program was:" >&5 3211 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5 3212 cat conftest.$ac_ext >&5
3187 EOF 3225 EOF
3188 } 3226 }
3189 3227
3190 else 3228 else
3191 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3229 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3192 echo "configure:3193: checking for tzname" >&5 3230 echo "configure:3231: checking for tzname" >&5
3193 3231
3194 cat > conftest.$ac_ext <<EOF 3232 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure" 3233 #line 3234 "configure"
3196 #include "confdefs.h" 3234 #include "confdefs.h"
3197 #include <time.h> 3235 #include <time.h>
3198 #ifndef tzname /* For SGI. */ 3236 #ifndef tzname /* For SGI. */
3199 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3237 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3200 #endif 3238 #endif
3201 int main() { 3239 int main() {
3202 atoi(*tzname); 3240 atoi(*tzname);
3203 ; return 0; } 3241 ; return 0; }
3204 EOF 3242 EOF
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3243 if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3206 rm -rf conftest* 3244 rm -rf conftest*
3207 ac_cv_var_tzname=yes 3245 ac_cv_var_tzname=yes
3208 else 3246 else
3209 echo "configure: failed program was:" >&5 3247 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5 3248 cat conftest.$ac_ext >&5
3226 fi 3264 fi
3227 fi 3265 fi
3228 3266
3229 3267
3230 echo $ac_n "checking for working const""... $ac_c" 1>&6 3268 echo $ac_n "checking for working const""... $ac_c" 1>&6
3231 echo "configure:3232: checking for working const" >&5 3269 echo "configure:3270: checking for working const" >&5
3232 3270
3233 cat > conftest.$ac_ext <<EOF 3271 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure" 3272 #line 3273 "configure"
3235 #include "confdefs.h" 3273 #include "confdefs.h"
3236 3274
3237 int main() { 3275 int main() {
3238 3276
3239 /* Ultrix mips cc rejects this. */ 3277 /* Ultrix mips cc rejects this. */
3278 const int foo = 10; 3316 const int foo = 10;
3279 } 3317 }
3280 3318
3281 ; return 0; } 3319 ; return 0; }
3282 EOF 3320 EOF
3283 if { (eval echo configure:3284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3321 if { (eval echo configure:3322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3284 rm -rf conftest* 3322 rm -rf conftest*
3285 ac_cv_c_const=yes 3323 ac_cv_c_const=yes
3286 else 3324 else
3287 echo "configure: failed program was:" >&5 3325 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5 3326 cat conftest.$ac_ext >&5
3303 3341
3304 fi 3342 fi
3305 3343
3306 3344
3307 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3345 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3308 echo "configure:3309: checking whether ${MAKE-make} sets \${MAKE}" >&5 3346 echo "configure:3347: checking whether ${MAKE-make} sets \${MAKE}" >&5
3309 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3347 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3310 3348
3311 cat > conftestmake <<\EOF 3349 cat > conftestmake <<\EOF
3312 all: 3350 all:
3313 @echo 'ac_maketemp="${MAKE}"' 3351 @echo 'ac_maketemp="${MAKE}"'
3328 SET_MAKE="MAKE=${MAKE-make}" 3366 SET_MAKE="MAKE=${MAKE-make}"
3329 fi 3367 fi
3330 3368
3331 3369
3332 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3370 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3333 echo "configure:3334: checking whether byte ordering is bigendian" >&5 3371 echo "configure:3372: checking whether byte ordering is bigendian" >&5
3334 3372
3335 ac_cv_c_bigendian=unknown 3373 ac_cv_c_bigendian=unknown
3336 # See if sys/param.h defines the BYTE_ORDER macro. 3374 # See if sys/param.h defines the BYTE_ORDER macro.
3337 cat > conftest.$ac_ext <<EOF 3375 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure" 3376 #line 3377 "configure"
3339 #include "confdefs.h" 3377 #include "confdefs.h"
3340 #include <sys/types.h> 3378 #include <sys/types.h>
3341 #include <sys/param.h> 3379 #include <sys/param.h>
3342 int main() { 3380 int main() {
3343 3381
3344 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3382 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3345 bogus endian macros 3383 bogus endian macros
3346 #endif 3384 #endif
3347 ; return 0; } 3385 ; return 0; }
3348 EOF 3386 EOF
3349 if { (eval echo configure:3350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3387 if { (eval echo configure:3388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3350 rm -rf conftest* 3388 rm -rf conftest*
3351 # It does; now see whether it defined to BIG_ENDIAN or not. 3389 # It does; now see whether it defined to BIG_ENDIAN or not.
3352 cat > conftest.$ac_ext <<EOF 3390 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure" 3391 #line 3392 "configure"
3354 #include "confdefs.h" 3392 #include "confdefs.h"
3355 #include <sys/types.h> 3393 #include <sys/types.h>
3356 #include <sys/param.h> 3394 #include <sys/param.h>
3357 int main() { 3395 int main() {
3358 3396
3359 #if BYTE_ORDER != BIG_ENDIAN 3397 #if BYTE_ORDER != BIG_ENDIAN
3360 not big endian 3398 not big endian
3361 #endif 3399 #endif
3362 ; return 0; } 3400 ; return 0; }
3363 EOF 3401 EOF
3364 if { (eval echo configure:3365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3402 if { (eval echo configure:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365 rm -rf conftest* 3403 rm -rf conftest*
3366 ac_cv_c_bigendian=yes 3404 ac_cv_c_bigendian=yes
3367 else 3405 else
3368 echo "configure: failed program was:" >&5 3406 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5 3407 cat conftest.$ac_ext >&5
3376 cat conftest.$ac_ext >&5 3414 cat conftest.$ac_ext >&5
3377 fi 3415 fi
3378 rm -f conftest* 3416 rm -f conftest*
3379 if test $ac_cv_c_bigendian = unknown; then 3417 if test $ac_cv_c_bigendian = unknown; then
3380 cat > conftest.$ac_ext <<EOF 3418 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure" 3419 #line 3420 "configure"
3382 #include "confdefs.h" 3420 #include "confdefs.h"
3383 main () { 3421 main () {
3384 /* Are we little or big endian? From Harbison&Steele. */ 3422 /* Are we little or big endian? From Harbison&Steele. */
3385 union 3423 union
3386 { 3424 {
3389 } u; 3427 } u;
3390 u.l = 1; 3428 u.l = 1;
3391 exit (u.c[sizeof (long) - 1] == 1); 3429 exit (u.c[sizeof (long) - 1] == 1);
3392 } 3430 }
3393 EOF 3431 EOF
3394 if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3432 if { (eval echo configure:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3395 then 3433 then
3396 ac_cv_c_bigendian=no 3434 ac_cv_c_bigendian=no
3397 else 3435 else
3398 echo "configure: failed program was:" >&5 3436 echo "configure: failed program was:" >&5
3399 cat conftest.$ac_ext >&5 3437 cat conftest.$ac_ext >&5
3415 3453
3416 fi 3454 fi
3417 3455
3418 3456
3419 echo $ac_n "checking size of short""... $ac_c" 1>&6 3457 echo $ac_n "checking size of short""... $ac_c" 1>&6
3420 echo "configure:3421: checking size of short" >&5 3458 echo "configure:3459: checking size of short" >&5
3421 3459
3422 cat > conftest.$ac_ext <<EOF 3460 cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure" 3461 #line 3462 "configure"
3424 #include "confdefs.h" 3462 #include "confdefs.h"
3425 #include <stdio.h> 3463 #include <stdio.h>
3426 main() 3464 main()
3427 { 3465 {
3428 FILE *f=fopen("conftestval", "w"); 3466 FILE *f=fopen("conftestval", "w");
3429 if (!f) exit(1); 3467 if (!f) exit(1);
3430 fprintf(f, "%d\n", sizeof(short)); 3468 fprintf(f, "%d\n", sizeof(short));
3431 exit(0); 3469 exit(0);
3432 } 3470 }
3433 EOF 3471 EOF
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3472 if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3435 then 3473 then
3436 ac_cv_sizeof_short=`cat conftestval` 3474 ac_cv_sizeof_short=`cat conftestval`
3437 else 3475 else
3438 echo "configure: failed program was:" >&5 3476 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5 3477 cat conftest.$ac_ext >&5
3456 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3494 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3457 echo "*** PANIC *** Please examine config.log for compilation errors." 3495 echo "*** PANIC *** Please examine config.log for compilation errors."
3458 exit 1 3496 exit 1
3459 fi 3497 fi
3460 echo $ac_n "checking size of int""... $ac_c" 1>&6 3498 echo $ac_n "checking size of int""... $ac_c" 1>&6
3461 echo "configure:3462: checking size of int" >&5 3499 echo "configure:3500: checking size of int" >&5
3462 3500
3463 cat > conftest.$ac_ext <<EOF 3501 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure" 3502 #line 3503 "configure"
3465 #include "confdefs.h" 3503 #include "confdefs.h"
3466 #include <stdio.h> 3504 #include <stdio.h>
3467 main() 3505 main()
3468 { 3506 {
3469 FILE *f=fopen("conftestval", "w"); 3507 FILE *f=fopen("conftestval", "w");
3470 if (!f) exit(1); 3508 if (!f) exit(1);
3471 fprintf(f, "%d\n", sizeof(int)); 3509 fprintf(f, "%d\n", sizeof(int));
3472 exit(0); 3510 exit(0);
3473 } 3511 }
3474 EOF 3512 EOF
3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3513 if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3476 then 3514 then
3477 ac_cv_sizeof_int=`cat conftestval` 3515 ac_cv_sizeof_int=`cat conftestval`
3478 else 3516 else
3479 echo "configure: failed program was:" >&5 3517 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5 3518 cat conftest.$ac_ext >&5
3491 EOF 3529 EOF
3492 } 3530 }
3493 3531
3494 3532
3495 echo $ac_n "checking size of long""... $ac_c" 1>&6 3533 echo $ac_n "checking size of long""... $ac_c" 1>&6
3496 echo "configure:3497: checking size of long" >&5 3534 echo "configure:3535: checking size of long" >&5
3497 3535
3498 cat > conftest.$ac_ext <<EOF 3536 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure" 3537 #line 3538 "configure"
3500 #include "confdefs.h" 3538 #include "confdefs.h"
3501 #include <stdio.h> 3539 #include <stdio.h>
3502 main() 3540 main()
3503 { 3541 {
3504 FILE *f=fopen("conftestval", "w"); 3542 FILE *f=fopen("conftestval", "w");
3505 if (!f) exit(1); 3543 if (!f) exit(1);
3506 fprintf(f, "%d\n", sizeof(long)); 3544 fprintf(f, "%d\n", sizeof(long));
3507 exit(0); 3545 exit(0);
3508 } 3546 }
3509 EOF 3547 EOF
3510 if { (eval echo configure:3511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3511 then 3549 then
3512 ac_cv_sizeof_long=`cat conftestval` 3550 ac_cv_sizeof_long=`cat conftestval`
3513 else 3551 else
3514 echo "configure: failed program was:" >&5 3552 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5 3553 cat conftest.$ac_ext >&5
3526 EOF 3564 EOF
3527 } 3565 }
3528 3566
3529 3567
3530 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3568 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3531 echo "configure:3532: checking size of long long" >&5 3569 echo "configure:3570: checking size of long long" >&5
3532 3570
3533 cat > conftest.$ac_ext <<EOF 3571 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure" 3572 #line 3573 "configure"
3535 #include "confdefs.h" 3573 #include "confdefs.h"
3536 #include <stdio.h> 3574 #include <stdio.h>
3537 main() 3575 main()
3538 { 3576 {
3539 FILE *f=fopen("conftestval", "w"); 3577 FILE *f=fopen("conftestval", "w");
3540 if (!f) exit(1); 3578 if (!f) exit(1);
3541 fprintf(f, "%d\n", sizeof(long long)); 3579 fprintf(f, "%d\n", sizeof(long long));
3542 exit(0); 3580 exit(0);
3543 } 3581 }
3544 EOF 3582 EOF
3545 if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3583 if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3546 then 3584 then
3547 ac_cv_sizeof_long_long=`cat conftestval` 3585 ac_cv_sizeof_long_long=`cat conftestval`
3548 else 3586 else
3549 echo "configure: failed program was:" >&5 3587 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5 3588 cat conftest.$ac_ext >&5
3561 EOF 3599 EOF
3562 } 3600 }
3563 3601
3564 3602
3565 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3603 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3566 echo "configure:3567: checking size of void *" >&5 3604 echo "configure:3605: checking size of void *" >&5
3567 3605
3568 cat > conftest.$ac_ext <<EOF 3606 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure" 3607 #line 3608 "configure"
3570 #include "confdefs.h" 3608 #include "confdefs.h"
3571 #include <stdio.h> 3609 #include <stdio.h>
3572 main() 3610 main()
3573 { 3611 {
3574 FILE *f=fopen("conftestval", "w"); 3612 FILE *f=fopen("conftestval", "w");
3575 if (!f) exit(1); 3613 if (!f) exit(1);
3576 fprintf(f, "%d\n", sizeof(void *)); 3614 fprintf(f, "%d\n", sizeof(void *));
3577 exit(0); 3615 exit(0);
3578 } 3616 }
3579 EOF 3617 EOF
3580 if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3618 if { (eval echo configure:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3581 then 3619 then
3582 ac_cv_sizeof_void_p=`cat conftestval` 3620 ac_cv_sizeof_void_p=`cat conftestval`
3583 else 3621 else
3584 echo "configure: failed program was:" >&5 3622 echo "configure: failed program was:" >&5
3585 cat conftest.$ac_ext >&5 3623 cat conftest.$ac_ext >&5
3597 } 3635 }
3598 3636
3599 3637
3600 3638
3601 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3639 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3602 echo "configure:3603: checking for long file names" >&5 3640 echo "configure:3641: checking for long file names" >&5
3603 3641
3604 ac_cv_sys_long_file_names=yes 3642 ac_cv_sys_long_file_names=yes
3605 # Test for long file names in all the places we know might matter: 3643 # Test for long file names in all the places we know might matter:
3606 # . the current directory, where building will happen 3644 # . the current directory, where building will happen
3607 # $prefix/lib where we will be installing things 3645 # $prefix/lib where we will be installing things
3644 fi 3682 fi
3645 3683
3646 3684
3647 3685
3648 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 3686 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
3649 echo "configure:3650: checking for sin in -lm" >&5 3687 echo "configure:3688: checking for sin in -lm" >&5
3650 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 3688 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3651 3689
3652 xe_check_libs=" -lm " 3690 xe_check_libs=" -lm "
3653 cat > conftest.$ac_ext <<EOF 3691 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure" 3692 #line 3693 "configure"
3655 #include "confdefs.h" 3693 #include "confdefs.h"
3656 /* Override any gcc2 internal prototype to avoid an error. */ 3694 /* Override any gcc2 internal prototype to avoid an error. */
3657 /* We use char because int might match the return type of a gcc2 3695 /* We use char because int might match the return type of a gcc2
3658 builtin and then its argument prototype would still apply. */ 3696 builtin and then its argument prototype would still apply. */
3659 char sin(); 3697 char sin();
3660 3698
3661 int main() { 3699 int main() {
3662 sin() 3700 sin()
3663 ; return 0; } 3701 ; return 0; }
3664 EOF 3702 EOF
3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3703 if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3666 rm -rf conftest* 3704 rm -rf conftest*
3667 eval "ac_cv_lib_$ac_lib_var=yes" 3705 eval "ac_cv_lib_$ac_lib_var=yes"
3668 else 3706 else
3669 echo "configure: failed program was:" >&5 3707 echo "configure: failed program was:" >&5
3670 cat conftest.$ac_ext >&5 3708 cat conftest.$ac_ext >&5
3702 EOF 3740 EOF
3703 } 3741 }
3704 3742
3705 3743
3706 echo "checking type of mail spool file locking" 1>&6 3744 echo "checking type of mail spool file locking" 1>&6
3707 echo "configure:3708: checking type of mail spool file locking" >&5 3745 echo "configure:3746: checking type of mail spool file locking" >&5
3708 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3746 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3709 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3747 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3710 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3748 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3711 Defining REAL_MAIL_USE_LOCKF 3749 Defining REAL_MAIL_USE_LOCKF
3712 EOF 3750 EOF
3726 else mail_locking="dot-locking" 3764 else mail_locking="dot-locking"
3727 fi 3765 fi
3728 3766
3729 3767
3730 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3768 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3731 echo "configure:3732: checking for kstat_open in -lkstat" >&5 3769 echo "configure:3770: checking for kstat_open in -lkstat" >&5
3732 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3770 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3733 3771
3734 xe_check_libs=" -lkstat " 3772 xe_check_libs=" -lkstat "
3735 cat > conftest.$ac_ext <<EOF 3773 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure" 3774 #line 3775 "configure"
3737 #include "confdefs.h" 3775 #include "confdefs.h"
3738 /* Override any gcc2 internal prototype to avoid an error. */ 3776 /* Override any gcc2 internal prototype to avoid an error. */
3739 /* We use char because int might match the return type of a gcc2 3777 /* We use char because int might match the return type of a gcc2
3740 builtin and then its argument prototype would still apply. */ 3778 builtin and then its argument prototype would still apply. */
3741 char kstat_open(); 3779 char kstat_open();
3742 3780
3743 int main() { 3781 int main() {
3744 kstat_open() 3782 kstat_open()
3745 ; return 0; } 3783 ; return 0; }
3746 EOF 3784 EOF
3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3785 if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3748 rm -rf conftest* 3786 rm -rf conftest*
3749 eval "ac_cv_lib_$ac_lib_var=yes" 3787 eval "ac_cv_lib_$ac_lib_var=yes"
3750 else 3788 else
3751 echo "configure: failed program was:" >&5 3789 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5 3790 cat conftest.$ac_ext >&5
3776 3814
3777 3815
3778 3816
3779 3817
3780 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 3818 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3781 echo "configure:3782: checking for kvm_read in -lkvm" >&5 3819 echo "configure:3820: checking for kvm_read in -lkvm" >&5
3782 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 3820 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3783 3821
3784 xe_check_libs=" -lkvm " 3822 xe_check_libs=" -lkvm "
3785 cat > conftest.$ac_ext <<EOF 3823 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure" 3824 #line 3825 "configure"
3787 #include "confdefs.h" 3825 #include "confdefs.h"
3788 /* Override any gcc2 internal prototype to avoid an error. */ 3826 /* Override any gcc2 internal prototype to avoid an error. */
3789 /* We use char because int might match the return type of a gcc2 3827 /* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */ 3828 builtin and then its argument prototype would still apply. */
3791 char kvm_read(); 3829 char kvm_read();
3792 3830
3793 int main() { 3831 int main() {
3794 kvm_read() 3832 kvm_read()
3795 ; return 0; } 3833 ; return 0; }
3796 EOF 3834 EOF
3797 if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3798 rm -rf conftest* 3836 rm -rf conftest*
3799 eval "ac_cv_lib_$ac_lib_var=yes" 3837 eval "ac_cv_lib_$ac_lib_var=yes"
3800 else 3838 else
3801 echo "configure: failed program was:" >&5 3839 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5 3840 cat conftest.$ac_ext >&5
3826 3864
3827 3865
3828 3866
3829 3867
3830 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3868 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3831 echo "configure:3832: checking for cma_open in -lpthreads" >&5 3869 echo "configure:3870: checking for cma_open in -lpthreads" >&5
3832 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3870 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3833 3871
3834 xe_check_libs=" -lpthreads " 3872 xe_check_libs=" -lpthreads "
3835 cat > conftest.$ac_ext <<EOF 3873 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure" 3874 #line 3875 "configure"
3837 #include "confdefs.h" 3875 #include "confdefs.h"
3838 /* Override any gcc2 internal prototype to avoid an error. */ 3876 /* Override any gcc2 internal prototype to avoid an error. */
3839 /* We use char because int might match the return type of a gcc2 3877 /* We use char because int might match the return type of a gcc2
3840 builtin and then its argument prototype would still apply. */ 3878 builtin and then its argument prototype would still apply. */
3841 char cma_open(); 3879 char cma_open();
3842 3880
3843 int main() { 3881 int main() {
3844 cma_open() 3882 cma_open()
3845 ; return 0; } 3883 ; return 0; }
3846 EOF 3884 EOF
3847 if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3885 if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3848 rm -rf conftest* 3886 rm -rf conftest*
3849 eval "ac_cv_lib_$ac_lib_var=yes" 3887 eval "ac_cv_lib_$ac_lib_var=yes"
3850 else 3888 else
3851 echo "configure: failed program was:" >&5 3889 echo "configure: failed program was:" >&5
3852 cat conftest.$ac_ext >&5 3890 cat conftest.$ac_ext >&5
3878 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 3916 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
3879 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 3917 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
3880 fi 3918 fi
3881 3919
3882 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 3920 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
3883 echo "configure:3884: checking whether the -xildoff compiler flag is required" >&5 3921 echo "configure:3922: checking whether the -xildoff compiler flag is required" >&5
3884 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 3922 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
3885 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 3923 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
3886 then echo "$ac_t""no" 1>&6; 3924 then echo "$ac_t""no" 1>&6;
3887 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 3925 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
3888 fi 3926 fi
3889 else echo "$ac_t""no" 1>&6 3927 else echo "$ac_t""no" 1>&6
3890 fi 3928 fi
3891 3929
3892 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 3930 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
3893 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 3931 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
3894 echo "configure:3895: checking for \"-z ignore\" linker flag" >&5 3932 echo "configure:3933: checking for \"-z ignore\" linker flag" >&5
3895 case "`ld -h 2>&1`" in 3933 case "`ld -h 2>&1`" in
3896 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 3934 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
3897 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 3935 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
3898 *) echo "$ac_t""no" 1>&6 ;; 3936 *) echo "$ac_t""no" 1>&6 ;;
3899 esac 3937 esac
3900 fi 3938 fi
3901 3939
3902 3940
3903 echo "checking "for specified window system"" 1>&6 3941 echo "checking "for specified window system"" 1>&6
3904 echo "configure:3905: checking "for specified window system"" >&5 3942 echo "configure:3943: checking "for specified window system"" >&5
3905 3943
3906 if test "$with_x11" != "no"; then 3944 if test "$with_x11" != "no"; then
3907 test "$x_includes $x_libraries" != "NONE NONE" && \ 3945 test "$x_includes $x_libraries" != "NONE NONE" && \
3908 window_system=x11 with_x11=yes 3946 window_system=x11 with_x11=yes
3909 3947
3929 # If we find X, set shell vars x_includes and x_libraries to the 3967 # If we find X, set shell vars x_includes and x_libraries to the
3930 # paths, otherwise set no_x=yes. 3968 # paths, otherwise set no_x=yes.
3931 # Uses ac_ vars as temps to allow command line to override cache and checks. 3969 # Uses ac_ vars as temps to allow command line to override cache and checks.
3932 # --without-x overrides everything else, but does not touch the cache. 3970 # --without-x overrides everything else, but does not touch the cache.
3933 echo $ac_n "checking for X""... $ac_c" 1>&6 3971 echo $ac_n "checking for X""... $ac_c" 1>&6
3934 echo "configure:3935: checking for X" >&5 3972 echo "configure:3973: checking for X" >&5
3935 3973
3936 # Check whether --with-x or --without-x was given. 3974 # Check whether --with-x or --without-x was given.
3937 if test "${with_x+set}" = set; then 3975 if test "${with_x+set}" = set; then
3938 withval="$with_x" 3976 withval="$with_x"
3939 : 3977 :
3989 # Guess where to find include files, by looking for this one X11 .h file. 4027 # Guess where to find include files, by looking for this one X11 .h file.
3990 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4028 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3991 4029
3992 # First, try using that file with no special directory specified. 4030 # First, try using that file with no special directory specified.
3993 cat > conftest.$ac_ext <<EOF 4031 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure" 4032 #line 4033 "configure"
3995 #include "confdefs.h" 4033 #include "confdefs.h"
3996 #include <$x_direct_test_include> 4034 #include <$x_direct_test_include>
3997 EOF 4035 EOF
3998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3999 { (eval echo configure:4000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4037 { (eval echo configure:4038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4000 ac_err=`grep -v '^ *+' conftest.out` 4038 ac_err=`grep -v '^ *+' conftest.out`
4001 if test -z "$ac_err"; then 4039 if test -z "$ac_err"; then
4002 rm -rf conftest* 4040 rm -rf conftest*
4003 # We can compile using X headers with no special include directory. 4041 # We can compile using X headers with no special include directory.
4004 ac_x_includes= 4042 ac_x_includes=
4063 # See if we find them without any special options. 4101 # See if we find them without any special options.
4064 # Don't add to $LIBS permanently. 4102 # Don't add to $LIBS permanently.
4065 ac_save_LIBS="$LIBS" 4103 ac_save_LIBS="$LIBS"
4066 LIBS="-l$x_direct_test_library $LIBS" 4104 LIBS="-l$x_direct_test_library $LIBS"
4067 cat > conftest.$ac_ext <<EOF 4105 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure" 4106 #line 4107 "configure"
4069 #include "confdefs.h" 4107 #include "confdefs.h"
4070 4108
4071 int main() { 4109 int main() {
4072 ${x_direct_test_function}() 4110 ${x_direct_test_function}()
4073 ; return 0; } 4111 ; return 0; }
4074 EOF 4112 EOF
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4076 rm -rf conftest* 4114 rm -rf conftest*
4077 LIBS="$ac_save_LIBS" 4115 LIBS="$ac_save_LIBS"
4078 # We can link X programs with no special library path. 4116 # We can link X programs with no special library path.
4079 ac_x_libraries= 4117 ac_x_libraries=
4080 else 4118 else
4179 # For Solaris; some versions of Sun CC require a space after -R and 4217 # For Solaris; some versions of Sun CC require a space after -R and
4180 # others require no space. Words are not sufficient . . . . 4218 # others require no space. Words are not sufficient . . . .
4181 case "`(uname -sr) 2>/dev/null`" in 4219 case "`(uname -sr) 2>/dev/null`" in
4182 "SunOS 5"*) 4220 "SunOS 5"*)
4183 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4221 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4184 echo "configure:4185: checking whether -R must be followed by a space" >&5 4222 echo "configure:4223: checking whether -R must be followed by a space" >&5
4185 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4223 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4186 cat > conftest.$ac_ext <<EOF 4224 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure" 4225 #line 4226 "configure"
4188 #include "confdefs.h" 4226 #include "confdefs.h"
4189 4227
4190 int main() { 4228 int main() {
4191 4229
4192 ; return 0; } 4230 ; return 0; }
4193 EOF 4231 EOF
4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4232 if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4195 rm -rf conftest* 4233 rm -rf conftest*
4196 ac_R_nospace=yes 4234 ac_R_nospace=yes
4197 else 4235 else
4198 echo "configure: failed program was:" >&5 4236 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5 4237 cat conftest.$ac_ext >&5
4205 echo "$ac_t""no" 1>&6 4243 echo "$ac_t""no" 1>&6
4206 X_LIBS="$X_LIBS -R$x_libraries" 4244 X_LIBS="$X_LIBS -R$x_libraries"
4207 else 4245 else
4208 LIBS="$ac_xsave_LIBS -R $x_libraries" 4246 LIBS="$ac_xsave_LIBS -R $x_libraries"
4209 cat > conftest.$ac_ext <<EOF 4247 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure" 4248 #line 4249 "configure"
4211 #include "confdefs.h" 4249 #include "confdefs.h"
4212 4250
4213 int main() { 4251 int main() {
4214 4252
4215 ; return 0; } 4253 ; return 0; }
4216 EOF 4254 EOF
4217 if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4255 if { (eval echo configure:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4218 rm -rf conftest* 4256 rm -rf conftest*
4219 ac_R_space=yes 4257 ac_R_space=yes
4220 else 4258 else
4221 echo "configure: failed program was:" >&5 4259 echo "configure: failed program was:" >&5
4222 cat conftest.$ac_ext >&5 4260 cat conftest.$ac_ext >&5
4248 if test "$with_dnet" = "no" ; then 4286 if test "$with_dnet" = "no" ; then
4249 ac_cv_lib_dnet_dnet_ntoa=no 4287 ac_cv_lib_dnet_dnet_ntoa=no
4250 else 4288 else
4251 4289
4252 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4290 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4253 echo "configure:4254: checking for dnet_ntoa in -ldnet" >&5 4291 echo "configure:4292: checking for dnet_ntoa in -ldnet" >&5
4254 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4292 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4255 4293
4256 xe_check_libs=" -ldnet " 4294 xe_check_libs=" -ldnet "
4257 cat > conftest.$ac_ext <<EOF 4295 cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure" 4296 #line 4297 "configure"
4259 #include "confdefs.h" 4297 #include "confdefs.h"
4260 /* Override any gcc2 internal prototype to avoid an error. */ 4298 /* Override any gcc2 internal prototype to avoid an error. */
4261 /* We use char because int might match the return type of a gcc2 4299 /* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */ 4300 builtin and then its argument prototype would still apply. */
4263 char dnet_ntoa(); 4301 char dnet_ntoa();
4264 4302
4265 int main() { 4303 int main() {
4266 dnet_ntoa() 4304 dnet_ntoa()
4267 ; return 0; } 4305 ; return 0; }
4268 EOF 4306 EOF
4269 if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4270 rm -rf conftest* 4308 rm -rf conftest*
4271 eval "ac_cv_lib_$ac_lib_var=yes" 4309 eval "ac_cv_lib_$ac_lib_var=yes"
4272 else 4310 else
4273 echo "configure: failed program was:" >&5 4311 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5 4312 cat conftest.$ac_ext >&5
4288 fi 4326 fi
4289 4327
4290 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4328 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4291 4329
4292 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4330 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4293 echo "configure:4294: checking for dnet_ntoa in -ldnet_stub" >&5 4331 echo "configure:4332: checking for dnet_ntoa in -ldnet_stub" >&5
4294 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4332 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4295 4333
4296 xe_check_libs=" -ldnet_stub " 4334 xe_check_libs=" -ldnet_stub "
4297 cat > conftest.$ac_ext <<EOF 4335 cat > conftest.$ac_ext <<EOF
4298 #line 4299 "configure" 4336 #line 4337 "configure"
4299 #include "confdefs.h" 4337 #include "confdefs.h"
4300 /* Override any gcc2 internal prototype to avoid an error. */ 4338 /* Override any gcc2 internal prototype to avoid an error. */
4301 /* We use char because int might match the return type of a gcc2 4339 /* We use char because int might match the return type of a gcc2
4302 builtin and then its argument prototype would still apply. */ 4340 builtin and then its argument prototype would still apply. */
4303 char dnet_ntoa(); 4341 char dnet_ntoa();
4304 4342
4305 int main() { 4343 int main() {
4306 dnet_ntoa() 4344 dnet_ntoa()
4307 ; return 0; } 4345 ; return 0; }
4308 EOF 4346 EOF
4309 if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4347 if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4310 rm -rf conftest* 4348 rm -rf conftest*
4311 eval "ac_cv_lib_$ac_lib_var=yes" 4349 eval "ac_cv_lib_$ac_lib_var=yes"
4312 else 4350 else
4313 echo "configure: failed program was:" >&5 4351 echo "configure: failed program was:" >&5
4314 cat conftest.$ac_ext >&5 4352 cat conftest.$ac_ext >&5
4333 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4371 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4334 # needs -lnsl. 4372 # needs -lnsl.
4335 # The nsl library prevents programs from opening the X display 4373 # The nsl library prevents programs from opening the X display
4336 # on Irix 5.2, according to dickey@clark.net. 4374 # on Irix 5.2, according to dickey@clark.net.
4337 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4375 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4338 echo "configure:4339: checking for gethostbyname" >&5 4376 echo "configure:4377: checking for gethostbyname" >&5
4339 4377
4340 cat > conftest.$ac_ext <<EOF 4378 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure" 4379 #line 4380 "configure"
4342 #include "confdefs.h" 4380 #include "confdefs.h"
4343 /* System header to define __stub macros and hopefully few prototypes, 4381 /* System header to define __stub macros and hopefully few prototypes,
4344 which can conflict with char gethostbyname(); below. */ 4382 which can conflict with char gethostbyname(); below. */
4345 #include <assert.h> 4383 #include <assert.h>
4346 /* Override any gcc2 internal prototype to avoid an error. */ 4384 /* Override any gcc2 internal prototype to avoid an error. */
4359 gethostbyname(); 4397 gethostbyname();
4360 #endif 4398 #endif
4361 4399
4362 ; return 0; } 4400 ; return 0; }
4363 EOF 4401 EOF
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4365 rm -rf conftest* 4403 rm -rf conftest*
4366 eval "ac_cv_func_gethostbyname=yes" 4404 eval "ac_cv_func_gethostbyname=yes"
4367 else 4405 else
4368 echo "configure: failed program was:" >&5 4406 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5 4407 cat conftest.$ac_ext >&5
4380 fi 4418 fi
4381 4419
4382 if test $ac_cv_func_gethostbyname = no; then 4420 if test $ac_cv_func_gethostbyname = no; then
4383 4421
4384 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4422 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4385 echo "configure:4386: checking for gethostbyname in -lnsl" >&5 4423 echo "configure:4424: checking for gethostbyname in -lnsl" >&5
4386 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4424 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4387 4425
4388 xe_check_libs=" -lnsl " 4426 xe_check_libs=" -lnsl "
4389 cat > conftest.$ac_ext <<EOF 4427 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure" 4428 #line 4429 "configure"
4391 #include "confdefs.h" 4429 #include "confdefs.h"
4392 /* Override any gcc2 internal prototype to avoid an error. */ 4430 /* Override any gcc2 internal prototype to avoid an error. */
4393 /* We use char because int might match the return type of a gcc2 4431 /* We use char because int might match the return type of a gcc2
4394 builtin and then its argument prototype would still apply. */ 4432 builtin and then its argument prototype would still apply. */
4395 char gethostbyname(); 4433 char gethostbyname();
4396 4434
4397 int main() { 4435 int main() {
4398 gethostbyname() 4436 gethostbyname()
4399 ; return 0; } 4437 ; return 0; }
4400 EOF 4438 EOF
4401 if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4402 rm -rf conftest* 4440 rm -rf conftest*
4403 eval "ac_cv_lib_$ac_lib_var=yes" 4441 eval "ac_cv_lib_$ac_lib_var=yes"
4404 else 4442 else
4405 echo "configure: failed program was:" >&5 4443 echo "configure: failed program was:" >&5
4406 cat conftest.$ac_ext >&5 4444 cat conftest.$ac_ext >&5
4426 # on later versions), says simon@lia.di.epfl.ch: it contains 4464 # on later versions), says simon@lia.di.epfl.ch: it contains
4427 # gethostby* variants that don't use the nameserver (or something). 4465 # gethostby* variants that don't use the nameserver (or something).
4428 # -lsocket must be given before -lnsl if both are needed. 4466 # -lsocket must be given before -lnsl if both are needed.
4429 # We assume that if connect needs -lnsl, so does gethostbyname. 4467 # We assume that if connect needs -lnsl, so does gethostbyname.
4430 echo $ac_n "checking for connect""... $ac_c" 1>&6 4468 echo $ac_n "checking for connect""... $ac_c" 1>&6
4431 echo "configure:4432: checking for connect" >&5 4469 echo "configure:4470: checking for connect" >&5
4432 4470
4433 cat > conftest.$ac_ext <<EOF 4471 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure" 4472 #line 4473 "configure"
4435 #include "confdefs.h" 4473 #include "confdefs.h"
4436 /* System header to define __stub macros and hopefully few prototypes, 4474 /* System header to define __stub macros and hopefully few prototypes,
4437 which can conflict with char connect(); below. */ 4475 which can conflict with char connect(); below. */
4438 #include <assert.h> 4476 #include <assert.h>
4439 /* Override any gcc2 internal prototype to avoid an error. */ 4477 /* Override any gcc2 internal prototype to avoid an error. */
4452 connect(); 4490 connect();
4453 #endif 4491 #endif
4454 4492
4455 ; return 0; } 4493 ; return 0; }
4456 EOF 4494 EOF
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4495 if { (eval echo configure:4496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4458 rm -rf conftest* 4496 rm -rf conftest*
4459 eval "ac_cv_func_connect=yes" 4497 eval "ac_cv_func_connect=yes"
4460 else 4498 else
4461 echo "configure: failed program was:" >&5 4499 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5 4500 cat conftest.$ac_ext >&5
4475 if test $ac_cv_func_connect = no; then 4513 if test $ac_cv_func_connect = no; then
4476 4514
4477 xe_msg_checking="for connect in -lsocket" 4515 xe_msg_checking="for connect in -lsocket"
4478 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4516 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4479 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4517 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4480 echo "configure:4481: checking "$xe_msg_checking"" >&5 4518 echo "configure:4519: checking "$xe_msg_checking"" >&5
4481 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4519 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4482 4520
4483 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4521 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4484 cat > conftest.$ac_ext <<EOF 4522 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure" 4523 #line 4524 "configure"
4486 #include "confdefs.h" 4524 #include "confdefs.h"
4487 /* Override any gcc2 internal prototype to avoid an error. */ 4525 /* Override any gcc2 internal prototype to avoid an error. */
4488 /* We use char because int might match the return type of a gcc2 4526 /* We use char because int might match the return type of a gcc2
4489 builtin and then its argument prototype would still apply. */ 4527 builtin and then its argument prototype would still apply. */
4490 char connect(); 4528 char connect();
4491 4529
4492 int main() { 4530 int main() {
4493 connect() 4531 connect()
4494 ; return 0; } 4532 ; return 0; }
4495 EOF 4533 EOF
4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4497 rm -rf conftest* 4535 rm -rf conftest*
4498 eval "ac_cv_lib_$ac_lib_var=yes" 4536 eval "ac_cv_lib_$ac_lib_var=yes"
4499 else 4537 else
4500 echo "configure: failed program was:" >&5 4538 echo "configure: failed program was:" >&5
4501 cat conftest.$ac_ext >&5 4539 cat conftest.$ac_ext >&5
4515 4553
4516 fi 4554 fi
4517 4555
4518 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4556 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4519 echo $ac_n "checking for remove""... $ac_c" 1>&6 4557 echo $ac_n "checking for remove""... $ac_c" 1>&6
4520 echo "configure:4521: checking for remove" >&5 4558 echo "configure:4559: checking for remove" >&5
4521 4559
4522 cat > conftest.$ac_ext <<EOF 4560 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure" 4561 #line 4562 "configure"
4524 #include "confdefs.h" 4562 #include "confdefs.h"
4525 /* System header to define __stub macros and hopefully few prototypes, 4563 /* System header to define __stub macros and hopefully few prototypes,
4526 which can conflict with char remove(); below. */ 4564 which can conflict with char remove(); below. */
4527 #include <assert.h> 4565 #include <assert.h>
4528 /* Override any gcc2 internal prototype to avoid an error. */ 4566 /* Override any gcc2 internal prototype to avoid an error. */
4541 remove(); 4579 remove();
4542 #endif 4580 #endif
4543 4581
4544 ; return 0; } 4582 ; return 0; }
4545 EOF 4583 EOF
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4584 if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4547 rm -rf conftest* 4585 rm -rf conftest*
4548 eval "ac_cv_func_remove=yes" 4586 eval "ac_cv_func_remove=yes"
4549 else 4587 else
4550 echo "configure: failed program was:" >&5 4588 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5 4589 cat conftest.$ac_ext >&5
4562 fi 4600 fi
4563 4601
4564 if test $ac_cv_func_remove = no; then 4602 if test $ac_cv_func_remove = no; then
4565 4603
4566 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4604 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4567 echo "configure:4568: checking for remove in -lposix" >&5 4605 echo "configure:4606: checking for remove in -lposix" >&5
4568 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4606 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4569 4607
4570 xe_check_libs=" -lposix " 4608 xe_check_libs=" -lposix "
4571 cat > conftest.$ac_ext <<EOF 4609 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure" 4610 #line 4611 "configure"
4573 #include "confdefs.h" 4611 #include "confdefs.h"
4574 /* Override any gcc2 internal prototype to avoid an error. */ 4612 /* Override any gcc2 internal prototype to avoid an error. */
4575 /* We use char because int might match the return type of a gcc2 4613 /* We use char because int might match the return type of a gcc2
4576 builtin and then its argument prototype would still apply. */ 4614 builtin and then its argument prototype would still apply. */
4577 char remove(); 4615 char remove();
4578 4616
4579 int main() { 4617 int main() {
4580 remove() 4618 remove()
4581 ; return 0; } 4619 ; return 0; }
4582 EOF 4620 EOF
4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4584 rm -rf conftest* 4622 rm -rf conftest*
4585 eval "ac_cv_lib_$ac_lib_var=yes" 4623 eval "ac_cv_lib_$ac_lib_var=yes"
4586 else 4624 else
4587 echo "configure: failed program was:" >&5 4625 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5 4626 cat conftest.$ac_ext >&5
4602 4640
4603 fi 4641 fi
4604 4642
4605 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4643 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4606 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4644 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4607 echo "configure:4608: checking for shmat" >&5 4645 echo "configure:4646: checking for shmat" >&5
4608 4646
4609 cat > conftest.$ac_ext <<EOF 4647 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure" 4648 #line 4649 "configure"
4611 #include "confdefs.h" 4649 #include "confdefs.h"
4612 /* System header to define __stub macros and hopefully few prototypes, 4650 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char shmat(); below. */ 4651 which can conflict with char shmat(); below. */
4614 #include <assert.h> 4652 #include <assert.h>
4615 /* Override any gcc2 internal prototype to avoid an error. */ 4653 /* Override any gcc2 internal prototype to avoid an error. */
4628 shmat(); 4666 shmat();
4629 #endif 4667 #endif
4630 4668
4631 ; return 0; } 4669 ; return 0; }
4632 EOF 4670 EOF
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4671 if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4634 rm -rf conftest* 4672 rm -rf conftest*
4635 eval "ac_cv_func_shmat=yes" 4673 eval "ac_cv_func_shmat=yes"
4636 else 4674 else
4637 echo "configure: failed program was:" >&5 4675 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5 4676 cat conftest.$ac_ext >&5
4649 fi 4687 fi
4650 4688
4651 if test $ac_cv_func_shmat = no; then 4689 if test $ac_cv_func_shmat = no; then
4652 4690
4653 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4691 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4654 echo "configure:4655: checking for shmat in -lipc" >&5 4692 echo "configure:4693: checking for shmat in -lipc" >&5
4655 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4693 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4656 4694
4657 xe_check_libs=" -lipc " 4695 xe_check_libs=" -lipc "
4658 cat > conftest.$ac_ext <<EOF 4696 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure" 4697 #line 4698 "configure"
4660 #include "confdefs.h" 4698 #include "confdefs.h"
4661 /* Override any gcc2 internal prototype to avoid an error. */ 4699 /* Override any gcc2 internal prototype to avoid an error. */
4662 /* We use char because int might match the return type of a gcc2 4700 /* We use char because int might match the return type of a gcc2
4663 builtin and then its argument prototype would still apply. */ 4701 builtin and then its argument prototype would still apply. */
4664 char shmat(); 4702 char shmat();
4665 4703
4666 int main() { 4704 int main() {
4667 shmat() 4705 shmat()
4668 ; return 0; } 4706 ; return 0; }
4669 EOF 4707 EOF
4670 if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4708 if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4671 rm -rf conftest* 4709 rm -rf conftest*
4672 eval "ac_cv_lib_$ac_lib_var=yes" 4710 eval "ac_cv_lib_$ac_lib_var=yes"
4673 else 4711 else
4674 echo "configure: failed program was:" >&5 4712 echo "configure: failed program was:" >&5
4675 cat conftest.$ac_ext >&5 4713 cat conftest.$ac_ext >&5
4699 # These have to be linked with before -lX11, unlike the other 4737 # These have to be linked with before -lX11, unlike the other
4700 # libraries we check for below, so use a different variable. 4738 # libraries we check for below, so use a different variable.
4701 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4739 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4702 4740
4703 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4741 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4704 echo "configure:4705: checking for IceConnectionNumber in -lICE" >&5 4742 echo "configure:4743: checking for IceConnectionNumber in -lICE" >&5
4705 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4743 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4706 4744
4707 xe_check_libs=" -lICE " 4745 xe_check_libs=" -lICE "
4708 cat > conftest.$ac_ext <<EOF 4746 cat > conftest.$ac_ext <<EOF
4709 #line 4710 "configure" 4747 #line 4748 "configure"
4710 #include "confdefs.h" 4748 #include "confdefs.h"
4711 /* Override any gcc2 internal prototype to avoid an error. */ 4749 /* Override any gcc2 internal prototype to avoid an error. */
4712 /* We use char because int might match the return type of a gcc2 4750 /* We use char because int might match the return type of a gcc2
4713 builtin and then its argument prototype would still apply. */ 4751 builtin and then its argument prototype would still apply. */
4714 char IceConnectionNumber(); 4752 char IceConnectionNumber();
4715 4753
4716 int main() { 4754 int main() {
4717 IceConnectionNumber() 4755 IceConnectionNumber()
4718 ; return 0; } 4756 ; return 0; }
4719 EOF 4757 EOF
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4758 if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4721 rm -rf conftest* 4759 rm -rf conftest*
4722 eval "ac_cv_lib_$ac_lib_var=yes" 4760 eval "ac_cv_lib_$ac_lib_var=yes"
4723 else 4761 else
4724 echo "configure: failed program was:" >&5 4762 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5 4763 cat conftest.$ac_ext >&5
4752 no ) window_system=none HAVE_X_WINDOWS=no ;; 4790 no ) window_system=none HAVE_X_WINDOWS=no ;;
4753 esac 4791 esac
4754 4792
4755 if test "$window_system" = "none"; then 4793 if test "$window_system" = "none"; then
4756 echo "checking for MS-Windows" 1>&6 4794 echo "checking for MS-Windows" 1>&6
4757 echo "configure:4758: checking for MS-Windows" >&5 4795 echo "configure:4796: checking for MS-Windows" >&5
4758 4796
4759 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 4797 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
4760 echo "configure:4761: checking for main in -lgdi32" >&5 4798 echo "configure:4799: checking for main in -lgdi32" >&5
4761 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 4799 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
4762 4800
4763 xe_check_libs=" -lgdi32 " 4801 xe_check_libs=" -lgdi32 "
4764 cat > conftest.$ac_ext <<EOF 4802 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure" 4803 #line 4804 "configure"
4766 #include "confdefs.h" 4804 #include "confdefs.h"
4767 4805
4768 int main() { 4806 int main() {
4769 main() 4807 main()
4770 ; return 0; } 4808 ; return 0; }
4771 EOF 4809 EOF
4772 if { (eval echo configure:4773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4773 rm -rf conftest* 4811 rm -rf conftest*
4774 eval "ac_cv_lib_$ac_lib_var=yes" 4812 eval "ac_cv_lib_$ac_lib_var=yes"
4775 else 4813 else
4776 echo "configure: failed program was:" >&5 4814 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5 4815 cat conftest.$ac_ext >&5
4796 cat >> confdefs.h <<\EOF 4834 cat >> confdefs.h <<\EOF
4797 #define HAVE_MS_WINDOWS 1 4835 #define HAVE_MS_WINDOWS 1
4798 EOF 4836 EOF
4799 } 4837 }
4800 4838
4839 libs_system="$libs_system -lgdi32 -luser32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lgdi32 -luser32\" to \$libs_system"; fi
4801 window_system=msw 4840 window_system=msw
4802 with_scrollbars=msw 4841 test "$with_scrollbars" != "no" && with_scrollbars=msw && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
4842 echo " xemacs will be linked with \"scrollbar-msw.o\""
4843 fi
4844 test "$with_menubars" != "no" && with_menubars=msw && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
4845 echo " xemacs will be linked with \"menubar-msw.o\""
4846 fi
4803 with_dialogs=msw 4847 with_dialogs=msw
4804 with_menubars=no
4805 with_toolbars=no 4848 with_toolbars=no
4806 with_tty=no 4849 with_tty=no
4807 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o msw-proc.o scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then 4850 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o msw-proc.o" && if test "$extra_verbose" = "yes"; then
4808 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o msw-proc.o scrollbar-msw.o\"" 4851 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o msw-proc.o\""
4809 fi 4852 fi
4810 fi 4853 fi
4811 fi 4854 fi
4812 4855
4813 if test "$with_x11" = "yes"; then 4856 if test "$with_x11" = "yes"; then
4906 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done 4949 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
4907 echo 4950 echo
4908 fi 4951 fi
4909 4952
4910 echo "checking for X defines extracted by xmkmf" 1>&6 4953 echo "checking for X defines extracted by xmkmf" 1>&6
4911 echo "configure:4912: checking for X defines extracted by xmkmf" >&5 4954 echo "configure:4955: checking for X defines extracted by xmkmf" >&5
4912 rm -fr conftestdir 4955 rm -fr conftestdir
4913 if mkdir conftestdir; then 4956 if mkdir conftestdir; then
4914 cd conftestdir 4957 cd conftestdir
4915 cat > Imakefile <<'EOF' 4958 cat > Imakefile <<'EOF'
4916 xetest: 4959 xetest:
4938 done 4981 done
4939 fi 4982 fi
4940 4983
4941 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 4984 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
4942 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 4985 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
4943 echo "configure:4944: checking for X11/Intrinsic.h" >&5 4986 echo "configure:4987: checking for X11/Intrinsic.h" >&5
4944 4987
4945 cat > conftest.$ac_ext <<EOF 4988 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure" 4989 #line 4990 "configure"
4947 #include "confdefs.h" 4990 #include "confdefs.h"
4948 #include <X11/Intrinsic.h> 4991 #include <X11/Intrinsic.h>
4949 EOF 4992 EOF
4950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4951 { (eval echo configure:4952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4994 { (eval echo configure:4995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4952 ac_err=`grep -v '^ *+' conftest.out` 4995 ac_err=`grep -v '^ *+' conftest.out`
4953 if test -z "$ac_err"; then 4996 if test -z "$ac_err"; then
4954 rm -rf conftest* 4997 rm -rf conftest*
4955 eval "ac_cv_header_$ac_safe=yes" 4998 eval "ac_cv_header_$ac_safe=yes"
4956 else 4999 else
4970 fi 5013 fi
4971 5014
4972 5015
4973 5016
4974 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5017 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
4975 echo "configure:4976: checking for XOpenDisplay in -lX11" >&5 5018 echo "configure:5019: checking for XOpenDisplay in -lX11" >&5
4976 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5019 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
4977 5020
4978 xe_check_libs=" -lX11 " 5021 xe_check_libs=" -lX11 "
4979 cat > conftest.$ac_ext <<EOF 5022 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure" 5023 #line 5024 "configure"
4981 #include "confdefs.h" 5024 #include "confdefs.h"
4982 /* Override any gcc2 internal prototype to avoid an error. */ 5025 /* Override any gcc2 internal prototype to avoid an error. */
4983 /* We use char because int might match the return type of a gcc2 5026 /* We use char because int might match the return type of a gcc2
4984 builtin and then its argument prototype would still apply. */ 5027 builtin and then its argument prototype would still apply. */
4985 char XOpenDisplay(); 5028 char XOpenDisplay();
4986 5029
4987 int main() { 5030 int main() {
4988 XOpenDisplay() 5031 XOpenDisplay()
4989 ; return 0; } 5032 ; return 0; }
4990 EOF 5033 EOF
4991 if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5034 if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4992 rm -rf conftest* 5035 rm -rf conftest*
4993 eval "ac_cv_lib_$ac_lib_var=yes" 5036 eval "ac_cv_lib_$ac_lib_var=yes"
4994 else 5037 else
4995 echo "configure: failed program was:" >&5 5038 echo "configure: failed program was:" >&5
4996 cat conftest.$ac_ext >&5 5039 cat conftest.$ac_ext >&5
5011 if test "$have_lib_x11" != "yes"; then 5054 if test "$have_lib_x11" != "yes"; then
5012 5055
5013 xe_msg_checking="for XGetFontProperty in -lX11" 5056 xe_msg_checking="for XGetFontProperty in -lX11"
5014 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5057 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5015 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5058 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5016 echo "configure:5017: checking "$xe_msg_checking"" >&5 5059 echo "configure:5060: checking "$xe_msg_checking"" >&5
5017 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5060 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5018 5061
5019 xe_check_libs=" -lX11 -b i486-linuxaout" 5062 xe_check_libs=" -lX11 -b i486-linuxaout"
5020 cat > conftest.$ac_ext <<EOF 5063 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure" 5064 #line 5065 "configure"
5022 #include "confdefs.h" 5065 #include "confdefs.h"
5023 /* Override any gcc2 internal prototype to avoid an error. */ 5066 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2 5067 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */ 5068 builtin and then its argument prototype would still apply. */
5026 char XGetFontProperty(); 5069 char XGetFontProperty();
5027 5070
5028 int main() { 5071 int main() {
5029 XGetFontProperty() 5072 XGetFontProperty()
5030 ; return 0; } 5073 ; return 0; }
5031 EOF 5074 EOF
5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5075 if { (eval echo configure:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5033 rm -rf conftest* 5076 rm -rf conftest*
5034 eval "ac_cv_lib_$ac_lib_var=yes" 5077 eval "ac_cv_lib_$ac_lib_var=yes"
5035 else 5078 else
5036 echo "configure: failed program was:" >&5 5079 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5 5080 cat conftest.$ac_ext >&5
5054 libs_x="-lX11" 5097 libs_x="-lX11"
5055 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5098 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5056 5099
5057 5100
5058 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5101 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5059 echo "configure:5060: checking for XShapeSelectInput in -lXext" >&5 5102 echo "configure:5103: checking for XShapeSelectInput in -lXext" >&5
5060 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5103 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5061 5104
5062 xe_check_libs=" -lXext " 5105 xe_check_libs=" -lXext "
5063 cat > conftest.$ac_ext <<EOF 5106 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure" 5107 #line 5108 "configure"
5065 #include "confdefs.h" 5108 #include "confdefs.h"
5066 /* Override any gcc2 internal prototype to avoid an error. */ 5109 /* Override any gcc2 internal prototype to avoid an error. */
5067 /* We use char because int might match the return type of a gcc2 5110 /* We use char because int might match the return type of a gcc2
5068 builtin and then its argument prototype would still apply. */ 5111 builtin and then its argument prototype would still apply. */
5069 char XShapeSelectInput(); 5112 char XShapeSelectInput();
5070 5113
5071 int main() { 5114 int main() {
5072 XShapeSelectInput() 5115 XShapeSelectInput()
5073 ; return 0; } 5116 ; return 0; }
5074 EOF 5117 EOF
5075 if { (eval echo configure:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5118 if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5076 rm -rf conftest* 5119 rm -rf conftest*
5077 eval "ac_cv_lib_$ac_lib_var=yes" 5120 eval "ac_cv_lib_$ac_lib_var=yes"
5078 else 5121 else
5079 echo "configure: failed program was:" >&5 5122 echo "configure: failed program was:" >&5
5080 cat conftest.$ac_ext >&5 5123 cat conftest.$ac_ext >&5
5093 5136
5094 5137
5095 5138
5096 5139
5097 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5140 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5098 echo "configure:5099: checking for XtOpenDisplay in -lXt" >&5 5141 echo "configure:5142: checking for XtOpenDisplay in -lXt" >&5
5099 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5142 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5100 5143
5101 xe_check_libs=" -lXt " 5144 xe_check_libs=" -lXt "
5102 cat > conftest.$ac_ext <<EOF 5145 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure" 5146 #line 5147 "configure"
5104 #include "confdefs.h" 5147 #include "confdefs.h"
5105 /* Override any gcc2 internal prototype to avoid an error. */ 5148 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2 5149 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */ 5150 builtin and then its argument prototype would still apply. */
5108 char XtOpenDisplay(); 5151 char XtOpenDisplay();
5109 5152
5110 int main() { 5153 int main() {
5111 XtOpenDisplay() 5154 XtOpenDisplay()
5112 ; return 0; } 5155 ; return 0; }
5113 EOF 5156 EOF
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5157 if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5115 rm -rf conftest* 5158 rm -rf conftest*
5116 eval "ac_cv_lib_$ac_lib_var=yes" 5159 eval "ac_cv_lib_$ac_lib_var=yes"
5117 else 5160 else
5118 echo "configure: failed program was:" >&5 5161 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5 5162 cat conftest.$ac_ext >&5
5132 fi 5175 fi
5133 5176
5134 5177
5135 5178
5136 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5179 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5137 echo "configure:5138: checking the version of X11 being used" >&5 5180 echo "configure:5181: checking the version of X11 being used" >&5
5138 cat > conftest.$ac_ext <<EOF 5181 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure" 5182 #line 5183 "configure"
5140 #include "confdefs.h" 5183 #include "confdefs.h"
5141 #include <X11/Intrinsic.h> 5184 #include <X11/Intrinsic.h>
5142 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5185 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5143 EOF 5186 EOF
5144 if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5145 then 5188 then
5146 ./conftest foobar; x11_release=$? 5189 ./conftest foobar; x11_release=$?
5147 else 5190 else
5148 echo "configure: failed program was:" >&5 5191 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5 5192 cat conftest.$ac_ext >&5
5163 5206
5164 for ac_hdr in X11/Xlocale.h 5207 for ac_hdr in X11/Xlocale.h
5165 do 5208 do
5166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5168 echo "configure:5169: checking for $ac_hdr" >&5 5211 echo "configure:5212: checking for $ac_hdr" >&5
5169 5212
5170 cat > conftest.$ac_ext <<EOF 5213 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure" 5214 #line 5215 "configure"
5172 #include "confdefs.h" 5215 #include "confdefs.h"
5173 #include <$ac_hdr> 5216 #include <$ac_hdr>
5174 EOF 5217 EOF
5175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5176 { (eval echo configure:5177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5219 { (eval echo configure:5220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5177 ac_err=`grep -v '^ *+' conftest.out` 5220 ac_err=`grep -v '^ *+' conftest.out`
5178 if test -z "$ac_err"; then 5221 if test -z "$ac_err"; then
5179 rm -rf conftest* 5222 rm -rf conftest*
5180 eval "ac_cv_header_$ac_safe=yes" 5223 eval "ac_cv_header_$ac_safe=yes"
5181 else 5224 else
5202 fi 5245 fi
5203 done 5246 done
5204 5247
5205 5248
5206 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5249 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5207 echo "configure:5208: checking for XFree86" >&5 5250 echo "configure:5251: checking for XFree86" >&5
5208 if test -d "/usr/X386/include" -o \ 5251 if test -d "/usr/X386/include" -o \
5209 -f "/etc/XF86Config" -o \ 5252 -f "/etc/XF86Config" -o \
5210 -f "/etc/X11/XF86Config" -o \ 5253 -f "/etc/X11/XF86Config" -o \
5211 -f "/usr/X11R6/lib/X11/XF86Config"; then 5254 -f "/usr/X11R6/lib/X11/XF86Config"; then
5212 echo "$ac_t""yes" 1>&6 5255 echo "$ac_t""yes" 1>&6
5222 echo "$ac_t""no" 1>&6 5265 echo "$ac_t""no" 1>&6
5223 fi 5266 fi
5224 5267
5225 test -z "$with_xmu" && { 5268 test -z "$with_xmu" && {
5226 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5269 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5227 echo "configure:5228: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5270 echo "configure:5271: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5228 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5271 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5229 5272
5230 xe_check_libs=" -lXmu " 5273 xe_check_libs=" -lXmu "
5231 cat > conftest.$ac_ext <<EOF 5274 cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure" 5275 #line 5276 "configure"
5233 #include "confdefs.h" 5276 #include "confdefs.h"
5234 /* Override any gcc2 internal prototype to avoid an error. */ 5277 /* Override any gcc2 internal prototype to avoid an error. */
5235 /* We use char because int might match the return type of a gcc2 5278 /* We use char because int might match the return type of a gcc2
5236 builtin and then its argument prototype would still apply. */ 5279 builtin and then its argument prototype would still apply. */
5237 char XmuReadBitmapDataFromFile(); 5280 char XmuReadBitmapDataFromFile();
5238 5281
5239 int main() { 5282 int main() {
5240 XmuReadBitmapDataFromFile() 5283 XmuReadBitmapDataFromFile()
5241 ; return 0; } 5284 ; return 0; }
5242 EOF 5285 EOF
5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5286 if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5244 rm -rf conftest* 5287 rm -rf conftest*
5245 eval "ac_cv_lib_$ac_lib_var=yes" 5288 eval "ac_cv_lib_$ac_lib_var=yes"
5246 else 5289 else
5247 echo "configure: failed program was:" >&5 5290 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5 5291 cat conftest.$ac_ext >&5
5277 5320
5278 fi 5321 fi
5279 5322
5280 5323
5281 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5324 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5282 echo "configure:5283: checking for main in -lXbsd" >&5 5325 echo "configure:5326: checking for main in -lXbsd" >&5
5283 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5326 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5284 5327
5285 xe_check_libs=" -lXbsd " 5328 xe_check_libs=" -lXbsd "
5286 cat > conftest.$ac_ext <<EOF 5329 cat > conftest.$ac_ext <<EOF
5287 #line 5288 "configure" 5330 #line 5331 "configure"
5288 #include "confdefs.h" 5331 #include "confdefs.h"
5289 5332
5290 int main() { 5333 int main() {
5291 main() 5334 main()
5292 ; return 0; } 5335 ; return 0; }
5293 EOF 5336 EOF
5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5295 rm -rf conftest* 5338 rm -rf conftest*
5296 eval "ac_cv_lib_$ac_lib_var=yes" 5339 eval "ac_cv_lib_$ac_lib_var=yes"
5297 else 5340 else
5298 echo "configure: failed program was:" >&5 5341 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5 5342 cat conftest.$ac_ext >&5
5344 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5387 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5345 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5388 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5346 esac 5389 esac
5347 5390
5348 echo "checking for session-management option" 1>&6 5391 echo "checking for session-management option" 1>&6
5349 echo "configure:5350: checking for session-management option" >&5; 5392 echo "configure:5393: checking for session-management option" >&5;
5350 if test "$with_session" != "no"; then 5393 if test "$with_session" != "no"; then
5351 { test "$extra_verbose" = "yes" && cat << \EOF 5394 { test "$extra_verbose" = "yes" && cat << \EOF
5352 Defining HAVE_SESSION 5395 Defining HAVE_SESSION
5353 EOF 5396 EOF
5354 cat >> confdefs.h <<\EOF 5397 cat >> confdefs.h <<\EOF
5359 fi 5402 fi
5360 5403
5361 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5404 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_%'` 5405 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 5406 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5364 echo "configure:5365: checking for X11/Xauth.h" >&5 5407 echo "configure:5408: checking for X11/Xauth.h" >&5
5365 5408
5366 cat > conftest.$ac_ext <<EOF 5409 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure" 5410 #line 5411 "configure"
5368 #include "confdefs.h" 5411 #include "confdefs.h"
5369 #include <X11/Xauth.h> 5412 #include <X11/Xauth.h>
5370 EOF 5413 EOF
5371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5414 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; } 5415 { (eval echo configure:5416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5373 ac_err=`grep -v '^ *+' conftest.out` 5416 ac_err=`grep -v '^ *+' conftest.out`
5374 if test -z "$ac_err"; then 5417 if test -z "$ac_err"; then
5375 rm -rf conftest* 5418 rm -rf conftest*
5376 eval "ac_cv_header_$ac_safe=yes" 5419 eval "ac_cv_header_$ac_safe=yes"
5377 else 5420 else
5390 with_xauth=no 5433 with_xauth=no
5391 fi 5434 fi
5392 } 5435 }
5393 test -z "$with_xauth" && { 5436 test -z "$with_xauth" && {
5394 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5437 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5395 echo "configure:5396: checking for XauGetAuthByAddr in -lXau" >&5 5438 echo "configure:5439: checking for XauGetAuthByAddr in -lXau" >&5
5396 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5439 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5397 5440
5398 xe_check_libs=" -lXau " 5441 xe_check_libs=" -lXau "
5399 cat > conftest.$ac_ext <<EOF 5442 cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure" 5443 #line 5444 "configure"
5401 #include "confdefs.h" 5444 #include "confdefs.h"
5402 /* Override any gcc2 internal prototype to avoid an error. */ 5445 /* Override any gcc2 internal prototype to avoid an error. */
5403 /* We use char because int might match the return type of a gcc2 5446 /* We use char because int might match the return type of a gcc2
5404 builtin and then its argument prototype would still apply. */ 5447 builtin and then its argument prototype would still apply. */
5405 char XauGetAuthByAddr(); 5448 char XauGetAuthByAddr();
5406 5449
5407 int main() { 5450 int main() {
5408 XauGetAuthByAddr() 5451 XauGetAuthByAddr()
5409 ; return 0; } 5452 ; return 0; }
5410 EOF 5453 EOF
5411 if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5454 if { (eval echo configure:5455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5412 rm -rf conftest* 5455 rm -rf conftest*
5413 eval "ac_cv_lib_$ac_lib_var=yes" 5456 eval "ac_cv_lib_$ac_lib_var=yes"
5414 else 5457 else
5415 echo "configure: failed program was:" >&5 5458 echo "configure: failed program was:" >&5
5416 cat conftest.$ac_ext >&5 5459 cat conftest.$ac_ext >&5
5466 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5509 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5467 if test "$with_tooltalk" != "no" ; then 5510 if test "$with_tooltalk" != "no" ; then
5468 for dir in "" "Tt/" "desktop/" ; do 5511 for dir in "" "Tt/" "desktop/" ; do
5469 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5512 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5470 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5513 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5471 echo "configure:5472: checking for ${dir}tt_c.h" >&5 5514 echo "configure:5515: checking for ${dir}tt_c.h" >&5
5472 5515
5473 cat > conftest.$ac_ext <<EOF 5516 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure" 5517 #line 5518 "configure"
5475 #include "confdefs.h" 5518 #include "confdefs.h"
5476 #include <${dir}tt_c.h> 5519 #include <${dir}tt_c.h>
5477 EOF 5520 EOF
5478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5479 { (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5522 { (eval echo configure:5523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5480 ac_err=`grep -v '^ *+' conftest.out` 5523 ac_err=`grep -v '^ *+' conftest.out`
5481 if test -z "$ac_err"; then 5524 if test -z "$ac_err"; then
5482 rm -rf conftest* 5525 rm -rf conftest*
5483 eval "ac_cv_header_$ac_safe=yes" 5526 eval "ac_cv_header_$ac_safe=yes"
5484 else 5527 else
5503 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5546 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5504 5547
5505 xe_msg_checking="for tt_message_create in -ltt" 5548 xe_msg_checking="for tt_message_create in -ltt"
5506 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5549 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5507 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5550 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5508 echo "configure:5509: checking "$xe_msg_checking"" >&5 5551 echo "configure:5552: checking "$xe_msg_checking"" >&5
5509 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5552 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5510 5553
5511 xe_check_libs=" -ltt $extra_libs" 5554 xe_check_libs=" -ltt $extra_libs"
5512 cat > conftest.$ac_ext <<EOF 5555 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure" 5556 #line 5557 "configure"
5514 #include "confdefs.h" 5557 #include "confdefs.h"
5515 /* Override any gcc2 internal prototype to avoid an error. */ 5558 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2 5559 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */ 5560 builtin and then its argument prototype would still apply. */
5518 char tt_message_create(); 5561 char tt_message_create();
5519 5562
5520 int main() { 5563 int main() {
5521 tt_message_create() 5564 tt_message_create()
5522 ; return 0; } 5565 ; return 0; }
5523 EOF 5566 EOF
5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5567 if { (eval echo configure:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5525 rm -rf conftest* 5568 rm -rf conftest*
5526 eval "ac_cv_lib_$ac_lib_var=yes" 5569 eval "ac_cv_lib_$ac_lib_var=yes"
5527 else 5570 else
5528 echo "configure: failed program was:" >&5 5571 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5 5572 cat conftest.$ac_ext >&5
5568 fi 5611 fi
5569 fi 5612 fi
5570 5613
5571 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5614 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5572 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5615 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5573 echo "configure:5574: checking for Dt/Dt.h" >&5 5616 echo "configure:5617: checking for Dt/Dt.h" >&5
5574 5617
5575 cat > conftest.$ac_ext <<EOF 5618 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure" 5619 #line 5620 "configure"
5577 #include "confdefs.h" 5620 #include "confdefs.h"
5578 #include <Dt/Dt.h> 5621 #include <Dt/Dt.h>
5579 EOF 5622 EOF
5580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5581 { (eval echo configure:5582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5624 { (eval echo configure:5625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5582 ac_err=`grep -v '^ *+' conftest.out` 5625 ac_err=`grep -v '^ *+' conftest.out`
5583 if test -z "$ac_err"; then 5626 if test -z "$ac_err"; then
5584 rm -rf conftest* 5627 rm -rf conftest*
5585 eval "ac_cv_header_$ac_safe=yes" 5628 eval "ac_cv_header_$ac_safe=yes"
5586 else 5629 else
5599 with_cde=no 5642 with_cde=no
5600 fi 5643 fi
5601 } 5644 }
5602 test -z "$with_cde" && { 5645 test -z "$with_cde" && {
5603 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5646 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5604 echo "configure:5605: checking for DtDndDragStart in -lDtSvc" >&5 5647 echo "configure:5648: checking for DtDndDragStart in -lDtSvc" >&5
5605 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5648 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5606 5649
5607 xe_check_libs=" -lDtSvc " 5650 xe_check_libs=" -lDtSvc "
5608 cat > conftest.$ac_ext <<EOF 5651 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure" 5652 #line 5653 "configure"
5610 #include "confdefs.h" 5653 #include "confdefs.h"
5611 /* Override any gcc2 internal prototype to avoid an error. */ 5654 /* Override any gcc2 internal prototype to avoid an error. */
5612 /* We use char because int might match the return type of a gcc2 5655 /* We use char because int might match the return type of a gcc2
5613 builtin and then its argument prototype would still apply. */ 5656 builtin and then its argument prototype would still apply. */
5614 char DtDndDragStart(); 5657 char DtDndDragStart();
5615 5658
5616 int main() { 5659 int main() {
5617 DtDndDragStart() 5660 DtDndDragStart()
5618 ; return 0; } 5661 ; return 0; }
5619 EOF 5662 EOF
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5663 if { (eval echo configure:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5621 rm -rf conftest* 5664 rm -rf conftest*
5622 eval "ac_cv_lib_$ac_lib_var=yes" 5665 eval "ac_cv_lib_$ac_lib_var=yes"
5623 else 5666 else
5624 echo "configure: failed program was:" >&5 5667 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5 5668 cat conftest.$ac_ext >&5
5655 5698
5656 5699
5657 if test "$with_x11" = "yes"; then 5700 if test "$with_x11" = "yes"; then
5658 5701
5659 echo "checking for X11 graphics libraries" 1>&6 5702 echo "checking for X11 graphics libraries" 1>&6
5660 echo "configure:5661: checking for X11 graphics libraries" >&5 5703 echo "configure:5704: checking for X11 graphics libraries" >&5
5661 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 5704 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
5662 echo "configure:5663: checking for Xpm - no older than 3.4f" >&5 5705 echo "configure:5706: checking for Xpm - no older than 3.4f" >&5
5663 xe_check_libs=-lXpm 5706 xe_check_libs=-lXpm
5664 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 5707 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure" 5708 #line 5709 "configure"
5666 #include "confdefs.h" 5709 #include "confdefs.h"
5667 #include <X11/xpm.h> 5710 #include <X11/xpm.h>
5668 int main(int c, char **v) { 5711 int main(int c, char **v) {
5669 return c == 1 ? 0 : 5712 return c == 1 ? 0 :
5670 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 5713 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
5671 XpmIncludeVersion < 30406 ? 2 : 5714 XpmIncludeVersion < 30406 ? 2 :
5672 0 ; 5715 0 ;
5673 } 5716 }
5674 EOF 5717 EOF
5675 if { (eval echo configure:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5718 if { (eval echo configure:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5676 then 5719 then
5677 ./conftest foobar; xpm_status=$?; 5720 ./conftest foobar; xpm_status=$?;
5678 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 5721 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
5679 else 5722 else
5680 echo "configure: failed program was:" >&5 5723 echo "configure: failed program was:" >&5
5708 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 5751 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
5709 fi 5752 fi
5710 5753
5711 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 5754 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
5712 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 5755 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
5713 echo "configure:5714: checking for compface.h" >&5 5756 echo "configure:5757: checking for compface.h" >&5
5714 5757
5715 cat > conftest.$ac_ext <<EOF 5758 cat > conftest.$ac_ext <<EOF
5716 #line 5717 "configure" 5759 #line 5760 "configure"
5717 #include "confdefs.h" 5760 #include "confdefs.h"
5718 #include <compface.h> 5761 #include <compface.h>
5719 EOF 5762 EOF
5720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5721 { (eval echo configure:5722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5764 { (eval echo configure:5765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5722 ac_err=`grep -v '^ *+' conftest.out` 5765 ac_err=`grep -v '^ *+' conftest.out`
5723 if test -z "$ac_err"; then 5766 if test -z "$ac_err"; then
5724 rm -rf conftest* 5767 rm -rf conftest*
5725 eval "ac_cv_header_$ac_safe=yes" 5768 eval "ac_cv_header_$ac_safe=yes"
5726 else 5769 else
5739 with_xface=no 5782 with_xface=no
5740 fi 5783 fi
5741 } 5784 }
5742 test -z "$with_xface" && { 5785 test -z "$with_xface" && {
5743 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 5786 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
5744 echo "configure:5745: checking for UnGenFace in -lcompface" >&5 5787 echo "configure:5788: checking for UnGenFace in -lcompface" >&5
5745 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 5788 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
5746 5789
5747 xe_check_libs=" -lcompface " 5790 xe_check_libs=" -lcompface "
5748 cat > conftest.$ac_ext <<EOF 5791 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure" 5792 #line 5793 "configure"
5750 #include "confdefs.h" 5793 #include "confdefs.h"
5751 /* Override any gcc2 internal prototype to avoid an error. */ 5794 /* Override any gcc2 internal prototype to avoid an error. */
5752 /* We use char because int might match the return type of a gcc2 5795 /* We use char because int might match the return type of a gcc2
5753 builtin and then its argument prototype would still apply. */ 5796 builtin and then its argument prototype would still apply. */
5754 char UnGenFace(); 5797 char UnGenFace();
5755 5798
5756 int main() { 5799 int main() {
5757 UnGenFace() 5800 UnGenFace()
5758 ; return 0; } 5801 ; return 0; }
5759 EOF 5802 EOF
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5803 if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5761 rm -rf conftest* 5804 rm -rf conftest*
5762 eval "ac_cv_lib_$ac_lib_var=yes" 5805 eval "ac_cv_lib_$ac_lib_var=yes"
5763 else 5806 else
5764 echo "configure: failed program was:" >&5 5807 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5 5808 cat conftest.$ac_ext >&5
5791 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 5834 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
5792 fi 5835 fi
5793 5836
5794 test "$with_imagick" != "no" && { ac_safe=`echo "magick/magick.h" | sed 'y%./+-%__p_%'` 5837 test "$with_imagick" != "no" && { ac_safe=`echo "magick/magick.h" | sed 'y%./+-%__p_%'`
5795 echo $ac_n "checking for magick/magick.h""... $ac_c" 1>&6 5838 echo $ac_n "checking for magick/magick.h""... $ac_c" 1>&6
5796 echo "configure:5797: checking for magick/magick.h" >&5 5839 echo "configure:5840: checking for magick/magick.h" >&5
5797 5840
5798 cat > conftest.$ac_ext <<EOF 5841 cat > conftest.$ac_ext <<EOF
5799 #line 5800 "configure" 5842 #line 5843 "configure"
5800 #include "confdefs.h" 5843 #include "confdefs.h"
5801 #include <magick/magick.h> 5844 #include <magick/magick.h>
5802 EOF 5845 EOF
5803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5804 { (eval echo configure:5805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5847 { (eval echo configure:5848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5805 ac_err=`grep -v '^ *+' conftest.out` 5848 ac_err=`grep -v '^ *+' conftest.out`
5806 if test -z "$ac_err"; then 5849 if test -z "$ac_err"; then
5807 rm -rf conftest* 5850 rm -rf conftest*
5808 eval "ac_cv_header_$ac_safe=yes" 5851 eval "ac_cv_header_$ac_safe=yes"
5809 else 5852 else
5819 : 5862 :
5820 else 5863 else
5821 echo "$ac_t""no" 1>&6 5864 echo "$ac_t""no" 1>&6
5822 ac_safe=`echo "X11/magick/magick.h" | sed 'y%./+-%__p_%'` 5865 ac_safe=`echo "X11/magick/magick.h" | sed 'y%./+-%__p_%'`
5823 echo $ac_n "checking for X11/magick/magick.h""... $ac_c" 1>&6 5866 echo $ac_n "checking for X11/magick/magick.h""... $ac_c" 1>&6
5824 echo "configure:5825: checking for X11/magick/magick.h" >&5 5867 echo "configure:5868: checking for X11/magick/magick.h" >&5
5825 5868
5826 cat > conftest.$ac_ext <<EOF 5869 cat > conftest.$ac_ext <<EOF
5827 #line 5828 "configure" 5870 #line 5871 "configure"
5828 #include "confdefs.h" 5871 #include "confdefs.h"
5829 #include <X11/magick/magick.h> 5872 #include <X11/magick/magick.h>
5830 EOF 5873 EOF
5831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5832 { (eval echo configure:5833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5875 { (eval echo configure:5876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5833 ac_err=`grep -v '^ *+' conftest.out` 5876 ac_err=`grep -v '^ *+' conftest.out`
5834 if test -z "$ac_err"; then 5877 if test -z "$ac_err"; then
5835 rm -rf conftest* 5878 rm -rf conftest*
5836 eval "ac_cv_header_$ac_safe=yes" 5879 eval "ac_cv_header_$ac_safe=yes"
5837 else 5880 else
5861 } 5904 }
5862 test "$with_imagick" != "no" && { 5905 test "$with_imagick" != "no" && {
5863 imagick_libs="" 5906 imagick_libs=""
5864 5907
5865 echo $ac_n "checking for XDPSPixelsPerPoint in -ldps""... $ac_c" 1>&6 5908 echo $ac_n "checking for XDPSPixelsPerPoint in -ldps""... $ac_c" 1>&6
5866 echo "configure:5867: checking for XDPSPixelsPerPoint in -ldps" >&5 5909 echo "configure:5910: checking for XDPSPixelsPerPoint in -ldps" >&5
5867 ac_lib_var=`echo dps'_'XDPSPixelsPerPoint | sed 'y%./+-%__p_%'` 5910 ac_lib_var=`echo dps'_'XDPSPixelsPerPoint | sed 'y%./+-%__p_%'`
5868 5911
5869 xe_check_libs="-ldpstk -ldps " 5912 xe_check_libs="-ldpstk -ldps "
5870 cat > conftest.$ac_ext <<EOF 5913 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure" 5914 #line 5915 "configure"
5872 #include "confdefs.h" 5915 #include "confdefs.h"
5873 /* Override any gcc2 internal prototype to avoid an error. */ 5916 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2 5917 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */ 5918 builtin and then its argument prototype would still apply. */
5876 char XDPSPixelsPerPoint(); 5919 char XDPSPixelsPerPoint();
5877 5920
5878 int main() { 5921 int main() {
5879 XDPSPixelsPerPoint() 5922 XDPSPixelsPerPoint()
5880 ; return 0; } 5923 ; return 0; }
5881 EOF 5924 EOF
5882 if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5925 if { (eval echo configure:5926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5883 rm -rf conftest* 5926 rm -rf conftest*
5884 eval "ac_cv_lib_$ac_lib_var=yes" 5927 eval "ac_cv_lib_$ac_lib_var=yes"
5885 else 5928 else
5886 echo "configure: failed program was:" >&5 5929 echo "configure: failed program was:" >&5
5887 cat conftest.$ac_ext >&5 5930 cat conftest.$ac_ext >&5
5899 fi 5942 fi
5900 5943
5901 5944
5902 5945
5903 echo $ac_n "checking for FPX_SetToolkitMemoryLimit in -lfpx""... $ac_c" 1>&6 5946 echo $ac_n "checking for FPX_SetToolkitMemoryLimit in -lfpx""... $ac_c" 1>&6
5904 echo "configure:5905: checking for FPX_SetToolkitMemoryLimit in -lfpx" >&5 5947 echo "configure:5948: checking for FPX_SetToolkitMemoryLimit in -lfpx" >&5
5905 ac_lib_var=`echo fpx'_'FPX_SetToolkitMemoryLimit | sed 'y%./+-%__p_%'` 5948 ac_lib_var=`echo fpx'_'FPX_SetToolkitMemoryLimit | sed 'y%./+-%__p_%'`
5906 5949
5907 xe_check_libs=" -lfpx " 5950 xe_check_libs=" -lfpx "
5908 cat > conftest.$ac_ext <<EOF 5951 cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure" 5952 #line 5953 "configure"
5910 #include "confdefs.h" 5953 #include "confdefs.h"
5911 /* Override any gcc2 internal prototype to avoid an error. */ 5954 /* Override any gcc2 internal prototype to avoid an error. */
5912 /* We use char because int might match the return type of a gcc2 5955 /* We use char because int might match the return type of a gcc2
5913 builtin and then its argument prototype would still apply. */ 5956 builtin and then its argument prototype would still apply. */
5914 char FPX_SetToolkitMemoryLimit(); 5957 char FPX_SetToolkitMemoryLimit();
5915 5958
5916 int main() { 5959 int main() {
5917 FPX_SetToolkitMemoryLimit() 5960 FPX_SetToolkitMemoryLimit()
5918 ; return 0; } 5961 ; return 0; }
5919 EOF 5962 EOF
5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5963 if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5921 rm -rf conftest* 5964 rm -rf conftest*
5922 eval "ac_cv_lib_$ac_lib_var=yes" 5965 eval "ac_cv_lib_$ac_lib_var=yes"
5923 else 5966 else
5924 echo "configure: failed program was:" >&5 5967 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5 5968 cat conftest.$ac_ext >&5
5937 fi 5980 fi
5938 5981
5939 5982
5940 5983
5941 echo $ac_n "checking for DF24getdims in -ldf""... $ac_c" 1>&6 5984 echo $ac_n "checking for DF24getdims in -ldf""... $ac_c" 1>&6
5942 echo "configure:5943: checking for DF24getdims in -ldf" >&5 5985 echo "configure:5986: checking for DF24getdims in -ldf" >&5
5943 ac_lib_var=`echo df'_'DF24getdims | sed 'y%./+-%__p_%'` 5986 ac_lib_var=`echo df'_'DF24getdims | sed 'y%./+-%__p_%'`
5944 5987
5945 xe_check_libs=" -ldf " 5988 xe_check_libs=" -ldf "
5946 cat > conftest.$ac_ext <<EOF 5989 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure" 5990 #line 5991 "configure"
5948 #include "confdefs.h" 5991 #include "confdefs.h"
5949 /* Override any gcc2 internal prototype to avoid an error. */ 5992 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2 5993 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */ 5994 builtin and then its argument prototype would still apply. */
5952 char DF24getdims(); 5995 char DF24getdims();
5953 5996
5954 int main() { 5997 int main() {
5955 DF24getdims() 5998 DF24getdims()
5956 ; return 0; } 5999 ; return 0; }
5957 EOF 6000 EOF
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5959 rm -rf conftest* 6002 rm -rf conftest*
5960 eval "ac_cv_lib_$ac_lib_var=yes" 6003 eval "ac_cv_lib_$ac_lib_var=yes"
5961 else 6004 else
5962 echo "configure: failed program was:" >&5 6005 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5 6006 cat conftest.$ac_ext >&5
5975 fi 6018 fi
5976 6019
5977 6020
5978 6021
5979 echo $ac_n "checking for jbg_dec_init in -ljbig""... $ac_c" 1>&6 6022 echo $ac_n "checking for jbg_dec_init in -ljbig""... $ac_c" 1>&6
5980 echo "configure:5981: checking for jbg_dec_init in -ljbig" >&5 6023 echo "configure:6024: checking for jbg_dec_init in -ljbig" >&5
5981 ac_lib_var=`echo jbig'_'jbg_dec_init | sed 'y%./+-%__p_%'` 6024 ac_lib_var=`echo jbig'_'jbg_dec_init | sed 'y%./+-%__p_%'`
5982 6025
5983 xe_check_libs=" -ljbig " 6026 xe_check_libs=" -ljbig "
5984 cat > conftest.$ac_ext <<EOF 6027 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure" 6028 #line 6029 "configure"
5986 #include "confdefs.h" 6029 #include "confdefs.h"
5987 /* Override any gcc2 internal prototype to avoid an error. */ 6030 /* Override any gcc2 internal prototype to avoid an error. */
5988 /* We use char because int might match the return type of a gcc2 6031 /* We use char because int might match the return type of a gcc2
5989 builtin and then its argument prototype would still apply. */ 6032 builtin and then its argument prototype would still apply. */
5990 char jbg_dec_init(); 6033 char jbg_dec_init();
5991 6034
5992 int main() { 6035 int main() {
5993 jbg_dec_init() 6036 jbg_dec_init()
5994 ; return 0; } 6037 ; return 0; }
5995 EOF 6038 EOF
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6039 if { (eval echo configure:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5997 rm -rf conftest* 6040 rm -rf conftest*
5998 eval "ac_cv_lib_$ac_lib_var=yes" 6041 eval "ac_cv_lib_$ac_lib_var=yes"
5999 else 6042 else
6000 echo "configure: failed program was:" >&5 6043 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5 6044 cat conftest.$ac_ext >&5
6013 fi 6056 fi
6014 6057
6015 6058
6016 6059
6017 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 6060 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
6018 echo "configure:6019: checking for jpeg_read_header in -ljpeg" >&5 6061 echo "configure:6062: checking for jpeg_read_header in -ljpeg" >&5
6019 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` 6062 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
6020 6063
6021 xe_check_libs=" -ljpeg " 6064 xe_check_libs=" -ljpeg "
6022 cat > conftest.$ac_ext <<EOF 6065 cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure" 6066 #line 6067 "configure"
6024 #include "confdefs.h" 6067 #include "confdefs.h"
6025 /* Override any gcc2 internal prototype to avoid an error. */ 6068 /* Override any gcc2 internal prototype to avoid an error. */
6026 /* We use char because int might match the return type of a gcc2 6069 /* We use char because int might match the return type of a gcc2
6027 builtin and then its argument prototype would still apply. */ 6070 builtin and then its argument prototype would still apply. */
6028 char jpeg_read_header(); 6071 char jpeg_read_header();
6029 6072
6030 int main() { 6073 int main() {
6031 jpeg_read_header() 6074 jpeg_read_header()
6032 ; return 0; } 6075 ; return 0; }
6033 EOF 6076 EOF
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6077 if { (eval echo configure:6078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6035 rm -rf conftest* 6078 rm -rf conftest*
6036 eval "ac_cv_lib_$ac_lib_var=yes" 6079 eval "ac_cv_lib_$ac_lib_var=yes"
6037 else 6080 else
6038 echo "configure: failed program was:" >&5 6081 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5 6082 cat conftest.$ac_ext >&5
6051 fi 6094 fi
6052 6095
6053 6096
6054 6097
6055 echo $ac_n "checking for OpenMPEG in -lmpeg""... $ac_c" 1>&6 6098 echo $ac_n "checking for OpenMPEG in -lmpeg""... $ac_c" 1>&6
6056 echo "configure:6057: checking for OpenMPEG in -lmpeg" >&5 6099 echo "configure:6100: checking for OpenMPEG in -lmpeg" >&5
6057 ac_lib_var=`echo mpeg'_'OpenMPEG | sed 'y%./+-%__p_%'` 6100 ac_lib_var=`echo mpeg'_'OpenMPEG | sed 'y%./+-%__p_%'`
6058 6101
6059 xe_check_libs=" -lmpeg " 6102 xe_check_libs=" -lmpeg "
6060 cat > conftest.$ac_ext <<EOF 6103 cat > conftest.$ac_ext <<EOF
6061 #line 6062 "configure" 6104 #line 6105 "configure"
6062 #include "confdefs.h" 6105 #include "confdefs.h"
6063 /* Override any gcc2 internal prototype to avoid an error. */ 6106 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2 6107 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */ 6108 builtin and then its argument prototype would still apply. */
6066 char OpenMPEG(); 6109 char OpenMPEG();
6067 6110
6068 int main() { 6111 int main() {
6069 OpenMPEG() 6112 OpenMPEG()
6070 ; return 0; } 6113 ; return 0; }
6071 EOF 6114 EOF
6072 if { (eval echo configure:6073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6073 rm -rf conftest* 6116 rm -rf conftest*
6074 eval "ac_cv_lib_$ac_lib_var=yes" 6117 eval "ac_cv_lib_$ac_lib_var=yes"
6075 else 6118 else
6076 echo "configure: failed program was:" >&5 6119 echo "configure: failed program was:" >&5
6077 cat conftest.$ac_ext >&5 6120 cat conftest.$ac_ext >&5
6089 fi 6132 fi
6090 6133
6091 6134
6092 6135
6093 echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6 6136 echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6
6094 echo "configure:6095: checking for TT_Init_FreeType in -lttf" >&5 6137 echo "configure:6138: checking for TT_Init_FreeType in -lttf" >&5
6095 ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'` 6138 ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'`
6096 6139
6097 xe_check_libs=" -lttf " 6140 xe_check_libs=" -lttf "
6098 cat > conftest.$ac_ext <<EOF 6141 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure" 6142 #line 6143 "configure"
6100 #include "confdefs.h" 6143 #include "confdefs.h"
6101 /* Override any gcc2 internal prototype to avoid an error. */ 6144 /* Override any gcc2 internal prototype to avoid an error. */
6102 /* We use char because int might match the return type of a gcc2 6145 /* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */ 6146 builtin and then its argument prototype would still apply. */
6104 char TT_Init_FreeType(); 6147 char TT_Init_FreeType();
6105 6148
6106 int main() { 6149 int main() {
6107 TT_Init_FreeType() 6150 TT_Init_FreeType()
6108 ; return 0; } 6151 ; return 0; }
6109 EOF 6152 EOF
6110 if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6153 if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6111 rm -rf conftest* 6154 rm -rf conftest*
6112 eval "ac_cv_lib_$ac_lib_var=yes" 6155 eval "ac_cv_lib_$ac_lib_var=yes"
6113 else 6156 else
6114 echo "configure: failed program was:" >&5 6157 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5 6158 cat conftest.$ac_ext >&5
6127 fi 6170 fi
6128 6171
6129 6172
6130 6173
6131 echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6 6174 echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6
6132 echo "configure:6133: checking for png_create_read_struct in -lpng" >&5 6175 echo "configure:6176: checking for png_create_read_struct in -lpng" >&5
6133 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'` 6176 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
6134 6177
6135 xe_check_libs=" -lpng " 6178 xe_check_libs=" -lpng "
6136 cat > conftest.$ac_ext <<EOF 6179 cat > conftest.$ac_ext <<EOF
6137 #line 6138 "configure" 6180 #line 6181 "configure"
6138 #include "confdefs.h" 6181 #include "confdefs.h"
6139 /* Override any gcc2 internal prototype to avoid an error. */ 6182 /* Override any gcc2 internal prototype to avoid an error. */
6140 /* We use char because int might match the return type of a gcc2 6183 /* We use char because int might match the return type of a gcc2
6141 builtin and then its argument prototype would still apply. */ 6184 builtin and then its argument prototype would still apply. */
6142 char png_create_read_struct(); 6185 char png_create_read_struct();
6143 6186
6144 int main() { 6187 int main() {
6145 png_create_read_struct() 6188 png_create_read_struct()
6146 ; return 0; } 6189 ; return 0; }
6147 EOF 6190 EOF
6148 if { (eval echo configure:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6191 if { (eval echo configure:6192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6149 rm -rf conftest* 6192 rm -rf conftest*
6150 eval "ac_cv_lib_$ac_lib_var=yes" 6193 eval "ac_cv_lib_$ac_lib_var=yes"
6151 else 6194 else
6152 echo "configure: failed program was:" >&5 6195 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5 6196 cat conftest.$ac_ext >&5
6163 else 6206 else
6164 echo "$ac_t""no" 1>&6 6207 echo "$ac_t""no" 1>&6
6165 xe_msg_checking="for png_create_read_struct in -lpng" 6208 xe_msg_checking="for png_create_read_struct in -lpng"
6166 test -n "-lz" && xe_msg_checking="$xe_msg_checking using extra libs -lz" 6209 test -n "-lz" && xe_msg_checking="$xe_msg_checking using extra libs -lz"
6167 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6210 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6168 echo "configure:6169: checking "$xe_msg_checking"" >&5 6211 echo "configure:6212: checking "$xe_msg_checking"" >&5
6169 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'` 6212 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
6170 6213
6171 xe_check_libs=" -lpng -lz" 6214 xe_check_libs=" -lpng -lz"
6172 cat > conftest.$ac_ext <<EOF 6215 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure" 6216 #line 6217 "configure"
6174 #include "confdefs.h" 6217 #include "confdefs.h"
6175 /* Override any gcc2 internal prototype to avoid an error. */ 6218 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2 6219 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */ 6220 builtin and then its argument prototype would still apply. */
6178 char png_create_read_struct(); 6221 char png_create_read_struct();
6179 6222
6180 int main() { 6223 int main() {
6181 png_create_read_struct() 6224 png_create_read_struct()
6182 ; return 0; } 6225 ; return 0; }
6183 EOF 6226 EOF
6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6185 rm -rf conftest* 6228 rm -rf conftest*
6186 eval "ac_cv_lib_$ac_lib_var=yes" 6229 eval "ac_cv_lib_$ac_lib_var=yes"
6187 else 6230 else
6188 echo "configure: failed program was:" >&5 6231 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5 6232 cat conftest.$ac_ext >&5
6204 fi 6247 fi
6205 6248
6206 6249
6207 6250
6208 echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6 6251 echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
6209 echo "configure:6210: checking for TIFFOpen in -ltiff" >&5 6252 echo "configure:6253: checking for TIFFOpen in -ltiff" >&5
6210 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'` 6253 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
6211 6254
6212 xe_check_libs=" -ltiff " 6255 xe_check_libs=" -ltiff "
6213 cat > conftest.$ac_ext <<EOF 6256 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure" 6257 #line 6258 "configure"
6215 #include "confdefs.h" 6258 #include "confdefs.h"
6216 /* Override any gcc2 internal prototype to avoid an error. */ 6259 /* Override any gcc2 internal prototype to avoid an error. */
6217 /* We use char because int might match the return type of a gcc2 6260 /* We use char because int might match the return type of a gcc2
6218 builtin and then its argument prototype would still apply. */ 6261 builtin and then its argument prototype would still apply. */
6219 char TIFFOpen(); 6262 char TIFFOpen();
6220 6263
6221 int main() { 6264 int main() {
6222 TIFFOpen() 6265 TIFFOpen()
6223 ; return 0; } 6266 ; return 0; }
6224 EOF 6267 EOF
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6268 if { (eval echo configure:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6226 rm -rf conftest* 6269 rm -rf conftest*
6227 eval "ac_cv_lib_$ac_lib_var=yes" 6270 eval "ac_cv_lib_$ac_lib_var=yes"
6228 else 6271 else
6229 echo "configure: failed program was:" >&5 6272 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5 6273 cat conftest.$ac_ext >&5
6240 else 6283 else
6241 echo "$ac_t""no" 1>&6 6284 echo "$ac_t""no" 1>&6
6242 xe_msg_checking="for TIFFOpen in -ltiff" 6285 xe_msg_checking="for TIFFOpen in -ltiff"
6243 test -n "-ljpeg -lz" && xe_msg_checking="$xe_msg_checking using extra libs -ljpeg -lz" 6286 test -n "-ljpeg -lz" && xe_msg_checking="$xe_msg_checking using extra libs -ljpeg -lz"
6244 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6287 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6245 echo "configure:6246: checking "$xe_msg_checking"" >&5 6288 echo "configure:6289: checking "$xe_msg_checking"" >&5
6246 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'` 6289 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
6247 6290
6248 xe_check_libs=" -ltiff -ljpeg -lz" 6291 xe_check_libs=" -ltiff -ljpeg -lz"
6249 cat > conftest.$ac_ext <<EOF 6292 cat > conftest.$ac_ext <<EOF
6250 #line 6251 "configure" 6293 #line 6294 "configure"
6251 #include "confdefs.h" 6294 #include "confdefs.h"
6252 /* Override any gcc2 internal prototype to avoid an error. */ 6295 /* Override any gcc2 internal prototype to avoid an error. */
6253 /* We use char because int might match the return type of a gcc2 6296 /* We use char because int might match the return type of a gcc2
6254 builtin and then its argument prototype would still apply. */ 6297 builtin and then its argument prototype would still apply. */
6255 char TIFFOpen(); 6298 char TIFFOpen();
6256 6299
6257 int main() { 6300 int main() {
6258 TIFFOpen() 6301 TIFFOpen()
6259 ; return 0; } 6302 ; return 0; }
6260 EOF 6303 EOF
6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6262 rm -rf conftest* 6305 rm -rf conftest*
6263 eval "ac_cv_lib_$ac_lib_var=yes" 6306 eval "ac_cv_lib_$ac_lib_var=yes"
6264 else 6307 else
6265 echo "configure: failed program was:" >&5 6308 echo "configure: failed program was:" >&5
6266 cat conftest.$ac_ext >&5 6309 cat conftest.$ac_ext >&5
6283 6326
6284 libs_x="$libs_x $imagick_libs" && if test "$extra_verbose" = "yes"; then echo " Appending \"$imagick_libs\" to \$libs_x"; fi 6327 libs_x="$libs_x $imagick_libs" && if test "$extra_verbose" = "yes"; then echo " Appending \"$imagick_libs\" to \$libs_x"; fi
6285 } 6328 }
6286 test -z "$with_imagick" && { 6329 test -z "$with_imagick" && {
6287 echo $ac_n "checking for MogrifyImage in -lMagick""... $ac_c" 1>&6 6330 echo $ac_n "checking for MogrifyImage in -lMagick""... $ac_c" 1>&6
6288 echo "configure:6289: checking for MogrifyImage in -lMagick" >&5 6331 echo "configure:6332: checking for MogrifyImage in -lMagick" >&5
6289 ac_lib_var=`echo Magick'_'MogrifyImage | sed 'y%./+-%__p_%'` 6332 ac_lib_var=`echo Magick'_'MogrifyImage | sed 'y%./+-%__p_%'`
6290 6333
6291 xe_check_libs=" -lMagick " 6334 xe_check_libs=" -lMagick "
6292 cat > conftest.$ac_ext <<EOF 6335 cat > conftest.$ac_ext <<EOF
6293 #line 6294 "configure" 6336 #line 6337 "configure"
6294 #include "confdefs.h" 6337 #include "confdefs.h"
6295 /* Override any gcc2 internal prototype to avoid an error. */ 6338 /* Override any gcc2 internal prototype to avoid an error. */
6296 /* We use char because int might match the return type of a gcc2 6339 /* We use char because int might match the return type of a gcc2
6297 builtin and then its argument prototype would still apply. */ 6340 builtin and then its argument prototype would still apply. */
6298 char MogrifyImage(); 6341 char MogrifyImage();
6299 6342
6300 int main() { 6343 int main() {
6301 MogrifyImage() 6344 MogrifyImage()
6302 ; return 0; } 6345 ; return 0; }
6303 EOF 6346 EOF
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6347 if { (eval echo configure:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6305 rm -rf conftest* 6348 rm -rf conftest*
6306 eval "ac_cv_lib_$ac_lib_var=yes" 6349 eval "ac_cv_lib_$ac_lib_var=yes"
6307 else 6350 else
6308 echo "configure: failed program was:" >&5 6351 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5 6352 cat conftest.$ac_ext >&5
6335 libs_x="-lMagick $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lMagick\" to \$libs_x"; fi 6378 libs_x="-lMagick $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lMagick\" to \$libs_x"; fi
6336 fi 6379 fi
6337 6380
6338 6381
6339 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 6382 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
6340 echo "configure:6341: checking for XawScrollbarSetThumb in -lXaw" >&5 6383 echo "configure:6384: checking for XawScrollbarSetThumb in -lXaw" >&5
6341 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 6384 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
6342 6385
6343 xe_check_libs=" -lXaw " 6386 xe_check_libs=" -lXaw "
6344 cat > conftest.$ac_ext <<EOF 6387 cat > conftest.$ac_ext <<EOF
6345 #line 6346 "configure" 6388 #line 6389 "configure"
6346 #include "confdefs.h" 6389 #include "confdefs.h"
6347 /* Override any gcc2 internal prototype to avoid an error. */ 6390 /* Override any gcc2 internal prototype to avoid an error. */
6348 /* We use char because int might match the return type of a gcc2 6391 /* We use char because int might match the return type of a gcc2
6349 builtin and then its argument prototype would still apply. */ 6392 builtin and then its argument prototype would still apply. */
6350 char XawScrollbarSetThumb(); 6393 char XawScrollbarSetThumb();
6351 6394
6352 int main() { 6395 int main() {
6353 XawScrollbarSetThumb() 6396 XawScrollbarSetThumb()
6354 ; return 0; } 6397 ; return 0; }
6355 EOF 6398 EOF
6356 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6399 if { (eval echo configure:6400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6357 rm -rf conftest* 6400 rm -rf conftest*
6358 eval "ac_cv_lib_$ac_lib_var=yes" 6401 eval "ac_cv_lib_$ac_lib_var=yes"
6359 else 6402 else
6360 echo "configure: failed program was:" >&5 6403 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5 6404 cat conftest.$ac_ext >&5
6375 6418
6376 6419
6377 6420
6378 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6421 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6379 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6422 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6380 echo "configure:6381: checking for Xm/Xm.h" >&5 6423 echo "configure:6424: checking for Xm/Xm.h" >&5
6381 6424
6382 cat > conftest.$ac_ext <<EOF 6425 cat > conftest.$ac_ext <<EOF
6383 #line 6384 "configure" 6426 #line 6427 "configure"
6384 #include "confdefs.h" 6427 #include "confdefs.h"
6385 #include <Xm/Xm.h> 6428 #include <Xm/Xm.h>
6386 EOF 6429 EOF
6387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6388 { (eval echo configure:6389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6431 { (eval echo configure:6432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6389 ac_err=`grep -v '^ *+' conftest.out` 6432 ac_err=`grep -v '^ *+' conftest.out`
6390 if test -z "$ac_err"; then 6433 if test -z "$ac_err"; then
6391 rm -rf conftest* 6434 rm -rf conftest*
6392 eval "ac_cv_header_$ac_safe=yes" 6435 eval "ac_cv_header_$ac_safe=yes"
6393 else 6436 else
6400 rm -f conftest* 6443 rm -f conftest*
6401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6402 echo "$ac_t""yes" 1>&6 6445 echo "$ac_t""yes" 1>&6
6403 6446
6404 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6447 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6405 echo "configure:6406: checking for XmStringFree in -lXm" >&5 6448 echo "configure:6449: checking for XmStringFree in -lXm" >&5
6406 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6449 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6407 6450
6408 xe_check_libs=" -lXm " 6451 xe_check_libs=" -lXm "
6409 cat > conftest.$ac_ext <<EOF 6452 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure" 6453 #line 6454 "configure"
6411 #include "confdefs.h" 6454 #include "confdefs.h"
6412 /* Override any gcc2 internal prototype to avoid an error. */ 6455 /* Override any gcc2 internal prototype to avoid an error. */
6413 /* We use char because int might match the return type of a gcc2 6456 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */ 6457 builtin and then its argument prototype would still apply. */
6415 char XmStringFree(); 6458 char XmStringFree();
6416 6459
6417 int main() { 6460 int main() {
6418 XmStringFree() 6461 XmStringFree()
6419 ; return 0; } 6462 ; return 0; }
6420 EOF 6463 EOF
6421 if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6464 if { (eval echo configure:6465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6422 rm -rf conftest* 6465 rm -rf conftest*
6423 eval "ac_cv_lib_$ac_lib_var=yes" 6466 eval "ac_cv_lib_$ac_lib_var=yes"
6424 else 6467 else
6425 echo "configure: failed program was:" >&5 6468 echo "configure: failed program was:" >&5
6426 cat conftest.$ac_ext >&5 6469 cat conftest.$ac_ext >&5
6673 test -z "$with_mule" && with_mule=no 6716 test -z "$with_mule" && with_mule=no
6674 6717
6675 6718
6676 if test "$with_mule" = "yes" ; then 6719 if test "$with_mule" = "yes" ; then
6677 echo "checking for Mule-related features" 1>&6 6720 echo "checking for Mule-related features" 1>&6
6678 echo "configure:6679: checking for Mule-related features" >&5 6721 echo "configure:6722: checking for Mule-related features" >&5
6679 { test "$extra_verbose" = "yes" && cat << \EOF 6722 { test "$extra_verbose" = "yes" && cat << \EOF
6680 Defining MULE 6723 Defining MULE
6681 EOF 6724 EOF
6682 cat >> confdefs.h <<\EOF 6725 cat >> confdefs.h <<\EOF
6683 #define MULE 1 6726 #define MULE 1
6690 6733
6691 for ac_hdr in libintl.h 6734 for ac_hdr in libintl.h
6692 do 6735 do
6693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6695 echo "configure:6696: checking for $ac_hdr" >&5 6738 echo "configure:6739: checking for $ac_hdr" >&5
6696 6739
6697 cat > conftest.$ac_ext <<EOF 6740 cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure" 6741 #line 6742 "configure"
6699 #include "confdefs.h" 6742 #include "confdefs.h"
6700 #include <$ac_hdr> 6743 #include <$ac_hdr>
6701 EOF 6744 EOF
6702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6703 { (eval echo configure:6704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6746 { (eval echo configure:6747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6704 ac_err=`grep -v '^ *+' conftest.out` 6747 ac_err=`grep -v '^ *+' conftest.out`
6705 if test -z "$ac_err"; then 6748 if test -z "$ac_err"; then
6706 rm -rf conftest* 6749 rm -rf conftest*
6707 eval "ac_cv_header_$ac_safe=yes" 6750 eval "ac_cv_header_$ac_safe=yes"
6708 else 6751 else
6729 fi 6772 fi
6730 done 6773 done
6731 6774
6732 6775
6733 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6776 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6734 echo "configure:6735: checking for strerror in -lintl" >&5 6777 echo "configure:6778: checking for strerror in -lintl" >&5
6735 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6778 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6736 6779
6737 xe_check_libs=" -lintl " 6780 xe_check_libs=" -lintl "
6738 cat > conftest.$ac_ext <<EOF 6781 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure" 6782 #line 6783 "configure"
6740 #include "confdefs.h" 6783 #include "confdefs.h"
6741 /* Override any gcc2 internal prototype to avoid an error. */ 6784 /* Override any gcc2 internal prototype to avoid an error. */
6742 /* We use char because int might match the return type of a gcc2 6785 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */ 6786 builtin and then its argument prototype would still apply. */
6744 char strerror(); 6787 char strerror();
6745 6788
6746 int main() { 6789 int main() {
6747 strerror() 6790 strerror()
6748 ; return 0; } 6791 ; return 0; }
6749 EOF 6792 EOF
6750 if { (eval echo configure:6751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6793 if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6751 rm -rf conftest* 6794 rm -rf conftest*
6752 eval "ac_cv_lib_$ac_lib_var=yes" 6795 eval "ac_cv_lib_$ac_lib_var=yes"
6753 else 6796 else
6754 echo "configure: failed program was:" >&5 6797 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5 6798 cat conftest.$ac_ext >&5
6778 fi 6821 fi
6779 6822
6780 6823
6781 6824
6782 echo "checking for Mule input methods" 1>&6 6825 echo "checking for Mule input methods" 1>&6
6783 echo "configure:6784: checking for Mule input methods" >&5 6826 echo "configure:6827: checking for Mule input methods" >&5
6784 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 6827 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6785 case "$with_xim" in "" | "yes" ) 6828 case "$with_xim" in "" | "yes" )
6786 echo "checking for XIM" 1>&6 6829 echo "checking for XIM" 1>&6
6787 echo "configure:6788: checking for XIM" >&5 6830 echo "configure:6831: checking for XIM" >&5
6788 6831
6789 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6832 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6790 echo "configure:6791: checking for XmImMbLookupString in -lXm" >&5 6833 echo "configure:6834: checking for XmImMbLookupString in -lXm" >&5
6791 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6834 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6792 6835
6793 xe_check_libs=" -lXm " 6836 xe_check_libs=" -lXm "
6794 cat > conftest.$ac_ext <<EOF 6837 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure" 6838 #line 6839 "configure"
6796 #include "confdefs.h" 6839 #include "confdefs.h"
6797 /* Override any gcc2 internal prototype to avoid an error. */ 6840 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2 6841 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */ 6842 builtin and then its argument prototype would still apply. */
6800 char XmImMbLookupString(); 6843 char XmImMbLookupString();
6801 6844
6802 int main() { 6845 int main() {
6803 XmImMbLookupString() 6846 XmImMbLookupString()
6804 ; return 0; } 6847 ; return 0; }
6805 EOF 6848 EOF
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6849 if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6807 rm -rf conftest* 6850 rm -rf conftest*
6808 eval "ac_cv_lib_$ac_lib_var=yes" 6851 eval "ac_cv_lib_$ac_lib_var=yes"
6809 else 6852 else
6810 echo "configure: failed program was:" >&5 6853 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5 6854 cat conftest.$ac_ext >&5
6866 fi 6909 fi
6867 fi 6910 fi
6868 6911
6869 if test "$with_xfs" = "yes" ; then 6912 if test "$with_xfs" = "yes" ; then
6870 echo "checking for XFontSet" 1>&6 6913 echo "checking for XFontSet" 1>&6
6871 echo "configure:6872: checking for XFontSet" >&5 6914 echo "configure:6915: checking for XFontSet" >&5
6872 6915
6873 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 6916 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
6874 echo "configure:6875: checking for XmbDrawString in -lX11" >&5 6917 echo "configure:6918: checking for XmbDrawString in -lX11" >&5
6875 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 6918 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6876 6919
6877 xe_check_libs=" -lX11 " 6920 xe_check_libs=" -lX11 "
6878 cat > conftest.$ac_ext <<EOF 6921 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure" 6922 #line 6923 "configure"
6880 #include "confdefs.h" 6923 #include "confdefs.h"
6881 /* Override any gcc2 internal prototype to avoid an error. */ 6924 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2 6925 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */ 6926 builtin and then its argument prototype would still apply. */
6884 char XmbDrawString(); 6927 char XmbDrawString();
6885 6928
6886 int main() { 6929 int main() {
6887 XmbDrawString() 6930 XmbDrawString()
6888 ; return 0; } 6931 ; return 0; }
6889 EOF 6932 EOF
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6891 rm -rf conftest* 6934 rm -rf conftest*
6892 eval "ac_cv_lib_$ac_lib_var=yes" 6935 eval "ac_cv_lib_$ac_lib_var=yes"
6893 else 6936 else
6894 echo "configure: failed program was:" >&5 6937 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5 6938 cat conftest.$ac_ext >&5
6925 fi 6968 fi
6926 fi 6969 fi
6927 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6970 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6928 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6971 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6929 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6972 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6930 echo "configure:6931: checking for wnn/jllib.h" >&5 6973 echo "configure:6974: checking for wnn/jllib.h" >&5
6931 6974
6932 cat > conftest.$ac_ext <<EOF 6975 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure" 6976 #line 6977 "configure"
6934 #include "confdefs.h" 6977 #include "confdefs.h"
6935 #include <wnn/jllib.h> 6978 #include <wnn/jllib.h>
6936 EOF 6979 EOF
6937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6938 { (eval echo configure:6939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6981 { (eval echo configure:6982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6939 ac_err=`grep -v '^ *+' conftest.out` 6982 ac_err=`grep -v '^ *+' conftest.out`
6940 if test -z "$ac_err"; then 6983 if test -z "$ac_err"; then
6941 rm -rf conftest* 6984 rm -rf conftest*
6942 eval "ac_cv_header_$ac_safe=yes" 6985 eval "ac_cv_header_$ac_safe=yes"
6943 else 6986 else
6958 } 7001 }
6959 if test "$with_wnn" != "no"; then 7002 if test "$with_wnn" != "no"; then
6960 for ac_func in crypt 7003 for ac_func in crypt
6961 do 7004 do
6962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6963 echo "configure:6964: checking for $ac_func" >&5 7006 echo "configure:7007: checking for $ac_func" >&5
6964 7007
6965 cat > conftest.$ac_ext <<EOF 7008 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure" 7009 #line 7010 "configure"
6967 #include "confdefs.h" 7010 #include "confdefs.h"
6968 /* System header to define __stub macros and hopefully few prototypes, 7011 /* System header to define __stub macros and hopefully few prototypes,
6969 which can conflict with char $ac_func(); below. */ 7012 which can conflict with char $ac_func(); below. */
6970 #include <assert.h> 7013 #include <assert.h>
6971 /* Override any gcc2 internal prototype to avoid an error. */ 7014 /* Override any gcc2 internal prototype to avoid an error. */
6984 $ac_func(); 7027 $ac_func();
6985 #endif 7028 #endif
6986 7029
6987 ; return 0; } 7030 ; return 0; }
6988 EOF 7031 EOF
6989 if { (eval echo configure:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7032 if { (eval echo configure:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6990 rm -rf conftest* 7033 rm -rf conftest*
6991 eval "ac_cv_func_$ac_func=yes" 7034 eval "ac_cv_func_$ac_func=yes"
6992 else 7035 else
6993 echo "configure: failed program was:" >&5 7036 echo "configure: failed program was:" >&5
6994 cat conftest.$ac_ext >&5 7037 cat conftest.$ac_ext >&5
7013 fi 7056 fi
7014 done 7057 done
7015 7058
7016 test "$ac_cv_func_crypt" != "yes" && { 7059 test "$ac_cv_func_crypt" != "yes" && {
7017 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7060 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7018 echo "configure:7019: checking for crypt in -lcrypt" >&5 7061 echo "configure:7062: checking for crypt in -lcrypt" >&5
7019 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7062 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7020 7063
7021 xe_check_libs=" -lcrypt " 7064 xe_check_libs=" -lcrypt "
7022 cat > conftest.$ac_ext <<EOF 7065 cat > conftest.$ac_ext <<EOF
7023 #line 7024 "configure" 7066 #line 7067 "configure"
7024 #include "confdefs.h" 7067 #include "confdefs.h"
7025 /* Override any gcc2 internal prototype to avoid an error. */ 7068 /* Override any gcc2 internal prototype to avoid an error. */
7026 /* We use char because int might match the return type of a gcc2 7069 /* We use char because int might match the return type of a gcc2
7027 builtin and then its argument prototype would still apply. */ 7070 builtin and then its argument prototype would still apply. */
7028 char crypt(); 7071 char crypt();
7029 7072
7030 int main() { 7073 int main() {
7031 crypt() 7074 crypt()
7032 ; return 0; } 7075 ; return 0; }
7033 EOF 7076 EOF
7034 if { (eval echo configure:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7077 if { (eval echo configure:7078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7035 rm -rf conftest* 7078 rm -rf conftest*
7036 eval "ac_cv_lib_$ac_lib_var=yes" 7079 eval "ac_cv_lib_$ac_lib_var=yes"
7037 else 7080 else
7038 echo "configure: failed program was:" >&5 7081 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5 7082 cat conftest.$ac_ext >&5
7063 7106
7064 } 7107 }
7065 fi 7108 fi
7066 test -z "$with_wnn" && { 7109 test -z "$with_wnn" && {
7067 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7110 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7068 echo "configure:7069: checking for jl_dic_list_e in -lwnn" >&5 7111 echo "configure:7112: checking for jl_dic_list_e in -lwnn" >&5
7069 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7112 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7070 7113
7071 xe_check_libs=" -lwnn " 7114 xe_check_libs=" -lwnn "
7072 cat > conftest.$ac_ext <<EOF 7115 cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure" 7116 #line 7117 "configure"
7074 #include "confdefs.h" 7117 #include "confdefs.h"
7075 /* Override any gcc2 internal prototype to avoid an error. */ 7118 /* Override any gcc2 internal prototype to avoid an error. */
7076 /* We use char because int might match the return type of a gcc2 7119 /* We use char because int might match the return type of a gcc2
7077 builtin and then its argument prototype would still apply. */ 7120 builtin and then its argument prototype would still apply. */
7078 char jl_dic_list_e(); 7121 char jl_dic_list_e();
7079 7122
7080 int main() { 7123 int main() {
7081 jl_dic_list_e() 7124 jl_dic_list_e()
7082 ; return 0; } 7125 ; return 0; }
7083 EOF 7126 EOF
7084 if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7127 if { (eval echo configure:7128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7085 rm -rf conftest* 7128 rm -rf conftest*
7086 eval "ac_cv_lib_$ac_lib_var=yes" 7129 eval "ac_cv_lib_$ac_lib_var=yes"
7087 else 7130 else
7088 echo "configure: failed program was:" >&5 7131 echo "configure: failed program was:" >&5
7089 cat conftest.$ac_ext >&5 7132 cat conftest.$ac_ext >&5
7116 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7159 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7117 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7160 echo " xemacs will be linked with \"mule-wnnfns.o\""
7118 fi 7161 fi
7119 7162
7120 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7163 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7121 echo "configure:7122: checking for jl_fi_dic_list in -lwnn" >&5 7164 echo "configure:7165: checking for jl_fi_dic_list in -lwnn" >&5
7122 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7165 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7123 7166
7124 xe_check_libs=" -lwnn " 7167 xe_check_libs=" -lwnn "
7125 cat > conftest.$ac_ext <<EOF 7168 cat > conftest.$ac_ext <<EOF
7126 #line 7127 "configure" 7169 #line 7170 "configure"
7127 #include "confdefs.h" 7170 #include "confdefs.h"
7128 /* Override any gcc2 internal prototype to avoid an error. */ 7171 /* Override any gcc2 internal prototype to avoid an error. */
7129 /* We use char because int might match the return type of a gcc2 7172 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */ 7173 builtin and then its argument prototype would still apply. */
7131 char jl_fi_dic_list(); 7174 char jl_fi_dic_list();
7132 7175
7133 int main() { 7176 int main() {
7134 jl_fi_dic_list() 7177 jl_fi_dic_list()
7135 ; return 0; } 7178 ; return 0; }
7136 EOF 7179 EOF
7137 if { (eval echo configure:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7138 rm -rf conftest* 7181 rm -rf conftest*
7139 eval "ac_cv_lib_$ac_lib_var=yes" 7182 eval "ac_cv_lib_$ac_lib_var=yes"
7140 else 7183 else
7141 echo "configure: failed program was:" >&5 7184 echo "configure: failed program was:" >&5
7142 cat conftest.$ac_ext >&5 7185 cat conftest.$ac_ext >&5
7164 7207
7165 fi 7208 fi
7166 7209
7167 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7210 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7168 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7211 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7169 echo "configure:7170: checking for canna/RK.h" >&5 7212 echo "configure:7213: checking for canna/RK.h" >&5
7170 7213
7171 cat > conftest.$ac_ext <<EOF 7214 cat > conftest.$ac_ext <<EOF
7172 #line 7173 "configure" 7215 #line 7216 "configure"
7173 #include "confdefs.h" 7216 #include "confdefs.h"
7174 #include <canna/RK.h> 7217 #include <canna/RK.h>
7175 EOF 7218 EOF
7176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7177 { (eval echo configure:7178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7220 { (eval echo configure:7221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7178 ac_err=`grep -v '^ *+' conftest.out` 7221 ac_err=`grep -v '^ *+' conftest.out`
7179 if test -z "$ac_err"; then 7222 if test -z "$ac_err"; then
7180 rm -rf conftest* 7223 rm -rf conftest*
7181 eval "ac_cv_header_$ac_safe=yes" 7224 eval "ac_cv_header_$ac_safe=yes"
7182 else 7225 else
7195 with_canna=no 7238 with_canna=no
7196 fi 7239 fi
7197 } 7240 }
7198 test -z "$with_canna" && { 7241 test -z "$with_canna" && {
7199 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7242 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7200 echo "configure:7201: checking for RkBgnBun in -lRKC" >&5 7243 echo "configure:7244: checking for RkBgnBun in -lRKC" >&5
7201 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7244 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7202 7245
7203 xe_check_libs=" -lRKC " 7246 xe_check_libs=" -lRKC "
7204 cat > conftest.$ac_ext <<EOF 7247 cat > conftest.$ac_ext <<EOF
7205 #line 7206 "configure" 7248 #line 7249 "configure"
7206 #include "confdefs.h" 7249 #include "confdefs.h"
7207 /* Override any gcc2 internal prototype to avoid an error. */ 7250 /* Override any gcc2 internal prototype to avoid an error. */
7208 /* We use char because int might match the return type of a gcc2 7251 /* We use char because int might match the return type of a gcc2
7209 builtin and then its argument prototype would still apply. */ 7252 builtin and then its argument prototype would still apply. */
7210 char RkBgnBun(); 7253 char RkBgnBun();
7211 7254
7212 int main() { 7255 int main() {
7213 RkBgnBun() 7256 RkBgnBun()
7214 ; return 0; } 7257 ; return 0; }
7215 EOF 7258 EOF
7216 if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7259 if { (eval echo configure:7260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7217 rm -rf conftest* 7260 rm -rf conftest*
7218 eval "ac_cv_lib_$ac_lib_var=yes" 7261 eval "ac_cv_lib_$ac_lib_var=yes"
7219 else 7262 else
7220 echo "configure: failed program was:" >&5 7263 echo "configure: failed program was:" >&5
7221 cat conftest.$ac_ext >&5 7264 cat conftest.$ac_ext >&5
7234 fi 7277 fi
7235 7278
7236 } 7279 }
7237 test -z "$with_canna" && { 7280 test -z "$with_canna" && {
7238 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7281 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7239 echo "configure:7240: checking for jrKanjiControl in -lcanna" >&5 7282 echo "configure:7283: checking for jrKanjiControl in -lcanna" >&5
7240 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7283 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7241 7284
7242 xe_check_libs=" -lcanna " 7285 xe_check_libs=" -lcanna "
7243 cat > conftest.$ac_ext <<EOF 7286 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure" 7287 #line 7288 "configure"
7245 #include "confdefs.h" 7288 #include "confdefs.h"
7246 /* Override any gcc2 internal prototype to avoid an error. */ 7289 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2 7290 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */ 7291 builtin and then its argument prototype would still apply. */
7249 char jrKanjiControl(); 7292 char jrKanjiControl();
7250 7293
7251 int main() { 7294 int main() {
7252 jrKanjiControl() 7295 jrKanjiControl()
7253 ; return 0; } 7296 ; return 0; }
7254 EOF 7297 EOF
7255 if { (eval echo configure:7256: \"$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
7256 rm -rf conftest* 7299 rm -rf conftest*
7257 eval "ac_cv_lib_$ac_lib_var=yes" 7300 eval "ac_cv_lib_$ac_lib_var=yes"
7258 else 7301 else
7259 echo "configure: failed program was:" >&5 7302 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5 7303 cat conftest.$ac_ext >&5
7299 7342
7300 if test "$need_motif" = "yes" ; then 7343 if test "$need_motif" = "yes" ; then
7301 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 7344 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
7302 7345
7303 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 7346 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
7304 echo "configure:7305: checking for layout_object_getvalue in -li18n" >&5 7347 echo "configure:7348: checking for layout_object_getvalue in -li18n" >&5
7305 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 7348 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
7306 7349
7307 xe_check_libs=" -li18n " 7350 xe_check_libs=" -li18n "
7308 cat > conftest.$ac_ext <<EOF 7351 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure" 7352 #line 7353 "configure"
7310 #include "confdefs.h" 7353 #include "confdefs.h"
7311 /* Override any gcc2 internal prototype to avoid an error. */ 7354 /* Override any gcc2 internal prototype to avoid an error. */
7312 /* We use char because int might match the return type of a gcc2 7355 /* We use char because int might match the return type of a gcc2
7313 builtin and then its argument prototype would still apply. */ 7356 builtin and then its argument prototype would still apply. */
7314 char layout_object_getvalue(); 7357 char layout_object_getvalue();
7315 7358
7316 int main() { 7359 int main() {
7317 layout_object_getvalue() 7360 layout_object_getvalue()
7318 ; return 0; } 7361 ; return 0; }
7319 EOF 7362 EOF
7320 if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7321 rm -rf conftest* 7364 rm -rf conftest*
7322 eval "ac_cv_lib_$ac_lib_var=yes" 7365 eval "ac_cv_lib_$ac_lib_var=yes"
7323 else 7366 else
7324 echo "configure: failed program was:" >&5 7367 echo "configure: failed program was:" >&5
7325 cat conftest.$ac_ext >&5 7368 cat conftest.$ac_ext >&5
7388 fi 7431 fi
7389 7432
7390 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 7433 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
7391 do 7434 do
7392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7393 echo "configure:7394: checking for $ac_func" >&5 7436 echo "configure:7437: checking for $ac_func" >&5
7394 7437
7395 cat > conftest.$ac_ext <<EOF 7438 cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure" 7439 #line 7440 "configure"
7397 #include "confdefs.h" 7440 #include "confdefs.h"
7398 /* System header to define __stub macros and hopefully few prototypes, 7441 /* System header to define __stub macros and hopefully few prototypes,
7399 which can conflict with char $ac_func(); below. */ 7442 which can conflict with char $ac_func(); below. */
7400 #include <assert.h> 7443 #include <assert.h>
7401 /* Override any gcc2 internal prototype to avoid an error. */ 7444 /* Override any gcc2 internal prototype to avoid an error. */
7414 $ac_func(); 7457 $ac_func();
7415 #endif 7458 #endif
7416 7459
7417 ; return 0; } 7460 ; return 0; }
7418 EOF 7461 EOF
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7462 if { (eval echo configure:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7420 rm -rf conftest* 7463 rm -rf conftest*
7421 eval "ac_cv_func_$ac_func=yes" 7464 eval "ac_cv_func_$ac_func=yes"
7422 else 7465 else
7423 echo "configure: failed program was:" >&5 7466 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5 7467 cat conftest.$ac_ext >&5
7451 fi ;; 7494 fi ;;
7452 * ) 7495 * )
7453 for ac_func in realpath 7496 for ac_func in realpath
7454 do 7497 do
7455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7456 echo "configure:7457: checking for $ac_func" >&5 7499 echo "configure:7500: checking for $ac_func" >&5
7457 7500
7458 cat > conftest.$ac_ext <<EOF 7501 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure" 7502 #line 7503 "configure"
7460 #include "confdefs.h" 7503 #include "confdefs.h"
7461 /* System header to define __stub macros and hopefully few prototypes, 7504 /* System header to define __stub macros and hopefully few prototypes,
7462 which can conflict with char $ac_func(); below. */ 7505 which can conflict with char $ac_func(); below. */
7463 #include <assert.h> 7506 #include <assert.h>
7464 /* Override any gcc2 internal prototype to avoid an error. */ 7507 /* Override any gcc2 internal prototype to avoid an error. */
7477 $ac_func(); 7520 $ac_func();
7478 #endif 7521 #endif
7479 7522
7480 ; return 0; } 7523 ; return 0; }
7481 EOF 7524 EOF
7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7525 if { (eval echo configure:7526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7483 rm -rf conftest* 7526 rm -rf conftest*
7484 eval "ac_cv_func_$ac_func=yes" 7527 eval "ac_cv_func_$ac_func=yes"
7485 else 7528 else
7486 echo "configure: failed program was:" >&5 7529 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5 7530 cat conftest.$ac_ext >&5
7510 echo " xemacs will be linked with \"realpath.o\"" 7553 echo " xemacs will be linked with \"realpath.o\""
7511 fi ;; 7554 fi ;;
7512 esac 7555 esac
7513 7556
7514 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7557 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7515 echo "configure:7516: checking whether netdb declares h_errno" >&5 7558 echo "configure:7559: checking whether netdb declares h_errno" >&5
7516 cat > conftest.$ac_ext <<EOF 7559 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure" 7560 #line 7561 "configure"
7518 #include "confdefs.h" 7561 #include "confdefs.h"
7519 #include <netdb.h> 7562 #include <netdb.h>
7520 int main() { 7563 int main() {
7521 return h_errno; 7564 return h_errno;
7522 ; return 0; } 7565 ; return 0; }
7523 EOF 7566 EOF
7524 if { (eval echo configure:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7567 if { (eval echo configure:7568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7525 rm -rf conftest* 7568 rm -rf conftest*
7526 echo "$ac_t""yes" 1>&6 7569 echo "$ac_t""yes" 1>&6
7527 { test "$extra_verbose" = "yes" && cat << \EOF 7570 { test "$extra_verbose" = "yes" && cat << \EOF
7528 Defining HAVE_H_ERRNO 7571 Defining HAVE_H_ERRNO
7529 EOF 7572 EOF
7539 echo "$ac_t""no" 1>&6 7582 echo "$ac_t""no" 1>&6
7540 fi 7583 fi
7541 rm -f conftest* 7584 rm -f conftest*
7542 7585
7543 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7586 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7544 echo "configure:7545: checking for sigsetjmp" >&5 7587 echo "configure:7588: checking for sigsetjmp" >&5
7545 cat > conftest.$ac_ext <<EOF 7588 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure" 7589 #line 7590 "configure"
7547 #include "confdefs.h" 7590 #include "confdefs.h"
7548 #include <setjmp.h> 7591 #include <setjmp.h>
7549 int main() { 7592 int main() {
7550 sigjmp_buf bar; sigsetjmp (bar, 0); 7593 sigjmp_buf bar; sigsetjmp (bar, 0);
7551 ; return 0; } 7594 ; return 0; }
7552 EOF 7595 EOF
7553 if { (eval echo configure:7554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7596 if { (eval echo configure:7597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7554 rm -rf conftest* 7597 rm -rf conftest*
7555 echo "$ac_t""yes" 1>&6 7598 echo "$ac_t""yes" 1>&6
7556 { test "$extra_verbose" = "yes" && cat << \EOF 7599 { test "$extra_verbose" = "yes" && cat << \EOF
7557 Defining HAVE_SIGSETJMP 7600 Defining HAVE_SIGSETJMP
7558 EOF 7601 EOF
7568 echo "$ac_t""no" 1>&6 7611 echo "$ac_t""no" 1>&6
7569 fi 7612 fi
7570 rm -f conftest* 7613 rm -f conftest*
7571 7614
7572 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7615 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7573 echo "configure:7574: checking whether localtime caches TZ" >&5 7616 echo "configure:7617: checking whether localtime caches TZ" >&5
7574 7617
7575 if test "$ac_cv_func_tzset" = "yes"; then 7618 if test "$ac_cv_func_tzset" = "yes"; then
7576 cat > conftest.$ac_ext <<EOF 7619 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure" 7620 #line 7621 "configure"
7578 #include "confdefs.h" 7621 #include "confdefs.h"
7579 #include <time.h> 7622 #include <time.h>
7580 #if STDC_HEADERS 7623 #if STDC_HEADERS
7581 # include <stdlib.h> 7624 # include <stdlib.h>
7582 #endif 7625 #endif
7607 if (localtime (&now)->tm_hour != hour_unset) 7650 if (localtime (&now)->tm_hour != hour_unset)
7608 exit (1); 7651 exit (1);
7609 exit (0); 7652 exit (0);
7610 } 7653 }
7611 EOF 7654 EOF
7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7655 if { (eval echo configure:7656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7613 then 7656 then
7614 emacs_cv_localtime_cache=no 7657 emacs_cv_localtime_cache=no
7615 else 7658 else
7616 echo "configure: failed program was:" >&5 7659 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5 7660 cat conftest.$ac_ext >&5
7636 7679
7637 fi 7680 fi
7638 7681
7639 if test "$HAVE_TIMEVAL" = "yes"; then 7682 if test "$HAVE_TIMEVAL" = "yes"; then
7640 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7683 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7641 echo "configure:7642: checking whether gettimeofday cannot accept two arguments" >&5 7684 echo "configure:7685: checking whether gettimeofday cannot accept two arguments" >&5
7642 cat > conftest.$ac_ext <<EOF 7685 cat > conftest.$ac_ext <<EOF
7643 #line 7644 "configure" 7686 #line 7687 "configure"
7644 #include "confdefs.h" 7687 #include "confdefs.h"
7645 7688
7646 #ifdef TIME_WITH_SYS_TIME 7689 #ifdef TIME_WITH_SYS_TIME
7647 #include <sys/time.h> 7690 #include <sys/time.h>
7648 #include <time.h> 7691 #include <time.h>
7660 struct timezone dummy; 7703 struct timezone dummy;
7661 gettimeofday (&time, &dummy); 7704 gettimeofday (&time, &dummy);
7662 7705
7663 ; return 0; } 7706 ; return 0; }
7664 EOF 7707 EOF
7665 if { (eval echo configure:7666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7708 if { (eval echo configure:7709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7666 rm -rf conftest* 7709 rm -rf conftest*
7667 echo "$ac_t""no" 1>&6 7710 echo "$ac_t""no" 1>&6
7668 else 7711 else
7669 echo "configure: failed program was:" >&5 7712 echo "configure: failed program was:" >&5
7670 cat conftest.$ac_ext >&5 7713 cat conftest.$ac_ext >&5
7682 rm -f conftest* 7725 rm -f conftest*
7683 fi 7726 fi
7684 7727
7685 7728
7686 echo $ac_n "checking for inline""... $ac_c" 1>&6 7729 echo $ac_n "checking for inline""... $ac_c" 1>&6
7687 echo "configure:7688: checking for inline" >&5 7730 echo "configure:7731: checking for inline" >&5
7688 7731
7689 ac_cv_c_inline=no 7732 ac_cv_c_inline=no
7690 for ac_kw in inline __inline__ __inline; do 7733 for ac_kw in inline __inline__ __inline; do
7691 cat > conftest.$ac_ext <<EOF 7734 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure" 7735 #line 7736 "configure"
7693 #include "confdefs.h" 7736 #include "confdefs.h"
7694 7737
7695 int main() { 7738 int main() {
7696 } $ac_kw foo() { 7739 } $ac_kw foo() {
7697 ; return 0; } 7740 ; return 0; }
7698 EOF 7741 EOF
7699 if { (eval echo configure:7700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7742 if { (eval echo configure:7743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7700 rm -rf conftest* 7743 rm -rf conftest*
7701 ac_cv_c_inline=$ac_kw; break 7744 ac_cv_c_inline=$ac_kw; break
7702 else 7745 else
7703 echo "configure: failed program was:" >&5 7746 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5 7747 cat conftest.$ac_ext >&5
7744 7787
7745 7788
7746 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7789 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7747 # for constant arguments. Useless! 7790 # for constant arguments. Useless!
7748 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7791 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7749 echo "configure:7750: checking for working alloca.h" >&5 7792 echo "configure:7793: checking for working alloca.h" >&5
7750 7793
7751 cat > conftest.$ac_ext <<EOF 7794 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure" 7795 #line 7796 "configure"
7753 #include "confdefs.h" 7796 #include "confdefs.h"
7754 #include <alloca.h> 7797 #include <alloca.h>
7755 int main() { 7798 int main() {
7756 char *p = alloca(2 * sizeof(int)); 7799 char *p = alloca(2 * sizeof(int));
7757 ; return 0; } 7800 ; return 0; }
7758 EOF 7801 EOF
7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7802 if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7760 rm -rf conftest* 7803 rm -rf conftest*
7761 ac_cv_header_alloca_h=yes 7804 ac_cv_header_alloca_h=yes
7762 else 7805 else
7763 echo "configure: failed program was:" >&5 7806 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5 7807 cat conftest.$ac_ext >&5
7778 } 7821 }
7779 7822
7780 fi 7823 fi
7781 7824
7782 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7825 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7783 echo "configure:7784: checking for alloca" >&5 7826 echo "configure:7827: checking for alloca" >&5
7784 7827
7785 cat > conftest.$ac_ext <<EOF 7828 cat > conftest.$ac_ext <<EOF
7786 #line 7787 "configure" 7829 #line 7830 "configure"
7787 #include "confdefs.h" 7830 #include "confdefs.h"
7788 7831
7789 #ifdef __GNUC__ 7832 #ifdef __GNUC__
7790 # define alloca __builtin_alloca 7833 # define alloca __builtin_alloca
7791 #else 7834 #else
7804 7847
7805 int main() { 7848 int main() {
7806 char *p = (char *) alloca(1); 7849 char *p = (char *) alloca(1);
7807 ; return 0; } 7850 ; return 0; }
7808 EOF 7851 EOF
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7852 if { (eval echo configure:7853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7810 rm -rf conftest* 7853 rm -rf conftest*
7811 ac_cv_func_alloca_works=yes 7854 ac_cv_func_alloca_works=yes
7812 else 7855 else
7813 echo "configure: failed program was:" >&5 7856 echo "configure: failed program was:" >&5
7814 cat conftest.$ac_ext >&5 7857 cat conftest.$ac_ext >&5
7843 EOF 7886 EOF
7844 } 7887 }
7845 7888
7846 7889
7847 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7890 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7848 echo "configure:7849: checking whether alloca needs Cray hooks" >&5 7891 echo "configure:7892: checking whether alloca needs Cray hooks" >&5
7849 7892
7850 cat > conftest.$ac_ext <<EOF 7893 cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure" 7894 #line 7895 "configure"
7852 #include "confdefs.h" 7895 #include "confdefs.h"
7853 #if defined(CRAY) && ! defined(CRAY2) 7896 #if defined(CRAY) && ! defined(CRAY2)
7854 webecray 7897 webecray
7855 #else 7898 #else
7856 wenotbecray 7899 wenotbecray
7870 7913
7871 echo "$ac_t""$ac_cv_os_cray" 1>&6 7914 echo "$ac_t""$ac_cv_os_cray" 1>&6
7872 if test $ac_cv_os_cray = yes; then 7915 if test $ac_cv_os_cray = yes; then
7873 for ac_func in _getb67 GETB67 getb67; do 7916 for ac_func in _getb67 GETB67 getb67; do
7874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7875 echo "configure:7876: checking for $ac_func" >&5 7918 echo "configure:7919: checking for $ac_func" >&5
7876 7919
7877 cat > conftest.$ac_ext <<EOF 7920 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure" 7921 #line 7922 "configure"
7879 #include "confdefs.h" 7922 #include "confdefs.h"
7880 /* System header to define __stub macros and hopefully few prototypes, 7923 /* System header to define __stub macros and hopefully few prototypes,
7881 which can conflict with char $ac_func(); below. */ 7924 which can conflict with char $ac_func(); below. */
7882 #include <assert.h> 7925 #include <assert.h>
7883 /* Override any gcc2 internal prototype to avoid an error. */ 7926 /* Override any gcc2 internal prototype to avoid an error. */
7896 $ac_func(); 7939 $ac_func();
7897 #endif 7940 #endif
7898 7941
7899 ; return 0; } 7942 ; return 0; }
7900 EOF 7943 EOF
7901 if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7944 if { (eval echo configure:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7902 rm -rf conftest* 7945 rm -rf conftest*
7903 eval "ac_cv_func_$ac_func=yes" 7946 eval "ac_cv_func_$ac_func=yes"
7904 else 7947 else
7905 echo "configure: failed program was:" >&5 7948 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5 7949 cat conftest.$ac_ext >&5
7926 7969
7927 done 7970 done
7928 fi 7971 fi
7929 7972
7930 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7973 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7931 echo "configure:7932: checking stack direction for C alloca" >&5 7974 echo "configure:7975: checking stack direction for C alloca" >&5
7932 7975
7933 cat > conftest.$ac_ext <<EOF 7976 cat > conftest.$ac_ext <<EOF
7934 #line 7935 "configure" 7977 #line 7978 "configure"
7935 #include "confdefs.h" 7978 #include "confdefs.h"
7936 find_stack_direction () 7979 find_stack_direction ()
7937 { 7980 {
7938 static char *addr = 0; 7981 static char *addr = 0;
7939 auto char dummy; 7982 auto char dummy;
7948 main () 7991 main ()
7949 { 7992 {
7950 exit (find_stack_direction() < 0); 7993 exit (find_stack_direction() < 0);
7951 } 7994 }
7952 EOF 7995 EOF
7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7996 if { (eval echo configure:7997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7954 then 7997 then
7955 ac_cv_c_stack_direction=1 7998 ac_cv_c_stack_direction=1
7956 else 7999 else
7957 echo "configure: failed program was:" >&5 8000 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5 8001 cat conftest.$ac_ext >&5
7976 echo " xemacs will be linked with \"$ALLOCA\"" 8019 echo " xemacs will be linked with \"$ALLOCA\""
7977 fi 8020 fi
7978 8021
7979 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8022 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7980 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8023 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7981 echo "configure:7982: checking for vfork.h" >&5 8024 echo "configure:8025: checking for vfork.h" >&5
7982 8025
7983 cat > conftest.$ac_ext <<EOF 8026 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure" 8027 #line 8028 "configure"
7985 #include "confdefs.h" 8028 #include "confdefs.h"
7986 #include <vfork.h> 8029 #include <vfork.h>
7987 EOF 8030 EOF
7988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7989 { (eval echo configure:7990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8032 { (eval echo configure:8033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7990 ac_err=`grep -v '^ *+' conftest.out` 8033 ac_err=`grep -v '^ *+' conftest.out`
7991 if test -z "$ac_err"; then 8034 if test -z "$ac_err"; then
7992 rm -rf conftest* 8035 rm -rf conftest*
7993 eval "ac_cv_header_$ac_safe=yes" 8036 eval "ac_cv_header_$ac_safe=yes"
7994 else 8037 else
8012 else 8055 else
8013 echo "$ac_t""no" 1>&6 8056 echo "$ac_t""no" 1>&6
8014 fi 8057 fi
8015 8058
8016 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8059 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8017 echo "configure:8018: checking for working vfork" >&5 8060 echo "configure:8061: checking for working vfork" >&5
8018 8061
8019 cat > conftest.$ac_ext <<EOF 8062 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure" 8063 #line 8064 "configure"
8021 #include "confdefs.h" 8064 #include "confdefs.h"
8022 /* Thanks to Paul Eggert for this test. */ 8065 /* Thanks to Paul Eggert for this test. */
8023 #include <stdio.h> 8066 #include <stdio.h>
8024 #include <sys/types.h> 8067 #include <sys/types.h>
8025 #include <sys/stat.h> 8068 #include <sys/stat.h>
8110 || fstat(fileno(stdout), &st) != 0 8153 || fstat(fileno(stdout), &st) != 0
8111 ); 8154 );
8112 } 8155 }
8113 } 8156 }
8114 EOF 8157 EOF
8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8158 if { (eval echo configure:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8116 then 8159 then
8117 ac_cv_func_vfork_works=yes 8160 ac_cv_func_vfork_works=yes
8118 else 8161 else
8119 echo "configure: failed program was:" >&5 8162 echo "configure: failed program was:" >&5
8120 cat conftest.$ac_ext >&5 8163 cat conftest.$ac_ext >&5
8135 8178
8136 fi 8179 fi
8137 8180
8138 8181
8139 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8182 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8140 echo "configure:8141: checking for working strcoll" >&5 8183 echo "configure:8184: checking for working strcoll" >&5
8141 8184
8142 cat > conftest.$ac_ext <<EOF 8185 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure" 8186 #line 8187 "configure"
8144 #include "confdefs.h" 8187 #include "confdefs.h"
8145 #include <string.h> 8188 #include <string.h>
8146 main () 8189 main ()
8147 { 8190 {
8148 exit (strcoll ("abc", "def") >= 0 || 8191 exit (strcoll ("abc", "def") >= 0 ||
8149 strcoll ("ABC", "DEF") >= 0 || 8192 strcoll ("ABC", "DEF") >= 0 ||
8150 strcoll ("123", "456") >= 0); 8193 strcoll ("123", "456") >= 0);
8151 } 8194 }
8152 EOF 8195 EOF
8153 if { (eval echo configure:8154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8196 if { (eval echo configure:8197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8154 then 8197 then
8155 ac_cv_func_strcoll_works=yes 8198 ac_cv_func_strcoll_works=yes
8156 else 8199 else
8157 echo "configure: failed program was:" >&5 8200 echo "configure: failed program was:" >&5
8158 cat conftest.$ac_ext >&5 8201 cat conftest.$ac_ext >&5
8175 8218
8176 8219
8177 for ac_func in getpgrp 8220 for ac_func in getpgrp
8178 do 8221 do
8179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8180 echo "configure:8181: checking for $ac_func" >&5 8223 echo "configure:8224: checking for $ac_func" >&5
8181 8224
8182 cat > conftest.$ac_ext <<EOF 8225 cat > conftest.$ac_ext <<EOF
8183 #line 8184 "configure" 8226 #line 8227 "configure"
8184 #include "confdefs.h" 8227 #include "confdefs.h"
8185 /* System header to define __stub macros and hopefully few prototypes, 8228 /* System header to define __stub macros and hopefully few prototypes,
8186 which can conflict with char $ac_func(); below. */ 8229 which can conflict with char $ac_func(); below. */
8187 #include <assert.h> 8230 #include <assert.h>
8188 /* Override any gcc2 internal prototype to avoid an error. */ 8231 /* Override any gcc2 internal prototype to avoid an error. */
8201 $ac_func(); 8244 $ac_func();
8202 #endif 8245 #endif
8203 8246
8204 ; return 0; } 8247 ; return 0; }
8205 EOF 8248 EOF
8206 if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8249 if { (eval echo configure:8250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8207 rm -rf conftest* 8250 rm -rf conftest*
8208 eval "ac_cv_func_$ac_func=yes" 8251 eval "ac_cv_func_$ac_func=yes"
8209 else 8252 else
8210 echo "configure: failed program was:" >&5 8253 echo "configure: failed program was:" >&5
8211 cat conftest.$ac_ext >&5 8254 cat conftest.$ac_ext >&5
8229 echo "$ac_t""no" 1>&6 8272 echo "$ac_t""no" 1>&6
8230 fi 8273 fi
8231 done 8274 done
8232 8275
8233 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8276 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8234 echo "configure:8235: checking whether getpgrp takes no argument" >&5 8277 echo "configure:8278: checking whether getpgrp takes no argument" >&5
8235 8278
8236 cat > conftest.$ac_ext <<EOF 8279 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure" 8280 #line 8281 "configure"
8238 #include "confdefs.h" 8281 #include "confdefs.h"
8239 8282
8240 /* 8283 /*
8241 * If this system has a BSD-style getpgrp(), 8284 * If this system has a BSD-style getpgrp(),
8242 * which takes a pid argument, exit unsuccessfully. 8285 * which takes a pid argument, exit unsuccessfully.
8287 exit(s>>8); 8330 exit(s>>8);
8288 } 8331 }
8289 } 8332 }
8290 8333
8291 EOF 8334 EOF
8292 if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8293 then 8336 then
8294 ac_cv_func_getpgrp_void=yes 8337 ac_cv_func_getpgrp_void=yes
8295 else 8338 else
8296 echo "configure: failed program was:" >&5 8339 echo "configure: failed program was:" >&5
8297 cat conftest.$ac_ext >&5 8340 cat conftest.$ac_ext >&5
8313 8356
8314 fi 8357 fi
8315 8358
8316 8359
8317 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8360 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8318 echo "configure:8319: checking for working mmap" >&5 8361 echo "configure:8362: checking for working mmap" >&5
8319 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8362 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8320 cat > conftest.$ac_ext <<EOF 8363 cat > conftest.$ac_ext <<EOF
8321 #line 8322 "configure" 8364 #line 8365 "configure"
8322 #include "confdefs.h" 8365 #include "confdefs.h"
8323 #include <stdio.h> 8366 #include <stdio.h>
8324 #include <unistd.h> 8367 #include <unistd.h>
8325 #include <fcntl.h> 8368 #include <fcntl.h>
8326 #include <sys/mman.h> 8369 #include <sys/mman.h>
8349 return 0; 8392 return 0;
8350 perror ("conftest: mmap failed"); 8393 perror ("conftest: mmap failed");
8351 return 1; 8394 return 1;
8352 } 8395 }
8353 EOF 8396 EOF
8354 if { (eval echo configure:8355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8397 if { (eval echo configure:8398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8355 then 8398 then
8356 have_mmap=yes 8399 have_mmap=yes
8357 else 8400 else
8358 echo "configure: failed program was:" >&5 8401 echo "configure: failed program was:" >&5
8359 cat conftest.$ac_ext >&5 8402 cat conftest.$ac_ext >&5
8383 } 8426 }
8384 8427
8385 8428
8386 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8429 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8387 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8430 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8388 echo "configure:8389: checking for termios.h" >&5 8431 echo "configure:8432: checking for termios.h" >&5
8389 8432
8390 cat > conftest.$ac_ext <<EOF 8433 cat > conftest.$ac_ext <<EOF
8391 #line 8392 "configure" 8434 #line 8435 "configure"
8392 #include "confdefs.h" 8435 #include "confdefs.h"
8393 #include <termios.h> 8436 #include <termios.h>
8394 EOF 8437 EOF
8395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8396 { (eval echo configure:8397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8439 { (eval echo configure:8440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8397 ac_err=`grep -v '^ *+' conftest.out` 8440 ac_err=`grep -v '^ *+' conftest.out`
8398 if test -z "$ac_err"; then 8441 if test -z "$ac_err"; then
8399 rm -rf conftest* 8442 rm -rf conftest*
8400 eval "ac_cv_header_$ac_safe=yes" 8443 eval "ac_cv_header_$ac_safe=yes"
8401 else 8444 else
8434 8477
8435 else 8478 else
8436 echo "$ac_t""no" 1>&6 8479 echo "$ac_t""no" 1>&6
8437 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8480 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8438 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8481 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8439 echo "configure:8440: checking for termio.h" >&5 8482 echo "configure:8483: checking for termio.h" >&5
8440 8483
8441 cat > conftest.$ac_ext <<EOF 8484 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure" 8485 #line 8486 "configure"
8443 #include "confdefs.h" 8486 #include "confdefs.h"
8444 #include <termio.h> 8487 #include <termio.h>
8445 EOF 8488 EOF
8446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8447 { (eval echo configure:8448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8490 { (eval echo configure:8491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8448 ac_err=`grep -v '^ *+' conftest.out` 8491 ac_err=`grep -v '^ *+' conftest.out`
8449 if test -z "$ac_err"; then 8492 if test -z "$ac_err"; then
8450 rm -rf conftest* 8493 rm -rf conftest*
8451 eval "ac_cv_header_$ac_safe=yes" 8494 eval "ac_cv_header_$ac_safe=yes"
8452 else 8495 else
8474 fi 8517 fi
8475 8518
8476 8519
8477 8520
8478 echo $ac_n "checking for socket""... $ac_c" 1>&6 8521 echo $ac_n "checking for socket""... $ac_c" 1>&6
8479 echo "configure:8480: checking for socket" >&5 8522 echo "configure:8523: checking for socket" >&5
8480 8523
8481 cat > conftest.$ac_ext <<EOF 8524 cat > conftest.$ac_ext <<EOF
8482 #line 8483 "configure" 8525 #line 8526 "configure"
8483 #include "confdefs.h" 8526 #include "confdefs.h"
8484 /* System header to define __stub macros and hopefully few prototypes, 8527 /* System header to define __stub macros and hopefully few prototypes,
8485 which can conflict with char socket(); below. */ 8528 which can conflict with char socket(); below. */
8486 #include <assert.h> 8529 #include <assert.h>
8487 /* Override any gcc2 internal prototype to avoid an error. */ 8530 /* Override any gcc2 internal prototype to avoid an error. */
8500 socket(); 8543 socket();
8501 #endif 8544 #endif
8502 8545
8503 ; return 0; } 8546 ; return 0; }
8504 EOF 8547 EOF
8505 if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8548 if { (eval echo configure:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8506 rm -rf conftest* 8549 rm -rf conftest*
8507 eval "ac_cv_func_socket=yes" 8550 eval "ac_cv_func_socket=yes"
8508 else 8551 else
8509 echo "configure: failed program was:" >&5 8552 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5 8553 cat conftest.$ac_ext >&5
8515 8558
8516 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8559 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8517 echo "$ac_t""yes" 1>&6 8560 echo "$ac_t""yes" 1>&6
8518 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8561 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8519 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8562 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8520 echo "configure:8521: checking for netinet/in.h" >&5 8563 echo "configure:8564: checking for netinet/in.h" >&5
8521 8564
8522 cat > conftest.$ac_ext <<EOF 8565 cat > conftest.$ac_ext <<EOF
8523 #line 8524 "configure" 8566 #line 8567 "configure"
8524 #include "confdefs.h" 8567 #include "confdefs.h"
8525 #include <netinet/in.h> 8568 #include <netinet/in.h>
8526 EOF 8569 EOF
8527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8528 { (eval echo configure:8529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8571 { (eval echo configure:8572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8529 ac_err=`grep -v '^ *+' conftest.out` 8572 ac_err=`grep -v '^ *+' conftest.out`
8530 if test -z "$ac_err"; then 8573 if test -z "$ac_err"; then
8531 rm -rf conftest* 8574 rm -rf conftest*
8532 eval "ac_cv_header_$ac_safe=yes" 8575 eval "ac_cv_header_$ac_safe=yes"
8533 else 8576 else
8540 rm -f conftest* 8583 rm -f conftest*
8541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8542 echo "$ac_t""yes" 1>&6 8585 echo "$ac_t""yes" 1>&6
8543 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8586 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8544 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8587 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8545 echo "configure:8546: checking for arpa/inet.h" >&5 8588 echo "configure:8589: checking for arpa/inet.h" >&5
8546 8589
8547 cat > conftest.$ac_ext <<EOF 8590 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure" 8591 #line 8592 "configure"
8549 #include "confdefs.h" 8592 #include "confdefs.h"
8550 #include <arpa/inet.h> 8593 #include <arpa/inet.h>
8551 EOF 8594 EOF
8552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8553 { (eval echo configure:8554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8596 { (eval echo configure:8597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8554 ac_err=`grep -v '^ *+' conftest.out` 8597 ac_err=`grep -v '^ *+' conftest.out`
8555 if test -z "$ac_err"; then 8598 if test -z "$ac_err"; then
8556 rm -rf conftest* 8599 rm -rf conftest*
8557 eval "ac_cv_header_$ac_safe=yes" 8600 eval "ac_cv_header_$ac_safe=yes"
8558 else 8601 else
8573 #define HAVE_SOCKETS 1 8616 #define HAVE_SOCKETS 1
8574 EOF 8617 EOF
8575 } 8618 }
8576 8619
8577 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8620 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8578 echo "configure:8579: checking "for sun_len member in struct sockaddr_un"" >&5 8621 echo "configure:8622: checking "for sun_len member in struct sockaddr_un"" >&5
8579 cat > conftest.$ac_ext <<EOF 8622 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure" 8623 #line 8624 "configure"
8581 #include "confdefs.h" 8624 #include "confdefs.h"
8582 8625
8583 #include <sys/types.h> 8626 #include <sys/types.h>
8584 #include <sys/socket.h> 8627 #include <sys/socket.h>
8585 #include <sys/un.h> 8628 #include <sys/un.h>
8586 8629
8587 int main() { 8630 int main() {
8588 static struct sockaddr_un x; x.sun_len = 1; 8631 static struct sockaddr_un x; x.sun_len = 1;
8589 ; return 0; } 8632 ; return 0; }
8590 EOF 8633 EOF
8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8634 if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8592 rm -rf conftest* 8635 rm -rf conftest*
8593 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8636 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8594 Defining HAVE_SOCKADDR_SUN_LEN 8637 Defining HAVE_SOCKADDR_SUN_LEN
8595 EOF 8638 EOF
8596 cat >> confdefs.h <<\EOF 8639 cat >> confdefs.h <<\EOF
8617 echo "$ac_t""no" 1>&6 8660 echo "$ac_t""no" 1>&6
8618 fi 8661 fi
8619 8662
8620 8663
8621 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8664 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8622 echo "configure:8623: checking for msgget" >&5 8665 echo "configure:8666: checking for msgget" >&5
8623 8666
8624 cat > conftest.$ac_ext <<EOF 8667 cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure" 8668 #line 8669 "configure"
8626 #include "confdefs.h" 8669 #include "confdefs.h"
8627 /* System header to define __stub macros and hopefully few prototypes, 8670 /* System header to define __stub macros and hopefully few prototypes,
8628 which can conflict with char msgget(); below. */ 8671 which can conflict with char msgget(); below. */
8629 #include <assert.h> 8672 #include <assert.h>
8630 /* Override any gcc2 internal prototype to avoid an error. */ 8673 /* Override any gcc2 internal prototype to avoid an error. */
8643 msgget(); 8686 msgget();
8644 #endif 8687 #endif
8645 8688
8646 ; return 0; } 8689 ; return 0; }
8647 EOF 8690 EOF
8648 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8691 if { (eval echo configure:8692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8649 rm -rf conftest* 8692 rm -rf conftest*
8650 eval "ac_cv_func_msgget=yes" 8693 eval "ac_cv_func_msgget=yes"
8651 else 8694 else
8652 echo "configure: failed program was:" >&5 8695 echo "configure: failed program was:" >&5
8653 cat conftest.$ac_ext >&5 8696 cat conftest.$ac_ext >&5
8658 8701
8659 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8702 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8660 echo "$ac_t""yes" 1>&6 8703 echo "$ac_t""yes" 1>&6
8661 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8704 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8662 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8705 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8663 echo "configure:8664: checking for sys/ipc.h" >&5 8706 echo "configure:8707: checking for sys/ipc.h" >&5
8664 8707
8665 cat > conftest.$ac_ext <<EOF 8708 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure" 8709 #line 8710 "configure"
8667 #include "confdefs.h" 8710 #include "confdefs.h"
8668 #include <sys/ipc.h> 8711 #include <sys/ipc.h>
8669 EOF 8712 EOF
8670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8671 { (eval echo configure:8672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8714 { (eval echo configure:8715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8672 ac_err=`grep -v '^ *+' conftest.out` 8715 ac_err=`grep -v '^ *+' conftest.out`
8673 if test -z "$ac_err"; then 8716 if test -z "$ac_err"; then
8674 rm -rf conftest* 8717 rm -rf conftest*
8675 eval "ac_cv_header_$ac_safe=yes" 8718 eval "ac_cv_header_$ac_safe=yes"
8676 else 8719 else
8683 rm -f conftest* 8726 rm -f conftest*
8684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8685 echo "$ac_t""yes" 1>&6 8728 echo "$ac_t""yes" 1>&6
8686 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8729 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8687 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8730 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8688 echo "configure:8689: checking for sys/msg.h" >&5 8731 echo "configure:8732: checking for sys/msg.h" >&5
8689 8732
8690 cat > conftest.$ac_ext <<EOF 8733 cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure" 8734 #line 8735 "configure"
8692 #include "confdefs.h" 8735 #include "confdefs.h"
8693 #include <sys/msg.h> 8736 #include <sys/msg.h>
8694 EOF 8737 EOF
8695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8696 { (eval echo configure:8697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8739 { (eval echo configure:8740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8697 ac_err=`grep -v '^ *+' conftest.out` 8740 ac_err=`grep -v '^ *+' conftest.out`
8698 if test -z "$ac_err"; then 8741 if test -z "$ac_err"; then
8699 rm -rf conftest* 8742 rm -rf conftest*
8700 eval "ac_cv_header_$ac_safe=yes" 8743 eval "ac_cv_header_$ac_safe=yes"
8701 else 8744 else
8729 fi 8772 fi
8730 8773
8731 8774
8732 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8775 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8733 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8776 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8734 echo "configure:8735: checking for dirent.h" >&5 8777 echo "configure:8778: checking for dirent.h" >&5
8735 8778
8736 cat > conftest.$ac_ext <<EOF 8779 cat > conftest.$ac_ext <<EOF
8737 #line 8738 "configure" 8780 #line 8781 "configure"
8738 #include "confdefs.h" 8781 #include "confdefs.h"
8739 #include <dirent.h> 8782 #include <dirent.h>
8740 EOF 8783 EOF
8741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8742 { (eval echo configure:8743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8785 { (eval echo configure:8786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8743 ac_err=`grep -v '^ *+' conftest.out` 8786 ac_err=`grep -v '^ *+' conftest.out`
8744 if test -z "$ac_err"; then 8787 if test -z "$ac_err"; then
8745 rm -rf conftest* 8788 rm -rf conftest*
8746 eval "ac_cv_header_$ac_safe=yes" 8789 eval "ac_cv_header_$ac_safe=yes"
8747 else 8790 else
8764 8807
8765 else 8808 else
8766 echo "$ac_t""no" 1>&6 8809 echo "$ac_t""no" 1>&6
8767 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8810 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8768 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8811 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8769 echo "configure:8770: checking for sys/dir.h" >&5 8812 echo "configure:8813: checking for sys/dir.h" >&5
8770 8813
8771 cat > conftest.$ac_ext <<EOF 8814 cat > conftest.$ac_ext <<EOF
8772 #line 8773 "configure" 8815 #line 8816 "configure"
8773 #include "confdefs.h" 8816 #include "confdefs.h"
8774 #include <sys/dir.h> 8817 #include <sys/dir.h>
8775 EOF 8818 EOF
8776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8777 { (eval echo configure:8778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8820 { (eval echo configure:8821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8778 ac_err=`grep -v '^ *+' conftest.out` 8821 ac_err=`grep -v '^ *+' conftest.out`
8779 if test -z "$ac_err"; then 8822 if test -z "$ac_err"; then
8780 rm -rf conftest* 8823 rm -rf conftest*
8781 eval "ac_cv_header_$ac_safe=yes" 8824 eval "ac_cv_header_$ac_safe=yes"
8782 else 8825 else
8805 fi 8848 fi
8806 8849
8807 8850
8808 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8851 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8809 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8852 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8810 echo "configure:8811: checking for nlist.h" >&5 8853 echo "configure:8854: checking for nlist.h" >&5
8811 8854
8812 cat > conftest.$ac_ext <<EOF 8855 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure" 8856 #line 8857 "configure"
8814 #include "confdefs.h" 8857 #include "confdefs.h"
8815 #include <nlist.h> 8858 #include <nlist.h>
8816 EOF 8859 EOF
8817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8818 { (eval echo configure:8819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8861 { (eval echo configure:8862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8819 ac_err=`grep -v '^ *+' conftest.out` 8862 ac_err=`grep -v '^ *+' conftest.out`
8820 if test -z "$ac_err"; then 8863 if test -z "$ac_err"; then
8821 rm -rf conftest* 8864 rm -rf conftest*
8822 eval "ac_cv_header_$ac_safe=yes" 8865 eval "ac_cv_header_$ac_safe=yes"
8823 else 8866 else
8843 fi 8886 fi
8844 8887
8845 8888
8846 8889
8847 echo "checking "for sound support"" 1>&6 8890 echo "checking "for sound support"" 1>&6
8848 echo "configure:8849: checking "for sound support"" >&5 8891 echo "configure:8892: checking "for sound support"" >&5
8849 case "$with_sound" in 8892 case "$with_sound" in
8850 native | both ) with_native_sound=yes;; 8893 native | both ) with_native_sound=yes;;
8851 nas | no ) with_native_sound=no;; 8894 nas | no ) with_native_sound=no;;
8852 esac 8895 esac
8853 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8896 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8854 8897
8855 if test "$with_native_sound" != "no"; then 8898 if test "$with_native_sound" != "no"; then
8856 if test -n "$native_sound_lib"; then 8899 if test -n "$native_sound_lib"; then
8857 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8900 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8858 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8901 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8859 echo "configure:8860: checking for multimedia/audio_device.h" >&5 8902 echo "configure:8903: checking for multimedia/audio_device.h" >&5
8860 8903
8861 cat > conftest.$ac_ext <<EOF 8904 cat > conftest.$ac_ext <<EOF
8862 #line 8863 "configure" 8905 #line 8906 "configure"
8863 #include "confdefs.h" 8906 #include "confdefs.h"
8864 #include <multimedia/audio_device.h> 8907 #include <multimedia/audio_device.h>
8865 EOF 8908 EOF
8866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8867 { (eval echo configure:8868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8910 { (eval echo configure:8911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8868 ac_err=`grep -v '^ *+' conftest.out` 8911 ac_err=`grep -v '^ *+' conftest.out`
8869 if test -z "$ac_err"; then 8912 if test -z "$ac_err"; then
8870 rm -rf conftest* 8913 rm -rf conftest*
8871 eval "ac_cv_header_$ac_safe=yes" 8914 eval "ac_cv_header_$ac_safe=yes"
8872 else 8915 else
8910 case "$canonical" in 8953 case "$canonical" in
8911 *-sgi-* ) 8954 *-sgi-* )
8912 if test -z "$native_sound_lib"; then 8955 if test -z "$native_sound_lib"; then
8913 8956
8914 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8957 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8915 echo "configure:8916: checking for ALopenport in -laudio" >&5 8958 echo "configure:8959: checking for ALopenport in -laudio" >&5
8916 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8959 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8917 8960
8918 xe_check_libs=" -laudio " 8961 xe_check_libs=" -laudio "
8919 cat > conftest.$ac_ext <<EOF 8962 cat > conftest.$ac_ext <<EOF
8920 #line 8921 "configure" 8963 #line 8964 "configure"
8921 #include "confdefs.h" 8964 #include "confdefs.h"
8922 /* Override any gcc2 internal prototype to avoid an error. */ 8965 /* Override any gcc2 internal prototype to avoid an error. */
8923 /* We use char because int might match the return type of a gcc2 8966 /* We use char because int might match the return type of a gcc2
8924 builtin and then its argument prototype would still apply. */ 8967 builtin and then its argument prototype would still apply. */
8925 char ALopenport(); 8968 char ALopenport();
8926 8969
8927 int main() { 8970 int main() {
8928 ALopenport() 8971 ALopenport()
8929 ; return 0; } 8972 ; return 0; }
8930 EOF 8973 EOF
8931 if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8974 if { (eval echo configure:8975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8932 rm -rf conftest* 8975 rm -rf conftest*
8933 eval "ac_cv_lib_$ac_lib_var=yes" 8976 eval "ac_cv_lib_$ac_lib_var=yes"
8934 else 8977 else
8935 echo "configure: failed program was:" >&5 8978 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5 8979 cat conftest.$ac_ext >&5
8957 fi ;; 9000 fi ;;
8958 hppa*-hp-hpux* ) 9001 hppa*-hp-hpux* )
8959 if test -z "$native_sound_lib"; then 9002 if test -z "$native_sound_lib"; then
8960 9003
8961 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 9004 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8962 echo "configure:8963: checking for AOpenAudio in -lAlib" >&5 9005 echo "configure:9006: checking for AOpenAudio in -lAlib" >&5
8963 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 9006 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8964 9007
8965 xe_check_libs=" -lAlib " 9008 xe_check_libs=" -lAlib "
8966 cat > conftest.$ac_ext <<EOF 9009 cat > conftest.$ac_ext <<EOF
8967 #line 8968 "configure" 9010 #line 9011 "configure"
8968 #include "confdefs.h" 9011 #include "confdefs.h"
8969 /* Override any gcc2 internal prototype to avoid an error. */ 9012 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2 9013 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */ 9014 builtin and then its argument prototype would still apply. */
8972 char AOpenAudio(); 9015 char AOpenAudio();
8973 9016
8974 int main() { 9017 int main() {
8975 AOpenAudio() 9018 AOpenAudio()
8976 ; return 0; } 9019 ; return 0; }
8977 EOF 9020 EOF
8978 if { (eval echo configure:8979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9021 if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8979 rm -rf conftest* 9022 rm -rf conftest*
8980 eval "ac_cv_lib_$ac_lib_var=yes" 9023 eval "ac_cv_lib_$ac_lib_var=yes"
8981 else 9024 else
8982 echo "configure: failed program was:" >&5 9025 echo "configure: failed program was:" >&5
8983 cat conftest.$ac_ext >&5 9026 cat conftest.$ac_ext >&5
9011 9054
9012 if test -z "$sound_found"; then 9055 if test -z "$sound_found"; then
9013 for dir in "machine" "sys" "linux"; do 9056 for dir in "machine" "sys" "linux"; do
9014 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9057 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
9015 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9058 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
9016 echo "configure:9017: checking for ${dir}/soundcard.h" >&5 9059 echo "configure:9060: checking for ${dir}/soundcard.h" >&5
9017 9060
9018 cat > conftest.$ac_ext <<EOF 9061 cat > conftest.$ac_ext <<EOF
9019 #line 9020 "configure" 9062 #line 9063 "configure"
9020 #include "confdefs.h" 9063 #include "confdefs.h"
9021 #include <${dir}/soundcard.h> 9064 #include <${dir}/soundcard.h>
9022 EOF 9065 EOF
9023 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"
9024 { (eval echo configure:9025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9067 { (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9025 ac_err=`grep -v '^ *+' conftest.out` 9068 ac_err=`grep -v '^ *+' conftest.out`
9026 if test -z "$ac_err"; then 9069 if test -z "$ac_err"; then
9027 rm -rf conftest* 9070 rm -rf conftest*
9028 eval "ac_cv_header_$ac_safe=yes" 9071 eval "ac_cv_header_$ac_safe=yes"
9029 else 9072 else
9089 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9132 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9090 echo " xemacs will be linked with \"nas.o\"" 9133 echo " xemacs will be linked with \"nas.o\""
9091 fi 9134 fi
9092 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 9135 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
9093 cat > conftest.$ac_ext <<EOF 9136 cat > conftest.$ac_ext <<EOF
9094 #line 9095 "configure" 9137 #line 9138 "configure"
9095 #include "confdefs.h" 9138 #include "confdefs.h"
9096 #include <audio/Xtutil.h> 9139 #include <audio/Xtutil.h>
9097 EOF 9140 EOF
9098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9099 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9142 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9116 9159
9117 test -z "$with_tty" && with_tty=yes 9160 test -z "$with_tty" && with_tty=yes
9118 9161
9119 if test "$with_tty" = "yes" ; then 9162 if test "$with_tty" = "yes" ; then
9120 echo "checking for TTY-related features" 1>&6 9163 echo "checking for TTY-related features" 1>&6
9121 echo "configure:9122: checking for TTY-related features" >&5 9164 echo "configure:9165: checking for TTY-related features" >&5
9122 { test "$extra_verbose" = "yes" && cat << \EOF 9165 { test "$extra_verbose" = "yes" && cat << \EOF
9123 Defining HAVE_TTY 9166 Defining HAVE_TTY
9124 EOF 9167 EOF
9125 cat >> confdefs.h <<\EOF 9168 cat >> confdefs.h <<\EOF
9126 #define HAVE_TTY 1 9169 #define HAVE_TTY 1
9132 fi 9175 fi
9133 9176
9134 if test -z "$with_ncurses"; then 9177 if test -z "$with_ncurses"; then
9135 9178
9136 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9179 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9137 echo "configure:9138: checking for tgetent in -lncurses" >&5 9180 echo "configure:9181: checking for tgetent in -lncurses" >&5
9138 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9181 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9139 9182
9140 xe_check_libs=" -lncurses " 9183 xe_check_libs=" -lncurses "
9141 cat > conftest.$ac_ext <<EOF 9184 cat > conftest.$ac_ext <<EOF
9142 #line 9143 "configure" 9185 #line 9186 "configure"
9143 #include "confdefs.h" 9186 #include "confdefs.h"
9144 /* Override any gcc2 internal prototype to avoid an error. */ 9187 /* Override any gcc2 internal prototype to avoid an error. */
9145 /* We use char because int might match the return type of a gcc2 9188 /* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */ 9189 builtin and then its argument prototype would still apply. */
9147 char tgetent(); 9190 char tgetent();
9148 9191
9149 int main() { 9192 int main() {
9150 tgetent() 9193 tgetent()
9151 ; return 0; } 9194 ; return 0; }
9152 EOF 9195 EOF
9153 if { (eval echo configure:9154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9196 if { (eval echo configure:9197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9154 rm -rf conftest* 9197 rm -rf conftest*
9155 eval "ac_cv_lib_$ac_lib_var=yes" 9198 eval "ac_cv_lib_$ac_lib_var=yes"
9156 else 9199 else
9157 echo "configure: failed program was:" >&5 9200 echo "configure: failed program was:" >&5
9158 cat conftest.$ac_ext >&5 9201 cat conftest.$ac_ext >&5
9181 EOF 9224 EOF
9182 } 9225 }
9183 9226
9184 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9227 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9185 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9228 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9186 echo "configure:9187: checking for ncurses/curses.h" >&5 9229 echo "configure:9230: checking for ncurses/curses.h" >&5
9187 9230
9188 cat > conftest.$ac_ext <<EOF 9231 cat > conftest.$ac_ext <<EOF
9189 #line 9190 "configure" 9232 #line 9233 "configure"
9190 #include "confdefs.h" 9233 #include "confdefs.h"
9191 #include <ncurses/curses.h> 9234 #include <ncurses/curses.h>
9192 EOF 9235 EOF
9193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9194 { (eval echo configure:9195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9237 { (eval echo configure:9238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9195 ac_err=`grep -v '^ *+' conftest.out` 9238 ac_err=`grep -v '^ *+' conftest.out`
9196 if test -z "$ac_err"; then 9239 if test -z "$ac_err"; then
9197 rm -rf conftest* 9240 rm -rf conftest*
9198 eval "ac_cv_header_$ac_safe=yes" 9241 eval "ac_cv_header_$ac_safe=yes"
9199 else 9242 else
9211 echo "$ac_t""no" 1>&6 9254 echo "$ac_t""no" 1>&6
9212 fi 9255 fi
9213 9256
9214 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9257 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9215 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9258 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9216 echo "configure:9217: checking for ncurses/term.h" >&5 9259 echo "configure:9260: checking for ncurses/term.h" >&5
9217 9260
9218 cat > conftest.$ac_ext <<EOF 9261 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure" 9262 #line 9263 "configure"
9220 #include "confdefs.h" 9263 #include "confdefs.h"
9221 #include <ncurses/term.h> 9264 #include <ncurses/term.h>
9222 EOF 9265 EOF
9223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9224 { (eval echo configure:9225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9267 { (eval echo configure:9268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9225 ac_err=`grep -v '^ *+' conftest.out` 9268 ac_err=`grep -v '^ *+' conftest.out`
9226 if test -z "$ac_err"; then 9269 if test -z "$ac_err"; then
9227 rm -rf conftest* 9270 rm -rf conftest*
9228 eval "ac_cv_header_$ac_safe=yes" 9271 eval "ac_cv_header_$ac_safe=yes"
9229 else 9272 else
9249 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9292 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9250 save_c_switch_site="$c_switch_site" 9293 save_c_switch_site="$c_switch_site"
9251 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9294 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9252 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9295 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9253 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9296 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9254 echo "configure:9255: checking for ncurses/curses.h" >&5 9297 echo "configure:9298: checking for ncurses/curses.h" >&5
9255 9298
9256 cat > conftest.$ac_ext <<EOF 9299 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure" 9300 #line 9301 "configure"
9258 #include "confdefs.h" 9301 #include "confdefs.h"
9259 #include <ncurses/curses.h> 9302 #include <ncurses/curses.h>
9260 EOF 9303 EOF
9261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9262 { (eval echo configure:9263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9305 { (eval echo configure:9306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9263 ac_err=`grep -v '^ *+' conftest.out` 9306 ac_err=`grep -v '^ *+' conftest.out`
9264 if test -z "$ac_err"; then 9307 if test -z "$ac_err"; then
9265 rm -rf conftest* 9308 rm -rf conftest*
9266 eval "ac_cv_header_$ac_safe=yes" 9309 eval "ac_cv_header_$ac_safe=yes"
9267 else 9310 else
9292 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9335 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9293 else 9336 else
9294 for lib in curses termlib termcap; do 9337 for lib in curses termlib termcap; do
9295 9338
9296 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9339 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9297 echo "configure:9298: checking for tgetent in -l$lib" >&5 9340 echo "configure:9341: checking for tgetent in -l$lib" >&5
9298 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9341 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9299 9342
9300 xe_check_libs=" -l$lib " 9343 xe_check_libs=" -l$lib "
9301 cat > conftest.$ac_ext <<EOF 9344 cat > conftest.$ac_ext <<EOF
9302 #line 9303 "configure" 9345 #line 9346 "configure"
9303 #include "confdefs.h" 9346 #include "confdefs.h"
9304 /* Override any gcc2 internal prototype to avoid an error. */ 9347 /* Override any gcc2 internal prototype to avoid an error. */
9305 /* We use char because int might match the return type of a gcc2 9348 /* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */ 9349 builtin and then its argument prototype would still apply. */
9307 char tgetent(); 9350 char tgetent();
9308 9351
9309 int main() { 9352 int main() {
9310 tgetent() 9353 tgetent()
9311 ; return 0; } 9354 ; return 0; }
9312 EOF 9355 EOF
9313 if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9356 if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9314 rm -rf conftest* 9357 rm -rf conftest*
9315 eval "ac_cv_lib_$ac_lib_var=yes" 9358 eval "ac_cv_lib_$ac_lib_var=yes"
9316 else 9359 else
9317 echo "configure: failed program was:" >&5 9360 echo "configure: failed program was:" >&5
9318 cat conftest.$ac_ext >&5 9361 cat conftest.$ac_ext >&5
9339 if test -n "$libs_termcap"; then 9382 if test -n "$libs_termcap"; then
9340 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9383 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9341 else 9384 else
9342 9385
9343 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9386 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9344 echo "configure:9345: checking for tgetent in -lcurses" >&5 9387 echo "configure:9388: checking for tgetent in -lcurses" >&5
9345 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9388 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9346 9389
9347 xe_check_libs=" -lcurses " 9390 xe_check_libs=" -lcurses "
9348 cat > conftest.$ac_ext <<EOF 9391 cat > conftest.$ac_ext <<EOF
9349 #line 9350 "configure" 9392 #line 9393 "configure"
9350 #include "confdefs.h" 9393 #include "confdefs.h"
9351 /* Override any gcc2 internal prototype to avoid an error. */ 9394 /* Override any gcc2 internal prototype to avoid an error. */
9352 /* We use char because int might match the return type of a gcc2 9395 /* We use char because int might match the return type of a gcc2
9353 builtin and then its argument prototype would still apply. */ 9396 builtin and then its argument prototype would still apply. */
9354 char tgetent(); 9397 char tgetent();
9355 9398
9356 int main() { 9399 int main() {
9357 tgetent() 9400 tgetent()
9358 ; return 0; } 9401 ; return 0; }
9359 EOF 9402 EOF
9360 if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9403 if { (eval echo configure:9404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9361 rm -rf conftest* 9404 rm -rf conftest*
9362 eval "ac_cv_lib_$ac_lib_var=yes" 9405 eval "ac_cv_lib_$ac_lib_var=yes"
9363 else 9406 else
9364 echo "configure: failed program was:" >&5 9407 echo "configure: failed program was:" >&5
9365 cat conftest.$ac_ext >&5 9408 cat conftest.$ac_ext >&5
9373 echo "$ac_t""yes" 1>&6 9416 echo "$ac_t""yes" 1>&6
9374 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9417 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9375 else 9418 else
9376 echo "$ac_t""no" 1>&6 9419 echo "$ac_t""no" 1>&6
9377 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9420 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9378 echo "configure:9379: checking for tgetent in -ltermcap" >&5 9421 echo "configure:9422: checking for tgetent in -ltermcap" >&5
9379 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9422 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9380 9423
9381 xe_check_libs=" -ltermcap " 9424 xe_check_libs=" -ltermcap "
9382 cat > conftest.$ac_ext <<EOF 9425 cat > conftest.$ac_ext <<EOF
9383 #line 9384 "configure" 9426 #line 9427 "configure"
9384 #include "confdefs.h" 9427 #include "confdefs.h"
9385 /* Override any gcc2 internal prototype to avoid an error. */ 9428 /* Override any gcc2 internal prototype to avoid an error. */
9386 /* We use char because int might match the return type of a gcc2 9429 /* We use char because int might match the return type of a gcc2
9387 builtin and then its argument prototype would still apply. */ 9430 builtin and then its argument prototype would still apply. */
9388 char tgetent(); 9431 char tgetent();
9389 9432
9390 int main() { 9433 int main() {
9391 tgetent() 9434 tgetent()
9392 ; return 0; } 9435 ; return 0; }
9393 EOF 9436 EOF
9394 if { (eval echo configure:9395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9437 if { (eval echo configure:9438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9395 rm -rf conftest* 9438 rm -rf conftest*
9396 eval "ac_cv_lib_$ac_lib_var=yes" 9439 eval "ac_cv_lib_$ac_lib_var=yes"
9397 else 9440 else
9398 echo "configure: failed program was:" >&5 9441 echo "configure: failed program was:" >&5
9399 cat conftest.$ac_ext >&5 9442 cat conftest.$ac_ext >&5
9437 } 9480 }
9438 9481
9439 9482
9440 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9483 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9441 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9484 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9442 echo "configure:9443: checking for gpm.h" >&5 9485 echo "configure:9486: checking for gpm.h" >&5
9443 9486
9444 cat > conftest.$ac_ext <<EOF 9487 cat > conftest.$ac_ext <<EOF
9445 #line 9446 "configure" 9488 #line 9489 "configure"
9446 #include "confdefs.h" 9489 #include "confdefs.h"
9447 #include <gpm.h> 9490 #include <gpm.h>
9448 EOF 9491 EOF
9449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9450 { (eval echo configure:9451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9493 { (eval echo configure:9494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9451 ac_err=`grep -v '^ *+' conftest.out` 9494 ac_err=`grep -v '^ *+' conftest.out`
9452 if test -z "$ac_err"; then 9495 if test -z "$ac_err"; then
9453 rm -rf conftest* 9496 rm -rf conftest*
9454 eval "ac_cv_header_$ac_safe=yes" 9497 eval "ac_cv_header_$ac_safe=yes"
9455 else 9498 else
9468 with_gpm=no 9511 with_gpm=no
9469 fi 9512 fi
9470 } 9513 }
9471 test -z "$with_gpm" && { 9514 test -z "$with_gpm" && {
9472 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9515 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9473 echo "configure:9474: checking for Gpm_Open in -lgpm" >&5 9516 echo "configure:9517: checking for Gpm_Open in -lgpm" >&5
9474 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9517 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9475 9518
9476 xe_check_libs=" -lgpm " 9519 xe_check_libs=" -lgpm "
9477 cat > conftest.$ac_ext <<EOF 9520 cat > conftest.$ac_ext <<EOF
9478 #line 9479 "configure" 9521 #line 9522 "configure"
9479 #include "confdefs.h" 9522 #include "confdefs.h"
9480 /* Override any gcc2 internal prototype to avoid an error. */ 9523 /* Override any gcc2 internal prototype to avoid an error. */
9481 /* We use char because int might match the return type of a gcc2 9524 /* We use char because int might match the return type of a gcc2
9482 builtin and then its argument prototype would still apply. */ 9525 builtin and then its argument prototype would still apply. */
9483 char Gpm_Open(); 9526 char Gpm_Open();
9484 9527
9485 int main() { 9528 int main() {
9486 Gpm_Open() 9529 Gpm_Open()
9487 ; return 0; } 9530 ; return 0; }
9488 EOF 9531 EOF
9489 if { (eval echo configure:9490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9532 if { (eval echo configure:9533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9490 rm -rf conftest* 9533 rm -rf conftest*
9491 eval "ac_cv_lib_$ac_lib_var=yes" 9534 eval "ac_cv_lib_$ac_lib_var=yes"
9492 else 9535 else
9493 echo "configure: failed program was:" >&5 9536 echo "configure: failed program was:" >&5
9494 cat conftest.$ac_ext >&5 9537 cat conftest.$ac_ext >&5
9533 echo " xemacs will be linked with \"event-unixoid.o\"" 9576 echo " xemacs will be linked with \"event-unixoid.o\""
9534 fi 9577 fi
9535 9578
9536 9579
9537 echo "checking for database support" 1>&6 9580 echo "checking for database support" 1>&6
9538 echo "configure:9539: checking for database support" >&5 9581 echo "configure:9582: checking for database support" >&5
9539 9582
9540 if test "$with_database_gnudbm" != "no"; then 9583 if test "$with_database_gnudbm" != "no"; then
9541 9584
9542 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9585 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9543 echo "configure:9544: checking for dbm_open in -lgdbm" >&5 9586 echo "configure:9587: checking for dbm_open in -lgdbm" >&5
9544 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9587 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9545 9588
9546 xe_check_libs=" -lgdbm " 9589 xe_check_libs=" -lgdbm "
9547 cat > conftest.$ac_ext <<EOF 9590 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure" 9591 #line 9592 "configure"
9549 #include "confdefs.h" 9592 #include "confdefs.h"
9550 /* Override any gcc2 internal prototype to avoid an error. */ 9593 /* Override any gcc2 internal prototype to avoid an error. */
9551 /* We use char because int might match the return type of a gcc2 9594 /* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */ 9595 builtin and then its argument prototype would still apply. */
9553 char dbm_open(); 9596 char dbm_open();
9554 9597
9555 int main() { 9598 int main() {
9556 dbm_open() 9599 dbm_open()
9557 ; return 0; } 9600 ; return 0; }
9558 EOF 9601 EOF
9559 if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9602 if { (eval echo configure:9603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9560 rm -rf conftest* 9603 rm -rf conftest*
9561 eval "ac_cv_lib_$ac_lib_var=yes" 9604 eval "ac_cv_lib_$ac_lib_var=yes"
9562 else 9605 else
9563 echo "configure: failed program was:" >&5 9606 echo "configure: failed program was:" >&5
9564 cat conftest.$ac_ext >&5 9607 cat conftest.$ac_ext >&5
9576 fi 9619 fi
9577 9620
9578 9621
9579 if test "$with_database_gnudbm" != "yes"; then 9622 if test "$with_database_gnudbm" != "yes"; then
9580 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9623 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9581 echo "configure:9582: checking for dbm_open" >&5 9624 echo "configure:9625: checking for dbm_open" >&5
9582 9625
9583 cat > conftest.$ac_ext <<EOF 9626 cat > conftest.$ac_ext <<EOF
9584 #line 9585 "configure" 9627 #line 9628 "configure"
9585 #include "confdefs.h" 9628 #include "confdefs.h"
9586 /* System header to define __stub macros and hopefully few prototypes, 9629 /* System header to define __stub macros and hopefully few prototypes,
9587 which can conflict with char dbm_open(); below. */ 9630 which can conflict with char dbm_open(); below. */
9588 #include <assert.h> 9631 #include <assert.h>
9589 /* Override any gcc2 internal prototype to avoid an error. */ 9632 /* Override any gcc2 internal prototype to avoid an error. */
9602 dbm_open(); 9645 dbm_open();
9603 #endif 9646 #endif
9604 9647
9605 ; return 0; } 9648 ; return 0; }
9606 EOF 9649 EOF
9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9650 if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9608 rm -rf conftest* 9651 rm -rf conftest*
9609 eval "ac_cv_func_dbm_open=yes" 9652 eval "ac_cv_func_dbm_open=yes"
9610 else 9653 else
9611 echo "configure: failed program was:" >&5 9654 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5 9655 cat conftest.$ac_ext >&5
9638 fi 9681 fi
9639 fi 9682 fi
9640 9683
9641 if test "$with_database_dbm" != "no"; then 9684 if test "$with_database_dbm" != "no"; then
9642 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9685 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9643 echo "configure:9644: checking for dbm_open" >&5 9686 echo "configure:9687: checking for dbm_open" >&5
9644 9687
9645 cat > conftest.$ac_ext <<EOF 9688 cat > conftest.$ac_ext <<EOF
9646 #line 9647 "configure" 9689 #line 9690 "configure"
9647 #include "confdefs.h" 9690 #include "confdefs.h"
9648 /* System header to define __stub macros and hopefully few prototypes, 9691 /* System header to define __stub macros and hopefully few prototypes,
9649 which can conflict with char dbm_open(); below. */ 9692 which can conflict with char dbm_open(); below. */
9650 #include <assert.h> 9693 #include <assert.h>
9651 /* Override any gcc2 internal prototype to avoid an error. */ 9694 /* Override any gcc2 internal prototype to avoid an error. */
9664 dbm_open(); 9707 dbm_open();
9665 #endif 9708 #endif
9666 9709
9667 ; return 0; } 9710 ; return 0; }
9668 EOF 9711 EOF
9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9712 if { (eval echo configure:9713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9670 rm -rf conftest* 9713 rm -rf conftest*
9671 eval "ac_cv_func_dbm_open=yes" 9714 eval "ac_cv_func_dbm_open=yes"
9672 else 9715 else
9673 echo "configure: failed program was:" >&5 9716 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5 9717 cat conftest.$ac_ext >&5
9685 fi 9728 fi
9686 9729
9687 if test "$need_libdbm" != "no"; then 9730 if test "$need_libdbm" != "no"; then
9688 9731
9689 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9732 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9690 echo "configure:9691: checking for dbm_open in -ldbm" >&5 9733 echo "configure:9734: checking for dbm_open in -ldbm" >&5
9691 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9734 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9692 9735
9693 xe_check_libs=" -ldbm " 9736 xe_check_libs=" -ldbm "
9694 cat > conftest.$ac_ext <<EOF 9737 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure" 9738 #line 9739 "configure"
9696 #include "confdefs.h" 9739 #include "confdefs.h"
9697 /* Override any gcc2 internal prototype to avoid an error. */ 9740 /* Override any gcc2 internal prototype to avoid an error. */
9698 /* We use char because int might match the return type of a gcc2 9741 /* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */ 9742 builtin and then its argument prototype would still apply. */
9700 char dbm_open(); 9743 char dbm_open();
9701 9744
9702 int main() { 9745 int main() {
9703 dbm_open() 9746 dbm_open()
9704 ; return 0; } 9747 ; return 0; }
9705 EOF 9748 EOF
9706 if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9749 if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9707 rm -rf conftest* 9750 rm -rf conftest*
9708 eval "ac_cv_lib_$ac_lib_var=yes" 9751 eval "ac_cv_lib_$ac_lib_var=yes"
9709 else 9752 else
9710 echo "configure: failed program was:" >&5 9753 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5 9754 cat conftest.$ac_ext >&5
9738 fi 9781 fi
9739 fi 9782 fi
9740 9783
9741 if test "$with_database_berkdb" != "no"; then 9784 if test "$with_database_berkdb" != "no"; then
9742 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9785 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9743 echo "configure:9744: checking for dbopen" >&5 9786 echo "configure:9787: checking for dbopen" >&5
9744 9787
9745 cat > conftest.$ac_ext <<EOF 9788 cat > conftest.$ac_ext <<EOF
9746 #line 9747 "configure" 9789 #line 9790 "configure"
9747 #include "confdefs.h" 9790 #include "confdefs.h"
9748 /* System header to define __stub macros and hopefully few prototypes, 9791 /* System header to define __stub macros and hopefully few prototypes,
9749 which can conflict with char dbopen(); below. */ 9792 which can conflict with char dbopen(); below. */
9750 #include <assert.h> 9793 #include <assert.h>
9751 /* Override any gcc2 internal prototype to avoid an error. */ 9794 /* Override any gcc2 internal prototype to avoid an error. */
9764 dbopen(); 9807 dbopen();
9765 #endif 9808 #endif
9766 9809
9767 ; return 0; } 9810 ; return 0; }
9768 EOF 9811 EOF
9769 if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9812 if { (eval echo configure:9813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9770 rm -rf conftest* 9813 rm -rf conftest*
9771 eval "ac_cv_func_dbopen=yes" 9814 eval "ac_cv_func_dbopen=yes"
9772 else 9815 else
9773 echo "configure: failed program was:" >&5 9816 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5 9817 cat conftest.$ac_ext >&5
9785 fi 9828 fi
9786 9829
9787 if test "$need_libdb" != "no"; then 9830 if test "$need_libdb" != "no"; then
9788 9831
9789 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9832 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9790 echo "configure:9791: checking for dbopen in -ldb" >&5 9833 echo "configure:9834: checking for dbopen in -ldb" >&5
9791 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9834 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9792 9835
9793 xe_check_libs=" -ldb " 9836 xe_check_libs=" -ldb "
9794 cat > conftest.$ac_ext <<EOF 9837 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure" 9838 #line 9839 "configure"
9796 #include "confdefs.h" 9839 #include "confdefs.h"
9797 /* Override any gcc2 internal prototype to avoid an error. */ 9840 /* Override any gcc2 internal prototype to avoid an error. */
9798 /* We use char because int might match the return type of a gcc2 9841 /* We use char because int might match the return type of a gcc2
9799 builtin and then its argument prototype would still apply. */ 9842 builtin and then its argument prototype would still apply. */
9800 char dbopen(); 9843 char dbopen();
9801 9844
9802 int main() { 9845 int main() {
9803 dbopen() 9846 dbopen()
9804 ; return 0; } 9847 ; return 0; }
9805 EOF 9848 EOF
9806 if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9849 if { (eval echo configure:9850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9807 rm -rf conftest* 9850 rm -rf conftest*
9808 eval "ac_cv_lib_$ac_lib_var=yes" 9851 eval "ac_cv_lib_$ac_lib_var=yes"
9809 else 9852 else
9810 echo "configure: failed program was:" >&5 9853 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5 9854 cat conftest.$ac_ext >&5
9825 9868
9826 fi 9869 fi
9827 if test "$with_database_berkdb" = "yes"; then 9870 if test "$with_database_berkdb" = "yes"; then
9828 for path in "db/db.h" "db.h"; do 9871 for path in "db/db.h" "db.h"; do
9829 cat > conftest.$ac_ext <<EOF 9872 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure" 9873 #line 9874 "configure"
9831 #include "confdefs.h" 9874 #include "confdefs.h"
9832 #ifdef HAVE_INTTYPES_H 9875 #ifdef HAVE_INTTYPES_H
9833 #define __BIT_TYPES_DEFINED__ 9876 #define __BIT_TYPES_DEFINED__
9834 #include <inttypes.h> 9877 #include <inttypes.h>
9835 typedef uint8_t u_int8_t; 9878 typedef uint8_t u_int8_t;
9843 9886
9844 int main() { 9887 int main() {
9845 9888
9846 ; return 0; } 9889 ; return 0; }
9847 EOF 9890 EOF
9848 if { (eval echo configure:9849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9891 if { (eval echo configure:9892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9849 rm -rf conftest* 9892 rm -rf conftest*
9850 db_h_path="$path"; break 9893 db_h_path="$path"; break
9851 else 9894 else
9852 echo "configure: failed program was:" >&5 9895 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5 9896 cat conftest.$ac_ext >&5
9895 fi 9938 fi
9896 9939
9897 if test "$with_socks" = "yes"; then 9940 if test "$with_socks" = "yes"; then
9898 9941
9899 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9942 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9900 echo "configure:9901: checking for SOCKSinit in -lsocks" >&5 9943 echo "configure:9944: checking for SOCKSinit in -lsocks" >&5
9901 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9944 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9902 9945
9903 xe_check_libs=" -lsocks " 9946 xe_check_libs=" -lsocks "
9904 cat > conftest.$ac_ext <<EOF 9947 cat > conftest.$ac_ext <<EOF
9905 #line 9906 "configure" 9948 #line 9949 "configure"
9906 #include "confdefs.h" 9949 #include "confdefs.h"
9907 /* Override any gcc2 internal prototype to avoid an error. */ 9950 /* Override any gcc2 internal prototype to avoid an error. */
9908 /* We use char because int might match the return type of a gcc2 9951 /* We use char because int might match the return type of a gcc2
9909 builtin and then its argument prototype would still apply. */ 9952 builtin and then its argument prototype would still apply. */
9910 char SOCKSinit(); 9953 char SOCKSinit();
9911 9954
9912 int main() { 9955 int main() {
9913 SOCKSinit() 9956 SOCKSinit()
9914 ; return 0; } 9957 ; return 0; }
9915 EOF 9958 EOF
9916 if { (eval echo configure:9917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9959 if { (eval echo configure:9960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9917 rm -rf conftest* 9960 rm -rf conftest*
9918 eval "ac_cv_lib_$ac_lib_var=yes" 9961 eval "ac_cv_lib_$ac_lib_var=yes"
9919 else 9962 else
9920 echo "configure: failed program was:" >&5 9963 echo "configure: failed program was:" >&5
9921 cat conftest.$ac_ext >&5 9964 cat conftest.$ac_ext >&5