comparison configure @ 265:8efd647ea9ca r20-5b31

Import from CVS: tag r20-5b31
author cvs
date Mon, 13 Aug 2007 10:25:37 +0200
parents 727739f917cb
children 966663fcf606
comparison
equal deleted inserted replaced
264:682d2a9d41a5 265:8efd647ea9ca
246 rel_alloc='default' 246 rel_alloc='default'
247 with_system_malloc='default' 247 with_system_malloc='default'
248 with_dlmalloc='default' 248 with_dlmalloc='default'
249 native_sound_lib='' 249 native_sound_lib=''
250 use_assertions="yes" 250 use_assertions="yes"
251 with_gif=""
252 with_toolbars="" 251 with_toolbars=""
253 with_tty="" 252 with_tty=""
254 use_union_type="no" 253 use_union_type="no"
255 with_dnet="" 254 with_dnet=""
256 255
397 * ) (echo "$progname: Usage error:" 396 * ) (echo "$progname: Usage error:"
398 echo " " "The \`--$optname' option requires one of these values: 397 echo " " "The \`--$optname' option requires one of these values:
399 \`yes', \`no', or \`default'." 398 \`yes', \`no', or \`default'."
400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 399 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
401 esac 400 esac
402 case "$opt" in use_* ) opt="`echo $opt | sed /use/with/`" ;; esac 401 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
403 eval "$opt=\"$val\"" 402 eval "$opt=\"$val\""
404 ;; 403 ;;
405 404
406 "with_database" ) 405 "with_database" )
407 with_database_berkdb=no 406 with_database_berkdb=no
641 ;; 640 ;;
642 esac 641 esac
643 642
644 if test -z "$configuration"; then 643 if test -z "$configuration"; then
645 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 644 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
646 echo "configure:647: checking "host system type"" >&5 645 echo "configure:646: checking "host system type"" >&5
647 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \ 646 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
648 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then 647 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
649 echo "$ac_t""$configuration" 1>&6 648 echo "$ac_t""$configuration" 1>&6
650 else 649 else
651 echo "$ac_t""unknown" 1>&6 650 echo "$ac_t""unknown" 1>&6
655 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 654 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
656 fi 655 fi
657 fi 656 fi
658 657
659 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 658 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
660 echo "configure:661: checking whether ln -s works" >&5 659 echo "configure:660: checking whether ln -s works" >&5
661 660
662 rm -f conftestdata 661 rm -f conftestdata
663 if ln -s X conftestdata 2>/dev/null 662 if ln -s X conftestdata 2>/dev/null
664 then 663 then
665 rm -f conftestdata 664 rm -f conftestdata
832 } 831 }
833 832
834 833
835 834
836 echo "checking "the configuration name"" 1>&6 835 echo "checking "the configuration name"" 1>&6
837 echo "configure:838: checking "the configuration name"" >&5 836 echo "configure:837: checking "the configuration name"" >&5
838 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 837 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
839 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 838 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
840 exit $? 839 exit $?
841 fi 840 fi
842 841
1279 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then 1278 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
1280 echo " xemacs will be linked with \"filelock.o\"" 1279 echo " xemacs will be linked with \"filelock.o\""
1281 fi 1280 fi
1282 fi 1281 fi
1283 1282
1284
1285 test -n "$compiler" && CC="$compiler" 1283 test -n "$compiler" && CC="$compiler"
1286 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac 1284 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
1287 fi 1285 fi
1288 1286
1289 test "$cflags" != "UNSPECIFIED" && CFLAGS="$cflags" 1287 test "$cflags" != "UNSPECIFIED" && CFLAGS="$cflags"
1290 xe_save_CFLAGS="$CFLAGS" 1288 xe_save_CFLAGS="$CFLAGS"
1291 1289
1292 # Extract the first word of "gcc", so it can be a program name with args. 1290 # Extract the first word of "gcc", so it can be a program name with args.
1293 set dummy gcc; ac_word=$2 1291 set dummy gcc; ac_word=$2
1294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_word" >&5 1293 echo "configure:1294: checking for $ac_word" >&5
1296 1294
1297 if test -n "$CC"; then 1295 if test -n "$CC"; then
1298 ac_cv_prog_CC="$CC" # Let the user override the test. 1296 ac_cv_prog_CC="$CC" # Let the user override the test.
1299 else 1297 else
1300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1316 1314
1317 if test -z "$CC"; then 1315 if test -z "$CC"; then
1318 # Extract the first word of "cc", so it can be a program name with args. 1316 # Extract the first word of "cc", so it can be a program name with args.
1319 set dummy cc; ac_word=$2 1317 set dummy cc; ac_word=$2
1320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1321 echo "configure:1322: checking for $ac_word" >&5 1319 echo "configure:1320: checking for $ac_word" >&5
1322 1320
1323 if test -n "$CC"; then 1321 if test -n "$CC"; then
1324 ac_cv_prog_CC="$CC" # Let the user override the test. 1322 ac_cv_prog_CC="$CC" # Let the user override the test.
1325 else 1323 else
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1361 1359
1362 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1360 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1363 fi 1361 fi
1364 1362
1365 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1363 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1366 echo "configure:1367: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1364 echo "configure:1365: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1367 1365
1368 ac_ext=c 1366 ac_ext=c
1369 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1367 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1370 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1368 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1371 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1369 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1373 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1371 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1374 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1372 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1375 cross_compiling=no 1373 cross_compiling=no
1376 1374
1377 cat > conftest.$ac_ext <<EOF 1375 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure" 1376 #line 1377 "configure"
1379 #include "confdefs.h" 1377 #include "confdefs.h"
1380 main(){return(0);} 1378 main(){return(0);}
1381 EOF 1379 EOF
1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1380 if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1383 ac_cv_prog_cc_works=yes 1381 ac_cv_prog_cc_works=yes
1384 # If we can't run a trivial program, we are probably using a cross compiler. 1382 # If we can't run a trivial program, we are probably using a cross compiler.
1385 if (./conftest; exit) 2>/dev/null; then 1383 if (./conftest; exit) 2>/dev/null; then
1386 ac_cv_prog_cc_cross=no 1384 ac_cv_prog_cc_cross=no
1387 else 1385 else
1397 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1395 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1398 if test $ac_cv_prog_cc_works = no; then 1396 if test $ac_cv_prog_cc_works = no; then
1399 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1397 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1400 fi 1398 fi
1401 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1399 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1400 echo "configure:1401: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1403 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1401 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1404 cross_compiling=$ac_cv_prog_cc_cross 1402 cross_compiling=$ac_cv_prog_cc_cross
1405 1403
1406 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1404 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1407 echo "configure:1408: checking whether we are using GNU C" >&5 1405 echo "configure:1406: checking whether we are using GNU C" >&5
1408 1406
1409 cat > conftest.c <<EOF 1407 cat > conftest.c <<EOF
1410 #ifdef __GNUC__ 1408 #ifdef __GNUC__
1411 yes; 1409 yes;
1412 #endif 1410 #endif
1413 EOF 1411 EOF
1414 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1412 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1415 ac_cv_prog_gcc=yes 1413 ac_cv_prog_gcc=yes
1416 else 1414 else
1417 ac_cv_prog_gcc=no 1415 ac_cv_prog_gcc=no
1418 fi 1416 fi
1419 1417
1423 GCC=yes 1421 GCC=yes
1424 ac_test_CFLAGS="${CFLAGS+set}" 1422 ac_test_CFLAGS="${CFLAGS+set}"
1425 ac_save_CFLAGS="$CFLAGS" 1423 ac_save_CFLAGS="$CFLAGS"
1426 CFLAGS= 1424 CFLAGS=
1427 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1425 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether ${CC-cc} accepts -g" >&5 1426 echo "configure:1427: checking whether ${CC-cc} accepts -g" >&5
1429 1427
1430 echo 'void f(){}' > conftest.c 1428 echo 'void f(){}' > conftest.c
1431 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1429 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1432 ac_cv_prog_cc_g=yes 1430 ac_cv_prog_cc_g=yes
1433 else 1431 else
1452 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1450 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1453 CC=${NON_GNU_CC-cc} 1451 CC=${NON_GNU_CC-cc}
1454 # Extract the first word of "gcc", so it can be a program name with args. 1452 # Extract the first word of "gcc", so it can be a program name with args.
1455 set dummy gcc; ac_word=$2 1453 set dummy gcc; ac_word=$2
1456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_word" >&5 1455 echo "configure:1456: checking for $ac_word" >&5
1458 1456
1459 if test -n "$CC"; then 1457 if test -n "$CC"; then
1460 ac_cv_prog_CC="$CC" # Let the user override the test. 1458 ac_cv_prog_CC="$CC" # Let the user override the test.
1461 else 1459 else
1462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1478 1476
1479 if test -z "$CC"; then 1477 if test -z "$CC"; then
1480 # Extract the first word of "cc", so it can be a program name with args. 1478 # Extract the first word of "cc", so it can be a program name with args.
1481 set dummy cc; ac_word=$2 1479 set dummy cc; ac_word=$2
1482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1480 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1483 echo "configure:1484: checking for $ac_word" >&5 1481 echo "configure:1482: checking for $ac_word" >&5
1484 1482
1485 if test -n "$CC"; then 1483 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test. 1484 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 else 1485 else
1488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1523 1521
1524 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1522 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1525 fi 1523 fi
1526 1524
1527 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1525 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1528 echo "configure:1529: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1526 echo "configure:1527: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1529 1527
1530 ac_ext=c 1528 ac_ext=c
1531 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1529 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1532 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1530 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1533 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1531 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1535 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1533 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1536 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1534 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1537 cross_compiling=no 1535 cross_compiling=no
1538 1536
1539 cat > conftest.$ac_ext <<EOF 1537 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure" 1538 #line 1539 "configure"
1541 #include "confdefs.h" 1539 #include "confdefs.h"
1542 main(){return(0);} 1540 main(){return(0);}
1543 EOF 1541 EOF
1544 if { (eval echo configure:1545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1542 if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1545 ac_cv_prog_cc_works=yes 1543 ac_cv_prog_cc_works=yes
1546 # If we can't run a trivial program, we are probably using a cross compiler. 1544 # If we can't run a trivial program, we are probably using a cross compiler.
1547 if (./conftest; exit) 2>/dev/null; then 1545 if (./conftest; exit) 2>/dev/null; then
1548 ac_cv_prog_cc_cross=no 1546 ac_cv_prog_cc_cross=no
1549 else 1547 else
1559 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1557 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1560 if test $ac_cv_prog_cc_works = no; then 1558 if test $ac_cv_prog_cc_works = no; then
1561 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1559 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1562 fi 1560 fi
1563 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1561 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1564 echo "configure:1565: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1562 echo "configure:1563: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1565 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1563 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1566 cross_compiling=$ac_cv_prog_cc_cross 1564 cross_compiling=$ac_cv_prog_cc_cross
1567 1565
1568 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1566 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1569 echo "configure:1570: checking whether we are using GNU C" >&5 1567 echo "configure:1568: checking whether we are using GNU C" >&5
1570 1568
1571 cat > conftest.c <<EOF 1569 cat > conftest.c <<EOF
1572 #ifdef __GNUC__ 1570 #ifdef __GNUC__
1573 yes; 1571 yes;
1574 #endif 1572 #endif
1575 EOF 1573 EOF
1576 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1574 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1577 ac_cv_prog_gcc=yes 1575 ac_cv_prog_gcc=yes
1578 else 1576 else
1579 ac_cv_prog_gcc=no 1577 ac_cv_prog_gcc=no
1580 fi 1578 fi
1581 1579
1585 GCC=yes 1583 GCC=yes
1586 ac_test_CFLAGS="${CFLAGS+set}" 1584 ac_test_CFLAGS="${CFLAGS+set}"
1587 ac_save_CFLAGS="$CFLAGS" 1585 ac_save_CFLAGS="$CFLAGS"
1588 CFLAGS= 1586 CFLAGS=
1589 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1587 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1590 echo "configure:1591: checking whether ${CC-cc} accepts -g" >&5 1588 echo "configure:1589: checking whether ${CC-cc} accepts -g" >&5
1591 1589
1592 echo 'void f(){}' > conftest.c 1590 echo 'void f(){}' > conftest.c
1593 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1591 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1594 ac_cv_prog_cc_g=yes 1592 ac_cv_prog_cc_g=yes
1595 else 1593 else
1614 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1612 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1615 CC=gcc 1613 CC=gcc
1616 # Extract the first word of "gcc", so it can be a program name with args. 1614 # Extract the first word of "gcc", so it can be a program name with args.
1617 set dummy gcc; ac_word=$2 1615 set dummy gcc; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5 1617 echo "configure:1618: checking for $ac_word" >&5
1620 1618
1621 if test -n "$CC"; then 1619 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test. 1620 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 else 1621 else
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1640 1638
1641 if test -z "$CC"; then 1639 if test -z "$CC"; then
1642 # Extract the first word of "cc", so it can be a program name with args. 1640 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2 1641 set dummy cc; ac_word=$2
1644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1645 echo "configure:1646: checking for $ac_word" >&5 1643 echo "configure:1644: checking for $ac_word" >&5
1646 1644
1647 if test -n "$CC"; then 1645 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test. 1646 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 else 1647 else
1650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1685 1683
1686 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1684 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1687 fi 1685 fi
1688 1686
1689 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1690 echo "configure:1691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1688 echo "configure:1689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1691 1689
1692 ac_ext=c 1690 ac_ext=c
1693 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1691 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1694 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1692 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1695 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1693 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1697 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1695 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1698 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1696 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1699 cross_compiling=no 1697 cross_compiling=no
1700 1698
1701 cat > conftest.$ac_ext <<EOF 1699 cat > conftest.$ac_ext <<EOF
1702 #line 1703 "configure" 1700 #line 1701 "configure"
1703 #include "confdefs.h" 1701 #include "confdefs.h"
1704 main(){return(0);} 1702 main(){return(0);}
1705 EOF 1703 EOF
1706 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1704 if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1707 ac_cv_prog_cc_works=yes 1705 ac_cv_prog_cc_works=yes
1708 # If we can't run a trivial program, we are probably using a cross compiler. 1706 # If we can't run a trivial program, we are probably using a cross compiler.
1709 if (./conftest; exit) 2>/dev/null; then 1707 if (./conftest; exit) 2>/dev/null; then
1710 ac_cv_prog_cc_cross=no 1708 ac_cv_prog_cc_cross=no
1711 else 1709 else
1721 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1719 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1722 if test $ac_cv_prog_cc_works = no; then 1720 if test $ac_cv_prog_cc_works = no; then
1723 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1721 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1724 fi 1722 fi
1725 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1723 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1726 echo "configure:1727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1724 echo "configure:1725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1727 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1725 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1728 cross_compiling=$ac_cv_prog_cc_cross 1726 cross_compiling=$ac_cv_prog_cc_cross
1729 1727
1730 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1728 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1731 echo "configure:1732: checking whether we are using GNU C" >&5 1729 echo "configure:1730: checking whether we are using GNU C" >&5
1732 1730
1733 cat > conftest.c <<EOF 1731 cat > conftest.c <<EOF
1734 #ifdef __GNUC__ 1732 #ifdef __GNUC__
1735 yes; 1733 yes;
1736 #endif 1734 #endif
1737 EOF 1735 EOF
1738 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1736 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1739 ac_cv_prog_gcc=yes 1737 ac_cv_prog_gcc=yes
1740 else 1738 else
1741 ac_cv_prog_gcc=no 1739 ac_cv_prog_gcc=no
1742 fi 1740 fi
1743 1741
1747 GCC=yes 1745 GCC=yes
1748 ac_test_CFLAGS="${CFLAGS+set}" 1746 ac_test_CFLAGS="${CFLAGS+set}"
1749 ac_save_CFLAGS="$CFLAGS" 1747 ac_save_CFLAGS="$CFLAGS"
1750 CFLAGS= 1748 CFLAGS=
1751 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1749 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1752 echo "configure:1753: checking whether ${CC-cc} accepts -g" >&5 1750 echo "configure:1751: checking whether ${CC-cc} accepts -g" >&5
1753 1751
1754 echo 'void f(){}' > conftest.c 1752 echo 'void f(){}' > conftest.c
1755 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1753 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1756 ac_cv_prog_cc_g=yes 1754 ac_cv_prog_cc_g=yes
1757 else 1755 else
1780 test -n "$CPP" -a -d "$CPP" && CPP= 1778 test -n "$CPP" -a -d "$CPP" && CPP=
1781 1779
1782 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1780 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1783 1781
1784 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1782 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1785 echo "configure:1786: checking how to run the C preprocessor" >&5 1783 echo "configure:1784: checking how to run the C preprocessor" >&5
1786 # On Suns, sometimes $CPP names a directory. 1784 # On Suns, sometimes $CPP names a directory.
1787 if test -n "$CPP" && test -d "$CPP"; then 1785 if test -n "$CPP" && test -d "$CPP"; then
1788 CPP= 1786 CPP=
1789 fi 1787 fi
1790 if test -z "$CPP"; then 1788 if test -z "$CPP"; then
1793 # substituted into the Makefile and "${CC-cc}" will confuse make. 1791 # substituted into the Makefile and "${CC-cc}" will confuse make.
1794 CPP="${CC-cc} -E" 1792 CPP="${CC-cc} -E"
1795 # On the NeXT, cc -E runs the code through the compiler's parser, 1793 # On the NeXT, cc -E runs the code through the compiler's parser,
1796 # not just through cpp. 1794 # not just through cpp.
1797 cat > conftest.$ac_ext <<EOF 1795 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure" 1796 #line 1797 "configure"
1799 #include "confdefs.h" 1797 #include "confdefs.h"
1800 #include <assert.h> 1798 #include <assert.h>
1801 Syntax Error 1799 Syntax Error
1802 EOF 1800 EOF
1803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1804 { (eval echo configure:1805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1802 { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1805 ac_err=`grep -v '^ *+' conftest.out` 1803 ac_err=`grep -v '^ *+' conftest.out`
1806 if test -z "$ac_err"; then 1804 if test -z "$ac_err"; then
1807 : 1805 :
1808 else 1806 else
1809 echo "$ac_err" >&5 1807 echo "$ac_err" >&5
1810 echo "configure: failed program was:" >&5 1808 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5 1809 cat conftest.$ac_ext >&5
1812 rm -rf conftest* 1810 rm -rf conftest*
1813 CPP="${CC-cc} -E -traditional-cpp" 1811 CPP="${CC-cc} -E -traditional-cpp"
1814 cat > conftest.$ac_ext <<EOF 1812 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure" 1813 #line 1814 "configure"
1816 #include "confdefs.h" 1814 #include "confdefs.h"
1817 #include <assert.h> 1815 #include <assert.h>
1818 Syntax Error 1816 Syntax Error
1819 EOF 1817 EOF
1820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1819 { (eval echo configure:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err=`grep -v '^ *+' conftest.out` 1820 ac_err=`grep -v '^ *+' conftest.out`
1823 if test -z "$ac_err"; then 1821 if test -z "$ac_err"; then
1824 : 1822 :
1825 else 1823 else
1826 echo "$ac_err" >&5 1824 echo "$ac_err" >&5
1839 fi 1837 fi
1840 echo "$ac_t""$CPP" 1>&6 1838 echo "$ac_t""$CPP" 1>&6
1841 1839
1842 1840
1843 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1841 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1844 echo "configure:1845: checking for AIX" >&5 1842 echo "configure:1843: checking for AIX" >&5
1845 cat > conftest.$ac_ext <<EOF 1843 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure" 1844 #line 1845 "configure"
1847 #include "confdefs.h" 1845 #include "confdefs.h"
1848 #ifdef _AIX 1846 #ifdef _AIX
1849 yes 1847 yes
1850 #endif 1848 #endif
1851 1849
1868 rm -f conftest* 1866 rm -f conftest*
1869 1867
1870 1868
1871 1869
1872 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 1870 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
1873 echo "configure:1874: checking for GNU libc" >&5 1871 echo "configure:1872: checking for GNU libc" >&5
1874 cat > conftest.$ac_ext <<EOF 1872 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure" 1873 #line 1874 "configure"
1876 #include "confdefs.h" 1874 #include "confdefs.h"
1877 #include <features.h> 1875 #include <features.h>
1878 int main() { 1876 int main() {
1879 1877
1880 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 1878 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1882 ******* ======= ******** &&&&&&&& 1880 ******* ======= ******** &&&&&&&&
1883 #endif 1881 #endif
1884 1882
1885 ; return 0; } 1883 ; return 0; }
1886 EOF 1884 EOF
1887 if { (eval echo configure:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1885 if { (eval echo configure:1886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1888 rm -rf conftest* 1886 rm -rf conftest*
1889 have_glibc=yes 1887 have_glibc=yes
1890 else 1888 else
1891 echo "configure: failed program was:" >&5 1889 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5 1890 cat conftest.$ac_ext >&5
1893 rm -rf conftest* 1891 rm -rf conftest*
1894 have_glibc=no 1892 have_glibc=no
1895 fi 1893 fi
1896 rm -f conftest* 1894 rm -f conftest*
1897 echo "$ac_t""$have_glibc" 1>&6 1895 echo "$ac_t""$have_glibc" 1>&6
1898 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
1899 Defining _GNU_SOURCE
1900 EOF
1901 cat >> confdefs.h <<\EOF
1902 #define _GNU_SOURCE 1
1903 EOF
1904 }
1905
1906 1896
1907 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6 1897 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
1908 echo "configure:1909: checking whether we are using SunPro C" >&5 1898 echo "configure:1899: checking whether we are using SunPro C" >&5
1909 cat > conftest.$ac_ext <<EOF 1899 cat > conftest.$ac_ext <<EOF
1910 #line 1911 "configure" 1900 #line 1901 "configure"
1911 #include "confdefs.h" 1901 #include "confdefs.h"
1912 1902
1913 int main() { 1903 int main() {
1914 #ifndef __SUNPRO_C 1904 #ifndef __SUNPRO_C
1915 #error Not a SunPro compiler :-( 1905 #error Not a SunPro compiler :-(
1916 ******* ======= ******** &&&&&&&& 1906 ******* ======= ******** &&&&&&&&
1917 #endif 1907 #endif
1918 1908
1919 ; return 0; } 1909 ; return 0; }
1920 EOF 1910 EOF
1921 if { (eval echo configure:1922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1911 if { (eval echo configure:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1922 rm -rf conftest* 1912 rm -rf conftest*
1923 __sunpro_c=yes 1913 __sunpro_c=yes
1924 else 1914 else
1925 echo "configure: failed program was:" >&5 1915 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5 1916 cat conftest.$ac_ext >&5
2192 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2182 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2193 echo " xemacs will be linked with \"$unexec\"" 2183 echo " xemacs will be linked with \"$unexec\""
2194 fi 2184 fi
2195 2185
2196 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2186 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2197 echo "configure:2198: checking for dynodump" >&5 2187 echo "configure:2188: checking for dynodump" >&5
2198 if test "$unexec" != "unexsol2.o"; then 2188 if test "$unexec" != "unexsol2.o"; then
2199 echo "$ac_t""no" 1>&6 2189 echo "$ac_t""no" 1>&6
2200 else 2190 else
2201 echo "$ac_t""yes" 1>&6 2191 echo "$ac_t""yes" 1>&6
2202 { test "$extra_verbose" = "yes" && cat << \EOF 2192 { test "$extra_verbose" = "yes" && cat << \EOF
2290 esac 2280 esac
2291 fi 2281 fi
2292 2282
2293 if test "$add_runtime_path" = "yes"; then 2283 if test "$add_runtime_path" = "yes"; then
2294 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2284 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2295 echo "configure:2296: checking "for runtime libraries flag"" >&5 2285 echo "configure:2286: checking "for runtime libraries flag"" >&5
2296 dash_r="" 2286 dash_r=""
2297 for try_dash_r in "-R" "-R " "-rpath "; do 2287 for try_dash_r in "-R" "-R " "-rpath "; do
2298 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2288 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2299 cat > conftest.$ac_ext <<EOF 2289 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure" 2290 #line 2291 "configure"
2301 #include "confdefs.h" 2291 #include "confdefs.h"
2302 2292
2303 int main() { 2293 int main() {
2304 2294
2305 ; return 0; } 2295 ; return 0; }
2306 EOF 2296 EOF
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2308 rm -rf conftest* 2298 rm -rf conftest*
2309 dash_r="$try_dash_r" 2299 dash_r="$try_dash_r"
2310 else 2300 else
2311 echo "configure: failed program was:" >&5 2301 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5 2302 cat conftest.$ac_ext >&5
2389 else 2379 else
2390 doug_lea_malloc=no 2380 doug_lea_malloc=no
2391 fi 2381 fi
2392 after_morecore_hook_exists=yes 2382 after_morecore_hook_exists=yes
2393 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2383 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2394 echo "configure:2395: checking for malloc_get_state" >&5 2384 echo "configure:2385: checking for malloc_get_state" >&5
2395 2385
2396 cat > conftest.$ac_ext <<EOF 2386 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure" 2387 #line 2388 "configure"
2398 #include "confdefs.h" 2388 #include "confdefs.h"
2399 /* System header to define __stub macros and hopefully few prototypes, 2389 /* System header to define __stub macros and hopefully few prototypes,
2400 which can conflict with char malloc_get_state(); below. */ 2390 which can conflict with char malloc_get_state(); below. */
2401 #include <assert.h> 2391 #include <assert.h>
2402 /* Override any gcc2 internal prototype to avoid an error. */ 2392 /* Override any gcc2 internal prototype to avoid an error. */
2415 malloc_get_state(); 2405 malloc_get_state();
2416 #endif 2406 #endif
2417 2407
2418 ; return 0; } 2408 ; return 0; }
2419 EOF 2409 EOF
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2410 if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2421 rm -rf conftest* 2411 rm -rf conftest*
2422 eval "ac_cv_func_malloc_get_state=yes" 2412 eval "ac_cv_func_malloc_get_state=yes"
2423 else 2413 else
2424 echo "configure: failed program was:" >&5 2414 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5 2415 cat conftest.$ac_ext >&5
2435 echo "$ac_t""no" 1>&6 2425 echo "$ac_t""no" 1>&6
2436 doug_lea_malloc=no 2426 doug_lea_malloc=no
2437 fi 2427 fi
2438 2428
2439 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2429 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2440 echo "configure:2441: checking for malloc_set_state" >&5 2430 echo "configure:2431: checking for malloc_set_state" >&5
2441 2431
2442 cat > conftest.$ac_ext <<EOF 2432 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure" 2433 #line 2434 "configure"
2444 #include "confdefs.h" 2434 #include "confdefs.h"
2445 /* System header to define __stub macros and hopefully few prototypes, 2435 /* System header to define __stub macros and hopefully few prototypes,
2446 which can conflict with char malloc_set_state(); below. */ 2436 which can conflict with char malloc_set_state(); below. */
2447 #include <assert.h> 2437 #include <assert.h>
2448 /* Override any gcc2 internal prototype to avoid an error. */ 2438 /* Override any gcc2 internal prototype to avoid an error. */
2461 malloc_set_state(); 2451 malloc_set_state();
2462 #endif 2452 #endif
2463 2453
2464 ; return 0; } 2454 ; return 0; }
2465 EOF 2455 EOF
2466 if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2456 if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2467 rm -rf conftest* 2457 rm -rf conftest*
2468 eval "ac_cv_func_malloc_set_state=yes" 2458 eval "ac_cv_func_malloc_set_state=yes"
2469 else 2459 else
2470 echo "configure: failed program was:" >&5 2460 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5 2461 cat conftest.$ac_ext >&5
2481 echo "$ac_t""no" 1>&6 2471 echo "$ac_t""no" 1>&6
2482 doug_lea_malloc=no 2472 doug_lea_malloc=no
2483 fi 2473 fi
2484 2474
2485 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2475 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2486 echo "configure:2487: checking whether __after_morecore_hook exists" >&5 2476 echo "configure:2477: checking whether __after_morecore_hook exists" >&5
2487 cat > conftest.$ac_ext <<EOF 2477 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure" 2478 #line 2479 "configure"
2489 #include "confdefs.h" 2479 #include "confdefs.h"
2490 extern void (* __after_morecore_hook)(); 2480 extern void (* __after_morecore_hook)();
2491 int main() { 2481 int main() {
2492 __after_morecore_hook = 0 2482 __after_morecore_hook = 0
2493 ; return 0; } 2483 ; return 0; }
2494 EOF 2484 EOF
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2485 if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2496 rm -rf conftest* 2486 rm -rf conftest*
2497 echo "$ac_t""yes" 1>&6 2487 echo "$ac_t""yes" 1>&6
2498 else 2488 else
2499 echo "configure: failed program was:" >&5 2489 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5 2490 cat conftest.$ac_ext >&5
2555 2545
2556 2546
2557 # Extract the first word of "ranlib", so it can be a program name with args. 2547 # Extract the first word of "ranlib", so it can be a program name with args.
2558 set dummy ranlib; ac_word=$2 2548 set dummy ranlib; ac_word=$2
2559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2560 echo "configure:2561: checking for $ac_word" >&5 2550 echo "configure:2551: checking for $ac_word" >&5
2561 2551
2562 if test -n "$RANLIB"; then 2552 if test -n "$RANLIB"; then
2563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2564 else 2554 else
2565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2608 # AIX /bin/install 2598 # AIX /bin/install
2609 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2610 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2611 # ./install, which can be erroneously created by make from ./install.sh. 2601 # ./install, which can be erroneously created by make from ./install.sh.
2612 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2602 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2613 echo "configure:2614: checking for a BSD compatible install" >&5 2603 echo "configure:2604: checking for a BSD compatible install" >&5
2614 if test -z "$INSTALL"; then 2604 if test -z "$INSTALL"; then
2615 2605
2616 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2606 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2617 for ac_dir in $PATH; do 2607 for ac_dir in $PATH; do
2618 # Account for people who put trailing slashes in PATH elements. 2608 # Account for people who put trailing slashes in PATH elements.
2659 for ac_prog in 'bison -y' byacc 2649 for ac_prog in 'bison -y' byacc
2660 do 2650 do
2661 # Extract the first word of "$ac_prog", so it can be a program name with args. 2651 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2 2652 set dummy $ac_prog; ac_word=$2
2663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_word" >&5 2654 echo "configure:2655: checking for $ac_word" >&5
2665 2655
2666 if test -n "$YACC"; then 2656 if test -n "$YACC"; then
2667 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2657 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2668 else 2658 else
2669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2690 2680
2691 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2681 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2692 do 2682 do
2693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_hdr" >&5 2685 echo "configure:2686: checking for $ac_hdr" >&5
2696 2686
2697 cat > conftest.$ac_ext <<EOF 2687 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure" 2688 #line 2689 "configure"
2699 #include "confdefs.h" 2689 #include "confdefs.h"
2700 #include <$ac_hdr> 2690 #include <$ac_hdr>
2701 EOF 2691 EOF
2702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2703 { (eval echo configure:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2693 { (eval echo configure:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2704 ac_err=`grep -v '^ *+' conftest.out` 2694 ac_err=`grep -v '^ *+' conftest.out`
2705 if test -z "$ac_err"; then 2695 if test -z "$ac_err"; then
2706 rm -rf conftest* 2696 rm -rf conftest*
2707 eval "ac_cv_header_$ac_safe=yes" 2697 eval "ac_cv_header_$ac_safe=yes"
2708 else 2698 else
2731 2721
2732 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2722 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2733 do 2723 do
2734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_hdr" >&5 2726 echo "configure:2727: checking for $ac_hdr" >&5
2737 2727
2738 cat > conftest.$ac_ext <<EOF 2728 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure" 2729 #line 2730 "configure"
2740 #include "confdefs.h" 2730 #include "confdefs.h"
2741 #include <$ac_hdr> 2731 #include <$ac_hdr>
2742 EOF 2732 EOF
2743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2744 { (eval echo configure:2745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2734 { (eval echo configure:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2745 ac_err=`grep -v '^ *+' conftest.out` 2735 ac_err=`grep -v '^ *+' conftest.out`
2746 if test -z "$ac_err"; then 2736 if test -z "$ac_err"; then
2747 rm -rf conftest* 2737 rm -rf conftest*
2748 eval "ac_cv_header_$ac_safe=yes" 2738 eval "ac_cv_header_$ac_safe=yes"
2749 else 2739 else
2772 2762
2773 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 2763 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
2774 do 2764 do
2775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2777 echo "configure:2778: checking for $ac_hdr" >&5 2767 echo "configure:2768: checking for $ac_hdr" >&5
2778 2768
2779 cat > conftest.$ac_ext <<EOF 2769 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure" 2770 #line 2771 "configure"
2781 #include "confdefs.h" 2771 #include "confdefs.h"
2782 #include <$ac_hdr> 2772 #include <$ac_hdr>
2783 EOF 2773 EOF
2784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785 { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2775 { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786 ac_err=`grep -v '^ *+' conftest.out` 2776 ac_err=`grep -v '^ *+' conftest.out`
2787 if test -z "$ac_err"; then 2777 if test -z "$ac_err"; then
2788 rm -rf conftest* 2778 rm -rf conftest*
2789 eval "ac_cv_header_$ac_safe=yes" 2779 eval "ac_cv_header_$ac_safe=yes"
2790 else 2780 else
2810 echo "$ac_t""no" 1>&6 2800 echo "$ac_t""no" 1>&6
2811 fi 2801 fi
2812 done 2802 done
2813 2803
2814 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2804 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2815 echo "configure:2816: checking for sys/wait.h that is POSIX.1 compatible" >&5 2805 echo "configure:2806: checking for sys/wait.h that is POSIX.1 compatible" >&5
2816 2806
2817 cat > conftest.$ac_ext <<EOF 2807 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure" 2808 #line 2809 "configure"
2819 #include "confdefs.h" 2809 #include "confdefs.h"
2820 #include <sys/types.h> 2810 #include <sys/types.h>
2821 #include <sys/wait.h> 2811 #include <sys/wait.h>
2822 #ifndef WEXITSTATUS 2812 #ifndef WEXITSTATUS
2823 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2813 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2829 int s; 2819 int s;
2830 wait (&s); 2820 wait (&s);
2831 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2821 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2832 ; return 0; } 2822 ; return 0; }
2833 EOF 2823 EOF
2834 if { (eval echo configure:2835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2824 if { (eval echo configure:2825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2835 rm -rf conftest* 2825 rm -rf conftest*
2836 ac_cv_header_sys_wait_h=yes 2826 ac_cv_header_sys_wait_h=yes
2837 else 2827 else
2838 echo "configure: failed program was:" >&5 2828 echo "configure: failed program was:" >&5
2839 cat conftest.$ac_ext >&5 2829 cat conftest.$ac_ext >&5
2853 } 2843 }
2854 2844
2855 fi 2845 fi
2856 2846
2857 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2847 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2858 echo "configure:2859: checking for ANSI C header files" >&5 2848 echo "configure:2849: checking for ANSI C header files" >&5
2859 2849
2860 cat > conftest.$ac_ext <<EOF 2850 cat > conftest.$ac_ext <<EOF
2861 #line 2862 "configure" 2851 #line 2852 "configure"
2862 #include "confdefs.h" 2852 #include "confdefs.h"
2863 #include <stdlib.h> 2853 #include <stdlib.h>
2864 #include <stdarg.h> 2854 #include <stdarg.h>
2865 #include <string.h> 2855 #include <string.h>
2866 #include <float.h> 2856 #include <float.h>
2867 EOF 2857 EOF
2868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2869 { (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2859 { (eval echo configure:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2870 ac_err=`grep -v '^ *+' conftest.out` 2860 ac_err=`grep -v '^ *+' conftest.out`
2871 if test -z "$ac_err"; then 2861 if test -z "$ac_err"; then
2872 rm -rf conftest* 2862 rm -rf conftest*
2873 ac_cv_header_stdc=yes 2863 ac_cv_header_stdc=yes
2874 else 2864 else
2881 rm -f conftest* 2871 rm -f conftest*
2882 2872
2883 if test $ac_cv_header_stdc = yes; then 2873 if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat > conftest.$ac_ext <<EOF 2875 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure" 2876 #line 2877 "configure"
2887 #include "confdefs.h" 2877 #include "confdefs.h"
2888 #include <string.h> 2878 #include <string.h>
2889 EOF 2879 EOF
2890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2891 egrep "memchr" >/dev/null 2>&1; then 2881 egrep "memchr" >/dev/null 2>&1; then
2899 fi 2889 fi
2900 2890
2901 if test $ac_cv_header_stdc = yes; then 2891 if test $ac_cv_header_stdc = yes; then
2902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2903 cat > conftest.$ac_ext <<EOF 2893 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure" 2894 #line 2895 "configure"
2905 #include "confdefs.h" 2895 #include "confdefs.h"
2906 #include <stdlib.h> 2896 #include <stdlib.h>
2907 EOF 2897 EOF
2908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2909 egrep "free" >/dev/null 2>&1; then 2899 egrep "free" >/dev/null 2>&1; then
2917 fi 2907 fi
2918 2908
2919 if test $ac_cv_header_stdc = yes; then 2909 if test $ac_cv_header_stdc = yes; then
2920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2921 cat > conftest.$ac_ext <<EOF 2911 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure" 2912 #line 2913 "configure"
2923 #include "confdefs.h" 2913 #include "confdefs.h"
2924 #include <ctype.h> 2914 #include <ctype.h>
2925 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2915 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2926 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2916 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2928 int main () { int i; for (i = 0; i < 256; i++) 2918 int main () { int i; for (i = 0; i < 256; i++)
2929 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2919 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2930 exit (0); } 2920 exit (0); }
2931 2921
2932 EOF 2922 EOF
2933 if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2923 if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2934 then 2924 then
2935 : 2925 :
2936 else 2926 else
2937 echo "configure: failed program was:" >&5 2927 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5 2928 cat conftest.$ac_ext >&5
2953 } 2943 }
2954 2944
2955 fi 2945 fi
2956 2946
2957 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2947 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2958 echo "configure:2959: checking whether time.h and sys/time.h may both be included" >&5 2948 echo "configure:2949: checking whether time.h and sys/time.h may both be included" >&5
2959 2949
2960 cat > conftest.$ac_ext <<EOF 2950 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure" 2951 #line 2952 "configure"
2962 #include "confdefs.h" 2952 #include "confdefs.h"
2963 #include <sys/types.h> 2953 #include <sys/types.h>
2964 #include <sys/time.h> 2954 #include <sys/time.h>
2965 #include <time.h> 2955 #include <time.h>
2966 int main() { 2956 int main() {
2967 struct tm *tp; 2957 struct tm *tp;
2968 ; return 0; } 2958 ; return 0; }
2969 EOF 2959 EOF
2970 if { (eval echo configure:2971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2960 if { (eval echo configure:2961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2971 rm -rf conftest* 2961 rm -rf conftest*
2972 ac_cv_header_time=yes 2962 ac_cv_header_time=yes
2973 else 2963 else
2974 echo "configure: failed program was:" >&5 2964 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5 2965 cat conftest.$ac_ext >&5
2989 } 2979 }
2990 2980
2991 fi 2981 fi
2992 2982
2993 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2983 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2994 echo "configure:2995: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2984 echo "configure:2985: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2995 2985
2996 cat > conftest.$ac_ext <<EOF 2986 cat > conftest.$ac_ext <<EOF
2997 #line 2998 "configure" 2987 #line 2988 "configure"
2998 #include "confdefs.h" 2988 #include "confdefs.h"
2999 #include <sys/types.h> 2989 #include <sys/types.h>
3000 #include <signal.h> 2990 #include <signal.h>
3001 /* NetBSD declares sys_siglist in unistd.h. */ 2991 /* NetBSD declares sys_siglist in unistd.h. */
3002 #ifdef HAVE_UNISTD_H 2992 #ifdef HAVE_UNISTD_H
3004 #endif 2994 #endif
3005 int main() { 2995 int main() {
3006 char *msg = *(sys_siglist + 1); 2996 char *msg = *(sys_siglist + 1);
3007 ; return 0; } 2997 ; return 0; }
3008 EOF 2998 EOF
3009 if { (eval echo configure:3010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2999 if { (eval echo configure:3000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3010 rm -rf conftest* 3000 rm -rf conftest*
3011 ac_cv_decl_sys_siglist=yes 3001 ac_cv_decl_sys_siglist=yes
3012 else 3002 else
3013 echo "configure: failed program was:" >&5 3003 echo "configure: failed program was:" >&5
3014 cat conftest.$ac_ext >&5 3004 cat conftest.$ac_ext >&5
3029 3019
3030 fi 3020 fi
3031 3021
3032 3022
3033 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3023 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3034 echo "configure:3035: checking for struct utimbuf" >&5 3024 echo "configure:3025: checking for struct utimbuf" >&5
3035 cat > conftest.$ac_ext <<EOF 3025 cat > conftest.$ac_ext <<EOF
3036 #line 3037 "configure" 3026 #line 3027 "configure"
3037 #include "confdefs.h" 3027 #include "confdefs.h"
3038 #ifdef TIME_WITH_SYS_TIME 3028 #ifdef TIME_WITH_SYS_TIME
3039 #include <sys/time.h> 3029 #include <sys/time.h>
3040 #include <time.h> 3030 #include <time.h>
3041 #else 3031 #else
3050 #endif 3040 #endif
3051 int main() { 3041 int main() {
3052 static struct utimbuf x; x.actime = x.modtime; 3042 static struct utimbuf x; x.actime = x.modtime;
3053 ; return 0; } 3043 ; return 0; }
3054 EOF 3044 EOF
3055 if { (eval echo configure:3056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3045 if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3056 rm -rf conftest* 3046 rm -rf conftest*
3057 echo "$ac_t""yes" 1>&6 3047 echo "$ac_t""yes" 1>&6
3058 { test "$extra_verbose" = "yes" && cat << \EOF 3048 { test "$extra_verbose" = "yes" && cat << \EOF
3059 Defining HAVE_STRUCT_UTIMBUF 3049 Defining HAVE_STRUCT_UTIMBUF
3060 EOF 3050 EOF
3070 echo "$ac_t""no" 1>&6 3060 echo "$ac_t""no" 1>&6
3071 fi 3061 fi
3072 rm -f conftest* 3062 rm -f conftest*
3073 3063
3074 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3064 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3075 echo "configure:3076: checking return type of signal handlers" >&5 3065 echo "configure:3066: checking return type of signal handlers" >&5
3076 3066
3077 cat > conftest.$ac_ext <<EOF 3067 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure" 3068 #line 3069 "configure"
3079 #include "confdefs.h" 3069 #include "confdefs.h"
3080 #include <sys/types.h> 3070 #include <sys/types.h>
3081 #include <signal.h> 3071 #include <signal.h>
3082 #ifdef signal 3072 #ifdef signal
3083 #undef signal 3073 #undef signal
3090 3080
3091 int main() { 3081 int main() {
3092 int i; 3082 int i;
3093 ; return 0; } 3083 ; return 0; }
3094 EOF 3084 EOF
3095 if { (eval echo configure:3096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3085 if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3096 rm -rf conftest* 3086 rm -rf conftest*
3097 ac_cv_type_signal=void 3087 ac_cv_type_signal=void
3098 else 3088 else
3099 echo "configure: failed program was:" >&5 3089 echo "configure: failed program was:" >&5
3100 cat conftest.$ac_ext >&5 3090 cat conftest.$ac_ext >&5
3112 EOF 3102 EOF
3113 } 3103 }
3114 3104
3115 3105
3116 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3106 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3117 echo "configure:3118: checking for size_t" >&5 3107 echo "configure:3108: checking for size_t" >&5
3118 3108
3119 cat > conftest.$ac_ext <<EOF 3109 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure" 3110 #line 3111 "configure"
3121 #include "confdefs.h" 3111 #include "confdefs.h"
3122 #include <sys/types.h> 3112 #include <sys/types.h>
3123 #if STDC_HEADERS 3113 #if STDC_HEADERS
3124 #include <stdlib.h> 3114 #include <stdlib.h>
3125 #include <stddef.h> 3115 #include <stddef.h>
3146 } 3136 }
3147 3137
3148 fi 3138 fi
3149 3139
3150 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3140 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3151 echo "configure:3152: checking for pid_t" >&5 3141 echo "configure:3142: checking for pid_t" >&5
3152 3142
3153 cat > conftest.$ac_ext <<EOF 3143 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure" 3144 #line 3145 "configure"
3155 #include "confdefs.h" 3145 #include "confdefs.h"
3156 #include <sys/types.h> 3146 #include <sys/types.h>
3157 #if STDC_HEADERS 3147 #if STDC_HEADERS
3158 #include <stdlib.h> 3148 #include <stdlib.h>
3159 #include <stddef.h> 3149 #include <stddef.h>
3180 } 3170 }
3181 3171
3182 fi 3172 fi
3183 3173
3184 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3174 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3185 echo "configure:3186: checking for uid_t in sys/types.h" >&5 3175 echo "configure:3176: checking for uid_t in sys/types.h" >&5
3186 3176
3187 cat > conftest.$ac_ext <<EOF 3177 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure" 3178 #line 3179 "configure"
3189 #include "confdefs.h" 3179 #include "confdefs.h"
3190 #include <sys/types.h> 3180 #include <sys/types.h>
3191 EOF 3181 EOF
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 egrep "uid_t" >/dev/null 2>&1; then 3183 egrep "uid_t" >/dev/null 2>&1; then
3219 } 3209 }
3220 3210
3221 fi 3211 fi
3222 3212
3223 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3213 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3224 echo "configure:3225: checking for mode_t" >&5 3214 echo "configure:3215: checking for mode_t" >&5
3225 3215
3226 cat > conftest.$ac_ext <<EOF 3216 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure" 3217 #line 3218 "configure"
3228 #include "confdefs.h" 3218 #include "confdefs.h"
3229 #include <sys/types.h> 3219 #include <sys/types.h>
3230 #if STDC_HEADERS 3220 #if STDC_HEADERS
3231 #include <stdlib.h> 3221 #include <stdlib.h>
3232 #include <stddef.h> 3222 #include <stddef.h>
3253 } 3243 }
3254 3244
3255 fi 3245 fi
3256 3246
3257 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3247 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3258 echo "configure:3259: checking for off_t" >&5 3248 echo "configure:3249: checking for off_t" >&5
3259 3249
3260 cat > conftest.$ac_ext <<EOF 3250 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure" 3251 #line 3252 "configure"
3262 #include "confdefs.h" 3252 #include "confdefs.h"
3263 #include <sys/types.h> 3253 #include <sys/types.h>
3264 #if STDC_HEADERS 3254 #if STDC_HEADERS
3265 #include <stdlib.h> 3255 #include <stdlib.h>
3266 #include <stddef.h> 3256 #include <stddef.h>
3288 3278
3289 fi 3279 fi
3290 3280
3291 3281
3292 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3282 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3293 echo "configure:3294: checking for struct timeval" >&5 3283 echo "configure:3284: checking for struct timeval" >&5
3294 cat > conftest.$ac_ext <<EOF 3284 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure" 3285 #line 3286 "configure"
3296 #include "confdefs.h" 3286 #include "confdefs.h"
3297 #ifdef TIME_WITH_SYS_TIME 3287 #ifdef TIME_WITH_SYS_TIME
3298 #include <sys/time.h> 3288 #include <sys/time.h>
3299 #include <time.h> 3289 #include <time.h>
3300 #else 3290 #else
3306 #endif 3296 #endif
3307 int main() { 3297 int main() {
3308 static struct timeval x; x.tv_sec = x.tv_usec; 3298 static struct timeval x; x.tv_sec = x.tv_usec;
3309 ; return 0; } 3299 ; return 0; }
3310 EOF 3300 EOF
3311 if { (eval echo configure:3312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3301 if { (eval echo configure:3302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3312 rm -rf conftest* 3302 rm -rf conftest*
3313 echo "$ac_t""yes" 1>&6 3303 echo "$ac_t""yes" 1>&6
3314 HAVE_TIMEVAL=yes 3304 HAVE_TIMEVAL=yes
3315 { test "$extra_verbose" = "yes" && cat << \EOF 3305 { test "$extra_verbose" = "yes" && cat << \EOF
3316 Defining HAVE_TIMEVAL 3306 Defining HAVE_TIMEVAL
3328 HAVE_TIMEVAL=no 3318 HAVE_TIMEVAL=no
3329 fi 3319 fi
3330 rm -f conftest* 3320 rm -f conftest*
3331 3321
3332 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3322 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3333 echo "configure:3334: checking whether struct tm is in sys/time.h or time.h" >&5 3323 echo "configure:3324: checking whether struct tm is in sys/time.h or time.h" >&5
3334 3324
3335 cat > conftest.$ac_ext <<EOF 3325 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure" 3326 #line 3327 "configure"
3337 #include "confdefs.h" 3327 #include "confdefs.h"
3338 #include <sys/types.h> 3328 #include <sys/types.h>
3339 #include <time.h> 3329 #include <time.h>
3340 int main() { 3330 int main() {
3341 struct tm *tp; tp->tm_sec; 3331 struct tm *tp; tp->tm_sec;
3342 ; return 0; } 3332 ; return 0; }
3343 EOF 3333 EOF
3344 if { (eval echo configure:3345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3334 if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3345 rm -rf conftest* 3335 rm -rf conftest*
3346 ac_cv_struct_tm=time.h 3336 ac_cv_struct_tm=time.h
3347 else 3337 else
3348 echo "configure: failed program was:" >&5 3338 echo "configure: failed program was:" >&5
3349 cat conftest.$ac_ext >&5 3339 cat conftest.$ac_ext >&5
3363 } 3353 }
3364 3354
3365 fi 3355 fi
3366 3356
3367 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3357 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3368 echo "configure:3369: checking for tm_zone in struct tm" >&5 3358 echo "configure:3359: checking for tm_zone in struct tm" >&5
3369 3359
3370 cat > conftest.$ac_ext <<EOF 3360 cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure" 3361 #line 3362 "configure"
3372 #include "confdefs.h" 3362 #include "confdefs.h"
3373 #include <sys/types.h> 3363 #include <sys/types.h>
3374 #include <$ac_cv_struct_tm> 3364 #include <$ac_cv_struct_tm>
3375 int main() { 3365 int main() {
3376 struct tm tm; tm.tm_zone; 3366 struct tm tm; tm.tm_zone;
3377 ; return 0; } 3367 ; return 0; }
3378 EOF 3368 EOF
3379 if { (eval echo configure:3380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3369 if { (eval echo configure:3370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3380 rm -rf conftest* 3370 rm -rf conftest*
3381 ac_cv_struct_tm_zone=yes 3371 ac_cv_struct_tm_zone=yes
3382 else 3372 else
3383 echo "configure: failed program was:" >&5 3373 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5 3374 cat conftest.$ac_ext >&5
3397 EOF 3387 EOF
3398 } 3388 }
3399 3389
3400 else 3390 else
3401 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3391 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3402 echo "configure:3403: checking for tzname" >&5 3392 echo "configure:3393: checking for tzname" >&5
3403 3393
3404 cat > conftest.$ac_ext <<EOF 3394 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure" 3395 #line 3396 "configure"
3406 #include "confdefs.h" 3396 #include "confdefs.h"
3407 #include <time.h> 3397 #include <time.h>
3408 #ifndef tzname /* For SGI. */ 3398 #ifndef tzname /* For SGI. */
3409 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3399 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3410 #endif 3400 #endif
3411 int main() { 3401 int main() {
3412 atoi(*tzname); 3402 atoi(*tzname);
3413 ; return 0; } 3403 ; return 0; }
3414 EOF 3404 EOF
3415 if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3405 if { (eval echo configure:3406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3416 rm -rf conftest* 3406 rm -rf conftest*
3417 ac_cv_var_tzname=yes 3407 ac_cv_var_tzname=yes
3418 else 3408 else
3419 echo "configure: failed program was:" >&5 3409 echo "configure: failed program was:" >&5
3420 cat conftest.$ac_ext >&5 3410 cat conftest.$ac_ext >&5
3436 fi 3426 fi
3437 fi 3427 fi
3438 3428
3439 3429
3440 echo $ac_n "checking for working const""... $ac_c" 1>&6 3430 echo $ac_n "checking for working const""... $ac_c" 1>&6
3441 echo "configure:3442: checking for working const" >&5 3431 echo "configure:3432: checking for working const" >&5
3442 3432
3443 cat > conftest.$ac_ext <<EOF 3433 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure" 3434 #line 3435 "configure"
3445 #include "confdefs.h" 3435 #include "confdefs.h"
3446 3436
3447 int main() { 3437 int main() {
3448 3438
3449 /* Ultrix mips cc rejects this. */ 3439 /* Ultrix mips cc rejects this. */
3488 const int foo = 10; 3478 const int foo = 10;
3489 } 3479 }
3490 3480
3491 ; return 0; } 3481 ; return 0; }
3492 EOF 3482 EOF
3493 if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3483 if { (eval echo configure:3484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494 rm -rf conftest* 3484 rm -rf conftest*
3495 ac_cv_c_const=yes 3485 ac_cv_c_const=yes
3496 else 3486 else
3497 echo "configure: failed program was:" >&5 3487 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5 3488 cat conftest.$ac_ext >&5
3513 3503
3514 fi 3504 fi
3515 3505
3516 3506
3517 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3507 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3518 echo "configure:3519: checking whether ${MAKE-make} sets \${MAKE}" >&5 3508 echo "configure:3509: checking whether ${MAKE-make} sets \${MAKE}" >&5
3519 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3509 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3520 3510
3521 cat > conftestmake <<\EOF 3511 cat > conftestmake <<\EOF
3522 all: 3512 all:
3523 @echo 'ac_maketemp="${MAKE}"' 3513 @echo 'ac_maketemp="${MAKE}"'
3538 SET_MAKE="MAKE=${MAKE-make}" 3528 SET_MAKE="MAKE=${MAKE-make}"
3539 fi 3529 fi
3540 3530
3541 3531
3542 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3532 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3543 echo "configure:3544: checking whether byte ordering is bigendian" >&5 3533 echo "configure:3534: checking whether byte ordering is bigendian" >&5
3544 3534
3545 ac_cv_c_bigendian=unknown 3535 ac_cv_c_bigendian=unknown
3546 # See if sys/param.h defines the BYTE_ORDER macro. 3536 # See if sys/param.h defines the BYTE_ORDER macro.
3547 cat > conftest.$ac_ext <<EOF 3537 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure" 3538 #line 3539 "configure"
3549 #include "confdefs.h" 3539 #include "confdefs.h"
3550 #include <sys/types.h> 3540 #include <sys/types.h>
3551 #include <sys/param.h> 3541 #include <sys/param.h>
3552 int main() { 3542 int main() {
3553 3543
3554 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3544 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3555 bogus endian macros 3545 bogus endian macros
3556 #endif 3546 #endif
3557 ; return 0; } 3547 ; return 0; }
3558 EOF 3548 EOF
3559 if { (eval echo configure:3560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3560 rm -rf conftest* 3550 rm -rf conftest*
3561 # It does; now see whether it defined to BIG_ENDIAN or not. 3551 # It does; now see whether it defined to BIG_ENDIAN or not.
3562 cat > conftest.$ac_ext <<EOF 3552 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure" 3553 #line 3554 "configure"
3564 #include "confdefs.h" 3554 #include "confdefs.h"
3565 #include <sys/types.h> 3555 #include <sys/types.h>
3566 #include <sys/param.h> 3556 #include <sys/param.h>
3567 int main() { 3557 int main() {
3568 3558
3569 #if BYTE_ORDER != BIG_ENDIAN 3559 #if BYTE_ORDER != BIG_ENDIAN
3570 not big endian 3560 not big endian
3571 #endif 3561 #endif
3572 ; return 0; } 3562 ; return 0; }
3573 EOF 3563 EOF
3574 if { (eval echo configure:3575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3564 if { (eval echo configure:3565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3575 rm -rf conftest* 3565 rm -rf conftest*
3576 ac_cv_c_bigendian=yes 3566 ac_cv_c_bigendian=yes
3577 else 3567 else
3578 echo "configure: failed program was:" >&5 3568 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5 3569 cat conftest.$ac_ext >&5
3586 cat conftest.$ac_ext >&5 3576 cat conftest.$ac_ext >&5
3587 fi 3577 fi
3588 rm -f conftest* 3578 rm -f conftest*
3589 if test $ac_cv_c_bigendian = unknown; then 3579 if test $ac_cv_c_bigendian = unknown; then
3590 cat > conftest.$ac_ext <<EOF 3580 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure" 3581 #line 3582 "configure"
3592 #include "confdefs.h" 3582 #include "confdefs.h"
3593 main () { 3583 main () {
3594 /* Are we little or big endian? From Harbison&Steele. */ 3584 /* Are we little or big endian? From Harbison&Steele. */
3595 union 3585 union
3596 { 3586 {
3599 } u; 3589 } u;
3600 u.l = 1; 3590 u.l = 1;
3601 exit (u.c[sizeof (long) - 1] == 1); 3591 exit (u.c[sizeof (long) - 1] == 1);
3602 } 3592 }
3603 EOF 3593 EOF
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3605 then 3595 then
3606 ac_cv_c_bigendian=no 3596 ac_cv_c_bigendian=no
3607 else 3597 else
3608 echo "configure: failed program was:" >&5 3598 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5 3599 cat conftest.$ac_ext >&5
3625 3615
3626 fi 3616 fi
3627 3617
3628 3618
3629 echo $ac_n "checking size of short""... $ac_c" 1>&6 3619 echo $ac_n "checking size of short""... $ac_c" 1>&6
3630 echo "configure:3631: checking size of short" >&5 3620 echo "configure:3621: checking size of short" >&5
3631 3621
3632 cat > conftest.$ac_ext <<EOF 3622 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure" 3623 #line 3624 "configure"
3634 #include "confdefs.h" 3624 #include "confdefs.h"
3635 #include <stdio.h> 3625 #include <stdio.h>
3636 main() 3626 main()
3637 { 3627 {
3638 FILE *f=fopen("conftestval", "w"); 3628 FILE *f=fopen("conftestval", "w");
3639 if (!f) exit(1); 3629 if (!f) exit(1);
3640 fprintf(f, "%d\n", sizeof(short)); 3630 fprintf(f, "%d\n", sizeof(short));
3641 exit(0); 3631 exit(0);
3642 } 3632 }
3643 EOF 3633 EOF
3644 if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3634 if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3645 then 3635 then
3646 ac_cv_sizeof_short=`cat conftestval` 3636 ac_cv_sizeof_short=`cat conftestval`
3647 else 3637 else
3648 echo "configure: failed program was:" >&5 3638 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5 3639 cat conftest.$ac_ext >&5
3666 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3656 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3667 echo "*** PANIC *** Please examine config.log for compilation errors." 3657 echo "*** PANIC *** Please examine config.log for compilation errors."
3668 exit 1 3658 exit 1
3669 fi 3659 fi
3670 echo $ac_n "checking size of int""... $ac_c" 1>&6 3660 echo $ac_n "checking size of int""... $ac_c" 1>&6
3671 echo "configure:3672: checking size of int" >&5 3661 echo "configure:3662: checking size of int" >&5
3672 3662
3673 cat > conftest.$ac_ext <<EOF 3663 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure" 3664 #line 3665 "configure"
3675 #include "confdefs.h" 3665 #include "confdefs.h"
3676 #include <stdio.h> 3666 #include <stdio.h>
3677 main() 3667 main()
3678 { 3668 {
3679 FILE *f=fopen("conftestval", "w"); 3669 FILE *f=fopen("conftestval", "w");
3680 if (!f) exit(1); 3670 if (!f) exit(1);
3681 fprintf(f, "%d\n", sizeof(int)); 3671 fprintf(f, "%d\n", sizeof(int));
3682 exit(0); 3672 exit(0);
3683 } 3673 }
3684 EOF 3674 EOF
3685 if { (eval echo configure:3686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3675 if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3686 then 3676 then
3687 ac_cv_sizeof_int=`cat conftestval` 3677 ac_cv_sizeof_int=`cat conftestval`
3688 else 3678 else
3689 echo "configure: failed program was:" >&5 3679 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5 3680 cat conftest.$ac_ext >&5
3701 EOF 3691 EOF
3702 } 3692 }
3703 3693
3704 3694
3705 echo $ac_n "checking size of long""... $ac_c" 1>&6 3695 echo $ac_n "checking size of long""... $ac_c" 1>&6
3706 echo "configure:3707: checking size of long" >&5 3696 echo "configure:3697: checking size of long" >&5
3707 3697
3708 cat > conftest.$ac_ext <<EOF 3698 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure" 3699 #line 3700 "configure"
3710 #include "confdefs.h" 3700 #include "confdefs.h"
3711 #include <stdio.h> 3701 #include <stdio.h>
3712 main() 3702 main()
3713 { 3703 {
3714 FILE *f=fopen("conftestval", "w"); 3704 FILE *f=fopen("conftestval", "w");
3715 if (!f) exit(1); 3705 if (!f) exit(1);
3716 fprintf(f, "%d\n", sizeof(long)); 3706 fprintf(f, "%d\n", sizeof(long));
3717 exit(0); 3707 exit(0);
3718 } 3708 }
3719 EOF 3709 EOF
3720 if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3721 then 3711 then
3722 ac_cv_sizeof_long=`cat conftestval` 3712 ac_cv_sizeof_long=`cat conftestval`
3723 else 3713 else
3724 echo "configure: failed program was:" >&5 3714 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5 3715 cat conftest.$ac_ext >&5
3736 EOF 3726 EOF
3737 } 3727 }
3738 3728
3739 3729
3740 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3730 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3741 echo "configure:3742: checking size of long long" >&5 3731 echo "configure:3732: checking size of long long" >&5
3742 3732
3743 cat > conftest.$ac_ext <<EOF 3733 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure" 3734 #line 3735 "configure"
3745 #include "confdefs.h" 3735 #include "confdefs.h"
3746 #include <stdio.h> 3736 #include <stdio.h>
3747 main() 3737 main()
3748 { 3738 {
3749 FILE *f=fopen("conftestval", "w"); 3739 FILE *f=fopen("conftestval", "w");
3750 if (!f) exit(1); 3740 if (!f) exit(1);
3751 fprintf(f, "%d\n", sizeof(long long)); 3741 fprintf(f, "%d\n", sizeof(long long));
3752 exit(0); 3742 exit(0);
3753 } 3743 }
3754 EOF 3744 EOF
3755 if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3756 then 3746 then
3757 ac_cv_sizeof_long_long=`cat conftestval` 3747 ac_cv_sizeof_long_long=`cat conftestval`
3758 else 3748 else
3759 echo "configure: failed program was:" >&5 3749 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5 3750 cat conftest.$ac_ext >&5
3771 EOF 3761 EOF
3772 } 3762 }
3773 3763
3774 3764
3775 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3765 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3776 echo "configure:3777: checking size of void *" >&5 3766 echo "configure:3767: checking size of void *" >&5
3777 3767
3778 cat > conftest.$ac_ext <<EOF 3768 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure" 3769 #line 3770 "configure"
3780 #include "confdefs.h" 3770 #include "confdefs.h"
3781 #include <stdio.h> 3771 #include <stdio.h>
3782 main() 3772 main()
3783 { 3773 {
3784 FILE *f=fopen("conftestval", "w"); 3774 FILE *f=fopen("conftestval", "w");
3785 if (!f) exit(1); 3775 if (!f) exit(1);
3786 fprintf(f, "%d\n", sizeof(void *)); 3776 fprintf(f, "%d\n", sizeof(void *));
3787 exit(0); 3777 exit(0);
3788 } 3778 }
3789 EOF 3779 EOF
3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3780 if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3791 then 3781 then
3792 ac_cv_sizeof_void_p=`cat conftestval` 3782 ac_cv_sizeof_void_p=`cat conftestval`
3793 else 3783 else
3794 echo "configure: failed program was:" >&5 3784 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5 3785 cat conftest.$ac_ext >&5
3807 } 3797 }
3808 3798
3809 3799
3810 3800
3811 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3801 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3812 echo "configure:3813: checking for long file names" >&5 3802 echo "configure:3803: checking for long file names" >&5
3813 3803
3814 ac_cv_sys_long_file_names=yes 3804 ac_cv_sys_long_file_names=yes
3815 # Test for long file names in all the places we know might matter: 3805 # Test for long file names in all the places we know might matter:
3816 # . the current directory, where building will happen 3806 # . the current directory, where building will happen
3817 # $prefix/lib where we will be installing things 3807 # $prefix/lib where we will be installing things
3854 fi 3844 fi
3855 3845
3856 3846
3857 3847
3858 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 3848 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
3859 echo "configure:3860: checking for sin in -lm" >&5 3849 echo "configure:3850: checking for sin in -lm" >&5
3860 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 3850 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3861 3851
3862 xe_check_libs=" -lm " 3852 xe_check_libs=" -lm "
3863 cat > conftest.$ac_ext <<EOF 3853 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure" 3854 #line 3855 "configure"
3865 #include "confdefs.h" 3855 #include "confdefs.h"
3866 /* Override any gcc2 internal prototype to avoid an error. */ 3856 /* Override any gcc2 internal prototype to avoid an error. */
3867 /* We use char because int might match the return type of a gcc2 3857 /* We use char because int might match the return type of a gcc2
3868 builtin and then its argument prototype would still apply. */ 3858 builtin and then its argument prototype would still apply. */
3869 char sin(); 3859 char sin();
3870 3860
3871 int main() { 3861 int main() {
3872 sin() 3862 sin()
3873 ; return 0; } 3863 ; return 0; }
3874 EOF 3864 EOF
3875 if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3865 if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3876 rm -rf conftest* 3866 rm -rf conftest*
3877 eval "ac_cv_lib_$ac_lib_var=yes" 3867 eval "ac_cv_lib_$ac_lib_var=yes"
3878 else 3868 else
3879 echo "configure: failed program was:" >&5 3869 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5 3870 cat conftest.$ac_ext >&5
3912 EOF 3902 EOF
3913 } 3903 }
3914 3904
3915 3905
3916 cat > conftest.$ac_ext <<EOF 3906 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure" 3907 #line 3908 "configure"
3918 #include "confdefs.h" 3908 #include "confdefs.h"
3919 #include <math.h> 3909 #include <math.h>
3920 int main() { 3910 int main() {
3921 return atanh(1.0) + asinh(1.0) + acosh(1.0); 3911 return atanh(1.0) + asinh(1.0) + acosh(1.0);
3922 ; return 0; } 3912 ; return 0; }
3923 EOF 3913 EOF
3924 if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3914 if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3925 rm -rf conftest* 3915 rm -rf conftest*
3926 { test "$extra_verbose" = "yes" && cat << \EOF 3916 { test "$extra_verbose" = "yes" && cat << \EOF
3927 Defining HAVE_INVERSE_HYPERBOLIC 3917 Defining HAVE_INVERSE_HYPERBOLIC
3928 EOF 3918 EOF
3929 cat >> confdefs.h <<\EOF 3919 cat >> confdefs.h <<\EOF
3936 cat conftest.$ac_ext >&5 3926 cat conftest.$ac_ext >&5
3937 fi 3927 fi
3938 rm -f conftest* 3928 rm -f conftest*
3939 3929
3940 echo "checking type of mail spool file locking" 1>&6 3930 echo "checking type of mail spool file locking" 1>&6
3941 echo "configure:3942: checking type of mail spool file locking" >&5 3931 echo "configure:3932: checking type of mail spool file locking" >&5
3942 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3932 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3943 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3933 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3944 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3934 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3945 Defining REAL_MAIL_USE_LOCKF 3935 Defining REAL_MAIL_USE_LOCKF
3946 EOF 3936 EOF
3960 else mail_locking="dot-locking" 3950 else mail_locking="dot-locking"
3961 fi 3951 fi
3962 3952
3963 3953
3964 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3954 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3965 echo "configure:3966: checking for kstat_open in -lkstat" >&5 3955 echo "configure:3956: checking for kstat_open in -lkstat" >&5
3966 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3956 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3967 3957
3968 xe_check_libs=" -lkstat " 3958 xe_check_libs=" -lkstat "
3969 cat > conftest.$ac_ext <<EOF 3959 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure" 3960 #line 3961 "configure"
3971 #include "confdefs.h" 3961 #include "confdefs.h"
3972 /* Override any gcc2 internal prototype to avoid an error. */ 3962 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2 3963 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */ 3964 builtin and then its argument prototype would still apply. */
3975 char kstat_open(); 3965 char kstat_open();
3976 3966
3977 int main() { 3967 int main() {
3978 kstat_open() 3968 kstat_open()
3979 ; return 0; } 3969 ; return 0; }
3980 EOF 3970 EOF
3981 if { (eval echo configure:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3982 rm -rf conftest* 3972 rm -rf conftest*
3983 eval "ac_cv_lib_$ac_lib_var=yes" 3973 eval "ac_cv_lib_$ac_lib_var=yes"
3984 else 3974 else
3985 echo "configure: failed program was:" >&5 3975 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5 3976 cat conftest.$ac_ext >&5
4010 4000
4011 4001
4012 4002
4013 4003
4014 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4004 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4015 echo "configure:4016: checking for kvm_read in -lkvm" >&5 4005 echo "configure:4006: checking for kvm_read in -lkvm" >&5
4016 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4006 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4017 4007
4018 xe_check_libs=" -lkvm " 4008 xe_check_libs=" -lkvm "
4019 cat > conftest.$ac_ext <<EOF 4009 cat > conftest.$ac_ext <<EOF
4020 #line 4021 "configure" 4010 #line 4011 "configure"
4021 #include "confdefs.h" 4011 #include "confdefs.h"
4022 /* Override any gcc2 internal prototype to avoid an error. */ 4012 /* Override any gcc2 internal prototype to avoid an error. */
4023 /* We use char because int might match the return type of a gcc2 4013 /* We use char because int might match the return type of a gcc2
4024 builtin and then its argument prototype would still apply. */ 4014 builtin and then its argument prototype would still apply. */
4025 char kvm_read(); 4015 char kvm_read();
4026 4016
4027 int main() { 4017 int main() {
4028 kvm_read() 4018 kvm_read()
4029 ; return 0; } 4019 ; return 0; }
4030 EOF 4020 EOF
4031 if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4032 rm -rf conftest* 4022 rm -rf conftest*
4033 eval "ac_cv_lib_$ac_lib_var=yes" 4023 eval "ac_cv_lib_$ac_lib_var=yes"
4034 else 4024 else
4035 echo "configure: failed program was:" >&5 4025 echo "configure: failed program was:" >&5
4036 cat conftest.$ac_ext >&5 4026 cat conftest.$ac_ext >&5
4060 4050
4061 4051
4062 4052
4063 4053
4064 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4054 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4065 echo "configure:4066: checking for cma_open in -lpthreads" >&5 4055 echo "configure:4056: checking for cma_open in -lpthreads" >&5
4066 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4056 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4067 4057
4068 xe_check_libs=" -lpthreads " 4058 xe_check_libs=" -lpthreads "
4069 cat > conftest.$ac_ext <<EOF 4059 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure" 4060 #line 4061 "configure"
4071 #include "confdefs.h" 4061 #include "confdefs.h"
4072 /* Override any gcc2 internal prototype to avoid an error. */ 4062 /* Override any gcc2 internal prototype to avoid an error. */
4073 /* We use char because int might match the return type of a gcc2 4063 /* We use char because int might match the return type of a gcc2
4074 builtin and then its argument prototype would still apply. */ 4064 builtin and then its argument prototype would still apply. */
4075 char cma_open(); 4065 char cma_open();
4076 4066
4077 int main() { 4067 int main() {
4078 cma_open() 4068 cma_open()
4079 ; return 0; } 4069 ; return 0; }
4080 EOF 4070 EOF
4081 if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4071 if { (eval echo configure:4072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4082 rm -rf conftest* 4072 rm -rf conftest*
4083 eval "ac_cv_lib_$ac_lib_var=yes" 4073 eval "ac_cv_lib_$ac_lib_var=yes"
4084 else 4074 else
4085 echo "configure: failed program was:" >&5 4075 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5 4076 cat conftest.$ac_ext >&5
4112 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 4102 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
4113 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 4103 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
4114 fi 4104 fi
4115 4105
4116 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4106 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4117 echo "configure:4118: checking whether the -xildoff compiler flag is required" >&5 4107 echo "configure:4108: checking whether the -xildoff compiler flag is required" >&5
4118 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4108 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4119 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4109 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4120 then echo "$ac_t""no" 1>&6; 4110 then echo "$ac_t""no" 1>&6;
4121 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 4111 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
4122 fi 4112 fi
4123 else echo "$ac_t""no" 1>&6 4113 else echo "$ac_t""no" 1>&6
4124 fi 4114 fi
4125 4115
4126 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4116 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4127 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4117 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4128 echo "configure:4129: checking for \"-z ignore\" linker flag" >&5 4118 echo "configure:4119: checking for \"-z ignore\" linker flag" >&5
4129 case "`ld -h 2>&1`" in 4119 case "`ld -h 2>&1`" in
4130 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4120 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4131 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4121 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4132 *) echo "$ac_t""no" 1>&6 ;; 4122 *) echo "$ac_t""no" 1>&6 ;;
4133 esac 4123 esac
4134 fi 4124 fi
4135 4125
4136 4126
4137 echo "checking "for specified window system"" 1>&6 4127 echo "checking "for specified window system"" 1>&6
4138 echo "configure:4139: checking "for specified window system"" >&5 4128 echo "configure:4129: checking "for specified window system"" >&5
4139 4129
4140 if test "$with_x11" != "no"; then 4130 if test "$with_x11" != "no"; then
4141 test "$x_includes $x_libraries" != "NONE NONE" && \ 4131 test "$x_includes $x_libraries" != "NONE NONE" && \
4142 window_system=x11 with_x11=yes 4132 window_system=x11 with_x11=yes
4143 4133
4163 # If we find X, set shell vars x_includes and x_libraries to the 4153 # If we find X, set shell vars x_includes and x_libraries to the
4164 # paths, otherwise set no_x=yes. 4154 # paths, otherwise set no_x=yes.
4165 # Uses ac_ vars as temps to allow command line to override cache and checks. 4155 # Uses ac_ vars as temps to allow command line to override cache and checks.
4166 # --without-x overrides everything else, but does not touch the cache. 4156 # --without-x overrides everything else, but does not touch the cache.
4167 echo $ac_n "checking for X""... $ac_c" 1>&6 4157 echo $ac_n "checking for X""... $ac_c" 1>&6
4168 echo "configure:4169: checking for X" >&5 4158 echo "configure:4159: checking for X" >&5
4169 4159
4170 # Check whether --with-x or --without-x was given. 4160 # Check whether --with-x or --without-x was given.
4171 if test "${with_x+set}" = set; then 4161 if test "${with_x+set}" = set; then
4172 withval="$with_x" 4162 withval="$with_x"
4173 : 4163 :
4223 # Guess where to find include files, by looking for this one X11 .h file. 4213 # Guess where to find include files, by looking for this one X11 .h file.
4224 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4214 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4225 4215
4226 # First, try using that file with no special directory specified. 4216 # First, try using that file with no special directory specified.
4227 cat > conftest.$ac_ext <<EOF 4217 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure" 4218 #line 4219 "configure"
4229 #include "confdefs.h" 4219 #include "confdefs.h"
4230 #include <$x_direct_test_include> 4220 #include <$x_direct_test_include>
4231 EOF 4221 EOF
4232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4233 { (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4223 { (eval echo configure:4224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4234 ac_err=`grep -v '^ *+' conftest.out` 4224 ac_err=`grep -v '^ *+' conftest.out`
4235 if test -z "$ac_err"; then 4225 if test -z "$ac_err"; then
4236 rm -rf conftest* 4226 rm -rf conftest*
4237 # We can compile using X headers with no special include directory. 4227 # We can compile using X headers with no special include directory.
4238 ac_x_includes= 4228 ac_x_includes=
4297 # See if we find them without any special options. 4287 # See if we find them without any special options.
4298 # Don't add to $LIBS permanently. 4288 # Don't add to $LIBS permanently.
4299 ac_save_LIBS="$LIBS" 4289 ac_save_LIBS="$LIBS"
4300 LIBS="-l$x_direct_test_library $LIBS" 4290 LIBS="-l$x_direct_test_library $LIBS"
4301 cat > conftest.$ac_ext <<EOF 4291 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure" 4292 #line 4293 "configure"
4303 #include "confdefs.h" 4293 #include "confdefs.h"
4304 4294
4305 int main() { 4295 int main() {
4306 ${x_direct_test_function}() 4296 ${x_direct_test_function}()
4307 ; return 0; } 4297 ; return 0; }
4308 EOF 4298 EOF
4309 if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4299 if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4310 rm -rf conftest* 4300 rm -rf conftest*
4311 LIBS="$ac_save_LIBS" 4301 LIBS="$ac_save_LIBS"
4312 # We can link X programs with no special library path. 4302 # We can link X programs with no special library path.
4313 ac_x_libraries= 4303 ac_x_libraries=
4314 else 4304 else
4413 # For Solaris; some versions of Sun CC require a space after -R and 4403 # For Solaris; some versions of Sun CC require a space after -R and
4414 # others require no space. Words are not sufficient . . . . 4404 # others require no space. Words are not sufficient . . . .
4415 case "`(uname -sr) 2>/dev/null`" in 4405 case "`(uname -sr) 2>/dev/null`" in
4416 "SunOS 5"*) 4406 "SunOS 5"*)
4417 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4407 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4418 echo "configure:4419: checking whether -R must be followed by a space" >&5 4408 echo "configure:4409: checking whether -R must be followed by a space" >&5
4419 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4409 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4420 cat > conftest.$ac_ext <<EOF 4410 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure" 4411 #line 4412 "configure"
4422 #include "confdefs.h" 4412 #include "confdefs.h"
4423 4413
4424 int main() { 4414 int main() {
4425 4415
4426 ; return 0; } 4416 ; return 0; }
4427 EOF 4417 EOF
4428 if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4429 rm -rf conftest* 4419 rm -rf conftest*
4430 ac_R_nospace=yes 4420 ac_R_nospace=yes
4431 else 4421 else
4432 echo "configure: failed program was:" >&5 4422 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5 4423 cat conftest.$ac_ext >&5
4439 echo "$ac_t""no" 1>&6 4429 echo "$ac_t""no" 1>&6
4440 X_LIBS="$X_LIBS -R$x_libraries" 4430 X_LIBS="$X_LIBS -R$x_libraries"
4441 else 4431 else
4442 LIBS="$ac_xsave_LIBS -R $x_libraries" 4432 LIBS="$ac_xsave_LIBS -R $x_libraries"
4443 cat > conftest.$ac_ext <<EOF 4433 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure" 4434 #line 4435 "configure"
4445 #include "confdefs.h" 4435 #include "confdefs.h"
4446 4436
4447 int main() { 4437 int main() {
4448 4438
4449 ; return 0; } 4439 ; return 0; }
4450 EOF 4440 EOF
4451 if { (eval echo configure:4452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4441 if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4452 rm -rf conftest* 4442 rm -rf conftest*
4453 ac_R_space=yes 4443 ac_R_space=yes
4454 else 4444 else
4455 echo "configure: failed program was:" >&5 4445 echo "configure: failed program was:" >&5
4456 cat conftest.$ac_ext >&5 4446 cat conftest.$ac_ext >&5
4482 if test "$with_dnet" = "no" ; then 4472 if test "$with_dnet" = "no" ; then
4483 ac_cv_lib_dnet_dnet_ntoa=no 4473 ac_cv_lib_dnet_dnet_ntoa=no
4484 else 4474 else
4485 4475
4486 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4476 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4487 echo "configure:4488: checking for dnet_ntoa in -ldnet" >&5 4477 echo "configure:4478: checking for dnet_ntoa in -ldnet" >&5
4488 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4478 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4489 4479
4490 xe_check_libs=" -ldnet " 4480 xe_check_libs=" -ldnet "
4491 cat > conftest.$ac_ext <<EOF 4481 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure" 4482 #line 4483 "configure"
4493 #include "confdefs.h" 4483 #include "confdefs.h"
4494 /* Override any gcc2 internal prototype to avoid an error. */ 4484 /* Override any gcc2 internal prototype to avoid an error. */
4495 /* We use char because int might match the return type of a gcc2 4485 /* We use char because int might match the return type of a gcc2
4496 builtin and then its argument prototype would still apply. */ 4486 builtin and then its argument prototype would still apply. */
4497 char dnet_ntoa(); 4487 char dnet_ntoa();
4498 4488
4499 int main() { 4489 int main() {
4500 dnet_ntoa() 4490 dnet_ntoa()
4501 ; return 0; } 4491 ; return 0; }
4502 EOF 4492 EOF
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4493 if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4504 rm -rf conftest* 4494 rm -rf conftest*
4505 eval "ac_cv_lib_$ac_lib_var=yes" 4495 eval "ac_cv_lib_$ac_lib_var=yes"
4506 else 4496 else
4507 echo "configure: failed program was:" >&5 4497 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5 4498 cat conftest.$ac_ext >&5
4522 fi 4512 fi
4523 4513
4524 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4514 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4525 4515
4526 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4516 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4527 echo "configure:4528: checking for dnet_ntoa in -ldnet_stub" >&5 4517 echo "configure:4518: checking for dnet_ntoa in -ldnet_stub" >&5
4528 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4518 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4529 4519
4530 xe_check_libs=" -ldnet_stub " 4520 xe_check_libs=" -ldnet_stub "
4531 cat > conftest.$ac_ext <<EOF 4521 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure" 4522 #line 4523 "configure"
4533 #include "confdefs.h" 4523 #include "confdefs.h"
4534 /* Override any gcc2 internal prototype to avoid an error. */ 4524 /* Override any gcc2 internal prototype to avoid an error. */
4535 /* We use char because int might match the return type of a gcc2 4525 /* We use char because int might match the return type of a gcc2
4536 builtin and then its argument prototype would still apply. */ 4526 builtin and then its argument prototype would still apply. */
4537 char dnet_ntoa(); 4527 char dnet_ntoa();
4538 4528
4539 int main() { 4529 int main() {
4540 dnet_ntoa() 4530 dnet_ntoa()
4541 ; return 0; } 4531 ; return 0; }
4542 EOF 4532 EOF
4543 if { (eval echo configure:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4544 rm -rf conftest* 4534 rm -rf conftest*
4545 eval "ac_cv_lib_$ac_lib_var=yes" 4535 eval "ac_cv_lib_$ac_lib_var=yes"
4546 else 4536 else
4547 echo "configure: failed program was:" >&5 4537 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5 4538 cat conftest.$ac_ext >&5
4567 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4557 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4568 # needs -lnsl. 4558 # needs -lnsl.
4569 # The nsl library prevents programs from opening the X display 4559 # The nsl library prevents programs from opening the X display
4570 # on Irix 5.2, according to dickey@clark.net. 4560 # on Irix 5.2, according to dickey@clark.net.
4571 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4561 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4572 echo "configure:4573: checking for gethostbyname" >&5 4562 echo "configure:4563: checking for gethostbyname" >&5
4573 4563
4574 cat > conftest.$ac_ext <<EOF 4564 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure" 4565 #line 4566 "configure"
4576 #include "confdefs.h" 4566 #include "confdefs.h"
4577 /* System header to define __stub macros and hopefully few prototypes, 4567 /* System header to define __stub macros and hopefully few prototypes,
4578 which can conflict with char gethostbyname(); below. */ 4568 which can conflict with char gethostbyname(); below. */
4579 #include <assert.h> 4569 #include <assert.h>
4580 /* Override any gcc2 internal prototype to avoid an error. */ 4570 /* Override any gcc2 internal prototype to avoid an error. */
4593 gethostbyname(); 4583 gethostbyname();
4594 #endif 4584 #endif
4595 4585
4596 ; return 0; } 4586 ; return 0; }
4597 EOF 4587 EOF
4598 if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4588 if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4599 rm -rf conftest* 4589 rm -rf conftest*
4600 eval "ac_cv_func_gethostbyname=yes" 4590 eval "ac_cv_func_gethostbyname=yes"
4601 else 4591 else
4602 echo "configure: failed program was:" >&5 4592 echo "configure: failed program was:" >&5
4603 cat conftest.$ac_ext >&5 4593 cat conftest.$ac_ext >&5
4614 fi 4604 fi
4615 4605
4616 if test $ac_cv_func_gethostbyname = no; then 4606 if test $ac_cv_func_gethostbyname = no; then
4617 4607
4618 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4608 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4619 echo "configure:4620: checking for gethostbyname in -lnsl" >&5 4609 echo "configure:4610: checking for gethostbyname in -lnsl" >&5
4620 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4610 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4621 4611
4622 xe_check_libs=" -lnsl " 4612 xe_check_libs=" -lnsl "
4623 cat > conftest.$ac_ext <<EOF 4613 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure" 4614 #line 4615 "configure"
4625 #include "confdefs.h" 4615 #include "confdefs.h"
4626 /* Override any gcc2 internal prototype to avoid an error. */ 4616 /* Override any gcc2 internal prototype to avoid an error. */
4627 /* We use char because int might match the return type of a gcc2 4617 /* We use char because int might match the return type of a gcc2
4628 builtin and then its argument prototype would still apply. */ 4618 builtin and then its argument prototype would still apply. */
4629 char gethostbyname(); 4619 char gethostbyname();
4630 4620
4631 int main() { 4621 int main() {
4632 gethostbyname() 4622 gethostbyname()
4633 ; return 0; } 4623 ; return 0; }
4634 EOF 4624 EOF
4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4636 rm -rf conftest* 4626 rm -rf conftest*
4637 eval "ac_cv_lib_$ac_lib_var=yes" 4627 eval "ac_cv_lib_$ac_lib_var=yes"
4638 else 4628 else
4639 echo "configure: failed program was:" >&5 4629 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5 4630 cat conftest.$ac_ext >&5
4660 # on later versions), says simon@lia.di.epfl.ch: it contains 4650 # on later versions), says simon@lia.di.epfl.ch: it contains
4661 # gethostby* variants that don't use the nameserver (or something). 4651 # gethostby* variants that don't use the nameserver (or something).
4662 # -lsocket must be given before -lnsl if both are needed. 4652 # -lsocket must be given before -lnsl if both are needed.
4663 # We assume that if connect needs -lnsl, so does gethostbyname. 4653 # We assume that if connect needs -lnsl, so does gethostbyname.
4664 echo $ac_n "checking for connect""... $ac_c" 1>&6 4654 echo $ac_n "checking for connect""... $ac_c" 1>&6
4665 echo "configure:4666: checking for connect" >&5 4655 echo "configure:4656: checking for connect" >&5
4666 4656
4667 cat > conftest.$ac_ext <<EOF 4657 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure" 4658 #line 4659 "configure"
4669 #include "confdefs.h" 4659 #include "confdefs.h"
4670 /* System header to define __stub macros and hopefully few prototypes, 4660 /* System header to define __stub macros and hopefully few prototypes,
4671 which can conflict with char connect(); below. */ 4661 which can conflict with char connect(); below. */
4672 #include <assert.h> 4662 #include <assert.h>
4673 /* Override any gcc2 internal prototype to avoid an error. */ 4663 /* Override any gcc2 internal prototype to avoid an error. */
4686 connect(); 4676 connect();
4687 #endif 4677 #endif
4688 4678
4689 ; return 0; } 4679 ; return 0; }
4690 EOF 4680 EOF
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4692 rm -rf conftest* 4682 rm -rf conftest*
4693 eval "ac_cv_func_connect=yes" 4683 eval "ac_cv_func_connect=yes"
4694 else 4684 else
4695 echo "configure: failed program was:" >&5 4685 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5 4686 cat conftest.$ac_ext >&5
4709 if test $ac_cv_func_connect = no; then 4699 if test $ac_cv_func_connect = no; then
4710 4700
4711 xe_msg_checking="for connect in -lsocket" 4701 xe_msg_checking="for connect in -lsocket"
4712 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4702 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4713 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4703 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4714 echo "configure:4715: checking "$xe_msg_checking"" >&5 4704 echo "configure:4705: checking "$xe_msg_checking"" >&5
4715 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4705 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4716 4706
4717 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4707 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4718 cat > conftest.$ac_ext <<EOF 4708 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure" 4709 #line 4710 "configure"
4720 #include "confdefs.h" 4710 #include "confdefs.h"
4721 /* Override any gcc2 internal prototype to avoid an error. */ 4711 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2 4712 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */ 4713 builtin and then its argument prototype would still apply. */
4724 char connect(); 4714 char connect();
4725 4715
4726 int main() { 4716 int main() {
4727 connect() 4717 connect()
4728 ; return 0; } 4718 ; return 0; }
4729 EOF 4719 EOF
4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4731 rm -rf conftest* 4721 rm -rf conftest*
4732 eval "ac_cv_lib_$ac_lib_var=yes" 4722 eval "ac_cv_lib_$ac_lib_var=yes"
4733 else 4723 else
4734 echo "configure: failed program was:" >&5 4724 echo "configure: failed program was:" >&5
4735 cat conftest.$ac_ext >&5 4725 cat conftest.$ac_ext >&5
4749 4739
4750 fi 4740 fi
4751 4741
4752 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4742 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4753 echo $ac_n "checking for remove""... $ac_c" 1>&6 4743 echo $ac_n "checking for remove""... $ac_c" 1>&6
4754 echo "configure:4755: checking for remove" >&5 4744 echo "configure:4745: checking for remove" >&5
4755 4745
4756 cat > conftest.$ac_ext <<EOF 4746 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure" 4747 #line 4748 "configure"
4758 #include "confdefs.h" 4748 #include "confdefs.h"
4759 /* System header to define __stub macros and hopefully few prototypes, 4749 /* System header to define __stub macros and hopefully few prototypes,
4760 which can conflict with char remove(); below. */ 4750 which can conflict with char remove(); below. */
4761 #include <assert.h> 4751 #include <assert.h>
4762 /* Override any gcc2 internal prototype to avoid an error. */ 4752 /* Override any gcc2 internal prototype to avoid an error. */
4775 remove(); 4765 remove();
4776 #endif 4766 #endif
4777 4767
4778 ; return 0; } 4768 ; return 0; }
4779 EOF 4769 EOF
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4781 rm -rf conftest* 4771 rm -rf conftest*
4782 eval "ac_cv_func_remove=yes" 4772 eval "ac_cv_func_remove=yes"
4783 else 4773 else
4784 echo "configure: failed program was:" >&5 4774 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5 4775 cat conftest.$ac_ext >&5
4796 fi 4786 fi
4797 4787
4798 if test $ac_cv_func_remove = no; then 4788 if test $ac_cv_func_remove = no; then
4799 4789
4800 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4790 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4801 echo "configure:4802: checking for remove in -lposix" >&5 4791 echo "configure:4792: checking for remove in -lposix" >&5
4802 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4792 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4803 4793
4804 xe_check_libs=" -lposix " 4794 xe_check_libs=" -lposix "
4805 cat > conftest.$ac_ext <<EOF 4795 cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure" 4796 #line 4797 "configure"
4807 #include "confdefs.h" 4797 #include "confdefs.h"
4808 /* Override any gcc2 internal prototype to avoid an error. */ 4798 /* Override any gcc2 internal prototype to avoid an error. */
4809 /* We use char because int might match the return type of a gcc2 4799 /* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */ 4800 builtin and then its argument prototype would still apply. */
4811 char remove(); 4801 char remove();
4812 4802
4813 int main() { 4803 int main() {
4814 remove() 4804 remove()
4815 ; return 0; } 4805 ; return 0; }
4816 EOF 4806 EOF
4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4818 rm -rf conftest* 4808 rm -rf conftest*
4819 eval "ac_cv_lib_$ac_lib_var=yes" 4809 eval "ac_cv_lib_$ac_lib_var=yes"
4820 else 4810 else
4821 echo "configure: failed program was:" >&5 4811 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5 4812 cat conftest.$ac_ext >&5
4836 4826
4837 fi 4827 fi
4838 4828
4839 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4829 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4840 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4830 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4841 echo "configure:4842: checking for shmat" >&5 4831 echo "configure:4832: checking for shmat" >&5
4842 4832
4843 cat > conftest.$ac_ext <<EOF 4833 cat > conftest.$ac_ext <<EOF
4844 #line 4845 "configure" 4834 #line 4835 "configure"
4845 #include "confdefs.h" 4835 #include "confdefs.h"
4846 /* System header to define __stub macros and hopefully few prototypes, 4836 /* System header to define __stub macros and hopefully few prototypes,
4847 which can conflict with char shmat(); below. */ 4837 which can conflict with char shmat(); below. */
4848 #include <assert.h> 4838 #include <assert.h>
4849 /* Override any gcc2 internal prototype to avoid an error. */ 4839 /* Override any gcc2 internal prototype to avoid an error. */
4862 shmat(); 4852 shmat();
4863 #endif 4853 #endif
4864 4854
4865 ; return 0; } 4855 ; return 0; }
4866 EOF 4856 EOF
4867 if { (eval echo configure:4868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4868 rm -rf conftest* 4858 rm -rf conftest*
4869 eval "ac_cv_func_shmat=yes" 4859 eval "ac_cv_func_shmat=yes"
4870 else 4860 else
4871 echo "configure: failed program was:" >&5 4861 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5 4862 cat conftest.$ac_ext >&5
4883 fi 4873 fi
4884 4874
4885 if test $ac_cv_func_shmat = no; then 4875 if test $ac_cv_func_shmat = no; then
4886 4876
4887 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4877 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4888 echo "configure:4889: checking for shmat in -lipc" >&5 4878 echo "configure:4879: checking for shmat in -lipc" >&5
4889 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4879 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4890 4880
4891 xe_check_libs=" -lipc " 4881 xe_check_libs=" -lipc "
4892 cat > conftest.$ac_ext <<EOF 4882 cat > conftest.$ac_ext <<EOF
4893 #line 4894 "configure" 4883 #line 4884 "configure"
4894 #include "confdefs.h" 4884 #include "confdefs.h"
4895 /* Override any gcc2 internal prototype to avoid an error. */ 4885 /* Override any gcc2 internal prototype to avoid an error. */
4896 /* We use char because int might match the return type of a gcc2 4886 /* We use char because int might match the return type of a gcc2
4897 builtin and then its argument prototype would still apply. */ 4887 builtin and then its argument prototype would still apply. */
4898 char shmat(); 4888 char shmat();
4899 4889
4900 int main() { 4890 int main() {
4901 shmat() 4891 shmat()
4902 ; return 0; } 4892 ; return 0; }
4903 EOF 4893 EOF
4904 if { (eval echo configure:4905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4894 if { (eval echo configure:4895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4905 rm -rf conftest* 4895 rm -rf conftest*
4906 eval "ac_cv_lib_$ac_lib_var=yes" 4896 eval "ac_cv_lib_$ac_lib_var=yes"
4907 else 4897 else
4908 echo "configure: failed program was:" >&5 4898 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5 4899 cat conftest.$ac_ext >&5
4933 # These have to be linked with before -lX11, unlike the other 4923 # These have to be linked with before -lX11, unlike the other
4934 # libraries we check for below, so use a different variable. 4924 # libraries we check for below, so use a different variable.
4935 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4925 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4936 4926
4937 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4927 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4938 echo "configure:4939: checking for IceConnectionNumber in -lICE" >&5 4928 echo "configure:4929: checking for IceConnectionNumber in -lICE" >&5
4939 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4929 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4940 4930
4941 xe_check_libs=" -lICE " 4931 xe_check_libs=" -lICE "
4942 cat > conftest.$ac_ext <<EOF 4932 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure" 4933 #line 4934 "configure"
4944 #include "confdefs.h" 4934 #include "confdefs.h"
4945 /* Override any gcc2 internal prototype to avoid an error. */ 4935 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2 4936 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */ 4937 builtin and then its argument prototype would still apply. */
4948 char IceConnectionNumber(); 4938 char IceConnectionNumber();
4949 4939
4950 int main() { 4940 int main() {
4951 IceConnectionNumber() 4941 IceConnectionNumber()
4952 ; return 0; } 4942 ; return 0; }
4953 EOF 4943 EOF
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4944 if { (eval echo configure:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4955 rm -rf conftest* 4945 rm -rf conftest*
4956 eval "ac_cv_lib_$ac_lib_var=yes" 4946 eval "ac_cv_lib_$ac_lib_var=yes"
4957 else 4947 else
4958 echo "configure: failed program was:" >&5 4948 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5 4949 cat conftest.$ac_ext >&5
4984 case "$with_x11" in 4974 case "$with_x11" in
4985 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;; 4975 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
4986 no ) window_system=none HAVE_X_WINDOWS=no ;; 4976 no ) window_system=none HAVE_X_WINDOWS=no ;;
4987 esac 4977 esac
4988 4978
4989 if test "$with_msw" != "no"; then 4979 if test "$with_x11" = "yes"; then
4990 echo "checking for MS-Windows" 1>&6 4980 { test "$extra_verbose" = "yes" && cat << \EOF
4991 echo "configure:4992: checking for MS-Windows" >&5 4981 Defining HAVE_X_WINDOWS
4982 EOF
4983 cat >> confdefs.h <<\EOF
4984 #define HAVE_X_WINDOWS 1
4985 EOF
4986 }
4987
4988 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
4989 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
4990
4991 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
4992 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
4993 if test -d "$lib_dir" -a -d "$inc_dir"; then
4994 case "$x_libraries" in *"$lib_dir"* ) ;; *)
4995 x_libraries="$lib_dir $x_libraries"
4996 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
4997 esac
4998 case "$x_includes" in "$inc_dir"* ) ;; *)
4999 x_includes="$inc_dir $x_includes"
5000 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
5001 esac
5002 break; fi
5003 done
5004
5005 for rel in "X11R6" "X11R5" "X11R4"; do
5006 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
5007 if test -d "$lib_dir" -a -d "$inc_dir"; then
5008 case "$x_libraries" in *"$lib_dir"* ) ;; *)
5009 x_libraries="$x_libraries $lib_dir"
5010 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
5011 esac
5012 case "$x_includes" in "$inc_dir"* ) ;; *)
5013 x_includes="$x_includes $inc_dir"
5014 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
5015 esac
5016 break; fi
5017 done
5018
5019 ld_switch_x_site="$X_LIBS"
5020
4992 5021
4993 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 5022 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
4994 echo "configure:4995: checking for main in -lgdi32" >&5 5023 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
4995 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 5024 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
4996 5025
4997 xe_check_libs=" -lgdi32 " 5026 runpath="" runpath_dirs=""
4998 cat > conftest.$ac_ext <<EOF 5027 if test -n "$LD_RUN_PATH"; then
4999 #line 5000 "configure" 5028 runpath="$LD_RUN_PATH"
5029 elif test "$GCC" = "yes"; then
5030 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
5031 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
5032 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
5033 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
5034 case "$arg" in P,* | -L* | -R* )
5035 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
5036 {
5037 xe_runpath_dir="$dir"
5038 test "$xe_runpath_dir" != "/lib" -a \
5039 "$xe_runpath_dir" != "/usr/lib" -a \
5040 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5041 eval "$xe_add_unique_runpath_dir"
5042 }
5043 done ;;
5044 esac
5045 done
5046 ld_switch_run="$ld_switch_run_save"
5047 rm -f conftest*
5048 else
5049 for arg in $ld_switch_site $ld_switch_x_site; do
5050 case "$arg" in -L*) {
5051 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
5052 test "$xe_runpath_dir" != "/lib" -a \
5053 "$xe_runpath_dir" != "/usr/lib" -a \
5054 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
5055 eval "$xe_add_unique_runpath_dir"
5056 };; esac
5057 done
5058 if test "$opsys $need_motif" = "sol2 yes"; then
5059 xe_runpath_dir="/opt/SUNWdt/lib";
5060 eval "$xe_add_unique_runpath_dir";
5061 fi
5062 fi
5063 if test -n "$runpath"; then
5064 ld_switch_run="${dash_r}${runpath}"
5065 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5066 fi
5067 fi
5068
5069
5070 if test "$extra_verbose" = "yes"; then
5071 echo; echo "X11 compilation variables:"
5072 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5073 echo
5074 fi
5075
5076 bitmapdirs=
5077 if test "$x_includes" != NONE; then
5078 for i in $x_includes; do
5079 if test -d "$i/bitmaps"; then
5080 bitmapdirs="$i/bitmaps:$bitmapdirs"
5081 fi
5082 if test -d "$i/X11/bitmaps"; then
5083 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
5084 fi
5085 done
5086 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
5087 fi
5088 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
5089 Defining BITMAPDIR = "$bitmapdirs"
5090 EOF
5091 cat >> confdefs.h <<EOF
5092 #define BITMAPDIR "$bitmapdirs"
5093 EOF
5094 }
5095
5096
5097 echo "checking for X defines extracted by xmkmf" 1>&6
5098 echo "configure:5099: checking for X defines extracted by xmkmf" >&5
5099 rm -fr conftestdir
5100 if mkdir conftestdir; then
5101 cd conftestdir
5102 cat > Imakefile <<'EOF'
5103 xetest:
5104 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5105 EOF
5106 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5107 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5108 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5109 fi
5110 cd ..
5111 rm -fr conftestdir
5112 for word in $xmkmf_defines; do
5113 case "$word" in
5114 -D*=* ) ;;
5115 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5116 { test "$extra_verbose" = "yes" && cat << EOF
5117 Defining $word
5118 EOF
5119 cat >> confdefs.h <<EOF
5120 #define $word 1
5121 EOF
5122 }
5123 ;;
5124 esac
5125 done
5126 fi
5127
5128 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5129 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5130 echo "configure:5131: checking for X11/Intrinsic.h" >&5
5131
5132 cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 #include <X11/Intrinsic.h>
5136 EOF
5137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5138 { (eval echo configure:5139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5139 ac_err=`grep -v '^ *+' conftest.out`
5140 if test -z "$ac_err"; then
5141 rm -rf conftest*
5142 eval "ac_cv_header_$ac_safe=yes"
5143 else
5144 echo "$ac_err" >&5
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 rm -rf conftest*
5148 eval "ac_cv_header_$ac_safe=no"
5149 fi
5150 rm -f conftest*
5151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5152 echo "$ac_t""yes" 1>&6
5153 :
5154 else
5155 echo "$ac_t""no" 1>&6
5156 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5157 fi
5158
5159
5160
5161 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5162 echo "configure:5163: checking for XOpenDisplay in -lX11" >&5
5163 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5164
5165 xe_check_libs=" -lX11 "
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5169 /* Override any gcc2 internal prototype to avoid an error. */
5170 /* We use char because int might match the return type of a gcc2
5171 builtin and then its argument prototype would still apply. */
5172 char XOpenDisplay();
5173
5174 int main() {
5175 XOpenDisplay()
5176 ; return 0; }
5177 EOF
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5179 rm -rf conftest*
5180 eval "ac_cv_lib_$ac_lib_var=yes"
5181 else
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5184 rm -rf conftest*
5185 eval "ac_cv_lib_$ac_lib_var=no"
5186 fi
5187 rm -f conftest*
5188 xe_check_libs=""
5189
5190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5191 echo "$ac_t""yes" 1>&6
5192 have_lib_x11=yes
5193 else
5194 echo "$ac_t""no" 1>&6
5195 fi
5196
5197
5198 if test "$have_lib_x11" != "yes"; then
5199
5200 xe_msg_checking="for XGetFontProperty in -lX11"
5201 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5202 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5203 echo "configure:5204: checking "$xe_msg_checking"" >&5
5204 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5205
5206 xe_check_libs=" -lX11 -b i486-linuxaout"
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5210 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5213 char XGetFontProperty();
5214
5215 int main() {
5216 XGetFontProperty()
5217 ; return 0; }
5218 EOF
5219 if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5220 rm -rf conftest*
5221 eval "ac_cv_lib_$ac_lib_var=yes"
5222 else
5223 echo "configure: failed program was:" >&5
5224 cat conftest.$ac_ext >&5
5225 rm -rf conftest*
5226 eval "ac_cv_lib_$ac_lib_var=no"
5227 fi
5228 rm -f conftest*
5229 xe_check_libs=""
5230
5231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5232 echo "$ac_t""yes" 1>&6
5233 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5234 else
5235 echo "$ac_t""no" 1>&6
5236 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5237 fi
5238
5239
5240 fi
5241 libs_x="-lX11"
5242 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5243
5244
5245 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5246 echo "configure:5247: checking for XShapeSelectInput in -lXext" >&5
5247 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5248
5249 xe_check_libs=" -lXext "
5250 cat > conftest.$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5253 /* Override any gcc2 internal prototype to avoid an error. */
5254 /* We use char because int might match the return type of a gcc2
5255 builtin and then its argument prototype would still apply. */
5256 char XShapeSelectInput();
5257
5258 int main() {
5259 XShapeSelectInput()
5260 ; return 0; }
5261 EOF
5262 if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5263 rm -rf conftest*
5264 eval "ac_cv_lib_$ac_lib_var=yes"
5265 else
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5268 rm -rf conftest*
5269 eval "ac_cv_lib_$ac_lib_var=no"
5270 fi
5271 rm -f conftest*
5272 xe_check_libs=""
5273
5274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5275 echo "$ac_t""yes" 1>&6
5276 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5277 else
5278 echo "$ac_t""no" 1>&6
5279 fi
5280
5281
5282
5283
5284 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5285 echo "configure:5286: checking for XtOpenDisplay in -lXt" >&5
5286 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5287
5288 xe_check_libs=" -lXt "
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5292 /* Override any gcc2 internal prototype to avoid an error. */
5293 /* We use char because int might match the return type of a gcc2
5294 builtin and then its argument prototype would still apply. */
5295 char XtOpenDisplay();
5296
5297 int main() {
5298 XtOpenDisplay()
5299 ; return 0; }
5300 EOF
5301 if { (eval echo configure:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5302 rm -rf conftest*
5303 eval "ac_cv_lib_$ac_lib_var=yes"
5304 else
5305 echo "configure: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5307 rm -rf conftest*
5308 eval "ac_cv_lib_$ac_lib_var=no"
5309 fi
5310 rm -f conftest*
5311 xe_check_libs=""
5312
5313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5314 echo "$ac_t""yes" 1>&6
5315 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5316 else
5317 echo "$ac_t""no" 1>&6
5318 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5319 fi
5320
5321
5322
5323 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5324 echo "configure:5325: checking the version of X11 being used" >&5
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 #include <X11/Intrinsic.h>
5329 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5330 EOF
5331 if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5332 then
5333 ./conftest foobar; x11_release=$?
5334 else
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5337 rm -fr conftest*
5338 x11_release=4
5339 fi
5340 rm -fr conftest*
5341 echo "$ac_t""R${x11_release}" 1>&6
5342 { test "$extra_verbose" = "yes" && cat << EOF
5343 Defining THIS_IS_X11R${x11_release}
5344 EOF
5345 cat >> confdefs.h <<EOF
5346 #define THIS_IS_X11R${x11_release} 1
5347 EOF
5348 }
5349
5350
5351 for ac_hdr in X11/Xlocale.h
5352 do
5353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5355 echo "configure:5356: checking for $ac_hdr" >&5
5356
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5360 #include <$ac_hdr>
5361 EOF
5362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5363 { (eval echo configure:5364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5364 ac_err=`grep -v '^ *+' conftest.out`
5365 if test -z "$ac_err"; then
5366 rm -rf conftest*
5367 eval "ac_cv_header_$ac_safe=yes"
5368 else
5369 echo "$ac_err" >&5
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 rm -rf conftest*
5373 eval "ac_cv_header_$ac_safe=no"
5374 fi
5375 rm -f conftest*
5376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5377 echo "$ac_t""yes" 1>&6
5378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5379 { test "$extra_verbose" = "yes" && cat << EOF
5380 Defining $ac_tr_hdr
5381 EOF
5382 cat >> confdefs.h <<EOF
5383 #define $ac_tr_hdr 1
5384 EOF
5385 }
5386
5387 else
5388 echo "$ac_t""no" 1>&6
5389 fi
5390 done
5391
5392
5393 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5394 echo "configure:5395: checking for XFree86" >&5
5395 if test -d "/usr/X386/include" -o \
5396 -f "/etc/XF86Config" -o \
5397 -f "/etc/X11/XF86Config" -o \
5398 -f "/usr/X11R6/lib/X11/XF86Config"; then
5399 echo "$ac_t""yes" 1>&6
5400 { test "$extra_verbose" = "yes" && cat << \EOF
5401 Defining HAVE_XFREE386
5402 EOF
5403 cat >> confdefs.h <<\EOF
5404 #define HAVE_XFREE386 1
5405 EOF
5406 }
5407
5408 else
5409 echo "$ac_t""no" 1>&6
5410 fi
5411
5412 test -z "$with_xmu" && {
5413 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5414 echo "configure:5415: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5415 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5416
5417 xe_check_libs=" -lXmu "
5418 cat > conftest.$ac_ext <<EOF
5419 #line 5420 "configure"
5420 #include "confdefs.h"
5421 /* Override any gcc2 internal prototype to avoid an error. */
5422 /* We use char because int might match the return type of a gcc2
5423 builtin and then its argument prototype would still apply. */
5424 char XmuReadBitmapDataFromFile();
5425
5426 int main() {
5427 XmuReadBitmapDataFromFile()
5428 ; return 0; }
5429 EOF
5430 if { (eval echo configure:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5431 rm -rf conftest*
5432 eval "ac_cv_lib_$ac_lib_var=yes"
5433 else
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 rm -rf conftest*
5437 eval "ac_cv_lib_$ac_lib_var=no"
5438 fi
5439 rm -f conftest*
5440 xe_check_libs=""
5441
5442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5443 echo "$ac_t""yes" 1>&6
5444 with_xmu=yes
5445 else
5446 echo "$ac_t""no" 1>&6
5447 with_xmu=no
5448 fi
5449
5450 }
5451 if test "$with_xmu" = "no"; then
5452 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5453 echo " xemacs will be linked with \"xmu.o\""
5454 fi
5455 else
5456 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5457 { test "$extra_verbose" = "yes" && cat << \EOF
5458 Defining HAVE_XMU
5459 EOF
5460 cat >> confdefs.h <<\EOF
5461 #define HAVE_XMU 1
5462 EOF
5463 }
5464
5465 fi
5466
5467
5468 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5469 echo "configure:5470: checking for main in -lXbsd" >&5
5470 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5471
5472 xe_check_libs=" -lXbsd "
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5000 #include "confdefs.h" 5475 #include "confdefs.h"
5001 5476
5002 int main() { 5477 int main() {
5003 main() 5478 main()
5004 ; return 0; } 5479 ; return 0; }
5005 EOF 5480 EOF
5006 if { (eval echo configure:5007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5481 if { (eval echo configure:5482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5482 rm -rf conftest*
5483 eval "ac_cv_lib_$ac_lib_var=yes"
5484 else
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5487 rm -rf conftest*
5488 eval "ac_cv_lib_$ac_lib_var=no"
5489 fi
5490 rm -f conftest*
5491 xe_check_libs=""
5492
5493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5494 echo "$ac_t""yes" 1>&6
5495 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5496 else
5497 echo "$ac_t""no" 1>&6
5498 fi
5499
5500
5501
5502 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5503 libs_x="$libs_x -lc_r" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lc_r\" to \$libs_x"; fi
5504 fi
5505
5506 fi
5507 if test "$with_msw" != "no"; then
5508 echo "checking for MS-Windows" 1>&6
5509 echo "configure:5510: checking for MS-Windows" >&5
5510
5511 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5512 echo "configure:5513: checking for main in -lgdi32" >&5
5513 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5514
5515 xe_check_libs=" -lgdi32 "
5516 cat > conftest.$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5519
5520 int main() {
5521 main()
5522 ; return 0; }
5523 EOF
5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5007 rm -rf conftest* 5525 rm -rf conftest*
5008 eval "ac_cv_lib_$ac_lib_var=yes" 5526 eval "ac_cv_lib_$ac_lib_var=yes"
5009 else 5527 else
5010 echo "configure: failed program was:" >&5 5528 echo "configure: failed program was:" >&5
5011 cat conftest.$ac_ext >&5 5529 cat conftest.$ac_ext >&5
5059 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\"" 5577 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\""
5060 fi 5578 fi
5061 fi 5579 fi
5062 fi 5580 fi
5063 5581
5582 test -z "$window_system" && window_system="none"
5583
5584 if test "$window_system" = "none" ; then
5585 if test "$with_tty" = "no" ; then
5586 { echo "configure: error: No window system support and no TTY support - Unable to proceed." 1>&2; exit 1; }
5587 fi
5588 for feature in tooltalk cde offix session \
5589 menubars scrollbars toolbars dialogs xim xmu \
5590 tiff png jpeg gif xface xpm
5591 do
5592 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5593 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
5594 fi
5595 eval "with_${feature}=no"
5596 done
5597 else
5598 test -z "$with_toolbars" && with_toolbars=yes
5599 fi
5600
5601 bitmapdir=
5602
5603 case "$window_system" in
5604 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
5605 msw ) HAVE_X_WINDOWS=no; echo " Using MS-Windows." ;;
5606 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
5607 esac
5608
5609 case "$x_libraries" in *X11R4* )
5610 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5611 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5612 esac
5613
5614 echo "checking for session-management option" 1>&6
5615 echo "configure:5616: checking for session-management option" >&5;
5616 if test "$with_session" != "no"; then
5617 { test "$extra_verbose" = "yes" && cat << \EOF
5618 Defining HAVE_SESSION
5619 EOF
5620 cat >> confdefs.h <<\EOF
5621 #define HAVE_SESSION 1
5622 EOF
5623 }
5624
5625 fi
5626
5627 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5628 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5629 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5630 echo "configure:5631: checking for X11/Xauth.h" >&5
5631
5632 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5635 #include <X11/Xauth.h>
5636 EOF
5637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5638 { (eval echo configure:5639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5639 ac_err=`grep -v '^ *+' conftest.out`
5640 if test -z "$ac_err"; then
5641 rm -rf conftest*
5642 eval "ac_cv_header_$ac_safe=yes"
5643 else
5644 echo "$ac_err" >&5
5645 echo "configure: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5647 rm -rf conftest*
5648 eval "ac_cv_header_$ac_safe=no"
5649 fi
5650 rm -f conftest*
5651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5652 echo "$ac_t""yes" 1>&6
5653 :
5654 else
5655 echo "$ac_t""no" 1>&6
5656 with_xauth=no
5657 fi
5658 }
5659 test -z "$with_xauth" && {
5660 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5661 echo "configure:5662: checking for XauGetAuthByAddr in -lXau" >&5
5662 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5663
5664 xe_check_libs=" -lXau "
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5668 /* Override any gcc2 internal prototype to avoid an error. */
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5671 char XauGetAuthByAddr();
5672
5673 int main() {
5674 XauGetAuthByAddr()
5675 ; return 0; }
5676 EOF
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5678 rm -rf conftest*
5679 eval "ac_cv_lib_$ac_lib_var=yes"
5680 else
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5683 rm -rf conftest*
5684 eval "ac_cv_lib_$ac_lib_var=no"
5685 fi
5686 rm -f conftest*
5687 xe_check_libs=""
5688
5689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5690 echo "$ac_t""yes" 1>&6
5691 :
5692 else
5693 echo "$ac_t""no" 1>&6
5694 with_xauth=no
5695 fi
5696
5697 }
5698 test -z "$with_xauth" && with_xauth=yes
5699 if test "$with_xauth" = "yes"; then
5700 { test "$extra_verbose" = "yes" && cat << \EOF
5701 Defining HAVE_XAUTH
5702 EOF
5703 cat >> confdefs.h <<\EOF
5704 #define HAVE_XAUTH 1
5705 EOF
5706 }
5707
5708
5709 T=""
5710 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
5711 libs_xauth="$T"
5712
5713 fi
5714
5715
5716 OFFIX_O=""
5717 test "$window_system" != "x11" && with_offix=no
5718 if test "$with_xmu" != yes -a "$with_x11" = yes; then
5719 echo "configure: warning: No OffiX without real Xmu support" 1>&2
5720 with_offix=no
5721 fi
5722 test -z "$with_offix" && with_offix=yes
5723 if test "$with_offix" = "yes"; then
5724 { test "$extra_verbose" = "yes" && cat << \EOF
5725 Defining HAVE_OFFIX_DND
5726 EOF
5727 cat >> confdefs.h <<\EOF
5728 #define HAVE_OFFIX_DND 1
5729 EOF
5730 }
5731
5732 OFFIX_O="offix.o"
5733 fi
5734
5735
5736 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5737 if test "$with_tooltalk" != "no" ; then
5738 for dir in "" "Tt/" "desktop/" ; do
5739 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5740 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5741 echo "configure:5742: checking for ${dir}tt_c.h" >&5
5742
5743 cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5746 #include <${dir}tt_c.h>
5747 EOF
5748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5749 { (eval echo configure:5750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5750 ac_err=`grep -v '^ *+' conftest.out`
5751 if test -z "$ac_err"; then
5752 rm -rf conftest*
5753 eval "ac_cv_header_$ac_safe=yes"
5754 else
5755 echo "$ac_err" >&5
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5758 rm -rf conftest*
5759 eval "ac_cv_header_$ac_safe=no"
5760 fi
5761 rm -f conftest*
5762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5763 echo "$ac_t""yes" 1>&6
5764 tt_c_h_path="${dir}tt_c.h" && break
5765 else
5766 echo "$ac_t""no" 1>&6
5767 fi
5768
5769 done
5770 test -z "$tt_c_h_path" && with_tooltalk=no
5771 fi
5772 if test "$with_tooltalk" != "no" ; then
5773 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5774
5775 xe_msg_checking="for tt_message_create in -ltt"
5776 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5777 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5778 echo "configure:5779: checking "$xe_msg_checking"" >&5
5779 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5780
5781 xe_check_libs=" -ltt $extra_libs"
5782 cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5785 /* Override any gcc2 internal prototype to avoid an error. */
5786 /* We use char because int might match the return type of a gcc2
5787 builtin and then its argument prototype would still apply. */
5788 char tt_message_create();
5789
5790 int main() {
5791 tt_message_create()
5792 ; return 0; }
5793 EOF
5794 if { (eval echo configure:5795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5795 rm -rf conftest*
5796 eval "ac_cv_lib_$ac_lib_var=yes"
5797 else
5798 echo "configure: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
5800 rm -rf conftest*
5801 eval "ac_cv_lib_$ac_lib_var=no"
5802 fi
5803 rm -f conftest*
5804 xe_check_libs=""
5805
5806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5807 echo "$ac_t""yes" 1>&6
5808 with_tooltalk=yes tt_libs="-ltt $extra_libs"; break
5809 else
5810 echo "$ac_t""no" 1>&6
5811 :
5812 fi
5813
5814
5815 done
5816 fi
5817 test -z "$with_tooltalk" && with_tooltalk=no
5818 if test "$with_tooltalk" = "yes"; then
5819 { test "$extra_verbose" = "yes" && cat << \EOF
5820 Defining TOOLTALK
5821 EOF
5822 cat >> confdefs.h <<\EOF
5823 #define TOOLTALK 1
5824 EOF
5825 }
5826
5827 { test "$extra_verbose" = "yes" && cat << EOF
5828 Defining TT_C_H_PATH = "$tt_c_h_path"
5829 EOF
5830 cat >> confdefs.h <<EOF
5831 #define TT_C_H_PATH "$tt_c_h_path"
5832 EOF
5833 }
5834
5835 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
5836 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
5837 echo " xemacs will be linked with \"tooltalk.o\""
5838 fi
5839 fi
5840
5841 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5842 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5843 echo "configure:5844: checking for Dt/Dt.h" >&5
5844
5845 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5848 #include <Dt/Dt.h>
5849 EOF
5850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5851 { (eval echo configure:5852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5852 ac_err=`grep -v '^ *+' conftest.out`
5853 if test -z "$ac_err"; then
5854 rm -rf conftest*
5855 eval "ac_cv_header_$ac_safe=yes"
5856 else
5857 echo "$ac_err" >&5
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5860 rm -rf conftest*
5861 eval "ac_cv_header_$ac_safe=no"
5862 fi
5863 rm -f conftest*
5864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5865 echo "$ac_t""yes" 1>&6
5866 :
5867 else
5868 echo "$ac_t""no" 1>&6
5869 with_cde=no
5870 fi
5871 }
5872 test -z "$with_cde" && {
5873 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5874 echo "configure:5875: checking for DtDndDragStart in -lDtSvc" >&5
5875 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5876
5877 xe_check_libs=" -lDtSvc "
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 /* Override any gcc2 internal prototype to avoid an error. */
5882 /* We use char because int might match the return type of a gcc2
5883 builtin and then its argument prototype would still apply. */
5884 char DtDndDragStart();
5885
5886 int main() {
5887 DtDndDragStart()
5888 ; return 0; }
5889 EOF
5890 if { (eval echo configure:5891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5891 rm -rf conftest*
5892 eval "ac_cv_lib_$ac_lib_var=yes"
5893 else
5894 echo "configure: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5896 rm -rf conftest*
5897 eval "ac_cv_lib_$ac_lib_var=no"
5898 fi
5899 rm -f conftest*
5900 xe_check_libs=""
5901
5902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5903 echo "$ac_t""yes" 1>&6
5904 :
5905 else
5906 echo "$ac_t""no" 1>&6
5907 with_cde=no
5908 fi
5909
5910 }
5911 test -z "$with_cde" && with_cde=yes
5912 if test "$with_cde" = "yes" ; then
5913 { test "$extra_verbose" = "yes" && cat << \EOF
5914 Defining HAVE_CDE
5915 EOF
5916 cat >> confdefs.h <<\EOF
5917 #define HAVE_CDE 1
5918 EOF
5919 }
5920
5921 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
5922 with_tooltalk=yes # CDE requires Tooltalk
5923 need_motif=yes # CDE requires Motif
5924 fi
5925
5926 echo "checking for LDAP" 1>&6
5927 echo "configure:5928: checking for LDAP" >&5
5928 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
5929 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
5930 echo "configure:5931: checking for ldap.h" >&5
5931
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 #include <ldap.h>
5936 EOF
5937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5938 { (eval echo configure:5939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5939 ac_err=`grep -v '^ *+' conftest.out`
5940 if test -z "$ac_err"; then
5941 rm -rf conftest*
5942 eval "ac_cv_header_$ac_safe=yes"
5943 else
5944 echo "$ac_err" >&5
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5947 rm -rf conftest*
5948 eval "ac_cv_header_$ac_safe=no"
5949 fi
5950 rm -f conftest*
5951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5952 echo "$ac_t""yes" 1>&6
5953 :
5954 else
5955 echo "$ac_t""no" 1>&6
5956 with_ldap=no
5957 fi
5958 }
5959 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
5960 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
5961 echo "configure:5962: checking for lber.h" >&5
5962
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 #include <lber.h>
5967 EOF
5968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5969 { (eval echo configure:5970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5970 ac_err=`grep -v '^ *+' conftest.out`
5971 if test -z "$ac_err"; then
5972 rm -rf conftest*
5973 eval "ac_cv_header_$ac_safe=yes"
5974 else
5975 echo "$ac_err" >&5
5976 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5978 rm -rf conftest*
5979 eval "ac_cv_header_$ac_safe=no"
5980 fi
5981 rm -f conftest*
5982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5983 echo "$ac_t""yes" 1>&6
5984 :
5985 else
5986 echo "$ac_t""no" 1>&6
5987 with_ldap=no
5988 fi
5989 }
5990 test -z "$with_ldap" -o "$with_ldap" = "yes" && {
5991 xe_msg_checking="for ldap_open in -lldap"
5992 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
5993 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5994 echo "configure:5995: checking "$xe_msg_checking"" >&5
5995 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
5996
5997 xe_check_libs=" -lldap -llber"
5998 cat > conftest.$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 /* Override any gcc2 internal prototype to avoid an error. */
6002 /* We use char because int might match the return type of a gcc2
6003 builtin and then its argument prototype would still apply. */
6004 char ldap_open();
6005
6006 int main() {
6007 ldap_open()
6008 ; return 0; }
6009 EOF
6010 if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6011 rm -rf conftest*
6012 eval "ac_cv_lib_$ac_lib_var=yes"
6013 else
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 rm -rf conftest*
6017 eval "ac_cv_lib_$ac_lib_var=no"
6018 fi
6019 rm -f conftest*
6020 xe_check_libs=""
6021
6022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6023 echo "$ac_t""yes" 1>&6
6024 with_umich_ldap=yes
6025 else
6026 echo "$ac_t""no" 1>&6
6027 with_umich_ldap=no
6028 fi
6029
6030 }
6031 test \( -z "$with_ldap" -o "$with_ldap" = "yes" \) -a "$with_umich_ldap" = "no" && {
6032 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6033 echo "configure:6034: checking for ldap_set_option in -lldap10" >&5
6034 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6035
6036 xe_check_libs=" -lldap10 "
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6040 /* Override any gcc2 internal prototype to avoid an error. */
6041 /* We use char because int might match the return type of a gcc2
6042 builtin and then its argument prototype would still apply. */
6043 char ldap_set_option();
6044
6045 int main() {
6046 ldap_set_option()
6047 ; return 0; }
6048 EOF
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6050 rm -rf conftest*
6051 eval "ac_cv_lib_$ac_lib_var=yes"
6052 else
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 rm -rf conftest*
6056 eval "ac_cv_lib_$ac_lib_var=no"
6057 fi
6058 rm -f conftest*
6059 xe_check_libs=""
6060
6061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6062 echo "$ac_t""yes" 1>&6
6063 with_ns_ldap=yes
6064 else
6065 echo "$ac_t""no" 1>&6
6066 with_ns_ldap=no
6067 fi
6068
6069 }
6070 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
6071 if test "$with_ldap" = "yes" -a "$with_umich_ldap" = "yes" ; then
6072 { test "$extra_verbose" = "yes" && cat << \EOF
6073 Defining HAVE_LDAP
6074 EOF
6075 cat >> confdefs.h <<\EOF
6076 #define HAVE_LDAP 1
6077 EOF
6078 }
6079
6080 { test "$extra_verbose" = "yes" && cat << \EOF
6081 Defining HAVE_UMICH_LDAP
6082 EOF
6083 cat >> confdefs.h <<\EOF
6084 #define HAVE_UMICH_LDAP 1
6085 EOF
6086 }
6087
6088 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6089 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6090 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6091 echo " xemacs will be linked with \"eldap.o\""
6092 fi
6093 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
6094 { test "$extra_verbose" = "yes" && cat << \EOF
6095 Defining HAVE_LDAP
6096 EOF
6097 cat >> confdefs.h <<\EOF
6098 #define HAVE_LDAP 1
6099 EOF
6100 }
6101
6102 { test "$extra_verbose" = "yes" && cat << \EOF
6103 Defining HAVE_NS_LDAP
6104 EOF
6105 cat >> confdefs.h <<\EOF
6106 #define HAVE_NS_LDAP 1
6107 EOF
6108 }
6109
6110 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
6111 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6112 echo " xemacs will be linked with \"eldap.o\""
6113 fi
6114 elif test "$with_ldap" = "yes" ; then
6115 { test "$extra_verbose" = "yes" && cat << \EOF
6116 Defining HAVE_LDAP
6117 EOF
6118 cat >> confdefs.h <<\EOF
6119 #define HAVE_LDAP 1
6120 EOF
6121 }
6122
6123 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6124 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6125 echo " xemacs will be linked with \"eldap.o\""
6126 fi
6127 fi
6128
6129
5064 if test "$with_x11" = "yes"; then 6130 if test "$with_x11" = "yes"; then
6131
6132 echo "checking for X11 graphics libraries" 1>&6
6133 echo "configure:6134: checking for X11 graphics libraries" >&5
6134
6135 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6136 echo "configure:6137: checking for Xpm - no older than 3.4f" >&5
6137 xe_check_libs=-lXpm
6138 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6141 #include <X11/xpm.h>
6142 int main(int c, char **v) {
6143 return c == 1 ? 0 :
6144 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6145 XpmIncludeVersion < 30406 ? 2 :
6146 0 ;
6147 }
6148 EOF
6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6150 then
6151 ./conftest foobar; xpm_status=$?;
6152 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
6153 else
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6156 rm -fr conftest*
6157 with_xpm=no
6158 fi
6159 rm -fr conftest*
6160 }
6161 xe_check_libs=
6162 echo "$ac_t""$with_xpm" 1>&6
6163 if test "$xpm_status" = "1" -o "$xpm_status" = "2"; then
6164 test "$xpm_status" = "1" && problem="Xpm library version and header file version don't match!"
6165 test "$xpm_status" = "2" && problem="Xpm library version is too old!"
6166 echo "
6167 *** WARNING *** $problem
6168 I'm not touching that with a 10-foot pole!
6169 If you really want to use the installed version of Xpm, rerun
6170 configure --with-xpm=yes, but don't blame me if XEmacs crashes!
6171 "
6172 fi
6173 if test "$with_xpm" = "yes"; then
6174 { test "$extra_verbose" = "yes" && cat << \EOF
6175 Defining HAVE_XPM
6176 EOF
6177 cat >> confdefs.h <<\EOF
6178 #define HAVE_XPM 1
6179 EOF
6180 }
6181
6182 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6183 fi
6184
6185 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6186 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6187 echo "configure:6188: checking for compface.h" >&5
6188
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 #include <compface.h>
6193 EOF
6194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6195 { (eval echo configure:6196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6196 ac_err=`grep -v '^ *+' conftest.out`
6197 if test -z "$ac_err"; then
6198 rm -rf conftest*
6199 eval "ac_cv_header_$ac_safe=yes"
6200 else
6201 echo "$ac_err" >&5
6202 echo "configure: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6204 rm -rf conftest*
6205 eval "ac_cv_header_$ac_safe=no"
6206 fi
6207 rm -f conftest*
6208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6209 echo "$ac_t""yes" 1>&6
6210 :
6211 else
6212 echo "$ac_t""no" 1>&6
6213 with_xface=no
6214 fi
6215 }
6216 test -z "$with_xface" && {
6217 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6218 echo "configure:6219: checking for UnGenFace in -lcompface" >&5
6219 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6220
6221 xe_check_libs=" -lcompface "
6222 cat > conftest.$ac_ext <<EOF
6223 #line 6224 "configure"
6224 #include "confdefs.h"
6225 /* Override any gcc2 internal prototype to avoid an error. */
6226 /* We use char because int might match the return type of a gcc2
6227 builtin and then its argument prototype would still apply. */
6228 char UnGenFace();
6229
6230 int main() {
6231 UnGenFace()
6232 ; return 0; }
6233 EOF
6234 if { (eval echo configure:6235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6235 rm -rf conftest*
6236 eval "ac_cv_lib_$ac_lib_var=yes"
6237 else
6238 echo "configure: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6240 rm -rf conftest*
6241 eval "ac_cv_lib_$ac_lib_var=no"
6242 fi
6243 rm -f conftest*
6244 xe_check_libs=""
6245
6246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6247 echo "$ac_t""yes" 1>&6
6248 :
6249 else
6250 echo "$ac_t""no" 1>&6
6251 with_xface=no
6252 fi
6253
6254 }
6255 test -z "$with_xface" && with_xface=yes
6256 if test "$with_xface" = "yes"; then
6257 { test "$extra_verbose" = "yes" && cat << \EOF
6258 Defining HAVE_XFACE
6259 EOF
6260 cat >> confdefs.h <<\EOF
6261 #define HAVE_XFACE 1
6262 EOF
6263 }
6264
6265 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6266 fi
6267
6268 echo $ac_n "checking for giflib - no older than 3.1""... $ac_c" 1>&6
6269 echo "configure:6270: checking for giflib - no older than 3.1" >&5
6270 test -z "$with_gif" && { ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
6271 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
6272 echo "configure:6273: checking for gif_lib.h" >&5
6273
6274 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure"
6276 #include "confdefs.h"
6277 #include <gif_lib.h>
6278 EOF
6279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6280 { (eval echo configure:6281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6281 ac_err=`grep -v '^ *+' conftest.out`
6282 if test -z "$ac_err"; then
6283 rm -rf conftest*
6284 eval "ac_cv_header_$ac_safe=yes"
6285 else
6286 echo "$ac_err" >&5
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6289 rm -rf conftest*
6290 eval "ac_cv_header_$ac_safe=no"
6291 fi
6292 rm -f conftest*
6293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6294 echo "$ac_t""yes" 1>&6
6295 :
6296 else
6297 echo "$ac_t""no" 1>&6
6298 with_gif=no
6299 fi
6300 }
6301 test -z "$with_gif" && {
6302 echo $ac_n "checking for GetGifError in -lgif""... $ac_c" 1>&6
6303 echo "configure:6304: checking for GetGifError in -lgif" >&5
6304 ac_lib_var=`echo gif'_'GetGifError | sed 'y%./+-%__p_%'`
6305
6306 xe_check_libs=" -lgif "
6307 cat > conftest.$ac_ext <<EOF
6308 #line 6309 "configure"
6309 #include "confdefs.h"
6310 /* Override any gcc2 internal prototype to avoid an error. */
6311 /* We use char because int might match the return type of a gcc2
6312 builtin and then its argument prototype would still apply. */
6313 char GetGifError();
6314
6315 int main() {
6316 GetGifError()
6317 ; return 0; }
6318 EOF
6319 if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6320 rm -rf conftest*
6321 eval "ac_cv_lib_$ac_lib_var=yes"
6322 else
6323 echo "configure: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6325 rm -rf conftest*
6326 eval "ac_cv_lib_$ac_lib_var=no"
6327 fi
6328 rm -f conftest*
6329 xe_check_libs=""
6330
6331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6332 echo "$ac_t""yes" 1>&6
6333 :
6334 else
6335 echo "$ac_t""no" 1>&6
6336 with_gif=no
6337 fi
6338
6339 }
6340 test -z "$with_gif" && with_gif=yes
6341 if test "$with_gif" = "yes"; then
6342 { test "$extra_verbose" = "yes" && cat << \EOF
6343 Defining HAVE_GIF
6344 EOF
6345 cat >> confdefs.h <<\EOF
6346 #define HAVE_GIF 1
6347 EOF
6348 }
6349
6350 libs_x="-lgif $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgif\" to \$libs_x"; fi
6351 fi
6352
6353 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6354 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6355 echo "configure:6356: checking for jpeglib.h" >&5
6356
6357 cat > conftest.$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 #include <jpeglib.h>
6361 EOF
6362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6363 { (eval echo configure:6364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6364 ac_err=`grep -v '^ *+' conftest.out`
6365 if test -z "$ac_err"; then
6366 rm -rf conftest*
6367 eval "ac_cv_header_$ac_safe=yes"
6368 else
6369 echo "$ac_err" >&5
6370 echo "configure: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6372 rm -rf conftest*
6373 eval "ac_cv_header_$ac_safe=no"
6374 fi
6375 rm -f conftest*
6376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6377 echo "$ac_t""yes" 1>&6
6378 :
6379 else
6380 echo "$ac_t""no" 1>&6
6381 with_jpeg=no
6382 fi
6383 }
6384 test -z "$with_jpeg" && {
6385 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6386 echo "configure:6387: checking for jpeg_destroy_decompress in -ljpeg" >&5
6387 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6388
6389 xe_check_libs=" -ljpeg "
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6393 /* Override any gcc2 internal prototype to avoid an error. */
6394 /* We use char because int might match the return type of a gcc2
6395 builtin and then its argument prototype would still apply. */
6396 char jpeg_destroy_decompress();
6397
6398 int main() {
6399 jpeg_destroy_decompress()
6400 ; return 0; }
6401 EOF
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6403 rm -rf conftest*
6404 eval "ac_cv_lib_$ac_lib_var=yes"
6405 else
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6408 rm -rf conftest*
6409 eval "ac_cv_lib_$ac_lib_var=no"
6410 fi
6411 rm -f conftest*
6412 xe_check_libs=""
6413
6414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6415 echo "$ac_t""yes" 1>&6
6416 :
6417 else
6418 echo "$ac_t""no" 1>&6
6419 with_jpeg=no
6420 fi
6421
6422 }
6423 test -z "$with_jpeg" && with_jpeg=yes
6424 if test "$with_jpeg" = "yes"; then
6425 { test "$extra_verbose" = "yes" && cat << \EOF
6426 Defining HAVE_JPEG
6427 EOF
6428 cat >> confdefs.h <<\EOF
6429 #define HAVE_JPEG 1
6430 EOF
6431 }
6432
6433 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6434 fi
6435
6436 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6437 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6438 echo "configure:6439: checking for png.h" >&5
6439
6440 cat > conftest.$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 #include <png.h>
6444 EOF
6445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6446 { (eval echo configure:6447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6447 ac_err=`grep -v '^ *+' conftest.out`
6448 if test -z "$ac_err"; then
6449 rm -rf conftest*
6450 eval "ac_cv_header_$ac_safe=yes"
6451 else
6452 echo "$ac_err" >&5
6453 echo "configure: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6455 rm -rf conftest*
6456 eval "ac_cv_header_$ac_safe=no"
6457 fi
6458 rm -f conftest*
6459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6460 echo "$ac_t""yes" 1>&6
6461 :
6462 else
6463 echo "$ac_t""no" 1>&6
6464 with_png=no
6465 fi
6466 }
6467 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6468 echo "configure:6469: checking for pow" >&5
6469
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6473 /* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char pow(); below. */
6475 #include <assert.h>
6476 /* Override any gcc2 internal prototype to avoid an error. */
6477 /* We use char because int might match the return type of a gcc2
6478 builtin and then its argument prototype would still apply. */
6479 char pow();
6480
6481 int main() {
6482
6483 /* The GNU C library defines this for functions which it implements
6484 to always fail with ENOSYS. Some functions are actually named
6485 something starting with __ and the normal name is an alias. */
6486 #if defined (__stub_pow) || defined (__stub___pow)
6487 choke me
6488 #else
6489 pow();
6490 #endif
6491
6492 ; return 0; }
6493 EOF
6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6495 rm -rf conftest*
6496 eval "ac_cv_func_pow=yes"
6497 else
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6500 rm -rf conftest*
6501 eval "ac_cv_func_pow=no"
6502 fi
6503 rm -f conftest*
6504
6505 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
6506 echo "$ac_t""yes" 1>&6
6507 :
6508 else
6509 echo "$ac_t""no" 1>&6
6510 with_png=no
6511 fi
6512 }
6513 if test "$with_png" != "no"; then
6514 for extra_libs in "" "-lz" "-lgz"; do
6515
6516 xe_msg_checking="for png_read_image in -lpng"
6517 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6518 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6519 echo "configure:6520: checking "$xe_msg_checking"" >&5
6520 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6521
6522 xe_check_libs=" -lpng $extra_libs"
6523 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 /* Override any gcc2 internal prototype to avoid an error. */
6527 /* We use char because int might match the return type of a gcc2
6528 builtin and then its argument prototype would still apply. */
6529 char png_read_image();
6530
6531 int main() {
6532 png_read_image()
6533 ; return 0; }
6534 EOF
6535 if { (eval echo configure:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6536 rm -rf conftest*
6537 eval "ac_cv_lib_$ac_lib_var=yes"
6538 else
6539 echo "configure: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6541 rm -rf conftest*
6542 eval "ac_cv_lib_$ac_lib_var=no"
6543 fi
6544 rm -f conftest*
6545 xe_check_libs=""
6546
6547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6548 echo "$ac_t""yes" 1>&6
6549 png_libs="-lpng $extra_libs" with_png=yes; break
6550 else
6551 echo "$ac_t""no" 1>&6
6552 :
6553 fi
6554
6555
6556 done
6557 fi
6558 test -z "$with_png" && with_png=no
6559 if test "$with_png" = "yes"; then
6560 { test "$extra_verbose" = "yes" && cat << \EOF
6561 Defining HAVE_PNG
6562 EOF
6563 cat >> confdefs.h <<\EOF
6564 #define HAVE_PNG 1
6565 EOF
6566 }
6567
6568 libs_x="$png_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$png_libs\" to \$libs_x"; fi
6569 fi
6570
6571 if test "$with_tiff" != no; then
6572 for extra_libs in "" "-lz" "-lgz"; do
6573
6574 xe_msg_checking="for TIFFReadScanline in -ltiff"
6575 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6576 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6577 echo "configure:6578: checking "$xe_msg_checking"" >&5
6578 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'`
6579
6580 xe_check_libs=" -ltiff $extra_libs"
6581 cat > conftest.$ac_ext <<EOF
6582 #line 6583 "configure"
6583 #include "confdefs.h"
6584 /* Override any gcc2 internal prototype to avoid an error. */
6585 /* We use char because int might match the return type of a gcc2
6586 builtin and then its argument prototype would still apply. */
6587 char TIFFReadScanline();
6588
6589 int main() {
6590 TIFFReadScanline()
6591 ; return 0; }
6592 EOF
6593 if { (eval echo configure:6594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6594 rm -rf conftest*
6595 eval "ac_cv_lib_$ac_lib_var=yes"
6596 else
6597 echo "configure: failed program was:" >&5
6598 cat conftest.$ac_ext >&5
6599 rm -rf conftest*
6600 eval "ac_cv_lib_$ac_lib_var=no"
6601 fi
6602 rm -f conftest*
6603 xe_check_libs=""
6604
6605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6606 echo "$ac_t""yes" 1>&6
6607 tiff_libs="-ltiff $extra_libs" with_tiff=yes; break
6608 else
6609 echo "$ac_t""no" 1>&6
6610 :
6611 fi
6612
6613
6614 done
6615 fi
6616 test -z "$with_tiff" && with_tiff=no
6617 if test "$with_tiff" = "yes"; then
6618 { test "$extra_verbose" = "yes" && cat << \EOF
6619 Defining HAVE_TIFF
6620 EOF
6621 cat >> confdefs.h <<\EOF
6622 #define HAVE_TIFF 1
6623 EOF
6624 }
6625
6626 libs_x="$tiff_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tiff_libs\" to \$libs_x"; fi
6627 fi
6628
6629
6630 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
6631 echo "configure:6632: checking for XawScrollbarSetThumb in -lXaw" >&5
6632 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
6633
6634 xe_check_libs=" -lXaw "
6635 cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6638 /* Override any gcc2 internal prototype to avoid an error. */
6639 /* We use char because int might match the return type of a gcc2
6640 builtin and then its argument prototype would still apply. */
6641 char XawScrollbarSetThumb();
6642
6643 int main() {
6644 XawScrollbarSetThumb()
6645 ; return 0; }
6646 EOF
6647 if { (eval echo configure:6648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6648 rm -rf conftest*
6649 eval "ac_cv_lib_$ac_lib_var=yes"
6650 else
6651 echo "configure: failed program was:" >&5
6652 cat conftest.$ac_ext >&5
6653 rm -rf conftest*
6654 eval "ac_cv_lib_$ac_lib_var=no"
6655 fi
6656 rm -f conftest*
6657 xe_check_libs=""
6658
6659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6660 echo "$ac_t""yes" 1>&6
6661 have_xaw=yes
6662 else
6663 echo "$ac_t""no" 1>&6
6664 have_xaw=no
6665 fi
6666
6667
6668
6669 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6670 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6671 echo "configure:6672: checking for Xm/Xm.h" >&5
6672
6673 cat > conftest.$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6676 #include <Xm/Xm.h>
6677 EOF
6678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6679 { (eval echo configure:6680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6680 ac_err=`grep -v '^ *+' conftest.out`
6681 if test -z "$ac_err"; then
6682 rm -rf conftest*
6683 eval "ac_cv_header_$ac_safe=yes"
6684 else
6685 echo "$ac_err" >&5
6686 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6688 rm -rf conftest*
6689 eval "ac_cv_header_$ac_safe=no"
6690 fi
6691 rm -f conftest*
6692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6694
6695 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6696 echo "configure:6697: checking for XmStringFree in -lXm" >&5
6697 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6698
6699 xe_check_libs=" -lXm "
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 /* Override any gcc2 internal prototype to avoid an error. */
6704 /* We use char because int might match the return type of a gcc2
6705 builtin and then its argument prototype would still apply. */
6706 char XmStringFree();
6707
6708 int main() {
6709 XmStringFree()
6710 ; return 0; }
6711 EOF
6712 if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6713 rm -rf conftest*
6714 eval "ac_cv_lib_$ac_lib_var=yes"
6715 else
6716 echo "configure: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6718 rm -rf conftest*
6719 eval "ac_cv_lib_$ac_lib_var=no"
6720 fi
6721 rm -f conftest*
6722 xe_check_libs=""
6723
6724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6725 echo "$ac_t""yes" 1>&6
6726 have_motif=yes
6727 else
6728 echo "$ac_t""no" 1>&6
6729 have_motif=no
6730 fi
6731
6732
6733 else
6734 echo "$ac_t""no" 1>&6
6735 have_motif=no
6736 fi
6737
6738
6739 fi
6740
6741 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
6742 with_menubars="lucid" ;;
6743 esac
6744 case "$with_dialogs" in "" | "yes" | "lucid" )
6745 if test "$have_motif" = "yes"; then with_dialogs="motif"
6746 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
6747 else with_dialogs=no
6748 fi ;;
6749 esac
6750 case "$with_scrollbars" in "" | "yes" )
6751 with_scrollbars="lucid" ;;
6752 esac
6753
6754 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
6755
6756 case "$all_widgets" in *athena* )
5065 { test "$extra_verbose" = "yes" && cat << \EOF 6757 { test "$extra_verbose" = "yes" && cat << \EOF
5066 Defining HAVE_X_WINDOWS 6758 Defining LWLIB_USES_ATHENA
5067 EOF 6759 EOF
5068 cat >> confdefs.h <<\EOF 6760 cat >> confdefs.h <<\EOF
5069 #define HAVE_X_WINDOWS 1 6761 #define LWLIB_USES_ATHENA 1
5070 EOF 6762 EOF
5071 } 6763 }
5072 6764
5073 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi 6765 { test "$extra_verbose" = "yes" && cat << \EOF
5074 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi 6766 Defining NEED_ATHENA
5075 6767 EOF
5076 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do 6768 cat >> confdefs.h <<\EOF
5077 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'` 6769 #define NEED_ATHENA 1
5078 if test -d "$lib_dir" -a -d "$inc_dir"; then 6770 EOF
5079 case "$x_libraries" in *"$lib_dir"* ) ;; *) 6771 }
5080 x_libraries="$lib_dir $x_libraries" 6772
5081 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;; 6773 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
5082 esac 6774 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
5083 case "$x_includes" in "$inc_dir"* ) ;; *) 6775 esac
5084 x_includes="$inc_dir $x_includes" 6776
5085 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;; 6777 case "$all_widgets" in *motif* )
5086 esac 6778 { test "$extra_verbose" = "yes" && cat << \EOF
5087 break; fi 6779 Defining LWLIB_USES_MOTIF
6780 EOF
6781 cat >> confdefs.h <<\EOF
6782 #define LWLIB_USES_MOTIF 1
6783 EOF
6784 }
6785
6786 { test "$extra_verbose" = "yes" && cat << \EOF
6787 Defining NEED_MOTIF
6788 EOF
6789 cat >> confdefs.h <<\EOF
6790 #define NEED_MOTIF 1
6791 EOF
6792 }
6793
6794 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
6795 need_motif=yes ;;
6796 esac
6797
6798 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
6799 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
6800 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
6801 case "$all_widgets" in *lucid* )
6802 { test "$extra_verbose" = "yes" && cat << \EOF
6803 Defining NEED_LUCID
6804 EOF
6805 cat >> confdefs.h <<\EOF
6806 #define NEED_LUCID 1
6807 EOF
6808 }
6809
6810 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
6811 esac
6812
6813
6814
6815 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
6816 Defining LWLIB_SCROLLBARS_ATHENA
6817 EOF
6818 cat >> confdefs.h <<\EOF
6819 #define LWLIB_SCROLLBARS_ATHENA 1
6820 EOF
6821 }
6822 ;; esac
6823 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
6824 Defining LWLIB_DIALOGS_ATHENA
6825 EOF
6826 cat >> confdefs.h <<\EOF
6827 #define LWLIB_DIALOGS_ATHENA 1
6828 EOF
6829 }
6830 ;; esac
6831 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
6832 Defining LWLIB_SCROLLBARS_ATHENA3D
6833 EOF
6834 cat >> confdefs.h <<\EOF
6835 #define LWLIB_SCROLLBARS_ATHENA3D 1
6836 EOF
6837 }
6838
6839 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
6840 Defining LWLIB_DIALOGS_ATHENA3D
6841 EOF
6842 cat >> confdefs.h <<\EOF
6843 #define LWLIB_DIALOGS_ATHENA3D 1
6844 EOF
6845 }
6846
6847
6848 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6849 Defining HAVE_MENUBARS
6850 EOF
6851 cat >> confdefs.h <<\EOF
6852 #define HAVE_MENUBARS 1
6853 EOF
6854 }
6855
6856 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6857 Defining HAVE_SCROLLBARS
6858 EOF
6859 cat >> confdefs.h <<\EOF
6860 #define HAVE_SCROLLBARS 1
6861 EOF
6862 }
6863
6864 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6865 Defining HAVE_DIALOGS
6866 EOF
6867 cat >> confdefs.h <<\EOF
6868 #define HAVE_DIALOGS 1
6869 EOF
6870 }
6871
6872 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6873 Defining HAVE_TOOLBARS
6874 EOF
6875 cat >> confdefs.h <<\EOF
6876 #define HAVE_TOOLBARS 1
6877 EOF
6878 }
6879
6880
6881 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
6882 Defining LWLIB_MENUBARS_LUCID
6883 EOF
6884 cat >> confdefs.h <<\EOF
6885 #define LWLIB_MENUBARS_LUCID 1
6886 EOF
6887 }
6888
6889 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
6890 Defining LWLIB_SCROLLBARS_LUCID
6891 EOF
6892 cat >> confdefs.h <<\EOF
6893 #define LWLIB_SCROLLBARS_LUCID 1
6894 EOF
6895 }
6896
6897
6898 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
6899 Defining LWLIB_MENUBARS_MOTIF
6900 EOF
6901 cat >> confdefs.h <<\EOF
6902 #define LWLIB_MENUBARS_MOTIF 1
6903 EOF
6904 }
6905
6906 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
6907 Defining LWLIB_SCROLLBARS_MOTIF
6908 EOF
6909 cat >> confdefs.h <<\EOF
6910 #define LWLIB_SCROLLBARS_MOTIF 1
6911 EOF
6912 }
6913
6914 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
6915 Defining LWLIB_DIALOGS_MOTIF
6916 EOF
6917 cat >> confdefs.h <<\EOF
6918 #define LWLIB_DIALOGS_MOTIF 1
6919 EOF
6920 }
6921
6922
6923 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
6924 echo " xemacs will be linked with \"menubar.o\""
6925 fi
6926 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
6927 echo " xemacs will be linked with \"scrollbar.o\""
6928 fi
6929 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
6930 echo " xemacs will be linked with \"dialog.o\""
6931 fi
6932 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
6933 echo " xemacs will be linked with \"toolbar.o\""
6934 fi
6935 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" && if test "$extra_verbose" = "yes"; then
6936 echo " xemacs will be linked with \"gui.o\""
6937 fi
6938
6939 if test "$with_x11" = "yes"; then
6940 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
6941 echo " xemacs will be linked with \"menubar-x.o\""
6942 fi
6943 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
6944 echo " xemacs will be linked with \"scrollbar-x.o\""
6945 fi
6946 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
6947 echo " xemacs will be linked with \"dialog-x.o\""
6948 fi
6949 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
6950 echo " xemacs will be linked with \"toolbar-x.o\""
6951 fi
6952 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
6953 echo " xemacs will be linked with \"gui-x.o\""
6954 fi
6955 else
6956 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
6957 echo "Attempt to Build NAS sound without X"
6958 echo "Please remove NAS configuration or build with X"
6959 exit 1
6960 fi
6961 fi
6962
6963 if test "$with_gung" != "no"; then
6964 test "$with_minimal_tagbits" = "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6965 Defining USE_MINIMAL_TAGBITS
6966 EOF
6967 cat >> confdefs.h <<\EOF
6968 #define USE_MINIMAL_TAGBITS 1
6969 EOF
6970 }
6971
6972 { test "$extra_verbose" = "yes" && cat << \EOF
6973 Defining USE_INDEXED_LRECORD_IMPLEMENTATION
6974 EOF
6975 cat >> confdefs.h <<\EOF
6976 #define USE_INDEXED_LRECORD_IMPLEMENTATION 1
6977 EOF
6978 }
6979
6980 fi
6981
6982
6983 test -z "$with_mule" && with_mule=no
6984 test -z "$with_file_coding" && with_file_coding=no
6985
6986
6987 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
6988 { test "$extra_verbose" = "yes" && cat << \EOF
6989 Defining FILE_CODING
6990 EOF
6991 cat >> confdefs.h <<\EOF
6992 #define FILE_CODING 1
6993 EOF
6994 }
6995
6996 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
6997 echo " xemacs will be linked with \"file-coding.o\""
6998 fi
6999 fi
7000
7001 if test "$with_mule" = "yes" ; then
7002 echo "checking for Mule-related features" 1>&6
7003 echo "configure:7004: checking for Mule-related features" >&5
7004 { test "$extra_verbose" = "yes" && cat << \EOF
7005 Defining MULE
7006 EOF
7007 cat >> confdefs.h <<\EOF
7008 #define MULE 1
7009 EOF
7010 }
7011
7012 { test "$extra_verbose" = "yes" && cat << \EOF
7013 Defining FILE_CODING
7014 EOF
7015 cat >> confdefs.h <<\EOF
7016 #define FILE_CODING 1
7017 EOF
7018 }
7019
7020 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o" && if test "$extra_verbose" = "yes"; then
7021 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o\""
7022 fi
7023
7024 for ac_hdr in libintl.h
7025 do
7026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7028 echo "configure:7029: checking for $ac_hdr" >&5
7029
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 #include <$ac_hdr>
7034 EOF
7035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7036 { (eval echo configure:7037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7037 ac_err=`grep -v '^ *+' conftest.out`
7038 if test -z "$ac_err"; then
7039 rm -rf conftest*
7040 eval "ac_cv_header_$ac_safe=yes"
7041 else
7042 echo "$ac_err" >&5
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 rm -rf conftest*
7046 eval "ac_cv_header_$ac_safe=no"
7047 fi
7048 rm -f conftest*
7049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7050 echo "$ac_t""yes" 1>&6
7051 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7052 { test "$extra_verbose" = "yes" && cat << EOF
7053 Defining $ac_tr_hdr
7054 EOF
7055 cat >> confdefs.h <<EOF
7056 #define $ac_tr_hdr 1
7057 EOF
7058 }
7059
7060 else
7061 echo "$ac_t""no" 1>&6
7062 fi
7063 done
7064
7065
7066 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7067 echo "configure:7068: checking for strerror in -lintl" >&5
7068 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7069
7070 xe_check_libs=" -lintl "
7071 cat > conftest.$ac_ext <<EOF
7072 #line 7073 "configure"
7073 #include "confdefs.h"
7074 /* Override any gcc2 internal prototype to avoid an error. */
7075 /* We use char because int might match the return type of a gcc2
7076 builtin and then its argument prototype would still apply. */
7077 char strerror();
7078
7079 int main() {
7080 strerror()
7081 ; return 0; }
7082 EOF
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7084 rm -rf conftest*
7085 eval "ac_cv_lib_$ac_lib_var=yes"
7086 else
7087 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7089 rm -rf conftest*
7090 eval "ac_cv_lib_$ac_lib_var=no"
7091 fi
7092 rm -f conftest*
7093 xe_check_libs=""
7094
7095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7096 echo "$ac_t""yes" 1>&6
7097 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7099 { test "$extra_verbose" = "yes" && cat << EOF
7100 Defining $ac_tr_lib
7101 EOF
7102 cat >> confdefs.h <<EOF
7103 #define $ac_tr_lib 1
7104 EOF
7105 }
7106
7107 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7108
7109 else
7110 echo "$ac_t""no" 1>&6
7111 fi
7112
7113
7114
7115 echo "checking for Mule input methods" 1>&6
7116 echo "configure:7117: checking for Mule input methods" >&5
7117 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
7118 case "$with_xim" in "" | "yes" )
7119 echo "checking for XIM" 1>&6
7120 echo "configure:7121: checking for XIM" >&5
7121
7122 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7123 echo "configure:7124: checking for XmImMbLookupString in -lXm" >&5
7124 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7125
7126 xe_check_libs=" -lXm "
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130 /* Override any gcc2 internal prototype to avoid an error. */
7131 /* We use char because int might match the return type of a gcc2
7132 builtin and then its argument prototype would still apply. */
7133 char XmImMbLookupString();
7134
7135 int main() {
7136 XmImMbLookupString()
7137 ; return 0; }
7138 EOF
7139 if { (eval echo configure:7140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7140 rm -rf conftest*
7141 eval "ac_cv_lib_$ac_lib_var=yes"
7142 else
7143 echo "configure: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7145 rm -rf conftest*
7146 eval "ac_cv_lib_$ac_lib_var=no"
7147 fi
7148 rm -f conftest*
7149 xe_check_libs=""
7150
7151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7152 echo "$ac_t""yes" 1>&6
7153 with_xim=motif
7154 else
7155 echo "$ac_t""no" 1>&6
7156 with_xim=xlib
7157 fi
7158
7159
7160 esac
7161 if test "$with_xim" != "no" ; then
7162 { test "$extra_verbose" = "yes" && cat << \EOF
7163 Defining HAVE_XIM
7164 EOF
7165 cat >> confdefs.h <<\EOF
7166 #define HAVE_XIM 1
7167 EOF
7168 }
7169
7170 if test "$with_xim" = "xlib"; then
7171 { test "$extra_verbose" = "yes" && cat << \EOF
7172 Defining XIM_XLIB
7173 EOF
7174 cat >> confdefs.h <<\EOF
7175 #define XIM_XLIB 1
7176 EOF
7177 }
7178
7179 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
7180 echo " xemacs will be linked with \"input-method-xlib.o\""
7181 fi
7182 fi
7183 if test "$with_xim" = "motif"; then
7184 { test "$extra_verbose" = "yes" && cat << \EOF
7185 Defining XIM_MOTIF
7186 EOF
7187 cat >> confdefs.h <<\EOF
7188 #define XIM_MOTIF 1
7189 EOF
7190 }
7191
7192 need_motif=yes
7193 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
7194 echo " xemacs will be linked with \"input-method-motif.o\""
7195 fi
7196 fi
7197 if test "$with_xim" = "motif"; then
7198 with_xfs=no
7199 fi
7200 fi
7201
7202 if test "$with_xfs" = "yes" ; then
7203 echo "checking for XFontSet" 1>&6
7204 echo "configure:7205: checking for XFontSet" >&5
7205
7206 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7207 echo "configure:7208: checking for XmbDrawString in -lX11" >&5
7208 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7209
7210 xe_check_libs=" -lX11 "
7211 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7214 /* Override any gcc2 internal prototype to avoid an error. */
7215 /* We use char because int might match the return type of a gcc2
7216 builtin and then its argument prototype would still apply. */
7217 char XmbDrawString();
7218
7219 int main() {
7220 XmbDrawString()
7221 ; return 0; }
7222 EOF
7223 if { (eval echo configure:7224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7224 rm -rf conftest*
7225 eval "ac_cv_lib_$ac_lib_var=yes"
7226 else
7227 echo "configure: failed program was:" >&5
7228 cat conftest.$ac_ext >&5
7229 rm -rf conftest*
7230 eval "ac_cv_lib_$ac_lib_var=no"
7231 fi
7232 rm -f conftest*
7233 xe_check_libs=""
7234
7235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7236 echo "$ac_t""yes" 1>&6
7237 :
7238 else
7239 echo "$ac_t""no" 1>&6
7240 with_xfs=no
7241 fi
7242
7243
7244 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
7245 { test "$extra_verbose" = "yes" && cat << \EOF
7246 Defining USE_XFONTSET
7247 EOF
7248 cat >> confdefs.h <<\EOF
7249 #define USE_XFONTSET 1
7250 EOF
7251 }
7252
7253 if test "$with_xim" = "no" ; then
7254 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
7255 echo " xemacs will be linked with \"input-method-xfs.o\""
7256 fi
7257 fi
7258 fi
7259 fi
7260 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7261 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7262 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7263 echo "configure:7264: checking for wnn/jllib.h" >&5
7264
7265 cat > conftest.$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7268 #include <wnn/jllib.h>
7269 EOF
7270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7271 { (eval echo configure:7272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7272 ac_err=`grep -v '^ *+' conftest.out`
7273 if test -z "$ac_err"; then
7274 rm -rf conftest*
7275 eval "ac_cv_header_$ac_safe=yes"
7276 else
7277 echo "$ac_err" >&5
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 rm -rf conftest*
7281 eval "ac_cv_header_$ac_safe=no"
7282 fi
7283 rm -f conftest*
7284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7286 :
7287 else
7288 echo "$ac_t""no" 1>&6
7289 with_wnn=no
7290 fi
7291 }
7292 if test "$with_wnn" != "no"; then
7293 for ac_func in crypt
7294 do
7295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7296 echo "configure:7297: checking for $ac_func" >&5
7297
7298 cat > conftest.$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 /* System header to define __stub macros and hopefully few prototypes,
7302 which can conflict with char $ac_func(); below. */
7303 #include <assert.h>
7304 /* Override any gcc2 internal prototype to avoid an error. */
7305 /* We use char because int might match the return type of a gcc2
7306 builtin and then its argument prototype would still apply. */
7307 char $ac_func();
7308
7309 int main() {
7310
7311 /* The GNU C library defines this for functions which it implements
7312 to always fail with ENOSYS. Some functions are actually named
7313 something starting with __ and the normal name is an alias. */
7314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7315 choke me
7316 #else
7317 $ac_func();
7318 #endif
7319
7320 ; return 0; }
7321 EOF
7322 if { (eval echo configure:7323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7323 rm -rf conftest*
7324 eval "ac_cv_func_$ac_func=yes"
7325 else
7326 echo "configure: failed program was:" >&5
7327 cat conftest.$ac_ext >&5
7328 rm -rf conftest*
7329 eval "ac_cv_func_$ac_func=no"
7330 fi
7331 rm -f conftest*
7332
7333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7334 echo "$ac_t""yes" 1>&6
7335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7336 { test "$extra_verbose" = "yes" && cat << EOF
7337 Defining $ac_tr_func
7338 EOF
7339 cat >> confdefs.h <<EOF
7340 #define $ac_tr_func 1
7341 EOF
7342 }
7343
7344 else
7345 echo "$ac_t""no" 1>&6
7346 fi
7347 done
7348
7349 test "$ac_cv_func_crypt" != "yes" && {
7350 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7351 echo "configure:7352: checking for crypt in -lcrypt" >&5
7352 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7353
7354 xe_check_libs=" -lcrypt "
7355 cat > conftest.$ac_ext <<EOF
7356 #line 7357 "configure"
7357 #include "confdefs.h"
7358 /* Override any gcc2 internal prototype to avoid an error. */
7359 /* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */
7361 char crypt();
7362
7363 int main() {
7364 crypt()
7365 ; return 0; }
7366 EOF
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7368 rm -rf conftest*
7369 eval "ac_cv_lib_$ac_lib_var=yes"
7370 else
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7373 rm -rf conftest*
7374 eval "ac_cv_lib_$ac_lib_var=no"
7375 fi
7376 rm -f conftest*
7377 xe_check_libs=""
7378
7379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7380 echo "$ac_t""yes" 1>&6
7381 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7382 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7383 { test "$extra_verbose" = "yes" && cat << EOF
7384 Defining $ac_tr_lib
7385 EOF
7386 cat >> confdefs.h <<EOF
7387 #define $ac_tr_lib 1
7388 EOF
7389 }
7390
7391 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
7392
7393 else
7394 echo "$ac_t""no" 1>&6
7395 fi
7396
7397 }
7398 fi
7399 test -z "$with_wnn" && {
7400 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7401 echo "configure:7402: checking for jl_dic_list_e in -lwnn" >&5
7402 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7403
7404 xe_check_libs=" -lwnn "
7405 cat > conftest.$ac_ext <<EOF
7406 #line 7407 "configure"
7407 #include "confdefs.h"
7408 /* Override any gcc2 internal prototype to avoid an error. */
7409 /* We use char because int might match the return type of a gcc2
7410 builtin and then its argument prototype would still apply. */
7411 char jl_dic_list_e();
7412
7413 int main() {
7414 jl_dic_list_e()
7415 ; return 0; }
7416 EOF
7417 if { (eval echo configure:7418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7418 rm -rf conftest*
7419 eval "ac_cv_lib_$ac_lib_var=yes"
7420 else
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7423 rm -rf conftest*
7424 eval "ac_cv_lib_$ac_lib_var=no"
7425 fi
7426 rm -f conftest*
7427 xe_check_libs=""
7428
7429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7430 echo "$ac_t""yes" 1>&6
7431 :
7432 else
7433 echo "$ac_t""no" 1>&6
7434 with_wnn=no
7435 fi
7436
7437 }
7438 test -z "$with_wnn" && with_wnn=yes
7439 if test "$with_wnn" = "yes"; then
7440 { test "$extra_verbose" = "yes" && cat << \EOF
7441 Defining HAVE_WNN
7442 EOF
7443 cat >> confdefs.h <<\EOF
7444 #define HAVE_WNN 1
7445 EOF
7446 }
7447
7448 libs_x="-lwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$libs_x"; fi
7449 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7450 echo " xemacs will be linked with \"mule-wnnfns.o\""
7451 fi
7452
7453 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7454 echo "configure:7455: checking for jl_fi_dic_list in -lwnn" >&5
7455 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7456
7457 xe_check_libs=" -lwnn "
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7461 /* Override any gcc2 internal prototype to avoid an error. */
7462 /* We use char because int might match the return type of a gcc2
7463 builtin and then its argument prototype would still apply. */
7464 char jl_fi_dic_list();
7465
7466 int main() {
7467 jl_fi_dic_list()
7468 ; return 0; }
7469 EOF
7470 if { (eval echo configure:7471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7471 rm -rf conftest*
7472 eval "ac_cv_lib_$ac_lib_var=yes"
7473 else
7474 echo "configure: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7476 rm -rf conftest*
7477 eval "ac_cv_lib_$ac_lib_var=no"
7478 fi
7479 rm -f conftest*
7480 xe_check_libs=""
7481
7482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7483 echo "$ac_t""yes" 1>&6
7484 with_wnn6=yes
7485 else
7486 echo "$ac_t""no" 1>&6
7487 fi
7488
7489
7490 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
7491 Defining WNN6
7492 EOF
7493 cat >> confdefs.h <<\EOF
7494 #define WNN6 1
7495 EOF
7496 }
7497
7498 fi
7499
7500 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7501 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7502 echo "configure:7503: checking for canna/RK.h" >&5
7503
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 #include <canna/RK.h>
7508 EOF
7509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7510 { (eval echo configure:7511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7511 ac_err=`grep -v '^ *+' conftest.out`
7512 if test -z "$ac_err"; then
7513 rm -rf conftest*
7514 eval "ac_cv_header_$ac_safe=yes"
7515 else
7516 echo "$ac_err" >&5
7517 echo "configure: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7519 rm -rf conftest*
7520 eval "ac_cv_header_$ac_safe=no"
7521 fi
7522 rm -f conftest*
7523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7524 echo "$ac_t""yes" 1>&6
7525 :
7526 else
7527 echo "$ac_t""no" 1>&6
7528 with_canna=no
7529 fi
7530 }
7531 test -z "$with_canna" && {
7532 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7533 echo "configure:7534: checking for RkBgnBun in -lRKC" >&5
7534 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7535
7536 xe_check_libs=" -lRKC "
7537 cat > conftest.$ac_ext <<EOF
7538 #line 7539 "configure"
7539 #include "confdefs.h"
7540 /* Override any gcc2 internal prototype to avoid an error. */
7541 /* We use char because int might match the return type of a gcc2
7542 builtin and then its argument prototype would still apply. */
7543 char RkBgnBun();
7544
7545 int main() {
7546 RkBgnBun()
7547 ; return 0; }
7548 EOF
7549 if { (eval echo configure:7550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7550 rm -rf conftest*
7551 eval "ac_cv_lib_$ac_lib_var=yes"
7552 else
7553 echo "configure: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7555 rm -rf conftest*
7556 eval "ac_cv_lib_$ac_lib_var=no"
7557 fi
7558 rm -f conftest*
7559 xe_check_libs=""
7560
7561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7562 echo "$ac_t""yes" 1>&6
7563 :
7564 else
7565 echo "$ac_t""no" 1>&6
7566 with_canna=no
7567 fi
7568
7569 }
7570 test -z "$with_canna" && {
7571 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7572 echo "configure:7573: checking for jrKanjiControl in -lcanna" >&5
7573 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7574
7575 xe_check_libs=" -lcanna "
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7582 char jrKanjiControl();
7583
7584 int main() {
7585 jrKanjiControl()
7586 ; return 0; }
7587 EOF
7588 if { (eval echo configure:7589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7589 rm -rf conftest*
7590 eval "ac_cv_lib_$ac_lib_var=yes"
7591 else
7592 echo "configure: failed program was:" >&5
7593 cat conftest.$ac_ext >&5
7594 rm -rf conftest*
7595 eval "ac_cv_lib_$ac_lib_var=no"
7596 fi
7597 rm -f conftest*
7598 xe_check_libs=""
7599
7600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7601 echo "$ac_t""yes" 1>&6
7602 :
7603 else
7604 echo "$ac_t""no" 1>&6
7605 with_canna=no
7606 fi
7607
7608 }
7609 test -z "$with_canna" && with_canna=yes
7610 if test "$with_canna" = "yes"; then
7611 { test "$extra_verbose" = "yes" && cat << \EOF
7612 Defining HAVE_CANNA
7613 EOF
7614 cat >> confdefs.h <<\EOF
7615 #define HAVE_CANNA 1
7616 EOF
7617 }
7618
7619 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
7620 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
7621 echo " xemacs will be linked with \"mule-canna.o\""
7622 fi
7623 fi
7624
7625 else for feature in xim canna wnn; do
7626 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7627 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
7628 fi
7629 eval "with_${feature}=no"
5088 done 7630 done
5089 7631 fi
5090 for rel in "X11R6" "X11R5" "X11R4"; do 7632
5091 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include" 7633 if test "$need_motif" = "yes" ; then
5092 if test -d "$lib_dir" -a -d "$inc_dir"; then 7634 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
5093 case "$x_libraries" in *"$lib_dir"* ) ;; *) 7635
5094 x_libraries="$x_libraries $lib_dir" 7636 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
5095 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi 7637 echo "configure:7638: checking for layout_object_getvalue in -li18n" >&5
5096 esac 7638 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
5097 case "$x_includes" in "$inc_dir"* ) ;; *) 7639
5098 x_includes="$x_includes $inc_dir" 7640 xe_check_libs=" -li18n "
5099 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi 7641 cat > conftest.$ac_ext <<EOF
5100 esac 7642 #line 7643 "configure"
5101 break; fi 7643 #include "confdefs.h"
5102 done 7644 /* Override any gcc2 internal prototype to avoid an error. */
5103 7645 /* We use char because int might match the return type of a gcc2
5104 ld_switch_x_site="$X_LIBS" 7646 builtin and then its argument prototype would still apply. */
7647 char layout_object_getvalue();
7648
7649 int main() {
7650 layout_object_getvalue()
7651 ; return 0; }
7652 EOF
7653 if { (eval echo configure:7654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7654 rm -rf conftest*
7655 eval "ac_cv_lib_$ac_lib_var=yes"
7656 else
7657 echo "configure: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7659 rm -rf conftest*
7660 eval "ac_cv_lib_$ac_lib_var=no"
7661 fi
7662 rm -f conftest*
7663 xe_check_libs=""
7664
7665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7666 echo "$ac_t""yes" 1>&6
7667 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
7668 else
7669 echo "$ac_t""no" 1>&6
7670 fi
7671
5105 7672
5106 7673
5107 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then 7674 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
5108 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"` 7675 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5109 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"` 7676 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5149 ld_switch_run="${dash_r}${runpath}" 7716 ld_switch_run="${dash_r}${runpath}"
5150 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" 7717 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
5151 fi 7718 fi
5152 fi 7719 fi
5153 7720
5154 7721 fi
5155 if test "$extra_verbose" = "yes"; then 7722
5156 echo; echo "X11 compilation variables:" 7723 for ac_func in 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 snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
5157 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5158 echo
5159 fi
5160
5161 echo "checking for X defines extracted by xmkmf" 1>&6
5162 echo "configure:5163: checking for X defines extracted by xmkmf" >&5
5163 rm -fr conftestdir
5164 if mkdir conftestdir; then
5165 cd conftestdir
5166 cat > Imakefile <<'EOF'
5167 xetest:
5168 @echo ${PROTO_DEFINES} ${STD_DEFINES}
5169 EOF
5170 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5172 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
5173 fi
5174 cd ..
5175 rm -fr conftestdir
5176 for word in $xmkmf_defines; do
5177 case "$word" in
5178 -D*=* ) ;;
5179 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
5180 { test "$extra_verbose" = "yes" && cat << EOF
5181 Defining $word
5182 EOF
5183 cat >> confdefs.h <<EOF
5184 #define $word 1
5185 EOF
5186 }
5187 ;;
5188 esac
5189 done
5190 fi
5191
5192 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5193 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5194 echo "configure:5195: checking for X11/Intrinsic.h" >&5
5195
5196 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5199 #include <X11/Intrinsic.h>
5200 EOF
5201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5202 { (eval echo configure:5203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5203 ac_err=`grep -v '^ *+' conftest.out`
5204 if test -z "$ac_err"; then
5205 rm -rf conftest*
5206 eval "ac_cv_header_$ac_safe=yes"
5207 else
5208 echo "$ac_err" >&5
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 rm -rf conftest*
5212 eval "ac_cv_header_$ac_safe=no"
5213 fi
5214 rm -f conftest*
5215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5216 echo "$ac_t""yes" 1>&6
5217 :
5218 else
5219 echo "$ac_t""no" 1>&6
5220 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
5221 fi
5222
5223
5224
5225 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5226 echo "configure:5227: checking for XOpenDisplay in -lX11" >&5
5227 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5228
5229 xe_check_libs=" -lX11 "
5230 cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5233 /* Override any gcc2 internal prototype to avoid an error. */
5234 /* We use char because int might match the return type of a gcc2
5235 builtin and then its argument prototype would still apply. */
5236 char XOpenDisplay();
5237
5238 int main() {
5239 XOpenDisplay()
5240 ; return 0; }
5241 EOF
5242 if { (eval echo configure:5243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5243 rm -rf conftest*
5244 eval "ac_cv_lib_$ac_lib_var=yes"
5245 else
5246 echo "configure: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5248 rm -rf conftest*
5249 eval "ac_cv_lib_$ac_lib_var=no"
5250 fi
5251 rm -f conftest*
5252 xe_check_libs=""
5253
5254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5255 echo "$ac_t""yes" 1>&6
5256 have_lib_x11=yes
5257 else
5258 echo "$ac_t""no" 1>&6
5259 fi
5260
5261
5262 if test "$have_lib_x11" != "yes"; then
5263
5264 xe_msg_checking="for XGetFontProperty in -lX11"
5265 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5266 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5267 echo "configure:5268: checking "$xe_msg_checking"" >&5
5268 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5269
5270 xe_check_libs=" -lX11 -b i486-linuxaout"
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5274 /* Override any gcc2 internal prototype to avoid an error. */
5275 /* We use char because int might match the return type of a gcc2
5276 builtin and then its argument prototype would still apply. */
5277 char XGetFontProperty();
5278
5279 int main() {
5280 XGetFontProperty()
5281 ; return 0; }
5282 EOF
5283 if { (eval echo configure:5284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5284 rm -rf conftest*
5285 eval "ac_cv_lib_$ac_lib_var=yes"
5286 else
5287 echo "configure: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5289 rm -rf conftest*
5290 eval "ac_cv_lib_$ac_lib_var=no"
5291 fi
5292 rm -f conftest*
5293 xe_check_libs=""
5294
5295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5296 echo "$ac_t""yes" 1>&6
5297 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
5298 else
5299 echo "$ac_t""no" 1>&6
5300 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5301 fi
5302
5303
5304 fi
5305 libs_x="-lX11"
5306 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5307
5308
5309 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5310 echo "configure:5311: checking for XShapeSelectInput in -lXext" >&5
5311 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5312
5313 xe_check_libs=" -lXext "
5314 cat > conftest.$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5317 /* Override any gcc2 internal prototype to avoid an error. */
5318 /* We use char because int might match the return type of a gcc2
5319 builtin and then its argument prototype would still apply. */
5320 char XShapeSelectInput();
5321
5322 int main() {
5323 XShapeSelectInput()
5324 ; return 0; }
5325 EOF
5326 if { (eval echo configure:5327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5327 rm -rf conftest*
5328 eval "ac_cv_lib_$ac_lib_var=yes"
5329 else
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5332 rm -rf conftest*
5333 eval "ac_cv_lib_$ac_lib_var=no"
5334 fi
5335 rm -f conftest*
5336 xe_check_libs=""
5337
5338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5339 echo "$ac_t""yes" 1>&6
5340 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
5341 else
5342 echo "$ac_t""no" 1>&6
5343 fi
5344
5345
5346
5347
5348 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5349 echo "configure:5350: checking for XtOpenDisplay in -lXt" >&5
5350 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5351
5352 xe_check_libs=" -lXt "
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 /* Override any gcc2 internal prototype to avoid an error. */
5357 /* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */
5359 char XtOpenDisplay();
5360
5361 int main() {
5362 XtOpenDisplay()
5363 ; return 0; }
5364 EOF
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5366 rm -rf conftest*
5367 eval "ac_cv_lib_$ac_lib_var=yes"
5368 else
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5371 rm -rf conftest*
5372 eval "ac_cv_lib_$ac_lib_var=no"
5373 fi
5374 rm -f conftest*
5375 xe_check_libs=""
5376
5377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5378 echo "$ac_t""yes" 1>&6
5379 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
5380 else
5381 echo "$ac_t""no" 1>&6
5382 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
5383 fi
5384
5385
5386
5387 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5388 echo "configure:5389: checking the version of X11 being used" >&5
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 #include <X11/Intrinsic.h>
5393 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5394 EOF
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5396 then
5397 ./conftest foobar; x11_release=$?
5398 else
5399 echo "configure: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5401 rm -fr conftest*
5402 x11_release=4
5403 fi
5404 rm -fr conftest*
5405 echo "$ac_t""R${x11_release}" 1>&6
5406 { test "$extra_verbose" = "yes" && cat << EOF
5407 Defining THIS_IS_X11R${x11_release}
5408 EOF
5409 cat >> confdefs.h <<EOF
5410 #define THIS_IS_X11R${x11_release} 1
5411 EOF
5412 }
5413
5414
5415 for ac_hdr in X11/Xlocale.h
5416 do
5417 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5419 echo "configure:5420: checking for $ac_hdr" >&5
5420
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 #include <$ac_hdr>
5425 EOF
5426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5427 { (eval echo configure:5428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5428 ac_err=`grep -v '^ *+' conftest.out`
5429 if test -z "$ac_err"; then
5430 rm -rf conftest*
5431 eval "ac_cv_header_$ac_safe=yes"
5432 else
5433 echo "$ac_err" >&5
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 rm -rf conftest*
5437 eval "ac_cv_header_$ac_safe=no"
5438 fi
5439 rm -f conftest*
5440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5441 echo "$ac_t""yes" 1>&6
5442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5443 { test "$extra_verbose" = "yes" && cat << EOF
5444 Defining $ac_tr_hdr
5445 EOF
5446 cat >> confdefs.h <<EOF
5447 #define $ac_tr_hdr 1
5448 EOF
5449 }
5450
5451 else
5452 echo "$ac_t""no" 1>&6
5453 fi
5454 done
5455
5456
5457 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5458 echo "configure:5459: checking for XFree86" >&5
5459 if test -d "/usr/X386/include" -o \
5460 -f "/etc/XF86Config" -o \
5461 -f "/etc/X11/XF86Config" -o \
5462 -f "/usr/X11R6/lib/X11/XF86Config"; then
5463 echo "$ac_t""yes" 1>&6
5464 { test "$extra_verbose" = "yes" && cat << \EOF
5465 Defining HAVE_XFREE386
5466 EOF
5467 cat >> confdefs.h <<\EOF
5468 #define HAVE_XFREE386 1
5469 EOF
5470 }
5471
5472 else
5473 echo "$ac_t""no" 1>&6
5474 fi
5475
5476 test -z "$with_xmu" && {
5477 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5478 echo "configure:5479: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5479 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5480
5481 xe_check_libs=" -lXmu "
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* Override any gcc2 internal prototype to avoid an error. */
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
5488 char XmuReadBitmapDataFromFile();
5489
5490 int main() {
5491 XmuReadBitmapDataFromFile()
5492 ; return 0; }
5493 EOF
5494 if { (eval echo configure:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5495 rm -rf conftest*
5496 eval "ac_cv_lib_$ac_lib_var=yes"
5497 else
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5500 rm -rf conftest*
5501 eval "ac_cv_lib_$ac_lib_var=no"
5502 fi
5503 rm -f conftest*
5504 xe_check_libs=""
5505
5506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5507 echo "$ac_t""yes" 1>&6
5508 with_xmu=yes
5509 else
5510 echo "$ac_t""no" 1>&6
5511 with_xmu=no
5512 fi
5513
5514 }
5515 if test "$with_xmu" = "no"; then
5516 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
5517 echo " xemacs will be linked with \"xmu.o\""
5518 fi
5519 else
5520 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5521 { test "$extra_verbose" = "yes" && cat << \EOF
5522 Defining HAVE_XMU
5523 EOF
5524 cat >> confdefs.h <<\EOF
5525 #define HAVE_XMU 1
5526 EOF
5527 }
5528
5529 fi
5530
5531
5532 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5533 echo "configure:5534: checking for main in -lXbsd" >&5
5534 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5535
5536 xe_check_libs=" -lXbsd "
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540
5541 int main() {
5542 main()
5543 ; return 0; }
5544 EOF
5545 if { (eval echo configure:5546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5546 rm -rf conftest*
5547 eval "ac_cv_lib_$ac_lib_var=yes"
5548 else
5549 echo "configure: failed program was:" >&5
5550 cat conftest.$ac_ext >&5
5551 rm -rf conftest*
5552 eval "ac_cv_lib_$ac_lib_var=no"
5553 fi
5554 rm -f conftest*
5555 xe_check_libs=""
5556
5557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5558 echo "$ac_t""yes" 1>&6
5559 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
5560 else
5561 echo "$ac_t""no" 1>&6
5562 fi
5563
5564
5565
5566 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
5567 libs_x="$libs_x -lc_r" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lc_r\" to \$libs_x"; fi
5568 fi
5569
5570 fi
5571 test -z "$window_system" && window_system="none"
5572
5573 if test "$window_system" = "none" ; then
5574 if test "$with_tty" = "no" ; then
5575 { echo "configure: error: No window system support and no TTY support - Unable to proceed." 1>&2; exit 1; }
5576 fi
5577 for feature in tooltalk cde offix session \
5578 menubars scrollbars toolbars dialogs xim xmu \
5579 tiff png jpeg gif xface xpm
5580 do
5581 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5582 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
5583 fi
5584 eval "with_${feature}=no"
5585 done
5586 else
5587 test -z "$with_toolbars" && with_toolbars=yes
5588 fi
5589
5590 bitmapdir=
5591
5592 case "$window_system" in
5593 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
5594 msw ) HAVE_X_WINDOWS=no; echo " Using MS-Windows." ;;
5595 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
5596 esac
5597
5598 case "$x_libraries" in *X11R4* )
5599 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5600 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5601 esac
5602
5603 echo "checking for session-management option" 1>&6
5604 echo "configure:5605: checking for session-management option" >&5;
5605 if test "$with_session" != "no"; then
5606 { test "$extra_verbose" = "yes" && cat << \EOF
5607 Defining HAVE_SESSION
5608 EOF
5609 cat >> confdefs.h <<\EOF
5610 #define HAVE_SESSION 1
5611 EOF
5612 }
5613
5614 fi
5615
5616 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5617 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5618 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5619 echo "configure:5620: checking for X11/Xauth.h" >&5
5620
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 #include <X11/Xauth.h>
5625 EOF
5626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5627 { (eval echo configure:5628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5628 ac_err=`grep -v '^ *+' conftest.out`
5629 if test -z "$ac_err"; then
5630 rm -rf conftest*
5631 eval "ac_cv_header_$ac_safe=yes"
5632 else
5633 echo "$ac_err" >&5
5634 echo "configure: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5636 rm -rf conftest*
5637 eval "ac_cv_header_$ac_safe=no"
5638 fi
5639 rm -f conftest*
5640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5641 echo "$ac_t""yes" 1>&6
5642 :
5643 else
5644 echo "$ac_t""no" 1>&6
5645 with_xauth=no
5646 fi
5647 }
5648 test -z "$with_xauth" && {
5649 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5650 echo "configure:5651: checking for XauGetAuthByAddr in -lXau" >&5
5651 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5652
5653 xe_check_libs=" -lXau "
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5660 char XauGetAuthByAddr();
5661
5662 int main() {
5663 XauGetAuthByAddr()
5664 ; return 0; }
5665 EOF
5666 if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5667 rm -rf conftest*
5668 eval "ac_cv_lib_$ac_lib_var=yes"
5669 else
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 rm -rf conftest*
5673 eval "ac_cv_lib_$ac_lib_var=no"
5674 fi
5675 rm -f conftest*
5676 xe_check_libs=""
5677
5678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5679 echo "$ac_t""yes" 1>&6
5680 :
5681 else
5682 echo "$ac_t""no" 1>&6
5683 with_xauth=no
5684 fi
5685
5686 }
5687 test -z "$with_xauth" && with_xauth=yes
5688 if test "$with_xauth" = "yes"; then
5689 { test "$extra_verbose" = "yes" && cat << \EOF
5690 Defining HAVE_XAUTH
5691 EOF
5692 cat >> confdefs.h <<\EOF
5693 #define HAVE_XAUTH 1
5694 EOF
5695 }
5696
5697
5698 T=""
5699 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
5700 libs_xauth="$T"
5701
5702 fi
5703
5704
5705 OFFIX_O=""
5706 test "$window_system" != "x11" && with_offix=no
5707 if test "$with_xmu" != yes -a "$with_x11" = yes; then
5708 echo "configure: warning: No OffiX without real Xmu support" 1>&2
5709 with_offix=no
5710 fi
5711 test -z "$with_offix" && with_offix=yes
5712 if test "$with_offix" = "yes"; then
5713 { test "$extra_verbose" = "yes" && cat << \EOF
5714 Defining HAVE_OFFIX_DND
5715 EOF
5716 cat >> confdefs.h <<\EOF
5717 #define HAVE_OFFIX_DND 1
5718 EOF
5719 }
5720
5721 OFFIX_O="offix.o"
5722 fi
5723
5724
5725 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5726 if test "$with_tooltalk" != "no" ; then
5727 for dir in "" "Tt/" "desktop/" ; do
5728 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5729 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5730 echo "configure:5731: checking for ${dir}tt_c.h" >&5
5731
5732 cat > conftest.$ac_ext <<EOF
5733 #line 5734 "configure"
5734 #include "confdefs.h"
5735 #include <${dir}tt_c.h>
5736 EOF
5737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5738 { (eval echo configure:5739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5739 ac_err=`grep -v '^ *+' conftest.out`
5740 if test -z "$ac_err"; then
5741 rm -rf conftest*
5742 eval "ac_cv_header_$ac_safe=yes"
5743 else
5744 echo "$ac_err" >&5
5745 echo "configure: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5747 rm -rf conftest*
5748 eval "ac_cv_header_$ac_safe=no"
5749 fi
5750 rm -f conftest*
5751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5752 echo "$ac_t""yes" 1>&6
5753 tt_c_h_path="${dir}tt_c.h" && break
5754 else
5755 echo "$ac_t""no" 1>&6
5756 fi
5757
5758 done
5759 test -z "$tt_c_h_path" && with_tooltalk=no
5760 fi
5761 if test "$with_tooltalk" != "no" ; then
5762 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5763
5764 xe_msg_checking="for tt_message_create in -ltt"
5765 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5766 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5767 echo "configure:5768: checking "$xe_msg_checking"" >&5
5768 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5769
5770 xe_check_libs=" -ltt $extra_libs"
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5777 char tt_message_create();
5778
5779 int main() {
5780 tt_message_create()
5781 ; return 0; }
5782 EOF
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5784 rm -rf conftest*
5785 eval "ac_cv_lib_$ac_lib_var=yes"
5786 else
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5789 rm -rf conftest*
5790 eval "ac_cv_lib_$ac_lib_var=no"
5791 fi
5792 rm -f conftest*
5793 xe_check_libs=""
5794
5795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5796 echo "$ac_t""yes" 1>&6
5797 with_tooltalk=yes tt_libs="-ltt $extra_libs"; break
5798 else
5799 echo "$ac_t""no" 1>&6
5800 :
5801 fi
5802
5803
5804 done
5805 fi
5806 test -z "$with_tooltalk" && with_tooltalk=no
5807 if test "$with_tooltalk" = "yes"; then
5808 { test "$extra_verbose" = "yes" && cat << \EOF
5809 Defining TOOLTALK
5810 EOF
5811 cat >> confdefs.h <<\EOF
5812 #define TOOLTALK 1
5813 EOF
5814 }
5815
5816 { test "$extra_verbose" = "yes" && cat << EOF
5817 Defining TT_C_H_PATH = "$tt_c_h_path"
5818 EOF
5819 cat >> confdefs.h <<EOF
5820 #define TT_C_H_PATH "$tt_c_h_path"
5821 EOF
5822 }
5823
5824 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
5825 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
5826 echo " xemacs will be linked with \"tooltalk.o\""
5827 fi
5828 fi
5829
5830 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5831 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5832 echo "configure:5833: checking for Dt/Dt.h" >&5
5833
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 #include <Dt/Dt.h>
5838 EOF
5839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5840 { (eval echo configure:5841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5841 ac_err=`grep -v '^ *+' conftest.out`
5842 if test -z "$ac_err"; then
5843 rm -rf conftest*
5844 eval "ac_cv_header_$ac_safe=yes"
5845 else
5846 echo "$ac_err" >&5
5847 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 rm -rf conftest*
5850 eval "ac_cv_header_$ac_safe=no"
5851 fi
5852 rm -f conftest*
5853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5854 echo "$ac_t""yes" 1>&6
5855 :
5856 else
5857 echo "$ac_t""no" 1>&6
5858 with_cde=no
5859 fi
5860 }
5861 test -z "$with_cde" && {
5862 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5863 echo "configure:5864: checking for DtDndDragStart in -lDtSvc" >&5
5864 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5865
5866 xe_check_libs=" -lDtSvc "
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* Override any gcc2 internal prototype to avoid an error. */
5871 /* We use char because int might match the return type of a gcc2
5872 builtin and then its argument prototype would still apply. */
5873 char DtDndDragStart();
5874
5875 int main() {
5876 DtDndDragStart()
5877 ; return 0; }
5878 EOF
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5880 rm -rf conftest*
5881 eval "ac_cv_lib_$ac_lib_var=yes"
5882 else
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5885 rm -rf conftest*
5886 eval "ac_cv_lib_$ac_lib_var=no"
5887 fi
5888 rm -f conftest*
5889 xe_check_libs=""
5890
5891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5892 echo "$ac_t""yes" 1>&6
5893 :
5894 else
5895 echo "$ac_t""no" 1>&6
5896 with_cde=no
5897 fi
5898
5899 }
5900 test -z "$with_cde" && with_cde=yes
5901 if test "$with_cde" = "yes" ; then
5902 { test "$extra_verbose" = "yes" && cat << \EOF
5903 Defining HAVE_CDE
5904 EOF
5905 cat >> confdefs.h <<\EOF
5906 #define HAVE_CDE 1
5907 EOF
5908 }
5909
5910 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
5911 with_tooltalk=yes # CDE requires Tooltalk
5912 need_motif=yes # CDE requires Motif
5913 fi
5914
5915 echo "checking for LDAP" 1>&6
5916 echo "configure:5917: checking for LDAP" >&5
5917 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
5918 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
5919 echo "configure:5920: checking for ldap.h" >&5
5920
5921 cat > conftest.$ac_ext <<EOF
5922 #line 5923 "configure"
5923 #include "confdefs.h"
5924 #include <ldap.h>
5925 EOF
5926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5927 { (eval echo configure:5928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5928 ac_err=`grep -v '^ *+' conftest.out`
5929 if test -z "$ac_err"; then
5930 rm -rf conftest*
5931 eval "ac_cv_header_$ac_safe=yes"
5932 else
5933 echo "$ac_err" >&5
5934 echo "configure: failed program was:" >&5
5935 cat conftest.$ac_ext >&5
5936 rm -rf conftest*
5937 eval "ac_cv_header_$ac_safe=no"
5938 fi
5939 rm -f conftest*
5940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5941 echo "$ac_t""yes" 1>&6
5942 :
5943 else
5944 echo "$ac_t""no" 1>&6
5945 with_ldap=no
5946 fi
5947 }
5948 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
5949 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
5950 echo "configure:5951: checking for lber.h" >&5
5951
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5955 #include <lber.h>
5956 EOF
5957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5958 { (eval echo configure:5959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5959 ac_err=`grep -v '^ *+' conftest.out`
5960 if test -z "$ac_err"; then
5961 rm -rf conftest*
5962 eval "ac_cv_header_$ac_safe=yes"
5963 else
5964 echo "$ac_err" >&5
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5967 rm -rf conftest*
5968 eval "ac_cv_header_$ac_safe=no"
5969 fi
5970 rm -f conftest*
5971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5973 :
5974 else
5975 echo "$ac_t""no" 1>&6
5976 with_ldap=no
5977 fi
5978 }
5979 test -z "$with_ldap" -o "$with_ldap" = "yes" && {
5980 xe_msg_checking="for ldap_open in -lldap"
5981 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
5982 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5983 echo "configure:5984: checking "$xe_msg_checking"" >&5
5984 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
5985
5986 xe_check_libs=" -lldap -llber"
5987 cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 /* Override any gcc2 internal prototype to avoid an error. */
5991 /* We use char because int might match the return type of a gcc2
5992 builtin and then its argument prototype would still apply. */
5993 char ldap_open();
5994
5995 int main() {
5996 ldap_open()
5997 ; return 0; }
5998 EOF
5999 if { (eval echo configure:6000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6000 rm -rf conftest*
6001 eval "ac_cv_lib_$ac_lib_var=yes"
6002 else
6003 echo "configure: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6005 rm -rf conftest*
6006 eval "ac_cv_lib_$ac_lib_var=no"
6007 fi
6008 rm -f conftest*
6009 xe_check_libs=""
6010
6011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6012 echo "$ac_t""yes" 1>&6
6013 with_umich_ldap=yes
6014 else
6015 echo "$ac_t""no" 1>&6
6016 with_umich_ldap=no
6017 fi
6018
6019 }
6020 test \( -z "$with_ldap" -o "$with_ldap" = "yes" \) -a "$with_umich_ldap" = "no" && {
6021 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6022 echo "configure:6023: checking for ldap_set_option in -lldap10" >&5
6023 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6024
6025 xe_check_libs=" -lldap10 "
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6032 char ldap_set_option();
6033
6034 int main() {
6035 ldap_set_option()
6036 ; return 0; }
6037 EOF
6038 if { (eval echo configure:6039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6039 rm -rf conftest*
6040 eval "ac_cv_lib_$ac_lib_var=yes"
6041 else
6042 echo "configure: failed program was:" >&5
6043 cat conftest.$ac_ext >&5
6044 rm -rf conftest*
6045 eval "ac_cv_lib_$ac_lib_var=no"
6046 fi
6047 rm -f conftest*
6048 xe_check_libs=""
6049
6050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6051 echo "$ac_t""yes" 1>&6
6052 with_ns_ldap=yes
6053 else
6054 echo "$ac_t""no" 1>&6
6055 with_ns_ldap=no
6056 fi
6057
6058 }
6059 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
6060 if test "$with_ldap" = "yes" -a "$with_umich_ldap" = "yes" ; then
6061 { test "$extra_verbose" = "yes" && cat << \EOF
6062 Defining HAVE_LDAP
6063 EOF
6064 cat >> confdefs.h <<\EOF
6065 #define HAVE_LDAP 1
6066 EOF
6067 }
6068
6069 { test "$extra_verbose" = "yes" && cat << \EOF
6070 Defining HAVE_UMICH_LDAP
6071 EOF
6072 cat >> confdefs.h <<\EOF
6073 #define HAVE_UMICH_LDAP 1
6074 EOF
6075 }
6076
6077 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6078 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6079 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6080 echo " xemacs will be linked with \"eldap.o\""
6081 fi
6082 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
6083 { test "$extra_verbose" = "yes" && cat << \EOF
6084 Defining HAVE_LDAP
6085 EOF
6086 cat >> confdefs.h <<\EOF
6087 #define HAVE_LDAP 1
6088 EOF
6089 }
6090
6091 { test "$extra_verbose" = "yes" && cat << \EOF
6092 Defining HAVE_NS_LDAP
6093 EOF
6094 cat >> confdefs.h <<\EOF
6095 #define HAVE_NS_LDAP 1
6096 EOF
6097 }
6098
6099 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
6100 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6101 echo " xemacs will be linked with \"eldap.o\""
6102 fi
6103 elif test "$with_ldap" = "yes" ; then
6104 { test "$extra_verbose" = "yes" && cat << \EOF
6105 Defining HAVE_LDAP
6106 EOF
6107 cat >> confdefs.h <<\EOF
6108 #define HAVE_LDAP 1
6109 EOF
6110 }
6111
6112 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6113 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
6114 echo " xemacs will be linked with \"eldap.o\""
6115 fi
6116 fi
6117
6118
6119 if test "$with_x11" = "yes"; then
6120
6121 echo "checking for X11 graphics libraries" 1>&6
6122 echo "configure:6123: checking for X11 graphics libraries" >&5
6123
6124 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6125 echo "configure:6126: checking for Xpm - no older than 3.4f" >&5
6126 xe_check_libs=-lXpm
6127 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130 #include <X11/xpm.h>
6131 int main(int c, char **v) {
6132 return c == 1 ? 0 :
6133 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6134 XpmIncludeVersion < 30406 ? 2 :
6135 0 ;
6136 }
6137 EOF
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6139 then
6140 ./conftest foobar; xpm_status=$?;
6141 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
6142 else
6143 echo "configure: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6145 rm -fr conftest*
6146 with_xpm=no
6147 fi
6148 rm -fr conftest*
6149 }
6150 xe_check_libs=
6151 echo "$ac_t""$with_xpm" 1>&6
6152 if test "$xpm_status" = "1" -o "$xpm_status" = "2"; then
6153 test "$xpm_status" = "1" && problem="Xpm library version and header file version don't match!"
6154 test "$xpm_status" = "2" && problem="Xpm library version is too old!"
6155 echo "
6156 *** WARNING *** $problem
6157 I'm not touching that with a 10-foot pole!
6158 If you really want to use the installed version of Xpm, rerun
6159 configure --with-xpm=yes, but don't blame me if XEmacs crashes!
6160 "
6161 fi
6162 if test "$with_xpm" = "yes"; then
6163 { test "$extra_verbose" = "yes" && cat << \EOF
6164 Defining HAVE_XPM
6165 EOF
6166 cat >> confdefs.h <<\EOF
6167 #define HAVE_XPM 1
6168 EOF
6169 }
6170
6171 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6172 fi
6173
6174 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6175 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6176 echo "configure:6177: checking for compface.h" >&5
6177
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6181 #include <compface.h>
6182 EOF
6183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6184 { (eval echo configure:6185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6185 ac_err=`grep -v '^ *+' conftest.out`
6186 if test -z "$ac_err"; then
6187 rm -rf conftest*
6188 eval "ac_cv_header_$ac_safe=yes"
6189 else
6190 echo "$ac_err" >&5
6191 echo "configure: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6193 rm -rf conftest*
6194 eval "ac_cv_header_$ac_safe=no"
6195 fi
6196 rm -f conftest*
6197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6198 echo "$ac_t""yes" 1>&6
6199 :
6200 else
6201 echo "$ac_t""no" 1>&6
6202 with_xface=no
6203 fi
6204 }
6205 test -z "$with_xface" && {
6206 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6207 echo "configure:6208: checking for UnGenFace in -lcompface" >&5
6208 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6209
6210 xe_check_libs=" -lcompface "
6211 cat > conftest.$ac_ext <<EOF
6212 #line 6213 "configure"
6213 #include "confdefs.h"
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6217 char UnGenFace();
6218
6219 int main() {
6220 UnGenFace()
6221 ; return 0; }
6222 EOF
6223 if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6224 rm -rf conftest*
6225 eval "ac_cv_lib_$ac_lib_var=yes"
6226 else
6227 echo "configure: failed program was:" >&5
6228 cat conftest.$ac_ext >&5
6229 rm -rf conftest*
6230 eval "ac_cv_lib_$ac_lib_var=no"
6231 fi
6232 rm -f conftest*
6233 xe_check_libs=""
6234
6235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6236 echo "$ac_t""yes" 1>&6
6237 :
6238 else
6239 echo "$ac_t""no" 1>&6
6240 with_xface=no
6241 fi
6242
6243 }
6244 test -z "$with_xface" && with_xface=yes
6245 if test "$with_xface" = "yes"; then
6246 { test "$extra_verbose" = "yes" && cat << \EOF
6247 Defining HAVE_XFACE
6248 EOF
6249 cat >> confdefs.h <<\EOF
6250 #define HAVE_XFACE 1
6251 EOF
6252 }
6253
6254 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6255 fi
6256
6257 test -z "$with_gif" && with_gif=yes;
6258 if test "$with_gif" = "yes"; then
6259 { test "$extra_verbose" = "yes" && cat << \EOF
6260 Defining HAVE_GIF
6261 EOF
6262 cat >> confdefs.h <<\EOF
6263 #define HAVE_GIF 1
6264 EOF
6265 }
6266
6267 extra_objs="$extra_objs dgif_lib.o gif_err.o gifalloc.o" && if test "$extra_verbose" = "yes"; then
6268 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\""
6269 fi
6270 fi
6271
6272 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6273 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6274 echo "configure:6275: checking for jpeglib.h" >&5
6275
6276 cat > conftest.$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6279 #include <jpeglib.h>
6280 EOF
6281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6282 { (eval echo configure:6283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6283 ac_err=`grep -v '^ *+' conftest.out`
6284 if test -z "$ac_err"; then
6285 rm -rf conftest*
6286 eval "ac_cv_header_$ac_safe=yes"
6287 else
6288 echo "$ac_err" >&5
6289 echo "configure: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6291 rm -rf conftest*
6292 eval "ac_cv_header_$ac_safe=no"
6293 fi
6294 rm -f conftest*
6295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6296 echo "$ac_t""yes" 1>&6
6297 :
6298 else
6299 echo "$ac_t""no" 1>&6
6300 with_jpeg=no
6301 fi
6302 }
6303 test -z "$with_jpeg" && {
6304 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6305 echo "configure:6306: checking for jpeg_destroy_decompress in -ljpeg" >&5
6306 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6307
6308 xe_check_libs=" -ljpeg "
6309 cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6312 /* Override any gcc2 internal prototype to avoid an error. */
6313 /* We use char because int might match the return type of a gcc2
6314 builtin and then its argument prototype would still apply. */
6315 char jpeg_destroy_decompress();
6316
6317 int main() {
6318 jpeg_destroy_decompress()
6319 ; return 0; }
6320 EOF
6321 if { (eval echo configure:6322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6322 rm -rf conftest*
6323 eval "ac_cv_lib_$ac_lib_var=yes"
6324 else
6325 echo "configure: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6327 rm -rf conftest*
6328 eval "ac_cv_lib_$ac_lib_var=no"
6329 fi
6330 rm -f conftest*
6331 xe_check_libs=""
6332
6333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6334 echo "$ac_t""yes" 1>&6
6335 :
6336 else
6337 echo "$ac_t""no" 1>&6
6338 with_jpeg=no
6339 fi
6340
6341 }
6342 test -z "$with_jpeg" && with_jpeg=yes
6343 if test "$with_jpeg" = "yes"; then
6344 { test "$extra_verbose" = "yes" && cat << \EOF
6345 Defining HAVE_JPEG
6346 EOF
6347 cat >> confdefs.h <<\EOF
6348 #define HAVE_JPEG 1
6349 EOF
6350 }
6351
6352 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6353 fi
6354
6355 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6356 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6357 echo "configure:6358: checking for png.h" >&5
6358
6359 cat > conftest.$ac_ext <<EOF
6360 #line 6361 "configure"
6361 #include "confdefs.h"
6362 #include <png.h>
6363 EOF
6364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6365 { (eval echo configure:6366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6366 ac_err=`grep -v '^ *+' conftest.out`
6367 if test -z "$ac_err"; then
6368 rm -rf conftest*
6369 eval "ac_cv_header_$ac_safe=yes"
6370 else
6371 echo "$ac_err" >&5
6372 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 rm -rf conftest*
6375 eval "ac_cv_header_$ac_safe=no"
6376 fi
6377 rm -f conftest*
6378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6379 echo "$ac_t""yes" 1>&6
6380 :
6381 else
6382 echo "$ac_t""no" 1>&6
6383 with_png=no
6384 fi
6385 }
6386 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6387 echo "configure:6388: checking for pow" >&5
6388
6389 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393 which can conflict with char pow(); below. */
6394 #include <assert.h>
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6398 char pow();
6399
6400 int main() {
6401
6402 /* The GNU C library defines this for functions which it implements
6403 to always fail with ENOSYS. Some functions are actually named
6404 something starting with __ and the normal name is an alias. */
6405 #if defined (__stub_pow) || defined (__stub___pow)
6406 choke me
6407 #else
6408 pow();
6409 #endif
6410
6411 ; return 0; }
6412 EOF
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6414 rm -rf conftest*
6415 eval "ac_cv_func_pow=yes"
6416 else
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6419 rm -rf conftest*
6420 eval "ac_cv_func_pow=no"
6421 fi
6422 rm -f conftest*
6423
6424 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
6425 echo "$ac_t""yes" 1>&6
6426 :
6427 else
6428 echo "$ac_t""no" 1>&6
6429 with_png=no
6430 fi
6431 }
6432 if test "$with_png" != "no"; then
6433 for extra_libs in "" "-lz" "-lgz"; do
6434
6435 xe_msg_checking="for png_read_image in -lpng"
6436 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6437 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6438 echo "configure:6439: checking "$xe_msg_checking"" >&5
6439 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6440
6441 xe_check_libs=" -lpng $extra_libs"
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6445 /* Override any gcc2 internal prototype to avoid an error. */
6446 /* We use char because int might match the return type of a gcc2
6447 builtin and then its argument prototype would still apply. */
6448 char png_read_image();
6449
6450 int main() {
6451 png_read_image()
6452 ; return 0; }
6453 EOF
6454 if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6455 rm -rf conftest*
6456 eval "ac_cv_lib_$ac_lib_var=yes"
6457 else
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6460 rm -rf conftest*
6461 eval "ac_cv_lib_$ac_lib_var=no"
6462 fi
6463 rm -f conftest*
6464 xe_check_libs=""
6465
6466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6467 echo "$ac_t""yes" 1>&6
6468 png_libs="-lpng $extra_libs" with_png=yes; break
6469 else
6470 echo "$ac_t""no" 1>&6
6471 :
6472 fi
6473
6474
6475 done
6476 fi
6477 test -z "$with_png" && with_png=no
6478 if test "$with_png" = "yes"; then
6479 { test "$extra_verbose" = "yes" && cat << \EOF
6480 Defining HAVE_PNG
6481 EOF
6482 cat >> confdefs.h <<\EOF
6483 #define HAVE_PNG 1
6484 EOF
6485 }
6486
6487 libs_x="$png_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$png_libs\" to \$libs_x"; fi
6488 fi
6489
6490 if test "$with_tiff" != no; then
6491 for extra_libs in "" "-lz" "-lgz"; do
6492
6493 xe_msg_checking="for TIFFReadScanline in -ltiff"
6494 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6495 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6496 echo "configure:6497: checking "$xe_msg_checking"" >&5
6497 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'`
6498
6499 xe_check_libs=" -ltiff $extra_libs"
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503 /* Override any gcc2 internal prototype to avoid an error. */
6504 /* We use char because int might match the return type of a gcc2
6505 builtin and then its argument prototype would still apply. */
6506 char TIFFReadScanline();
6507
6508 int main() {
6509 TIFFReadScanline()
6510 ; return 0; }
6511 EOF
6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6513 rm -rf conftest*
6514 eval "ac_cv_lib_$ac_lib_var=yes"
6515 else
6516 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6518 rm -rf conftest*
6519 eval "ac_cv_lib_$ac_lib_var=no"
6520 fi
6521 rm -f conftest*
6522 xe_check_libs=""
6523
6524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6525 echo "$ac_t""yes" 1>&6
6526 tiff_libs="-ltiff $extra_libs" with_tiff=yes; break
6527 else
6528 echo "$ac_t""no" 1>&6
6529 :
6530 fi
6531
6532
6533 done
6534 fi
6535 test -z "$with_tiff" && with_tiff=no
6536 if test "$with_tiff" = "yes"; then
6537 { test "$extra_verbose" = "yes" && cat << \EOF
6538 Defining HAVE_TIFF
6539 EOF
6540 cat >> confdefs.h <<\EOF
6541 #define HAVE_TIFF 1
6542 EOF
6543 }
6544
6545 libs_x="$tiff_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tiff_libs\" to \$libs_x"; fi
6546 fi
6547
6548
6549 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
6550 echo "configure:6551: checking for XawScrollbarSetThumb in -lXaw" >&5
6551 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
6552
6553 xe_check_libs=" -lXaw "
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 /* We use char because int might match the return type of a gcc2
6559 builtin and then its argument prototype would still apply. */
6560 char XawScrollbarSetThumb();
6561
6562 int main() {
6563 XawScrollbarSetThumb()
6564 ; return 0; }
6565 EOF
6566 if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6567 rm -rf conftest*
6568 eval "ac_cv_lib_$ac_lib_var=yes"
6569 else
6570 echo "configure: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6572 rm -rf conftest*
6573 eval "ac_cv_lib_$ac_lib_var=no"
6574 fi
6575 rm -f conftest*
6576 xe_check_libs=""
6577
6578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6579 echo "$ac_t""yes" 1>&6
6580 have_xaw=yes
6581 else
6582 echo "$ac_t""no" 1>&6
6583 have_xaw=no
6584 fi
6585
6586
6587
6588 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6589 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6590 echo "configure:6591: checking for Xm/Xm.h" >&5
6591
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 #include <Xm/Xm.h>
6596 EOF
6597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6598 { (eval echo configure:6599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6599 ac_err=`grep -v '^ *+' conftest.out`
6600 if test -z "$ac_err"; then
6601 rm -rf conftest*
6602 eval "ac_cv_header_$ac_safe=yes"
6603 else
6604 echo "$ac_err" >&5
6605 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6607 rm -rf conftest*
6608 eval "ac_cv_header_$ac_safe=no"
6609 fi
6610 rm -f conftest*
6611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6612 echo "$ac_t""yes" 1>&6
6613
6614 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6615 echo "configure:6616: checking for XmStringFree in -lXm" >&5
6616 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6617
6618 xe_check_libs=" -lXm "
6619 cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char XmStringFree();
6626
6627 int main() {
6628 XmStringFree()
6629 ; return 0; }
6630 EOF
6631 if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6632 rm -rf conftest*
6633 eval "ac_cv_lib_$ac_lib_var=yes"
6634 else
6635 echo "configure: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6637 rm -rf conftest*
6638 eval "ac_cv_lib_$ac_lib_var=no"
6639 fi
6640 rm -f conftest*
6641 xe_check_libs=""
6642
6643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6644 echo "$ac_t""yes" 1>&6
6645 have_motif=yes
6646 else
6647 echo "$ac_t""no" 1>&6
6648 have_motif=no
6649 fi
6650
6651
6652 else
6653 echo "$ac_t""no" 1>&6
6654 have_motif=no
6655 fi
6656
6657
6658 fi
6659
6660 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
6661 with_menubars="lucid" ;;
6662 esac
6663 case "$with_dialogs" in "" | "yes" | "lucid" )
6664 if test "$have_motif" = "yes"; then with_dialogs="motif"
6665 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
6666 else with_dialogs=no
6667 fi ;;
6668 esac
6669 case "$with_scrollbars" in "" | "yes" )
6670 with_scrollbars="lucid" ;;
6671 esac
6672
6673 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
6674
6675 case "$all_widgets" in *athena* )
6676 { test "$extra_verbose" = "yes" && cat << \EOF
6677 Defining LWLIB_USES_ATHENA
6678 EOF
6679 cat >> confdefs.h <<\EOF
6680 #define LWLIB_USES_ATHENA 1
6681 EOF
6682 }
6683
6684 { test "$extra_verbose" = "yes" && cat << \EOF
6685 Defining NEED_ATHENA
6686 EOF
6687 cat >> confdefs.h <<\EOF
6688 #define NEED_ATHENA 1
6689 EOF
6690 }
6691
6692 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
6693 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
6694 esac
6695
6696 case "$all_widgets" in *motif* )
6697 { test "$extra_verbose" = "yes" && cat << \EOF
6698 Defining LWLIB_USES_MOTIF
6699 EOF
6700 cat >> confdefs.h <<\EOF
6701 #define LWLIB_USES_MOTIF 1
6702 EOF
6703 }
6704
6705 { test "$extra_verbose" = "yes" && cat << \EOF
6706 Defining NEED_MOTIF
6707 EOF
6708 cat >> confdefs.h <<\EOF
6709 #define NEED_MOTIF 1
6710 EOF
6711 }
6712
6713 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
6714 need_motif=yes ;;
6715 esac
6716
6717 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
6718 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
6719 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
6720 case "$all_widgets" in *lucid* )
6721 { test "$extra_verbose" = "yes" && cat << \EOF
6722 Defining NEED_LUCID
6723 EOF
6724 cat >> confdefs.h <<\EOF
6725 #define NEED_LUCID 1
6726 EOF
6727 }
6728
6729 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
6730 esac
6731
6732
6733
6734 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
6735 Defining LWLIB_SCROLLBARS_ATHENA
6736 EOF
6737 cat >> confdefs.h <<\EOF
6738 #define LWLIB_SCROLLBARS_ATHENA 1
6739 EOF
6740 }
6741 ;; esac
6742 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
6743 Defining LWLIB_DIALOGS_ATHENA
6744 EOF
6745 cat >> confdefs.h <<\EOF
6746 #define LWLIB_DIALOGS_ATHENA 1
6747 EOF
6748 }
6749 ;; esac
6750 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
6751 Defining LWLIB_SCROLLBARS_ATHENA3D
6752 EOF
6753 cat >> confdefs.h <<\EOF
6754 #define LWLIB_SCROLLBARS_ATHENA3D 1
6755 EOF
6756 }
6757
6758 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
6759 Defining LWLIB_DIALOGS_ATHENA3D
6760 EOF
6761 cat >> confdefs.h <<\EOF
6762 #define LWLIB_DIALOGS_ATHENA3D 1
6763 EOF
6764 }
6765
6766
6767 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6768 Defining HAVE_MENUBARS
6769 EOF
6770 cat >> confdefs.h <<\EOF
6771 #define HAVE_MENUBARS 1
6772 EOF
6773 }
6774
6775 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6776 Defining HAVE_SCROLLBARS
6777 EOF
6778 cat >> confdefs.h <<\EOF
6779 #define HAVE_SCROLLBARS 1
6780 EOF
6781 }
6782
6783 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6784 Defining HAVE_DIALOGS
6785 EOF
6786 cat >> confdefs.h <<\EOF
6787 #define HAVE_DIALOGS 1
6788 EOF
6789 }
6790
6791 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6792 Defining HAVE_TOOLBARS
6793 EOF
6794 cat >> confdefs.h <<\EOF
6795 #define HAVE_TOOLBARS 1
6796 EOF
6797 }
6798
6799
6800 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
6801 Defining LWLIB_MENUBARS_LUCID
6802 EOF
6803 cat >> confdefs.h <<\EOF
6804 #define LWLIB_MENUBARS_LUCID 1
6805 EOF
6806 }
6807
6808 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
6809 Defining LWLIB_SCROLLBARS_LUCID
6810 EOF
6811 cat >> confdefs.h <<\EOF
6812 #define LWLIB_SCROLLBARS_LUCID 1
6813 EOF
6814 }
6815
6816
6817 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
6818 Defining LWLIB_MENUBARS_MOTIF
6819 EOF
6820 cat >> confdefs.h <<\EOF
6821 #define LWLIB_MENUBARS_MOTIF 1
6822 EOF
6823 }
6824
6825 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
6826 Defining LWLIB_SCROLLBARS_MOTIF
6827 EOF
6828 cat >> confdefs.h <<\EOF
6829 #define LWLIB_SCROLLBARS_MOTIF 1
6830 EOF
6831 }
6832
6833 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
6834 Defining LWLIB_DIALOGS_MOTIF
6835 EOF
6836 cat >> confdefs.h <<\EOF
6837 #define LWLIB_DIALOGS_MOTIF 1
6838 EOF
6839 }
6840
6841
6842 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
6843 echo " xemacs will be linked with \"menubar.o\""
6844 fi
6845 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
6846 echo " xemacs will be linked with \"scrollbar.o\""
6847 fi
6848 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
6849 echo " xemacs will be linked with \"dialog.o\""
6850 fi
6851 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
6852 echo " xemacs will be linked with \"toolbar.o\""
6853 fi
6854 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" && if test "$extra_verbose" = "yes"; then
6855 echo " xemacs will be linked with \"gui.o\""
6856 fi
6857
6858 if test "$with_x11" = "yes"; then
6859 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
6860 echo " xemacs will be linked with \"menubar-x.o\""
6861 fi
6862 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
6863 echo " xemacs will be linked with \"scrollbar-x.o\""
6864 fi
6865 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
6866 echo " xemacs will be linked with \"dialog-x.o\""
6867 fi
6868 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
6869 echo " xemacs will be linked with \"toolbar-x.o\""
6870 fi
6871 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
6872 echo " xemacs will be linked with \"gui-x.o\""
6873 fi
6874 else
6875 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
6876 echo "Attempt to Build NAS sound without X"
6877 echo "Please remove NAS configuration or build with X"
6878 exit 1
6879 fi
6880 fi
6881
6882 if test "$with_gung" != "no"; then
6883 test "$with_minimal_tagbits" = "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6884 Defining USE_MINIMAL_TAGBITS
6885 EOF
6886 cat >> confdefs.h <<\EOF
6887 #define USE_MINIMAL_TAGBITS 1
6888 EOF
6889 }
6890
6891 { test "$extra_verbose" = "yes" && cat << \EOF
6892 Defining USE_INDEXED_LRECORD_IMPLEMENTATION
6893 EOF
6894 cat >> confdefs.h <<\EOF
6895 #define USE_INDEXED_LRECORD_IMPLEMENTATION 1
6896 EOF
6897 }
6898
6899 fi
6900
6901
6902 test -z "$with_mule" && with_mule=no
6903 test -z "$with_file_coding" && with_file_coding=no
6904
6905
6906 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
6907 { test "$extra_verbose" = "yes" && cat << \EOF
6908 Defining FILE_CODING
6909 EOF
6910 cat >> confdefs.h <<\EOF
6911 #define FILE_CODING 1
6912 EOF
6913 }
6914
6915 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
6916 echo " xemacs will be linked with \"file-coding.o\""
6917 fi
6918 fi
6919
6920 if test "$with_mule" = "yes" ; then
6921 echo "checking for Mule-related features" 1>&6
6922 echo "configure:6923: checking for Mule-related features" >&5
6923 { test "$extra_verbose" = "yes" && cat << \EOF
6924 Defining MULE
6925 EOF
6926 cat >> confdefs.h <<\EOF
6927 #define MULE 1
6928 EOF
6929 }
6930
6931 { test "$extra_verbose" = "yes" && cat << \EOF
6932 Defining FILE_CODING
6933 EOF
6934 cat >> confdefs.h <<\EOF
6935 #define FILE_CODING 1
6936 EOF
6937 }
6938
6939 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o" && if test "$extra_verbose" = "yes"; then
6940 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o\""
6941 fi
6942
6943 for ac_hdr in libintl.h
6944 do
6945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6947 echo "configure:6948: checking for $ac_hdr" >&5
6948
6949 cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6952 #include <$ac_hdr>
6953 EOF
6954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6955 { (eval echo configure:6956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6956 ac_err=`grep -v '^ *+' conftest.out`
6957 if test -z "$ac_err"; then
6958 rm -rf conftest*
6959 eval "ac_cv_header_$ac_safe=yes"
6960 else
6961 echo "$ac_err" >&5
6962 echo "configure: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6964 rm -rf conftest*
6965 eval "ac_cv_header_$ac_safe=no"
6966 fi
6967 rm -f conftest*
6968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6969 echo "$ac_t""yes" 1>&6
6970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6971 { test "$extra_verbose" = "yes" && cat << EOF
6972 Defining $ac_tr_hdr
6973 EOF
6974 cat >> confdefs.h <<EOF
6975 #define $ac_tr_hdr 1
6976 EOF
6977 }
6978
6979 else
6980 echo "$ac_t""no" 1>&6
6981 fi
6982 done
6983
6984
6985 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6986 echo "configure:6987: checking for strerror in -lintl" >&5
6987 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6988
6989 xe_check_libs=" -lintl "
6990 cat > conftest.$ac_ext <<EOF
6991 #line 6992 "configure"
6992 #include "confdefs.h"
6993 /* Override any gcc2 internal prototype to avoid an error. */
6994 /* We use char because int might match the return type of a gcc2
6995 builtin and then its argument prototype would still apply. */
6996 char strerror();
6997
6998 int main() {
6999 strerror()
7000 ; return 0; }
7001 EOF
7002 if { (eval echo configure:7003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7003 rm -rf conftest*
7004 eval "ac_cv_lib_$ac_lib_var=yes"
7005 else
7006 echo "configure: failed program was:" >&5
7007 cat conftest.$ac_ext >&5
7008 rm -rf conftest*
7009 eval "ac_cv_lib_$ac_lib_var=no"
7010 fi
7011 rm -f conftest*
7012 xe_check_libs=""
7013
7014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7015 echo "$ac_t""yes" 1>&6
7016 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7018 { test "$extra_verbose" = "yes" && cat << EOF
7019 Defining $ac_tr_lib
7020 EOF
7021 cat >> confdefs.h <<EOF
7022 #define $ac_tr_lib 1
7023 EOF
7024 }
7025
7026 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
7027
7028 else
7029 echo "$ac_t""no" 1>&6
7030 fi
7031
7032
7033
7034 echo "checking for Mule input methods" 1>&6
7035 echo "configure:7036: checking for Mule input methods" >&5
7036 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
7037 case "$with_xim" in "" | "yes" )
7038 echo "checking for XIM" 1>&6
7039 echo "configure:7040: checking for XIM" >&5
7040
7041 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7042 echo "configure:7043: checking for XmImMbLookupString in -lXm" >&5
7043 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7044
7045 xe_check_libs=" -lXm "
7046 cat > conftest.$ac_ext <<EOF
7047 #line 7048 "configure"
7048 #include "confdefs.h"
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7052 char XmImMbLookupString();
7053
7054 int main() {
7055 XmImMbLookupString()
7056 ; return 0; }
7057 EOF
7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7059 rm -rf conftest*
7060 eval "ac_cv_lib_$ac_lib_var=yes"
7061 else
7062 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7064 rm -rf conftest*
7065 eval "ac_cv_lib_$ac_lib_var=no"
7066 fi
7067 rm -f conftest*
7068 xe_check_libs=""
7069
7070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7071 echo "$ac_t""yes" 1>&6
7072 with_xim=motif
7073 else
7074 echo "$ac_t""no" 1>&6
7075 with_xim=xlib
7076 fi
7077
7078
7079 esac
7080 if test "$with_xim" != "no" ; then
7081 { test "$extra_verbose" = "yes" && cat << \EOF
7082 Defining HAVE_XIM
7083 EOF
7084 cat >> confdefs.h <<\EOF
7085 #define HAVE_XIM 1
7086 EOF
7087 }
7088
7089 if test "$with_xim" = "xlib"; then
7090 { test "$extra_verbose" = "yes" && cat << \EOF
7091 Defining XIM_XLIB
7092 EOF
7093 cat >> confdefs.h <<\EOF
7094 #define XIM_XLIB 1
7095 EOF
7096 }
7097
7098 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
7099 echo " xemacs will be linked with \"input-method-xlib.o\""
7100 fi
7101 fi
7102 if test "$with_xim" = "motif"; then
7103 { test "$extra_verbose" = "yes" && cat << \EOF
7104 Defining XIM_MOTIF
7105 EOF
7106 cat >> confdefs.h <<\EOF
7107 #define XIM_MOTIF 1
7108 EOF
7109 }
7110
7111 need_motif=yes
7112 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
7113 echo " xemacs will be linked with \"input-method-motif.o\""
7114 fi
7115 fi
7116 if test "$with_xim" = "motif"; then
7117 with_xfs=no
7118 fi
7119 fi
7120
7121 if test "$with_xfs" = "yes" ; then
7122 echo "checking for XFontSet" 1>&6
7123 echo "configure:7124: checking for XFontSet" >&5
7124
7125 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7126 echo "configure:7127: checking for XmbDrawString in -lX11" >&5
7127 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7128
7129 xe_check_libs=" -lX11 "
7130 cat > conftest.$ac_ext <<EOF
7131 #line 7132 "configure"
7132 #include "confdefs.h"
7133 /* Override any gcc2 internal prototype to avoid an error. */
7134 /* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7136 char XmbDrawString();
7137
7138 int main() {
7139 XmbDrawString()
7140 ; return 0; }
7141 EOF
7142 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7143 rm -rf conftest*
7144 eval "ac_cv_lib_$ac_lib_var=yes"
7145 else
7146 echo "configure: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 rm -rf conftest*
7149 eval "ac_cv_lib_$ac_lib_var=no"
7150 fi
7151 rm -f conftest*
7152 xe_check_libs=""
7153
7154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7155 echo "$ac_t""yes" 1>&6
7156 :
7157 else
7158 echo "$ac_t""no" 1>&6
7159 with_xfs=no
7160 fi
7161
7162
7163 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
7164 { test "$extra_verbose" = "yes" && cat << \EOF
7165 Defining USE_XFONTSET
7166 EOF
7167 cat >> confdefs.h <<\EOF
7168 #define USE_XFONTSET 1
7169 EOF
7170 }
7171
7172 if test "$with_xim" = "no" ; then
7173 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
7174 echo " xemacs will be linked with \"input-method-xfs.o\""
7175 fi
7176 fi
7177 fi
7178 fi
7179 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7180 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7181 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7182 echo "configure:7183: checking for wnn/jllib.h" >&5
7183
7184 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7187 #include <wnn/jllib.h>
7188 EOF
7189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7190 { (eval echo configure:7191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7191 ac_err=`grep -v '^ *+' conftest.out`
7192 if test -z "$ac_err"; then
7193 rm -rf conftest*
7194 eval "ac_cv_header_$ac_safe=yes"
7195 else
7196 echo "$ac_err" >&5
7197 echo "configure: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7199 rm -rf conftest*
7200 eval "ac_cv_header_$ac_safe=no"
7201 fi
7202 rm -f conftest*
7203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7204 echo "$ac_t""yes" 1>&6
7205 :
7206 else
7207 echo "$ac_t""no" 1>&6
7208 with_wnn=no
7209 fi
7210 }
7211 if test "$with_wnn" != "no"; then
7212 for ac_func in crypt
7213 do 7724 do
7214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7215 echo "configure:7216: checking for $ac_func" >&5 7726 echo "configure:7727: checking for $ac_func" >&5
7216 7727
7217 cat > conftest.$ac_ext <<EOF 7728 cat > conftest.$ac_ext <<EOF
7218 #line 7219 "configure" 7729 #line 7730 "configure"
7219 #include "confdefs.h" 7730 #include "confdefs.h"
7220 /* System header to define __stub macros and hopefully few prototypes, 7731 /* System header to define __stub macros and hopefully few prototypes,
7221 which can conflict with char $ac_func(); below. */ 7732 which can conflict with char $ac_func(); below. */
7222 #include <assert.h> 7733 #include <assert.h>
7223 /* Override any gcc2 internal prototype to avoid an error. */ 7734 /* Override any gcc2 internal prototype to avoid an error. */
7236 $ac_func(); 7747 $ac_func();
7237 #endif 7748 #endif
7238 7749
7239 ; return 0; } 7750 ; return 0; }
7240 EOF 7751 EOF
7241 if { (eval echo configure:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7752 if { (eval echo configure:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7242 rm -rf conftest* 7753 rm -rf conftest*
7243 eval "ac_cv_func_$ac_func=yes" 7754 eval "ac_cv_func_$ac_func=yes"
7244 else 7755 else
7245 echo "configure: failed program was:" >&5 7756 echo "configure: failed program was:" >&5
7246 cat conftest.$ac_ext >&5 7757 cat conftest.$ac_ext >&5
7263 else 7774 else
7264 echo "$ac_t""no" 1>&6 7775 echo "$ac_t""no" 1>&6
7265 fi 7776 fi
7266 done 7777 done
7267 7778
7268 test "$ac_cv_func_crypt" != "yes" && { 7779
7269 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7780
7270 echo "configure:7271: checking for crypt in -lcrypt" >&5 7781 case "$opsys" in
7271 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7782 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
7272 7783 echo " xemacs will be linked with \"realpath.o\""
7273 xe_check_libs=" -lcrypt " 7784 fi ;;
7274 cat > conftest.$ac_ext <<EOF 7785 * )
7275 #line 7276 "configure" 7786 for ac_func in realpath
7276 #include "confdefs.h"
7277 /* Override any gcc2 internal prototype to avoid an error. */
7278 /* We use char because int might match the return type of a gcc2
7279 builtin and then its argument prototype would still apply. */
7280 char crypt();
7281
7282 int main() {
7283 crypt()
7284 ; return 0; }
7285 EOF
7286 if { (eval echo configure:7287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7287 rm -rf conftest*
7288 eval "ac_cv_lib_$ac_lib_var=yes"
7289 else
7290 echo "configure: failed program was:" >&5
7291 cat conftest.$ac_ext >&5
7292 rm -rf conftest*
7293 eval "ac_cv_lib_$ac_lib_var=no"
7294 fi
7295 rm -f conftest*
7296 xe_check_libs=""
7297
7298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7299 echo "$ac_t""yes" 1>&6
7300 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7302 { test "$extra_verbose" = "yes" && cat << EOF
7303 Defining $ac_tr_lib
7304 EOF
7305 cat >> confdefs.h <<EOF
7306 #define $ac_tr_lib 1
7307 EOF
7308 }
7309
7310 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
7311
7312 else
7313 echo "$ac_t""no" 1>&6
7314 fi
7315
7316 }
7317 fi
7318 test -z "$with_wnn" && {
7319 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7320 echo "configure:7321: checking for jl_dic_list_e in -lwnn" >&5
7321 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7322
7323 xe_check_libs=" -lwnn "
7324 cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 /* Override any gcc2 internal prototype to avoid an error. */
7328 /* We use char because int might match the return type of a gcc2
7329 builtin and then its argument prototype would still apply. */
7330 char jl_dic_list_e();
7331
7332 int main() {
7333 jl_dic_list_e()
7334 ; return 0; }
7335 EOF
7336 if { (eval echo configure:7337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7337 rm -rf conftest*
7338 eval "ac_cv_lib_$ac_lib_var=yes"
7339 else
7340 echo "configure: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 rm -rf conftest*
7343 eval "ac_cv_lib_$ac_lib_var=no"
7344 fi
7345 rm -f conftest*
7346 xe_check_libs=""
7347
7348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7349 echo "$ac_t""yes" 1>&6
7350 :
7351 else
7352 echo "$ac_t""no" 1>&6
7353 with_wnn=no
7354 fi
7355
7356 }
7357 test -z "$with_wnn" && with_wnn=yes
7358 if test "$with_wnn" = "yes"; then
7359 { test "$extra_verbose" = "yes" && cat << \EOF
7360 Defining HAVE_WNN
7361 EOF
7362 cat >> confdefs.h <<\EOF
7363 #define HAVE_WNN 1
7364 EOF
7365 }
7366
7367 libs_x="-lwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$libs_x"; fi
7368 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7369 echo " xemacs will be linked with \"mule-wnnfns.o\""
7370 fi
7371
7372 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7373 echo "configure:7374: checking for jl_fi_dic_list in -lwnn" >&5
7374 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7375
7376 xe_check_libs=" -lwnn "
7377 cat > conftest.$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7380 /* Override any gcc2 internal prototype to avoid an error. */
7381 /* We use char because int might match the return type of a gcc2
7382 builtin and then its argument prototype would still apply. */
7383 char jl_fi_dic_list();
7384
7385 int main() {
7386 jl_fi_dic_list()
7387 ; return 0; }
7388 EOF
7389 if { (eval echo configure:7390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7390 rm -rf conftest*
7391 eval "ac_cv_lib_$ac_lib_var=yes"
7392 else
7393 echo "configure: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7395 rm -rf conftest*
7396 eval "ac_cv_lib_$ac_lib_var=no"
7397 fi
7398 rm -f conftest*
7399 xe_check_libs=""
7400
7401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7402 echo "$ac_t""yes" 1>&6
7403 with_wnn6=yes
7404 else
7405 echo "$ac_t""no" 1>&6
7406 fi
7407
7408
7409 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
7410 Defining WNN6
7411 EOF
7412 cat >> confdefs.h <<\EOF
7413 #define WNN6 1
7414 EOF
7415 }
7416
7417 fi
7418
7419 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7420 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7421 echo "configure:7422: checking for canna/RK.h" >&5
7422
7423 cat > conftest.$ac_ext <<EOF
7424 #line 7425 "configure"
7425 #include "confdefs.h"
7426 #include <canna/RK.h>
7427 EOF
7428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7429 { (eval echo configure:7430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7430 ac_err=`grep -v '^ *+' conftest.out`
7431 if test -z "$ac_err"; then
7432 rm -rf conftest*
7433 eval "ac_cv_header_$ac_safe=yes"
7434 else
7435 echo "$ac_err" >&5
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7438 rm -rf conftest*
7439 eval "ac_cv_header_$ac_safe=no"
7440 fi
7441 rm -f conftest*
7442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7443 echo "$ac_t""yes" 1>&6
7444 :
7445 else
7446 echo "$ac_t""no" 1>&6
7447 with_canna=no
7448 fi
7449 }
7450 test -z "$with_canna" && {
7451 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7452 echo "configure:7453: checking for RkBgnBun in -lRKC" >&5
7453 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7454
7455 xe_check_libs=" -lRKC "
7456 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7459 /* Override any gcc2 internal prototype to avoid an error. */
7460 /* We use char because int might match the return type of a gcc2
7461 builtin and then its argument prototype would still apply. */
7462 char RkBgnBun();
7463
7464 int main() {
7465 RkBgnBun()
7466 ; return 0; }
7467 EOF
7468 if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7469 rm -rf conftest*
7470 eval "ac_cv_lib_$ac_lib_var=yes"
7471 else
7472 echo "configure: failed program was:" >&5
7473 cat conftest.$ac_ext >&5
7474 rm -rf conftest*
7475 eval "ac_cv_lib_$ac_lib_var=no"
7476 fi
7477 rm -f conftest*
7478 xe_check_libs=""
7479
7480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7481 echo "$ac_t""yes" 1>&6
7482 :
7483 else
7484 echo "$ac_t""no" 1>&6
7485 with_canna=no
7486 fi
7487
7488 }
7489 test -z "$with_canna" && {
7490 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7491 echo "configure:7492: checking for jrKanjiControl in -lcanna" >&5
7492 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7493
7494 xe_check_libs=" -lcanna "
7495 cat > conftest.$ac_ext <<EOF
7496 #line 7497 "configure"
7497 #include "confdefs.h"
7498 /* Override any gcc2 internal prototype to avoid an error. */
7499 /* We use char because int might match the return type of a gcc2
7500 builtin and then its argument prototype would still apply. */
7501 char jrKanjiControl();
7502
7503 int main() {
7504 jrKanjiControl()
7505 ; return 0; }
7506 EOF
7507 if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7508 rm -rf conftest*
7509 eval "ac_cv_lib_$ac_lib_var=yes"
7510 else
7511 echo "configure: failed program was:" >&5
7512 cat conftest.$ac_ext >&5
7513 rm -rf conftest*
7514 eval "ac_cv_lib_$ac_lib_var=no"
7515 fi
7516 rm -f conftest*
7517 xe_check_libs=""
7518
7519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7520 echo "$ac_t""yes" 1>&6
7521 :
7522 else
7523 echo "$ac_t""no" 1>&6
7524 with_canna=no
7525 fi
7526
7527 }
7528 test -z "$with_canna" && with_canna=yes
7529 if test "$with_canna" = "yes"; then
7530 { test "$extra_verbose" = "yes" && cat << \EOF
7531 Defining HAVE_CANNA
7532 EOF
7533 cat >> confdefs.h <<\EOF
7534 #define HAVE_CANNA 1
7535 EOF
7536 }
7537
7538 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
7539 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
7540 echo " xemacs will be linked with \"mule-canna.o\""
7541 fi
7542 fi
7543
7544 else for feature in xim canna wnn; do
7545 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
7546 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
7547 fi
7548 eval "with_${feature}=no"
7549 done
7550 fi
7551
7552 if test "$need_motif" = "yes" ; then
7553 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
7554
7555 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
7556 echo "configure:7557: checking for layout_object_getvalue in -li18n" >&5
7557 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
7558
7559 xe_check_libs=" -li18n "
7560 cat > conftest.$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7563 /* Override any gcc2 internal prototype to avoid an error. */
7564 /* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7566 char layout_object_getvalue();
7567
7568 int main() {
7569 layout_object_getvalue()
7570 ; return 0; }
7571 EOF
7572 if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7573 rm -rf conftest*
7574 eval "ac_cv_lib_$ac_lib_var=yes"
7575 else
7576 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7578 rm -rf conftest*
7579 eval "ac_cv_lib_$ac_lib_var=no"
7580 fi
7581 rm -f conftest*
7582 xe_check_libs=""
7583
7584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7585 echo "$ac_t""yes" 1>&6
7586 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
7587 else
7588 echo "$ac_t""no" 1>&6
7589 fi
7590
7591
7592
7593 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
7594 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
7595 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
7596
7597 runpath="" runpath_dirs=""
7598 if test -n "$LD_RUN_PATH"; then
7599 runpath="$LD_RUN_PATH"
7600 elif test "$GCC" = "yes"; then
7601 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
7602 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
7603 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
7604 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
7605 case "$arg" in P,* | -L* | -R* )
7606 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
7607 {
7608 xe_runpath_dir="$dir"
7609 test "$xe_runpath_dir" != "/lib" -a \
7610 "$xe_runpath_dir" != "/usr/lib" -a \
7611 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
7612 eval "$xe_add_unique_runpath_dir"
7613 }
7614 done ;;
7615 esac
7616 done
7617 ld_switch_run="$ld_switch_run_save"
7618 rm -f conftest*
7619 else
7620 for arg in $ld_switch_site $ld_switch_x_site; do
7621 case "$arg" in -L*) {
7622 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
7623 test "$xe_runpath_dir" != "/lib" -a \
7624 "$xe_runpath_dir" != "/usr/lib" -a \
7625 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
7626 eval "$xe_add_unique_runpath_dir"
7627 };; esac
7628 done
7629 if test "$opsys $need_motif" = "sol2 yes"; then
7630 xe_runpath_dir="/opt/SUNWdt/lib";
7631 eval "$xe_add_unique_runpath_dir";
7632 fi
7633 fi
7634 if test -n "$runpath"; then
7635 ld_switch_run="${dash_r}${runpath}"
7636 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
7637 fi
7638 fi
7639
7640 fi
7641
7642 for ac_func in 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
7643 do 7787 do
7644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7645 echo "configure:7646: checking for $ac_func" >&5 7789 echo "configure:7790: checking for $ac_func" >&5
7646 7790
7647 cat > conftest.$ac_ext <<EOF 7791 cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure" 7792 #line 7793 "configure"
7649 #include "confdefs.h" 7793 #include "confdefs.h"
7650 /* System header to define __stub macros and hopefully few prototypes, 7794 /* System header to define __stub macros and hopefully few prototypes,
7651 which can conflict with char $ac_func(); below. */ 7795 which can conflict with char $ac_func(); below. */
7652 #include <assert.h> 7796 #include <assert.h>
7653 /* Override any gcc2 internal prototype to avoid an error. */ 7797 /* Override any gcc2 internal prototype to avoid an error. */
7666 $ac_func(); 7810 $ac_func();
7667 #endif 7811 #endif
7668 7812
7669 ; return 0; } 7813 ; return 0; }
7670 EOF 7814 EOF
7671 if { (eval echo configure:7672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7815 if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7672 rm -rf conftest* 7816 rm -rf conftest*
7673 eval "ac_cv_func_$ac_func=yes" 7817 eval "ac_cv_func_$ac_func=yes"
7674 else 7818 else
7675 echo "configure: failed program was:" >&5 7819 echo "configure: failed program was:" >&5
7676 cat conftest.$ac_ext >&5 7820 cat conftest.$ac_ext >&5
7693 else 7837 else
7694 echo "$ac_t""no" 1>&6 7838 echo "$ac_t""no" 1>&6
7695 fi 7839 fi
7696 done 7840 done
7697 7841
7698
7699
7700 case "$opsys" in
7701 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
7702 echo " xemacs will be linked with \"realpath.o\""
7703 fi ;;
7704 * )
7705 for ac_func in realpath
7706 do
7707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7708 echo "configure:7709: checking for $ac_func" >&5
7709
7710 cat > conftest.$ac_ext <<EOF
7711 #line 7712 "configure"
7712 #include "confdefs.h"
7713 /* System header to define __stub macros and hopefully few prototypes,
7714 which can conflict with char $ac_func(); below. */
7715 #include <assert.h>
7716 /* Override any gcc2 internal prototype to avoid an error. */
7717 /* We use char because int might match the return type of a gcc2
7718 builtin and then its argument prototype would still apply. */
7719 char $ac_func();
7720
7721 int main() {
7722
7723 /* The GNU C library defines this for functions which it implements
7724 to always fail with ENOSYS. Some functions are actually named
7725 something starting with __ and the normal name is an alias. */
7726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7727 choke me
7728 #else
7729 $ac_func();
7730 #endif
7731
7732 ; return 0; }
7733 EOF
7734 if { (eval echo configure:7735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7735 rm -rf conftest*
7736 eval "ac_cv_func_$ac_func=yes"
7737 else
7738 echo "configure: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7740 rm -rf conftest*
7741 eval "ac_cv_func_$ac_func=no"
7742 fi
7743 rm -f conftest*
7744
7745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7746 echo "$ac_t""yes" 1>&6
7747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7748 { test "$extra_verbose" = "yes" && cat << EOF
7749 Defining $ac_tr_func
7750 EOF
7751 cat >> confdefs.h <<EOF
7752 #define $ac_tr_func 1
7753 EOF
7754 }
7755
7756 else
7757 echo "$ac_t""no" 1>&6
7758 fi
7759 done
7760
7761 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then 7842 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
7762 echo " xemacs will be linked with \"realpath.o\"" 7843 echo " xemacs will be linked with \"realpath.o\""
7763 fi ;; 7844 fi ;;
7764 esac 7845 esac
7765 7846
7766 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7847 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7767 echo "configure:7768: checking whether netdb declares h_errno" >&5 7848 echo "configure:7849: checking whether netdb declares h_errno" >&5
7768 cat > conftest.$ac_ext <<EOF 7849 cat > conftest.$ac_ext <<EOF
7769 #line 7770 "configure" 7850 #line 7851 "configure"
7770 #include "confdefs.h" 7851 #include "confdefs.h"
7771 #include <netdb.h> 7852 #include <netdb.h>
7772 int main() { 7853 int main() {
7773 return h_errno; 7854 return h_errno;
7774 ; return 0; } 7855 ; return 0; }
7775 EOF 7856 EOF
7776 if { (eval echo configure:7777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7857 if { (eval echo configure:7858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7777 rm -rf conftest* 7858 rm -rf conftest*
7778 echo "$ac_t""yes" 1>&6 7859 echo "$ac_t""yes" 1>&6
7779 { test "$extra_verbose" = "yes" && cat << \EOF 7860 { test "$extra_verbose" = "yes" && cat << \EOF
7780 Defining HAVE_H_ERRNO 7861 Defining HAVE_H_ERRNO
7781 EOF 7862 EOF
7791 echo "$ac_t""no" 1>&6 7872 echo "$ac_t""no" 1>&6
7792 fi 7873 fi
7793 rm -f conftest* 7874 rm -f conftest*
7794 7875
7795 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7876 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7796 echo "configure:7797: checking for sigsetjmp" >&5 7877 echo "configure:7878: checking for sigsetjmp" >&5
7797 cat > conftest.$ac_ext <<EOF 7878 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure" 7879 #line 7880 "configure"
7799 #include "confdefs.h" 7880 #include "confdefs.h"
7800 #include <setjmp.h> 7881 #include <setjmp.h>
7801 int main() { 7882 int main() {
7802 sigjmp_buf bar; sigsetjmp (bar, 0); 7883 sigjmp_buf bar; sigsetjmp (bar, 0);
7803 ; return 0; } 7884 ; return 0; }
7804 EOF 7885 EOF
7805 if { (eval echo configure:7806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7886 if { (eval echo configure:7887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7806 rm -rf conftest* 7887 rm -rf conftest*
7807 echo "$ac_t""yes" 1>&6 7888 echo "$ac_t""yes" 1>&6
7808 { test "$extra_verbose" = "yes" && cat << \EOF 7889 { test "$extra_verbose" = "yes" && cat << \EOF
7809 Defining HAVE_SIGSETJMP 7890 Defining HAVE_SIGSETJMP
7810 EOF 7891 EOF
7820 echo "$ac_t""no" 1>&6 7901 echo "$ac_t""no" 1>&6
7821 fi 7902 fi
7822 rm -f conftest* 7903 rm -f conftest*
7823 7904
7824 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7905 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7825 echo "configure:7826: checking whether localtime caches TZ" >&5 7906 echo "configure:7907: checking whether localtime caches TZ" >&5
7826 7907
7827 if test "$ac_cv_func_tzset" = "yes"; then 7908 if test "$ac_cv_func_tzset" = "yes"; then
7828 cat > conftest.$ac_ext <<EOF 7909 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure" 7910 #line 7911 "configure"
7830 #include "confdefs.h" 7911 #include "confdefs.h"
7831 #include <time.h> 7912 #include <time.h>
7832 #if STDC_HEADERS 7913 #if STDC_HEADERS
7833 # include <stdlib.h> 7914 # include <stdlib.h>
7834 #endif 7915 #endif
7859 if (localtime (&now)->tm_hour != hour_unset) 7940 if (localtime (&now)->tm_hour != hour_unset)
7860 exit (1); 7941 exit (1);
7861 exit (0); 7942 exit (0);
7862 } 7943 }
7863 EOF 7944 EOF
7864 if { (eval echo configure:7865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7945 if { (eval echo configure:7946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7865 then 7946 then
7866 emacs_cv_localtime_cache=no 7947 emacs_cv_localtime_cache=no
7867 else 7948 else
7868 echo "configure: failed program was:" >&5 7949 echo "configure: failed program was:" >&5
7869 cat conftest.$ac_ext >&5 7950 cat conftest.$ac_ext >&5
7888 7969
7889 fi 7970 fi
7890 7971
7891 if test "$HAVE_TIMEVAL" = "yes"; then 7972 if test "$HAVE_TIMEVAL" = "yes"; then
7892 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7973 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7893 echo "configure:7894: checking whether gettimeofday cannot accept two arguments" >&5 7974 echo "configure:7975: checking whether gettimeofday cannot accept two arguments" >&5
7894 cat > conftest.$ac_ext <<EOF 7975 cat > conftest.$ac_ext <<EOF
7895 #line 7896 "configure" 7976 #line 7977 "configure"
7896 #include "confdefs.h" 7977 #include "confdefs.h"
7897 7978
7898 #ifdef TIME_WITH_SYS_TIME 7979 #ifdef TIME_WITH_SYS_TIME
7899 #include <sys/time.h> 7980 #include <sys/time.h>
7900 #include <time.h> 7981 #include <time.h>
7912 struct timezone dummy; 7993 struct timezone dummy;
7913 gettimeofday (&time, &dummy); 7994 gettimeofday (&time, &dummy);
7914 7995
7915 ; return 0; } 7996 ; return 0; }
7916 EOF 7997 EOF
7917 if { (eval echo configure:7918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7998 if { (eval echo configure:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7918 rm -rf conftest* 7999 rm -rf conftest*
7919 echo "$ac_t""no" 1>&6 8000 echo "$ac_t""no" 1>&6
7920 else 8001 else
7921 echo "configure: failed program was:" >&5 8002 echo "configure: failed program was:" >&5
7922 cat conftest.$ac_ext >&5 8003 cat conftest.$ac_ext >&5
7934 rm -f conftest* 8015 rm -f conftest*
7935 fi 8016 fi
7936 8017
7937 8018
7938 echo $ac_n "checking for inline""... $ac_c" 1>&6 8019 echo $ac_n "checking for inline""... $ac_c" 1>&6
7939 echo "configure:7940: checking for inline" >&5 8020 echo "configure:8021: checking for inline" >&5
7940 8021
7941 ac_cv_c_inline=no 8022 ac_cv_c_inline=no
7942 for ac_kw in inline __inline__ __inline; do 8023 for ac_kw in inline __inline__ __inline; do
7943 cat > conftest.$ac_ext <<EOF 8024 cat > conftest.$ac_ext <<EOF
7944 #line 7945 "configure" 8025 #line 8026 "configure"
7945 #include "confdefs.h" 8026 #include "confdefs.h"
7946 8027
7947 int main() { 8028 int main() {
7948 } $ac_kw foo() { 8029 } $ac_kw foo() {
7949 ; return 0; } 8030 ; return 0; }
7950 EOF 8031 EOF
7951 if { (eval echo configure:7952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8032 if { (eval echo configure:8033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7952 rm -rf conftest* 8033 rm -rf conftest*
7953 ac_cv_c_inline=$ac_kw; break 8034 ac_cv_c_inline=$ac_kw; break
7954 else 8035 else
7955 echo "configure: failed program was:" >&5 8036 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5 8037 cat conftest.$ac_ext >&5
7996 8077
7997 8078
7998 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8079 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7999 # for constant arguments. Useless! 8080 # for constant arguments. Useless!
8000 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 8081 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8001 echo "configure:8002: checking for working alloca.h" >&5 8082 echo "configure:8083: checking for working alloca.h" >&5
8002 8083
8003 cat > conftest.$ac_ext <<EOF 8084 cat > conftest.$ac_ext <<EOF
8004 #line 8005 "configure" 8085 #line 8086 "configure"
8005 #include "confdefs.h" 8086 #include "confdefs.h"
8006 #include <alloca.h> 8087 #include <alloca.h>
8007 int main() { 8088 int main() {
8008 char *p = alloca(2 * sizeof(int)); 8089 char *p = alloca(2 * sizeof(int));
8009 ; return 0; } 8090 ; return 0; }
8010 EOF 8091 EOF
8011 if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8092 if { (eval echo configure:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8012 rm -rf conftest* 8093 rm -rf conftest*
8013 ac_cv_header_alloca_h=yes 8094 ac_cv_header_alloca_h=yes
8014 else 8095 else
8015 echo "configure: failed program was:" >&5 8096 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5 8097 cat conftest.$ac_ext >&5
8030 } 8111 }
8031 8112
8032 fi 8113 fi
8033 8114
8034 echo $ac_n "checking for alloca""... $ac_c" 1>&6 8115 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8035 echo "configure:8036: checking for alloca" >&5 8116 echo "configure:8117: checking for alloca" >&5
8036 8117
8037 cat > conftest.$ac_ext <<EOF 8118 cat > conftest.$ac_ext <<EOF
8038 #line 8039 "configure" 8119 #line 8120 "configure"
8039 #include "confdefs.h" 8120 #include "confdefs.h"
8040 8121
8041 #ifdef __GNUC__ 8122 #ifdef __GNUC__
8042 # define alloca __builtin_alloca 8123 # define alloca __builtin_alloca
8043 #else 8124 #else
8056 8137
8057 int main() { 8138 int main() {
8058 char *p = (char *) alloca(1); 8139 char *p = (char *) alloca(1);
8059 ; return 0; } 8140 ; return 0; }
8060 EOF 8141 EOF
8061 if { (eval echo configure:8062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8142 if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8062 rm -rf conftest* 8143 rm -rf conftest*
8063 ac_cv_func_alloca_works=yes 8144 ac_cv_func_alloca_works=yes
8064 else 8145 else
8065 echo "configure: failed program was:" >&5 8146 echo "configure: failed program was:" >&5
8066 cat conftest.$ac_ext >&5 8147 cat conftest.$ac_ext >&5
8095 EOF 8176 EOF
8096 } 8177 }
8097 8178
8098 8179
8099 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 8180 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8100 echo "configure:8101: checking whether alloca needs Cray hooks" >&5 8181 echo "configure:8182: checking whether alloca needs Cray hooks" >&5
8101 8182
8102 cat > conftest.$ac_ext <<EOF 8183 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure" 8184 #line 8185 "configure"
8104 #include "confdefs.h" 8185 #include "confdefs.h"
8105 #if defined(CRAY) && ! defined(CRAY2) 8186 #if defined(CRAY) && ! defined(CRAY2)
8106 webecray 8187 webecray
8107 #else 8188 #else
8108 wenotbecray 8189 wenotbecray
8122 8203
8123 echo "$ac_t""$ac_cv_os_cray" 1>&6 8204 echo "$ac_t""$ac_cv_os_cray" 1>&6
8124 if test $ac_cv_os_cray = yes; then 8205 if test $ac_cv_os_cray = yes; then
8125 for ac_func in _getb67 GETB67 getb67; do 8206 for ac_func in _getb67 GETB67 getb67; do
8126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8127 echo "configure:8128: checking for $ac_func" >&5 8208 echo "configure:8209: checking for $ac_func" >&5
8128 8209
8129 cat > conftest.$ac_ext <<EOF 8210 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure" 8211 #line 8212 "configure"
8131 #include "confdefs.h" 8212 #include "confdefs.h"
8132 /* System header to define __stub macros and hopefully few prototypes, 8213 /* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char $ac_func(); below. */ 8214 which can conflict with char $ac_func(); below. */
8134 #include <assert.h> 8215 #include <assert.h>
8135 /* Override any gcc2 internal prototype to avoid an error. */ 8216 /* Override any gcc2 internal prototype to avoid an error. */
8148 $ac_func(); 8229 $ac_func();
8149 #endif 8230 #endif
8150 8231
8151 ; return 0; } 8232 ; return 0; }
8152 EOF 8233 EOF
8153 if { (eval echo configure:8154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8234 if { (eval echo configure:8235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8154 rm -rf conftest* 8235 rm -rf conftest*
8155 eval "ac_cv_func_$ac_func=yes" 8236 eval "ac_cv_func_$ac_func=yes"
8156 else 8237 else
8157 echo "configure: failed program was:" >&5 8238 echo "configure: failed program was:" >&5
8158 cat conftest.$ac_ext >&5 8239 cat conftest.$ac_ext >&5
8178 8259
8179 done 8260 done
8180 fi 8261 fi
8181 8262
8182 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 8263 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8183 echo "configure:8184: checking stack direction for C alloca" >&5 8264 echo "configure:8265: checking stack direction for C alloca" >&5
8184 8265
8185 cat > conftest.$ac_ext <<EOF 8266 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure" 8267 #line 8268 "configure"
8187 #include "confdefs.h" 8268 #include "confdefs.h"
8188 find_stack_direction () 8269 find_stack_direction ()
8189 { 8270 {
8190 static char *addr = 0; 8271 static char *addr = 0;
8191 auto char dummy; 8272 auto char dummy;
8200 main () 8281 main ()
8201 { 8282 {
8202 exit (find_stack_direction() < 0); 8283 exit (find_stack_direction() < 0);
8203 } 8284 }
8204 EOF 8285 EOF
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8286 if { (eval echo configure:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8206 then 8287 then
8207 ac_cv_c_stack_direction=1 8288 ac_cv_c_stack_direction=1
8208 else 8289 else
8209 echo "configure: failed program was:" >&5 8290 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5 8291 cat conftest.$ac_ext >&5
8228 echo " xemacs will be linked with \"$ALLOCA\"" 8309 echo " xemacs will be linked with \"$ALLOCA\""
8229 fi 8310 fi
8230 8311
8231 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8312 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8232 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8313 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8233 echo "configure:8234: checking for vfork.h" >&5 8314 echo "configure:8315: checking for vfork.h" >&5
8234 8315
8235 cat > conftest.$ac_ext <<EOF 8316 cat > conftest.$ac_ext <<EOF
8236 #line 8237 "configure" 8317 #line 8318 "configure"
8237 #include "confdefs.h" 8318 #include "confdefs.h"
8238 #include <vfork.h> 8319 #include <vfork.h>
8239 EOF 8320 EOF
8240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8241 { (eval echo configure:8242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8322 { (eval echo configure:8323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8242 ac_err=`grep -v '^ *+' conftest.out` 8323 ac_err=`grep -v '^ *+' conftest.out`
8243 if test -z "$ac_err"; then 8324 if test -z "$ac_err"; then
8244 rm -rf conftest* 8325 rm -rf conftest*
8245 eval "ac_cv_header_$ac_safe=yes" 8326 eval "ac_cv_header_$ac_safe=yes"
8246 else 8327 else
8264 else 8345 else
8265 echo "$ac_t""no" 1>&6 8346 echo "$ac_t""no" 1>&6
8266 fi 8347 fi
8267 8348
8268 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8349 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8269 echo "configure:8270: checking for working vfork" >&5 8350 echo "configure:8351: checking for working vfork" >&5
8270 8351
8271 cat > conftest.$ac_ext <<EOF 8352 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure" 8353 #line 8354 "configure"
8273 #include "confdefs.h" 8354 #include "confdefs.h"
8274 /* Thanks to Paul Eggert for this test. */ 8355 /* Thanks to Paul Eggert for this test. */
8275 #include <stdio.h> 8356 #include <stdio.h>
8276 #include <sys/types.h> 8357 #include <sys/types.h>
8277 #include <sys/stat.h> 8358 #include <sys/stat.h>
8362 || fstat(fileno(stdout), &st) != 0 8443 || fstat(fileno(stdout), &st) != 0
8363 ); 8444 );
8364 } 8445 }
8365 } 8446 }
8366 EOF 8447 EOF
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8448 if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8368 then 8449 then
8369 ac_cv_func_vfork_works=yes 8450 ac_cv_func_vfork_works=yes
8370 else 8451 else
8371 echo "configure: failed program was:" >&5 8452 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5 8453 cat conftest.$ac_ext >&5
8387 8468
8388 fi 8469 fi
8389 8470
8390 8471
8391 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8472 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8392 echo "configure:8393: checking for working strcoll" >&5 8473 echo "configure:8474: checking for working strcoll" >&5
8393 8474
8394 cat > conftest.$ac_ext <<EOF 8475 cat > conftest.$ac_ext <<EOF
8395 #line 8396 "configure" 8476 #line 8477 "configure"
8396 #include "confdefs.h" 8477 #include "confdefs.h"
8397 #include <string.h> 8478 #include <string.h>
8398 main () 8479 main ()
8399 { 8480 {
8400 exit (strcoll ("abc", "def") >= 0 || 8481 exit (strcoll ("abc", "def") >= 0 ||
8401 strcoll ("ABC", "DEF") >= 0 || 8482 strcoll ("ABC", "DEF") >= 0 ||
8402 strcoll ("123", "456") >= 0); 8483 strcoll ("123", "456") >= 0);
8403 } 8484 }
8404 EOF 8485 EOF
8405 if { (eval echo configure:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8486 if { (eval echo configure:8487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8406 then 8487 then
8407 ac_cv_func_strcoll_works=yes 8488 ac_cv_func_strcoll_works=yes
8408 else 8489 else
8409 echo "configure: failed program was:" >&5 8490 echo "configure: failed program was:" >&5
8410 cat conftest.$ac_ext >&5 8491 cat conftest.$ac_ext >&5
8427 8508
8428 8509
8429 for ac_func in getpgrp 8510 for ac_func in getpgrp
8430 do 8511 do
8431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8432 echo "configure:8433: checking for $ac_func" >&5 8513 echo "configure:8514: checking for $ac_func" >&5
8433 8514
8434 cat > conftest.$ac_ext <<EOF 8515 cat > conftest.$ac_ext <<EOF
8435 #line 8436 "configure" 8516 #line 8517 "configure"
8436 #include "confdefs.h" 8517 #include "confdefs.h"
8437 /* System header to define __stub macros and hopefully few prototypes, 8518 /* System header to define __stub macros and hopefully few prototypes,
8438 which can conflict with char $ac_func(); below. */ 8519 which can conflict with char $ac_func(); below. */
8439 #include <assert.h> 8520 #include <assert.h>
8440 /* Override any gcc2 internal prototype to avoid an error. */ 8521 /* Override any gcc2 internal prototype to avoid an error. */
8453 $ac_func(); 8534 $ac_func();
8454 #endif 8535 #endif
8455 8536
8456 ; return 0; } 8537 ; return 0; }
8457 EOF 8538 EOF
8458 if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8539 if { (eval echo configure:8540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8459 rm -rf conftest* 8540 rm -rf conftest*
8460 eval "ac_cv_func_$ac_func=yes" 8541 eval "ac_cv_func_$ac_func=yes"
8461 else 8542 else
8462 echo "configure: failed program was:" >&5 8543 echo "configure: failed program was:" >&5
8463 cat conftest.$ac_ext >&5 8544 cat conftest.$ac_ext >&5
8481 echo "$ac_t""no" 1>&6 8562 echo "$ac_t""no" 1>&6
8482 fi 8563 fi
8483 done 8564 done
8484 8565
8485 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8566 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8486 echo "configure:8487: checking whether getpgrp takes no argument" >&5 8567 echo "configure:8568: checking whether getpgrp takes no argument" >&5
8487 8568
8488 cat > conftest.$ac_ext <<EOF 8569 cat > conftest.$ac_ext <<EOF
8489 #line 8490 "configure" 8570 #line 8571 "configure"
8490 #include "confdefs.h" 8571 #include "confdefs.h"
8491 8572
8492 /* 8573 /*
8493 * If this system has a BSD-style getpgrp(), 8574 * If this system has a BSD-style getpgrp(),
8494 * which takes a pid argument, exit unsuccessfully. 8575 * which takes a pid argument, exit unsuccessfully.
8539 exit(s>>8); 8620 exit(s>>8);
8540 } 8621 }
8541 } 8622 }
8542 8623
8543 EOF 8624 EOF
8544 if { (eval echo configure:8545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8625 if { (eval echo configure:8626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8545 then 8626 then
8546 ac_cv_func_getpgrp_void=yes 8627 ac_cv_func_getpgrp_void=yes
8547 else 8628 else
8548 echo "configure: failed program was:" >&5 8629 echo "configure: failed program was:" >&5
8549 cat conftest.$ac_ext >&5 8630 cat conftest.$ac_ext >&5
8565 8646
8566 fi 8647 fi
8567 8648
8568 8649
8569 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8650 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8570 echo "configure:8571: checking for working mmap" >&5 8651 echo "configure:8652: checking for working mmap" >&5
8571 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8652 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8572 cat > conftest.$ac_ext <<EOF 8653 cat > conftest.$ac_ext <<EOF
8573 #line 8574 "configure" 8654 #line 8655 "configure"
8574 #include "confdefs.h" 8655 #include "confdefs.h"
8575 #include <stdio.h> 8656 #include <stdio.h>
8576 #include <unistd.h> 8657 #include <unistd.h>
8577 #include <fcntl.h> 8658 #include <fcntl.h>
8578 #include <sys/mman.h> 8659 #include <sys/mman.h>
8601 return 0; 8682 return 0;
8602 perror ("conftest: mmap failed"); 8683 perror ("conftest: mmap failed");
8603 return 1; 8684 return 1;
8604 } 8685 }
8605 EOF 8686 EOF
8606 if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8687 if { (eval echo configure:8688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8607 then 8688 then
8608 have_mmap=yes 8689 have_mmap=yes
8609 else 8690 else
8610 echo "configure: failed program was:" >&5 8691 echo "configure: failed program was:" >&5
8611 cat conftest.$ac_ext >&5 8692 cat conftest.$ac_ext >&5
8635 } 8716 }
8636 8717
8637 8718
8638 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8719 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8639 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8720 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8640 echo "configure:8641: checking for termios.h" >&5 8721 echo "configure:8722: checking for termios.h" >&5
8641 8722
8642 cat > conftest.$ac_ext <<EOF 8723 cat > conftest.$ac_ext <<EOF
8643 #line 8644 "configure" 8724 #line 8725 "configure"
8644 #include "confdefs.h" 8725 #include "confdefs.h"
8645 #include <termios.h> 8726 #include <termios.h>
8646 EOF 8727 EOF
8647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8648 { (eval echo configure:8649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8729 { (eval echo configure:8730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8649 ac_err=`grep -v '^ *+' conftest.out` 8730 ac_err=`grep -v '^ *+' conftest.out`
8650 if test -z "$ac_err"; then 8731 if test -z "$ac_err"; then
8651 rm -rf conftest* 8732 rm -rf conftest*
8652 eval "ac_cv_header_$ac_safe=yes" 8733 eval "ac_cv_header_$ac_safe=yes"
8653 else 8734 else
8686 8767
8687 else 8768 else
8688 echo "$ac_t""no" 1>&6 8769 echo "$ac_t""no" 1>&6
8689 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8770 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8690 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8771 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8691 echo "configure:8692: checking for termio.h" >&5 8772 echo "configure:8773: checking for termio.h" >&5
8692 8773
8693 cat > conftest.$ac_ext <<EOF 8774 cat > conftest.$ac_ext <<EOF
8694 #line 8695 "configure" 8775 #line 8776 "configure"
8695 #include "confdefs.h" 8776 #include "confdefs.h"
8696 #include <termio.h> 8777 #include <termio.h>
8697 EOF 8778 EOF
8698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8699 { (eval echo configure:8700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8780 { (eval echo configure:8781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8700 ac_err=`grep -v '^ *+' conftest.out` 8781 ac_err=`grep -v '^ *+' conftest.out`
8701 if test -z "$ac_err"; then 8782 if test -z "$ac_err"; then
8702 rm -rf conftest* 8783 rm -rf conftest*
8703 eval "ac_cv_header_$ac_safe=yes" 8784 eval "ac_cv_header_$ac_safe=yes"
8704 else 8785 else
8726 fi 8807 fi
8727 8808
8728 8809
8729 8810
8730 echo $ac_n "checking for socket""... $ac_c" 1>&6 8811 echo $ac_n "checking for socket""... $ac_c" 1>&6
8731 echo "configure:8732: checking for socket" >&5 8812 echo "configure:8813: checking for socket" >&5
8732 8813
8733 cat > conftest.$ac_ext <<EOF 8814 cat > conftest.$ac_ext <<EOF
8734 #line 8735 "configure" 8815 #line 8816 "configure"
8735 #include "confdefs.h" 8816 #include "confdefs.h"
8736 /* System header to define __stub macros and hopefully few prototypes, 8817 /* System header to define __stub macros and hopefully few prototypes,
8737 which can conflict with char socket(); below. */ 8818 which can conflict with char socket(); below. */
8738 #include <assert.h> 8819 #include <assert.h>
8739 /* Override any gcc2 internal prototype to avoid an error. */ 8820 /* Override any gcc2 internal prototype to avoid an error. */
8752 socket(); 8833 socket();
8753 #endif 8834 #endif
8754 8835
8755 ; return 0; } 8836 ; return 0; }
8756 EOF 8837 EOF
8757 if { (eval echo configure:8758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8838 if { (eval echo configure:8839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8758 rm -rf conftest* 8839 rm -rf conftest*
8759 eval "ac_cv_func_socket=yes" 8840 eval "ac_cv_func_socket=yes"
8760 else 8841 else
8761 echo "configure: failed program was:" >&5 8842 echo "configure: failed program was:" >&5
8762 cat conftest.$ac_ext >&5 8843 cat conftest.$ac_ext >&5
8767 8848
8768 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8849 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8769 echo "$ac_t""yes" 1>&6 8850 echo "$ac_t""yes" 1>&6
8770 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8851 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8771 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8852 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8772 echo "configure:8773: checking for netinet/in.h" >&5 8853 echo "configure:8854: checking for netinet/in.h" >&5
8773 8854
8774 cat > conftest.$ac_ext <<EOF 8855 cat > conftest.$ac_ext <<EOF
8775 #line 8776 "configure" 8856 #line 8857 "configure"
8776 #include "confdefs.h" 8857 #include "confdefs.h"
8777 #include <netinet/in.h> 8858 #include <netinet/in.h>
8778 EOF 8859 EOF
8779 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"
8780 { (eval echo configure:8781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8861 { (eval echo configure:8862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8781 ac_err=`grep -v '^ *+' conftest.out` 8862 ac_err=`grep -v '^ *+' conftest.out`
8782 if test -z "$ac_err"; then 8863 if test -z "$ac_err"; then
8783 rm -rf conftest* 8864 rm -rf conftest*
8784 eval "ac_cv_header_$ac_safe=yes" 8865 eval "ac_cv_header_$ac_safe=yes"
8785 else 8866 else
8792 rm -f conftest* 8873 rm -f conftest*
8793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8794 echo "$ac_t""yes" 1>&6 8875 echo "$ac_t""yes" 1>&6
8795 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8876 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8796 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8877 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8797 echo "configure:8798: checking for arpa/inet.h" >&5 8878 echo "configure:8879: checking for arpa/inet.h" >&5
8798 8879
8799 cat > conftest.$ac_ext <<EOF 8880 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure" 8881 #line 8882 "configure"
8801 #include "confdefs.h" 8882 #include "confdefs.h"
8802 #include <arpa/inet.h> 8883 #include <arpa/inet.h>
8803 EOF 8884 EOF
8804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8805 { (eval echo configure:8806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8886 { (eval echo configure:8887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8806 ac_err=`grep -v '^ *+' conftest.out` 8887 ac_err=`grep -v '^ *+' conftest.out`
8807 if test -z "$ac_err"; then 8888 if test -z "$ac_err"; then
8808 rm -rf conftest* 8889 rm -rf conftest*
8809 eval "ac_cv_header_$ac_safe=yes" 8890 eval "ac_cv_header_$ac_safe=yes"
8810 else 8891 else
8825 #define HAVE_SOCKETS 1 8906 #define HAVE_SOCKETS 1
8826 EOF 8907 EOF
8827 } 8908 }
8828 8909
8829 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8910 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8830 echo "configure:8831: checking "for sun_len member in struct sockaddr_un"" >&5 8911 echo "configure:8912: checking "for sun_len member in struct sockaddr_un"" >&5
8831 cat > conftest.$ac_ext <<EOF 8912 cat > conftest.$ac_ext <<EOF
8832 #line 8833 "configure" 8913 #line 8914 "configure"
8833 #include "confdefs.h" 8914 #include "confdefs.h"
8834 8915
8835 #include <sys/types.h> 8916 #include <sys/types.h>
8836 #include <sys/socket.h> 8917 #include <sys/socket.h>
8837 #include <sys/un.h> 8918 #include <sys/un.h>
8838 8919
8839 int main() { 8920 int main() {
8840 static struct sockaddr_un x; x.sun_len = 1; 8921 static struct sockaddr_un x; x.sun_len = 1;
8841 ; return 0; } 8922 ; return 0; }
8842 EOF 8923 EOF
8843 if { (eval echo configure:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8924 if { (eval echo configure:8925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8844 rm -rf conftest* 8925 rm -rf conftest*
8845 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8926 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8846 Defining HAVE_SOCKADDR_SUN_LEN 8927 Defining HAVE_SOCKADDR_SUN_LEN
8847 EOF 8928 EOF
8848 cat >> confdefs.h <<\EOF 8929 cat >> confdefs.h <<\EOF
8856 rm -rf conftest* 8937 rm -rf conftest*
8857 echo "$ac_t""no" 1>&6 8938 echo "$ac_t""no" 1>&6
8858 fi 8939 fi
8859 rm -f conftest* 8940 rm -f conftest*
8860 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 8941 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
8861 echo "configure:8862: checking "for ip_mreq struct in netinet/in.h"" >&5 8942 echo "configure:8943: checking "for ip_mreq struct in netinet/in.h"" >&5
8862 cat > conftest.$ac_ext <<EOF 8943 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure" 8944 #line 8945 "configure"
8864 #include "confdefs.h" 8945 #include "confdefs.h"
8865 8946
8866 #include <netinet/in.h> 8947 #include <netinet/in.h>
8867 8948
8868 int main() { 8949 int main() {
8869 static struct ip_mreq x; 8950 static struct ip_mreq x;
8870 ; return 0; } 8951 ; return 0; }
8871 EOF 8952 EOF
8872 if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8873 rm -rf conftest* 8954 rm -rf conftest*
8874 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8955 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8875 Defining HAVE_MULTICAST 8956 Defining HAVE_MULTICAST
8876 EOF 8957 EOF
8877 cat >> confdefs.h <<\EOF 8958 cat >> confdefs.h <<\EOF
8898 echo "$ac_t""no" 1>&6 8979 echo "$ac_t""no" 1>&6
8899 fi 8980 fi
8900 8981
8901 8982
8902 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8983 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8903 echo "configure:8904: checking for msgget" >&5 8984 echo "configure:8985: checking for msgget" >&5
8904 8985
8905 cat > conftest.$ac_ext <<EOF 8986 cat > conftest.$ac_ext <<EOF
8906 #line 8907 "configure" 8987 #line 8988 "configure"
8907 #include "confdefs.h" 8988 #include "confdefs.h"
8908 /* System header to define __stub macros and hopefully few prototypes, 8989 /* System header to define __stub macros and hopefully few prototypes,
8909 which can conflict with char msgget(); below. */ 8990 which can conflict with char msgget(); below. */
8910 #include <assert.h> 8991 #include <assert.h>
8911 /* Override any gcc2 internal prototype to avoid an error. */ 8992 /* Override any gcc2 internal prototype to avoid an error. */
8924 msgget(); 9005 msgget();
8925 #endif 9006 #endif
8926 9007
8927 ; return 0; } 9008 ; return 0; }
8928 EOF 9009 EOF
8929 if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9010 if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8930 rm -rf conftest* 9011 rm -rf conftest*
8931 eval "ac_cv_func_msgget=yes" 9012 eval "ac_cv_func_msgget=yes"
8932 else 9013 else
8933 echo "configure: failed program was:" >&5 9014 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5 9015 cat conftest.$ac_ext >&5
8939 9020
8940 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 9021 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8941 echo "$ac_t""yes" 1>&6 9022 echo "$ac_t""yes" 1>&6
8942 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 9023 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8943 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 9024 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8944 echo "configure:8945: checking for sys/ipc.h" >&5 9025 echo "configure:9026: checking for sys/ipc.h" >&5
8945 9026
8946 cat > conftest.$ac_ext <<EOF 9027 cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure" 9028 #line 9029 "configure"
8948 #include "confdefs.h" 9029 #include "confdefs.h"
8949 #include <sys/ipc.h> 9030 #include <sys/ipc.h>
8950 EOF 9031 EOF
8951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8952 { (eval echo configure:8953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9033 { (eval echo configure:9034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8953 ac_err=`grep -v '^ *+' conftest.out` 9034 ac_err=`grep -v '^ *+' conftest.out`
8954 if test -z "$ac_err"; then 9035 if test -z "$ac_err"; then
8955 rm -rf conftest* 9036 rm -rf conftest*
8956 eval "ac_cv_header_$ac_safe=yes" 9037 eval "ac_cv_header_$ac_safe=yes"
8957 else 9038 else
8964 rm -f conftest* 9045 rm -f conftest*
8965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8966 echo "$ac_t""yes" 1>&6 9047 echo "$ac_t""yes" 1>&6
8967 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 9048 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8968 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 9049 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8969 echo "configure:8970: checking for sys/msg.h" >&5 9050 echo "configure:9051: checking for sys/msg.h" >&5
8970 9051
8971 cat > conftest.$ac_ext <<EOF 9052 cat > conftest.$ac_ext <<EOF
8972 #line 8973 "configure" 9053 #line 9054 "configure"
8973 #include "confdefs.h" 9054 #include "confdefs.h"
8974 #include <sys/msg.h> 9055 #include <sys/msg.h>
8975 EOF 9056 EOF
8976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8977 { (eval echo configure:8978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9058 { (eval echo configure:9059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8978 ac_err=`grep -v '^ *+' conftest.out` 9059 ac_err=`grep -v '^ *+' conftest.out`
8979 if test -z "$ac_err"; then 9060 if test -z "$ac_err"; then
8980 rm -rf conftest* 9061 rm -rf conftest*
8981 eval "ac_cv_header_$ac_safe=yes" 9062 eval "ac_cv_header_$ac_safe=yes"
8982 else 9063 else
9010 fi 9091 fi
9011 9092
9012 9093
9013 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 9094 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
9014 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 9095 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
9015 echo "configure:9016: checking for dirent.h" >&5 9096 echo "configure:9097: checking for dirent.h" >&5
9016 9097
9017 cat > conftest.$ac_ext <<EOF 9098 cat > conftest.$ac_ext <<EOF
9018 #line 9019 "configure" 9099 #line 9100 "configure"
9019 #include "confdefs.h" 9100 #include "confdefs.h"
9020 #include <dirent.h> 9101 #include <dirent.h>
9021 EOF 9102 EOF
9022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9023 { (eval echo configure:9024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9104 { (eval echo configure:9105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9024 ac_err=`grep -v '^ *+' conftest.out` 9105 ac_err=`grep -v '^ *+' conftest.out`
9025 if test -z "$ac_err"; then 9106 if test -z "$ac_err"; then
9026 rm -rf conftest* 9107 rm -rf conftest*
9027 eval "ac_cv_header_$ac_safe=yes" 9108 eval "ac_cv_header_$ac_safe=yes"
9028 else 9109 else
9045 9126
9046 else 9127 else
9047 echo "$ac_t""no" 1>&6 9128 echo "$ac_t""no" 1>&6
9048 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 9129 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
9049 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 9130 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
9050 echo "configure:9051: checking for sys/dir.h" >&5 9131 echo "configure:9132: checking for sys/dir.h" >&5
9051 9132
9052 cat > conftest.$ac_ext <<EOF 9133 cat > conftest.$ac_ext <<EOF
9053 #line 9054 "configure" 9134 #line 9135 "configure"
9054 #include "confdefs.h" 9135 #include "confdefs.h"
9055 #include <sys/dir.h> 9136 #include <sys/dir.h>
9056 EOF 9137 EOF
9057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9058 { (eval echo configure:9059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9139 { (eval echo configure:9140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9059 ac_err=`grep -v '^ *+' conftest.out` 9140 ac_err=`grep -v '^ *+' conftest.out`
9060 if test -z "$ac_err"; then 9141 if test -z "$ac_err"; then
9061 rm -rf conftest* 9142 rm -rf conftest*
9062 eval "ac_cv_header_$ac_safe=yes" 9143 eval "ac_cv_header_$ac_safe=yes"
9063 else 9144 else
9086 fi 9167 fi
9087 9168
9088 9169
9089 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 9170 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
9090 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 9171 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
9091 echo "configure:9092: checking for nlist.h" >&5 9172 echo "configure:9173: checking for nlist.h" >&5
9092 9173
9093 cat > conftest.$ac_ext <<EOF 9174 cat > conftest.$ac_ext <<EOF
9094 #line 9095 "configure" 9175 #line 9176 "configure"
9095 #include "confdefs.h" 9176 #include "confdefs.h"
9096 #include <nlist.h> 9177 #include <nlist.h>
9097 EOF 9178 EOF
9098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9099 { (eval echo configure:9100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9180 { (eval echo configure:9181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9100 ac_err=`grep -v '^ *+' conftest.out` 9181 ac_err=`grep -v '^ *+' conftest.out`
9101 if test -z "$ac_err"; then 9182 if test -z "$ac_err"; then
9102 rm -rf conftest* 9183 rm -rf conftest*
9103 eval "ac_cv_header_$ac_safe=yes" 9184 eval "ac_cv_header_$ac_safe=yes"
9104 else 9185 else
9124 fi 9205 fi
9125 9206
9126 9207
9127 9208
9128 echo "checking "for sound support"" 1>&6 9209 echo "checking "for sound support"" 1>&6
9129 echo "configure:9130: checking "for sound support"" >&5 9210 echo "configure:9211: checking "for sound support"" >&5
9130 case "$with_sound" in 9211 case "$with_sound" in
9131 native | both ) with_native_sound=yes;; 9212 native | both ) with_native_sound=yes;;
9132 nas | no ) with_native_sound=no;; 9213 nas | no ) with_native_sound=no;;
9133 esac 9214 esac
9134 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 9215 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
9135 9216
9136 if test "$with_native_sound" != "no"; then 9217 if test "$with_native_sound" != "no"; then
9137 if test -n "$native_sound_lib"; then 9218 if test -n "$native_sound_lib"; then
9138 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 9219 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
9139 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 9220 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
9140 echo "configure:9141: checking for multimedia/audio_device.h" >&5 9221 echo "configure:9222: checking for multimedia/audio_device.h" >&5
9141 9222
9142 cat > conftest.$ac_ext <<EOF 9223 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure" 9224 #line 9225 "configure"
9144 #include "confdefs.h" 9225 #include "confdefs.h"
9145 #include <multimedia/audio_device.h> 9226 #include <multimedia/audio_device.h>
9146 EOF 9227 EOF
9147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9148 { (eval echo configure:9149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9229 { (eval echo configure:9230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9149 ac_err=`grep -v '^ *+' conftest.out` 9230 ac_err=`grep -v '^ *+' conftest.out`
9150 if test -z "$ac_err"; then 9231 if test -z "$ac_err"; then
9151 rm -rf conftest* 9232 rm -rf conftest*
9152 eval "ac_cv_header_$ac_safe=yes" 9233 eval "ac_cv_header_$ac_safe=yes"
9153 else 9234 else
9191 case "$canonical" in 9272 case "$canonical" in
9192 *-sgi-* ) 9273 *-sgi-* )
9193 if test -z "$native_sound_lib"; then 9274 if test -z "$native_sound_lib"; then
9194 9275
9195 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 9276 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
9196 echo "configure:9197: checking for ALopenport in -laudio" >&5 9277 echo "configure:9278: checking for ALopenport in -laudio" >&5
9197 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 9278 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
9198 9279
9199 xe_check_libs=" -laudio " 9280 xe_check_libs=" -laudio "
9200 cat > conftest.$ac_ext <<EOF 9281 cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure" 9282 #line 9283 "configure"
9202 #include "confdefs.h" 9283 #include "confdefs.h"
9203 /* Override any gcc2 internal prototype to avoid an error. */ 9284 /* Override any gcc2 internal prototype to avoid an error. */
9204 /* We use char because int might match the return type of a gcc2 9285 /* We use char because int might match the return type of a gcc2
9205 builtin and then its argument prototype would still apply. */ 9286 builtin and then its argument prototype would still apply. */
9206 char ALopenport(); 9287 char ALopenport();
9207 9288
9208 int main() { 9289 int main() {
9209 ALopenport() 9290 ALopenport()
9210 ; return 0; } 9291 ; return 0; }
9211 EOF 9292 EOF
9212 if { (eval echo configure:9213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9293 if { (eval echo configure:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9213 rm -rf conftest* 9294 rm -rf conftest*
9214 eval "ac_cv_lib_$ac_lib_var=yes" 9295 eval "ac_cv_lib_$ac_lib_var=yes"
9215 else 9296 else
9216 echo "configure: failed program was:" >&5 9297 echo "configure: failed program was:" >&5
9217 cat conftest.$ac_ext >&5 9298 cat conftest.$ac_ext >&5
9238 fi ;; 9319 fi ;;
9239 hppa*-hp-hpux* ) 9320 hppa*-hp-hpux* )
9240 if test -z "$native_sound_lib"; then 9321 if test -z "$native_sound_lib"; then
9241 9322
9242 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 9323 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
9243 echo "configure:9244: checking for AOpenAudio in -lAlib" >&5 9324 echo "configure:9325: checking for AOpenAudio in -lAlib" >&5
9244 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 9325 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
9245 9326
9246 xe_check_libs=" -lAlib " 9327 xe_check_libs=" -lAlib "
9247 cat > conftest.$ac_ext <<EOF 9328 cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure" 9329 #line 9330 "configure"
9249 #include "confdefs.h" 9330 #include "confdefs.h"
9250 /* Override any gcc2 internal prototype to avoid an error. */ 9331 /* Override any gcc2 internal prototype to avoid an error. */
9251 /* We use char because int might match the return type of a gcc2 9332 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */ 9333 builtin and then its argument prototype would still apply. */
9253 char AOpenAudio(); 9334 char AOpenAudio();
9254 9335
9255 int main() { 9336 int main() {
9256 AOpenAudio() 9337 AOpenAudio()
9257 ; return 0; } 9338 ; return 0; }
9258 EOF 9339 EOF
9259 if { (eval echo configure:9260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9340 if { (eval echo configure:9341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9260 rm -rf conftest* 9341 rm -rf conftest*
9261 eval "ac_cv_lib_$ac_lib_var=yes" 9342 eval "ac_cv_lib_$ac_lib_var=yes"
9262 else 9343 else
9263 echo "configure: failed program was:" >&5 9344 echo "configure: failed program was:" >&5
9264 cat conftest.$ac_ext >&5 9345 cat conftest.$ac_ext >&5
9292 9373
9293 if test -z "$sound_found"; then 9374 if test -z "$sound_found"; then
9294 for dir in "machine" "sys" "linux"; do 9375 for dir in "machine" "sys" "linux"; do
9295 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9376 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
9296 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9377 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
9297 echo "configure:9298: checking for ${dir}/soundcard.h" >&5 9378 echo "configure:9379: checking for ${dir}/soundcard.h" >&5
9298 9379
9299 cat > conftest.$ac_ext <<EOF 9380 cat > conftest.$ac_ext <<EOF
9300 #line 9301 "configure" 9381 #line 9382 "configure"
9301 #include "confdefs.h" 9382 #include "confdefs.h"
9302 #include <${dir}/soundcard.h> 9383 #include <${dir}/soundcard.h>
9303 EOF 9384 EOF
9304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9305 { (eval echo configure:9306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9386 { (eval echo configure:9387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9306 ac_err=`grep -v '^ *+' conftest.out` 9387 ac_err=`grep -v '^ *+' conftest.out`
9307 if test -z "$ac_err"; then 9388 if test -z "$ac_err"; then
9308 rm -rf conftest* 9389 rm -rf conftest*
9309 eval "ac_cv_header_$ac_safe=yes" 9390 eval "ac_cv_header_$ac_safe=yes"
9310 else 9391 else
9370 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9451 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9371 echo " xemacs will be linked with \"nas.o\"" 9452 echo " xemacs will be linked with \"nas.o\""
9372 fi 9453 fi
9373 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 9454 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
9374 cat > conftest.$ac_ext <<EOF 9455 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure" 9456 #line 9457 "configure"
9376 #include "confdefs.h" 9457 #include "confdefs.h"
9377 #include <audio/Xtutil.h> 9458 #include <audio/Xtutil.h>
9378 EOF 9459 EOF
9379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9380 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9461 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9397 9478
9398 test -z "$with_tty" && with_tty=yes 9479 test -z "$with_tty" && with_tty=yes
9399 9480
9400 if test "$with_tty" = "yes" ; then 9481 if test "$with_tty" = "yes" ; then
9401 echo "checking for TTY-related features" 1>&6 9482 echo "checking for TTY-related features" 1>&6
9402 echo "configure:9403: checking for TTY-related features" >&5 9483 echo "configure:9484: checking for TTY-related features" >&5
9403 { test "$extra_verbose" = "yes" && cat << \EOF 9484 { test "$extra_verbose" = "yes" && cat << \EOF
9404 Defining HAVE_TTY 9485 Defining HAVE_TTY
9405 EOF 9486 EOF
9406 cat >> confdefs.h <<\EOF 9487 cat >> confdefs.h <<\EOF
9407 #define HAVE_TTY 1 9488 #define HAVE_TTY 1
9413 fi 9494 fi
9414 9495
9415 if test -z "$with_ncurses"; then 9496 if test -z "$with_ncurses"; then
9416 9497
9417 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9498 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9418 echo "configure:9419: checking for tgetent in -lncurses" >&5 9499 echo "configure:9500: checking for tgetent in -lncurses" >&5
9419 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9500 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9420 9501
9421 xe_check_libs=" -lncurses " 9502 xe_check_libs=" -lncurses "
9422 cat > conftest.$ac_ext <<EOF 9503 cat > conftest.$ac_ext <<EOF
9423 #line 9424 "configure" 9504 #line 9505 "configure"
9424 #include "confdefs.h" 9505 #include "confdefs.h"
9425 /* Override any gcc2 internal prototype to avoid an error. */ 9506 /* Override any gcc2 internal prototype to avoid an error. */
9426 /* We use char because int might match the return type of a gcc2 9507 /* We use char because int might match the return type of a gcc2
9427 builtin and then its argument prototype would still apply. */ 9508 builtin and then its argument prototype would still apply. */
9428 char tgetent(); 9509 char tgetent();
9429 9510
9430 int main() { 9511 int main() {
9431 tgetent() 9512 tgetent()
9432 ; return 0; } 9513 ; return 0; }
9433 EOF 9514 EOF
9434 if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9515 if { (eval echo configure:9516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9435 rm -rf conftest* 9516 rm -rf conftest*
9436 eval "ac_cv_lib_$ac_lib_var=yes" 9517 eval "ac_cv_lib_$ac_lib_var=yes"
9437 else 9518 else
9438 echo "configure: failed program was:" >&5 9519 echo "configure: failed program was:" >&5
9439 cat conftest.$ac_ext >&5 9520 cat conftest.$ac_ext >&5
9462 EOF 9543 EOF
9463 } 9544 }
9464 9545
9465 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9546 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9466 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9547 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9467 echo "configure:9468: checking for ncurses/curses.h" >&5 9548 echo "configure:9549: checking for ncurses/curses.h" >&5
9468 9549
9469 cat > conftest.$ac_ext <<EOF 9550 cat > conftest.$ac_ext <<EOF
9470 #line 9471 "configure" 9551 #line 9552 "configure"
9471 #include "confdefs.h" 9552 #include "confdefs.h"
9472 #include <ncurses/curses.h> 9553 #include <ncurses/curses.h>
9473 EOF 9554 EOF
9474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9475 { (eval echo configure:9476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9556 { (eval echo configure:9557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9476 ac_err=`grep -v '^ *+' conftest.out` 9557 ac_err=`grep -v '^ *+' conftest.out`
9477 if test -z "$ac_err"; then 9558 if test -z "$ac_err"; then
9478 rm -rf conftest* 9559 rm -rf conftest*
9479 eval "ac_cv_header_$ac_safe=yes" 9560 eval "ac_cv_header_$ac_safe=yes"
9480 else 9561 else
9492 echo "$ac_t""no" 1>&6 9573 echo "$ac_t""no" 1>&6
9493 fi 9574 fi
9494 9575
9495 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9576 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9496 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9577 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9497 echo "configure:9498: checking for ncurses/term.h" >&5 9578 echo "configure:9579: checking for ncurses/term.h" >&5
9498 9579
9499 cat > conftest.$ac_ext <<EOF 9580 cat > conftest.$ac_ext <<EOF
9500 #line 9501 "configure" 9581 #line 9582 "configure"
9501 #include "confdefs.h" 9582 #include "confdefs.h"
9502 #include <ncurses/term.h> 9583 #include <ncurses/term.h>
9503 EOF 9584 EOF
9504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9505 { (eval echo configure:9506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9586 { (eval echo configure:9587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9506 ac_err=`grep -v '^ *+' conftest.out` 9587 ac_err=`grep -v '^ *+' conftest.out`
9507 if test -z "$ac_err"; then 9588 if test -z "$ac_err"; then
9508 rm -rf conftest* 9589 rm -rf conftest*
9509 eval "ac_cv_header_$ac_safe=yes" 9590 eval "ac_cv_header_$ac_safe=yes"
9510 else 9591 else
9530 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9611 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9531 save_c_switch_site="$c_switch_site" 9612 save_c_switch_site="$c_switch_site"
9532 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9613 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9533 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9614 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9534 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9615 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9535 echo "configure:9536: checking for ncurses/curses.h" >&5 9616 echo "configure:9617: checking for ncurses/curses.h" >&5
9536 9617
9537 cat > conftest.$ac_ext <<EOF 9618 cat > conftest.$ac_ext <<EOF
9538 #line 9539 "configure" 9619 #line 9620 "configure"
9539 #include "confdefs.h" 9620 #include "confdefs.h"
9540 #include <ncurses/curses.h> 9621 #include <ncurses/curses.h>
9541 EOF 9622 EOF
9542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9543 { (eval echo configure:9544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9624 { (eval echo configure:9625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9544 ac_err=`grep -v '^ *+' conftest.out` 9625 ac_err=`grep -v '^ *+' conftest.out`
9545 if test -z "$ac_err"; then 9626 if test -z "$ac_err"; then
9546 rm -rf conftest* 9627 rm -rf conftest*
9547 eval "ac_cv_header_$ac_safe=yes" 9628 eval "ac_cv_header_$ac_safe=yes"
9548 else 9629 else
9573 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9654 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9574 else 9655 else
9575 for lib in curses termlib termcap; do 9656 for lib in curses termlib termcap; do
9576 9657
9577 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9658 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9578 echo "configure:9579: checking for tgetent in -l$lib" >&5 9659 echo "configure:9660: checking for tgetent in -l$lib" >&5
9579 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9660 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9580 9661
9581 xe_check_libs=" -l$lib " 9662 xe_check_libs=" -l$lib "
9582 cat > conftest.$ac_ext <<EOF 9663 cat > conftest.$ac_ext <<EOF
9583 #line 9584 "configure" 9664 #line 9665 "configure"
9584 #include "confdefs.h" 9665 #include "confdefs.h"
9585 /* Override any gcc2 internal prototype to avoid an error. */ 9666 /* Override any gcc2 internal prototype to avoid an error. */
9586 /* We use char because int might match the return type of a gcc2 9667 /* We use char because int might match the return type of a gcc2
9587 builtin and then its argument prototype would still apply. */ 9668 builtin and then its argument prototype would still apply. */
9588 char tgetent(); 9669 char tgetent();
9589 9670
9590 int main() { 9671 int main() {
9591 tgetent() 9672 tgetent()
9592 ; return 0; } 9673 ; return 0; }
9593 EOF 9674 EOF
9594 if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9675 if { (eval echo configure:9676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9595 rm -rf conftest* 9676 rm -rf conftest*
9596 eval "ac_cv_lib_$ac_lib_var=yes" 9677 eval "ac_cv_lib_$ac_lib_var=yes"
9597 else 9678 else
9598 echo "configure: failed program was:" >&5 9679 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5 9680 cat conftest.$ac_ext >&5
9620 if test -n "$libs_termcap"; then 9701 if test -n "$libs_termcap"; then
9621 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9702 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9622 else 9703 else
9623 9704
9624 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9705 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9625 echo "configure:9626: checking for tgetent in -lcurses" >&5 9706 echo "configure:9707: checking for tgetent in -lcurses" >&5
9626 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9707 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9627 9708
9628 xe_check_libs=" -lcurses " 9709 xe_check_libs=" -lcurses "
9629 cat > conftest.$ac_ext <<EOF 9710 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure" 9711 #line 9712 "configure"
9631 #include "confdefs.h" 9712 #include "confdefs.h"
9632 /* Override any gcc2 internal prototype to avoid an error. */ 9713 /* Override any gcc2 internal prototype to avoid an error. */
9633 /* We use char because int might match the return type of a gcc2 9714 /* We use char because int might match the return type of a gcc2
9634 builtin and then its argument prototype would still apply. */ 9715 builtin and then its argument prototype would still apply. */
9635 char tgetent(); 9716 char tgetent();
9636 9717
9637 int main() { 9718 int main() {
9638 tgetent() 9719 tgetent()
9639 ; return 0; } 9720 ; return 0; }
9640 EOF 9721 EOF
9641 if { (eval echo configure:9642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9722 if { (eval echo configure:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9642 rm -rf conftest* 9723 rm -rf conftest*
9643 eval "ac_cv_lib_$ac_lib_var=yes" 9724 eval "ac_cv_lib_$ac_lib_var=yes"
9644 else 9725 else
9645 echo "configure: failed program was:" >&5 9726 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5 9727 cat conftest.$ac_ext >&5
9654 echo "$ac_t""yes" 1>&6 9735 echo "$ac_t""yes" 1>&6
9655 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9736 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9656 else 9737 else
9657 echo "$ac_t""no" 1>&6 9738 echo "$ac_t""no" 1>&6
9658 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9739 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9659 echo "configure:9660: checking for tgetent in -ltermcap" >&5 9740 echo "configure:9741: checking for tgetent in -ltermcap" >&5
9660 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9741 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9661 9742
9662 xe_check_libs=" -ltermcap " 9743 xe_check_libs=" -ltermcap "
9663 cat > conftest.$ac_ext <<EOF 9744 cat > conftest.$ac_ext <<EOF
9664 #line 9665 "configure" 9745 #line 9746 "configure"
9665 #include "confdefs.h" 9746 #include "confdefs.h"
9666 /* Override any gcc2 internal prototype to avoid an error. */ 9747 /* Override any gcc2 internal prototype to avoid an error. */
9667 /* We use char because int might match the return type of a gcc2 9748 /* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */ 9749 builtin and then its argument prototype would still apply. */
9669 char tgetent(); 9750 char tgetent();
9670 9751
9671 int main() { 9752 int main() {
9672 tgetent() 9753 tgetent()
9673 ; return 0; } 9754 ; return 0; }
9674 EOF 9755 EOF
9675 if { (eval echo configure:9676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9756 if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9676 rm -rf conftest* 9757 rm -rf conftest*
9677 eval "ac_cv_lib_$ac_lib_var=yes" 9758 eval "ac_cv_lib_$ac_lib_var=yes"
9678 else 9759 else
9679 echo "configure: failed program was:" >&5 9760 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5 9761 cat conftest.$ac_ext >&5
9718 } 9799 }
9719 9800
9720 9801
9721 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9802 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9722 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9803 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9723 echo "configure:9724: checking for gpm.h" >&5 9804 echo "configure:9805: checking for gpm.h" >&5
9724 9805
9725 cat > conftest.$ac_ext <<EOF 9806 cat > conftest.$ac_ext <<EOF
9726 #line 9727 "configure" 9807 #line 9808 "configure"
9727 #include "confdefs.h" 9808 #include "confdefs.h"
9728 #include <gpm.h> 9809 #include <gpm.h>
9729 EOF 9810 EOF
9730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9731 { (eval echo configure:9732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9812 { (eval echo configure:9813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9732 ac_err=`grep -v '^ *+' conftest.out` 9813 ac_err=`grep -v '^ *+' conftest.out`
9733 if test -z "$ac_err"; then 9814 if test -z "$ac_err"; then
9734 rm -rf conftest* 9815 rm -rf conftest*
9735 eval "ac_cv_header_$ac_safe=yes" 9816 eval "ac_cv_header_$ac_safe=yes"
9736 else 9817 else
9749 with_gpm=no 9830 with_gpm=no
9750 fi 9831 fi
9751 } 9832 }
9752 test -z "$with_gpm" && { 9833 test -z "$with_gpm" && {
9753 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9834 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9754 echo "configure:9755: checking for Gpm_Open in -lgpm" >&5 9835 echo "configure:9836: checking for Gpm_Open in -lgpm" >&5
9755 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9836 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9756 9837
9757 xe_check_libs=" -lgpm " 9838 xe_check_libs=" -lgpm "
9758 cat > conftest.$ac_ext <<EOF 9839 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure" 9840 #line 9841 "configure"
9760 #include "confdefs.h" 9841 #include "confdefs.h"
9761 /* Override any gcc2 internal prototype to avoid an error. */ 9842 /* Override any gcc2 internal prototype to avoid an error. */
9762 /* We use char because int might match the return type of a gcc2 9843 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */ 9844 builtin and then its argument prototype would still apply. */
9764 char Gpm_Open(); 9845 char Gpm_Open();
9765 9846
9766 int main() { 9847 int main() {
9767 Gpm_Open() 9848 Gpm_Open()
9768 ; return 0; } 9849 ; return 0; }
9769 EOF 9850 EOF
9770 if { (eval echo configure:9771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9851 if { (eval echo configure:9852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9771 rm -rf conftest* 9852 rm -rf conftest*
9772 eval "ac_cv_lib_$ac_lib_var=yes" 9853 eval "ac_cv_lib_$ac_lib_var=yes"
9773 else 9854 else
9774 echo "configure: failed program was:" >&5 9855 echo "configure: failed program was:" >&5
9775 cat conftest.$ac_ext >&5 9856 cat conftest.$ac_ext >&5
9814 echo " xemacs will be linked with \"event-unixoid.o\"" 9895 echo " xemacs will be linked with \"event-unixoid.o\""
9815 fi 9896 fi
9816 9897
9817 9898
9818 echo "checking for database support" 1>&6 9899 echo "checking for database support" 1>&6
9819 echo "configure:9820: checking for database support" >&5 9900 echo "configure:9901: checking for database support" >&5
9820 9901
9821 if test "$with_database_gnudbm" != "no"; then 9902 if test "$with_database_gnudbm" != "no"; then
9822 9903 for ac_hdr in ndbm.h
9904 do
9905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9907 echo "configure:9908: checking for $ac_hdr" >&5
9908
9909 cat > conftest.$ac_ext <<EOF
9910 #line 9911 "configure"
9911 #include "confdefs.h"
9912 #include <$ac_hdr>
9913 EOF
9914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9915 { (eval echo configure:9916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9916 ac_err=`grep -v '^ *+' conftest.out`
9917 if test -z "$ac_err"; then
9918 rm -rf conftest*
9919 eval "ac_cv_header_$ac_safe=yes"
9920 else
9921 echo "$ac_err" >&5
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 rm -rf conftest*
9925 eval "ac_cv_header_$ac_safe=no"
9926 fi
9927 rm -f conftest*
9928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9929 echo "$ac_t""yes" 1>&6
9930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9931 { test "$extra_verbose" = "yes" && cat << EOF
9932 Defining $ac_tr_hdr
9933 EOF
9934 cat >> confdefs.h <<EOF
9935 #define $ac_tr_hdr 1
9936 EOF
9937 }
9938 have_ndbm_h=yes
9939 else
9940 echo "$ac_t""no" 1>&6
9941 fi
9942 done
9943
9944 if test "$have_ndbm_h" = "yes"; then
9945
9823 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9946 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9824 echo "configure:9825: checking for dbm_open in -lgdbm" >&5 9947 echo "configure:9948: checking for dbm_open in -lgdbm" >&5
9825 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9948 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9826 9949
9827 xe_check_libs=" -lgdbm " 9950 xe_check_libs=" -lgdbm "
9828 cat > conftest.$ac_ext <<EOF 9951 cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure" 9952 #line 9953 "configure"
9830 #include "confdefs.h" 9953 #include "confdefs.h"
9831 /* Override any gcc2 internal prototype to avoid an error. */ 9954 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2 9955 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */ 9956 builtin and then its argument prototype would still apply. */
9834 char dbm_open(); 9957 char dbm_open();
9835 9958
9836 int main() { 9959 int main() {
9837 dbm_open() 9960 dbm_open()
9838 ; return 0; } 9961 ; return 0; }
9839 EOF 9962 EOF
9840 if { (eval echo configure:9841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9963 if { (eval echo configure:9964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9841 rm -rf conftest* 9964 rm -rf conftest*
9842 eval "ac_cv_lib_$ac_lib_var=yes" 9965 eval "ac_cv_lib_$ac_lib_var=yes"
9843 else 9966 else
9844 echo "configure: failed program was:" >&5 9967 echo "configure: failed program was:" >&5
9845 cat conftest.$ac_ext >&5 9968 cat conftest.$ac_ext >&5
9855 else 9978 else
9856 echo "$ac_t""no" 1>&6 9979 echo "$ac_t""no" 1>&6
9857 fi 9980 fi
9858 9981
9859 9982
9983 fi
9860 if test "$with_database_gnudbm" != "yes"; then 9984 if test "$with_database_gnudbm" != "yes"; then
9861 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9985 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9862 echo "configure:9863: checking for dbm_open" >&5 9986 echo "configure:9987: checking for dbm_open" >&5
9863 9987
9864 cat > conftest.$ac_ext <<EOF 9988 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure" 9989 #line 9990 "configure"
9866 #include "confdefs.h" 9990 #include "confdefs.h"
9867 /* System header to define __stub macros and hopefully few prototypes, 9991 /* System header to define __stub macros and hopefully few prototypes,
9868 which can conflict with char dbm_open(); below. */ 9992 which can conflict with char dbm_open(); below. */
9869 #include <assert.h> 9993 #include <assert.h>
9870 /* Override any gcc2 internal prototype to avoid an error. */ 9994 /* Override any gcc2 internal prototype to avoid an error. */
9883 dbm_open(); 10007 dbm_open();
9884 #endif 10008 #endif
9885 10009
9886 ; return 0; } 10010 ; return 0; }
9887 EOF 10011 EOF
9888 if { (eval echo configure:9889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10012 if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9889 rm -rf conftest* 10013 rm -rf conftest*
9890 eval "ac_cv_func_dbm_open=yes" 10014 eval "ac_cv_func_dbm_open=yes"
9891 else 10015 else
9892 echo "configure: failed program was:" >&5 10016 echo "configure: failed program was:" >&5
9893 cat conftest.$ac_ext >&5 10017 cat conftest.$ac_ext >&5
9919 fi 10043 fi
9920 fi 10044 fi
9921 10045
9922 if test "$with_database_dbm" != "no"; then 10046 if test "$with_database_dbm" != "no"; then
9923 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10047 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9924 echo "configure:9925: checking for dbm_open" >&5 10048 echo "configure:10049: checking for dbm_open" >&5
9925 10049
9926 cat > conftest.$ac_ext <<EOF 10050 cat > conftest.$ac_ext <<EOF
9927 #line 9928 "configure" 10051 #line 10052 "configure"
9928 #include "confdefs.h" 10052 #include "confdefs.h"
9929 /* System header to define __stub macros and hopefully few prototypes, 10053 /* System header to define __stub macros and hopefully few prototypes,
9930 which can conflict with char dbm_open(); below. */ 10054 which can conflict with char dbm_open(); below. */
9931 #include <assert.h> 10055 #include <assert.h>
9932 /* Override any gcc2 internal prototype to avoid an error. */ 10056 /* Override any gcc2 internal prototype to avoid an error. */
9945 dbm_open(); 10069 dbm_open();
9946 #endif 10070 #endif
9947 10071
9948 ; return 0; } 10072 ; return 0; }
9949 EOF 10073 EOF
9950 if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10074 if { (eval echo configure:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9951 rm -rf conftest* 10075 rm -rf conftest*
9952 eval "ac_cv_func_dbm_open=yes" 10076 eval "ac_cv_func_dbm_open=yes"
9953 else 10077 else
9954 echo "configure: failed program was:" >&5 10078 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5 10079 cat conftest.$ac_ext >&5
9966 fi 10090 fi
9967 10091
9968 if test "$need_libdbm" != "no"; then 10092 if test "$need_libdbm" != "no"; then
9969 10093
9970 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 10094 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9971 echo "configure:9972: checking for dbm_open in -ldbm" >&5 10095 echo "configure:10096: checking for dbm_open in -ldbm" >&5
9972 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 10096 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9973 10097
9974 xe_check_libs=" -ldbm " 10098 xe_check_libs=" -ldbm "
9975 cat > conftest.$ac_ext <<EOF 10099 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure" 10100 #line 10101 "configure"
9977 #include "confdefs.h" 10101 #include "confdefs.h"
9978 /* Override any gcc2 internal prototype to avoid an error. */ 10102 /* Override any gcc2 internal prototype to avoid an error. */
9979 /* We use char because int might match the return type of a gcc2 10103 /* We use char because int might match the return type of a gcc2
9980 builtin and then its argument prototype would still apply. */ 10104 builtin and then its argument prototype would still apply. */
9981 char dbm_open(); 10105 char dbm_open();
9982 10106
9983 int main() { 10107 int main() {
9984 dbm_open() 10108 dbm_open()
9985 ; return 0; } 10109 ; return 0; }
9986 EOF 10110 EOF
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10111 if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9988 rm -rf conftest* 10112 rm -rf conftest*
9989 eval "ac_cv_lib_$ac_lib_var=yes" 10113 eval "ac_cv_lib_$ac_lib_var=yes"
9990 else 10114 else
9991 echo "configure: failed program was:" >&5 10115 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5 10116 cat conftest.$ac_ext >&5
10019 fi 10143 fi
10020 fi 10144 fi
10021 10145
10022 if test "$with_database_berkdb" != "no"; then 10146 if test "$with_database_berkdb" != "no"; then
10023 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 10147 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10024 echo "configure:10025: checking for dbopen" >&5 10148 echo "configure:10149: checking for dbopen" >&5
10025 10149
10026 cat > conftest.$ac_ext <<EOF 10150 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure" 10151 #line 10152 "configure"
10028 #include "confdefs.h" 10152 #include "confdefs.h"
10029 /* System header to define __stub macros and hopefully few prototypes, 10153 /* System header to define __stub macros and hopefully few prototypes,
10030 which can conflict with char dbopen(); below. */ 10154 which can conflict with char dbopen(); below. */
10031 #include <assert.h> 10155 #include <assert.h>
10032 /* Override any gcc2 internal prototype to avoid an error. */ 10156 /* Override any gcc2 internal prototype to avoid an error. */
10045 dbopen(); 10169 dbopen();
10046 #endif 10170 #endif
10047 10171
10048 ; return 0; } 10172 ; return 0; }
10049 EOF 10173 EOF
10050 if { (eval echo configure:10051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10174 if { (eval echo configure:10175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10051 rm -rf conftest* 10175 rm -rf conftest*
10052 eval "ac_cv_func_dbopen=yes" 10176 eval "ac_cv_func_dbopen=yes"
10053 else 10177 else
10054 echo "configure: failed program was:" >&5 10178 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5 10179 cat conftest.$ac_ext >&5
10066 fi 10190 fi
10067 10191
10068 if test "$need_libdb" != "no"; then 10192 if test "$need_libdb" != "no"; then
10069 10193
10070 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 10194 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10071 echo "configure:10072: checking for dbopen in -ldb" >&5 10195 echo "configure:10196: checking for dbopen in -ldb" >&5
10072 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 10196 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
10073 10197
10074 xe_check_libs=" -ldb " 10198 xe_check_libs=" -ldb "
10075 cat > conftest.$ac_ext <<EOF 10199 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure" 10200 #line 10201 "configure"
10077 #include "confdefs.h" 10201 #include "confdefs.h"
10078 /* Override any gcc2 internal prototype to avoid an error. */ 10202 /* Override any gcc2 internal prototype to avoid an error. */
10079 /* We use char because int might match the return type of a gcc2 10203 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */ 10204 builtin and then its argument prototype would still apply. */
10081 char dbopen(); 10205 char dbopen();
10082 10206
10083 int main() { 10207 int main() {
10084 dbopen() 10208 dbopen()
10085 ; return 0; } 10209 ; return 0; }
10086 EOF 10210 EOF
10087 if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10211 if { (eval echo configure:10212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10088 rm -rf conftest* 10212 rm -rf conftest*
10089 eval "ac_cv_lib_$ac_lib_var=yes" 10213 eval "ac_cv_lib_$ac_lib_var=yes"
10090 else 10214 else
10091 echo "configure: failed program was:" >&5 10215 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5 10216 cat conftest.$ac_ext >&5
10106 10230
10107 fi 10231 fi
10108 if test "$with_database_berkdb" = "yes"; then 10232 if test "$with_database_berkdb" = "yes"; then
10109 for path in "db/db.h" "db.h"; do 10233 for path in "db/db.h" "db.h"; do
10110 cat > conftest.$ac_ext <<EOF 10234 cat > conftest.$ac_ext <<EOF
10111 #line 10112 "configure" 10235 #line 10236 "configure"
10112 #include "confdefs.h" 10236 #include "confdefs.h"
10113 #ifdef HAVE_INTTYPES_H 10237 #ifdef HAVE_INTTYPES_H
10114 #define __BIT_TYPES_DEFINED__ 10238 #define __BIT_TYPES_DEFINED__
10115 #include <inttypes.h> 10239 #include <inttypes.h>
10116 typedef uint8_t u_int8_t; 10240 typedef uint8_t u_int8_t;
10124 10248
10125 int main() { 10249 int main() {
10126 10250
10127 ; return 0; } 10251 ; return 0; }
10128 EOF 10252 EOF
10129 if { (eval echo configure:10130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10253 if { (eval echo configure:10254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10130 rm -rf conftest* 10254 rm -rf conftest*
10131 db_h_path="$path"; break 10255 db_h_path="$path"; break
10132 else 10256 else
10133 echo "configure: failed program was:" >&5 10257 echo "configure: failed program was:" >&5
10134 cat conftest.$ac_ext >&5 10258 cat conftest.$ac_ext >&5
10176 fi 10300 fi
10177 10301
10178 if test "$with_socks" = "yes"; then 10302 if test "$with_socks" = "yes"; then
10179 10303
10180 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 10304 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
10181 echo "configure:10182: checking for SOCKSinit in -lsocks" >&5 10305 echo "configure:10306: checking for SOCKSinit in -lsocks" >&5
10182 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 10306 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
10183 10307
10184 xe_check_libs=" -lsocks " 10308 xe_check_libs=" -lsocks "
10185 cat > conftest.$ac_ext <<EOF 10309 cat > conftest.$ac_ext <<EOF
10186 #line 10187 "configure" 10310 #line 10311 "configure"
10187 #include "confdefs.h" 10311 #include "confdefs.h"
10188 /* Override any gcc2 internal prototype to avoid an error. */ 10312 /* Override any gcc2 internal prototype to avoid an error. */
10189 /* We use char because int might match the return type of a gcc2 10313 /* We use char because int might match the return type of a gcc2
10190 builtin and then its argument prototype would still apply. */ 10314 builtin and then its argument prototype would still apply. */
10191 char SOCKSinit(); 10315 char SOCKSinit();
10192 10316
10193 int main() { 10317 int main() {
10194 SOCKSinit() 10318 SOCKSinit()
10195 ; return 0; } 10319 ; return 0; }
10196 EOF 10320 EOF
10197 if { (eval echo configure:10198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10321 if { (eval echo configure:10322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10198 rm -rf conftest* 10322 rm -rf conftest*
10199 eval "ac_cv_lib_$ac_lib_var=yes" 10323 eval "ac_cv_lib_$ac_lib_var=yes"
10200 else 10324 else
10201 echo "configure: failed program was:" >&5 10325 echo "configure: failed program was:" >&5
10202 cat conftest.$ac_ext >&5 10326 cat conftest.$ac_ext >&5
10245 } 10369 }
10246 10370
10247 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 10371 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
10248 fi 10372 fi
10249 10373
10250 test -z "$with_shlib" && { ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 10374 for ac_hdr in dlfcn.h
10251 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 10375 do
10252 echo "configure:10253: checking for dlfcn.h" >&5 10376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10253 10377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10254 cat > conftest.$ac_ext <<EOF 10378 echo "configure:10379: checking for $ac_hdr" >&5
10255 #line 10256 "configure" 10379
10256 #include "confdefs.h" 10380 cat > conftest.$ac_ext <<EOF
10257 #include <dlfcn.h> 10381 #line 10382 "configure"
10382 #include "confdefs.h"
10383 #include <$ac_hdr>
10258 EOF 10384 EOF
10259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10260 { (eval echo configure:10261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10386 { (eval echo configure:10387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10261 ac_err=`grep -v '^ *+' conftest.out` 10387 ac_err=`grep -v '^ *+' conftest.out`
10262 if test -z "$ac_err"; then 10388 if test -z "$ac_err"; then
10263 rm -rf conftest* 10389 rm -rf conftest*
10264 eval "ac_cv_header_$ac_safe=yes" 10390 eval "ac_cv_header_$ac_safe=yes"
10265 else 10391 else
10270 eval "ac_cv_header_$ac_safe=no" 10396 eval "ac_cv_header_$ac_safe=no"
10271 fi 10397 fi
10272 rm -f conftest* 10398 rm -f conftest*
10273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6 10400 echo "$ac_t""yes" 1>&6
10275 : 10401 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10276 else 10402 { test "$extra_verbose" = "yes" && cat << EOF
10277 echo "$ac_t""no" 1>&6 10403 Defining $ac_tr_hdr
10278 with_shlib=no 10404 EOF
10279 fi 10405 cat >> confdefs.h <<EOF
10280 } 10406 #define $ac_tr_hdr 1
10281 test -z "$with_shlib" && { 10407 EOF
10408 }
10409 have_dlfcn=yes
10410 else
10411 echo "$ac_t""no" 1>&6
10412 fi
10413 done
10414
10415 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
10282 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 10416 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
10283 echo "configure:10284: checking for dlopen in -ldl" >&5 10417 echo "configure:10418: checking for dlopen in -ldl" >&5
10284 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 10418 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
10285 10419
10286 xe_check_libs=" -ldl " 10420 xe_check_libs=" -ldl "
10287 cat > conftest.$ac_ext <<EOF 10421 cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure" 10422 #line 10423 "configure"
10289 #include "confdefs.h" 10423 #include "confdefs.h"
10290 /* Override any gcc2 internal prototype to avoid an error. */ 10424 /* Override any gcc2 internal prototype to avoid an error. */
10291 /* We use char because int might match the return type of a gcc2 10425 /* We use char because int might match the return type of a gcc2
10292 builtin and then its argument prototype would still apply. */ 10426 builtin and then its argument prototype would still apply. */
10293 char dlopen(); 10427 char dlopen();
10294 10428
10295 int main() { 10429 int main() {
10296 dlopen() 10430 dlopen()
10297 ; return 0; } 10431 ; return 0; }
10298 EOF 10432 EOF
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10433 if { (eval echo configure:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10300 rm -rf conftest* 10434 rm -rf conftest*
10301 eval "ac_cv_lib_$ac_lib_var=yes" 10435 eval "ac_cv_lib_$ac_lib_var=yes"
10302 else 10436 else
10303 echo "configure: failed program was:" >&5 10437 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5 10438 cat conftest.$ac_ext >&5
10308 rm -f conftest* 10442 rm -f conftest*
10309 xe_check_libs="" 10443 xe_check_libs=""
10310 10444
10311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 10445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10312 echo "$ac_t""yes" 1>&6 10446 echo "$ac_t""yes" 1>&6
10313 LIBS="-ldl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldl\" to \$LIBS"; fi 10447 { test "$extra_verbose" = "yes" && cat << \EOF
10314 else 10448 Defining HAVE_DLOPEN
10315 echo "$ac_t""no" 1>&6 10449 EOF
10450 cat >> confdefs.h <<\EOF
10451 #define HAVE_DLOPEN 1
10452 EOF
10453 }
10454 DLL_LIB=dl; with_shlib=yes
10455 else
10456 echo "$ac_t""no" 1>&6
10457 fi
10458
10459 }
10460 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
10461 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
10462 echo "configure:10463: checking for _dlopen in -lc" >&5
10463 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
10464
10465 xe_check_libs=" -lc "
10466 cat > conftest.$ac_ext <<EOF
10467 #line 10468 "configure"
10468 #include "confdefs.h"
10469 /* Override any gcc2 internal prototype to avoid an error. */
10470 /* We use char because int might match the return type of a gcc2
10471 builtin and then its argument prototype would still apply. */
10472 char _dlopen();
10473
10474 int main() {
10475 _dlopen()
10476 ; return 0; }
10477 EOF
10478 if { (eval echo configure:10479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10479 rm -rf conftest*
10480 eval "ac_cv_lib_$ac_lib_var=yes"
10481 else
10482 echo "configure: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10484 rm -rf conftest*
10485 eval "ac_cv_lib_$ac_lib_var=no"
10486 fi
10487 rm -f conftest*
10488 xe_check_libs=""
10489
10490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10491 echo "$ac_t""yes" 1>&6
10492 { test "$extra_verbose" = "yes" && cat << \EOF
10493 Defining HAVE_DLOPEN
10494 EOF
10495 cat >> confdefs.h <<\EOF
10496 #define HAVE_DLOPEN 1
10497 EOF
10498 }
10499 DLL_LIB=; with_shlib=yes
10500 else
10501 echo "$ac_t""no" 1>&6
10502 fi
10503
10504 }
10505 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
10316 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 10506 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
10317 echo "configure:10318: checking for dlopen in -lc" >&5 10507 echo "configure:10508: checking for dlopen in -lc" >&5
10318 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 10508 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
10319 10509
10320 xe_check_libs=" -lc " 10510 xe_check_libs=" -lc "
10321 cat > conftest.$ac_ext <<EOF 10511 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure" 10512 #line 10513 "configure"
10323 #include "confdefs.h" 10513 #include "confdefs.h"
10324 /* Override any gcc2 internal prototype to avoid an error. */ 10514 /* Override any gcc2 internal prototype to avoid an error. */
10325 /* We use char because int might match the return type of a gcc2 10515 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */ 10516 builtin and then its argument prototype would still apply. */
10327 char dlopen(); 10517 char dlopen();
10328 10518
10329 int main() { 10519 int main() {
10330 dlopen() 10520 dlopen()
10331 ; return 0; } 10521 ; return 0; }
10332 EOF 10522 EOF
10333 if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10523 if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10334 rm -rf conftest* 10524 rm -rf conftest*
10335 eval "ac_cv_lib_$ac_lib_var=yes" 10525 eval "ac_cv_lib_$ac_lib_var=yes"
10336 else 10526 else
10337 echo "configure: failed program was:" >&5 10527 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5 10528 cat conftest.$ac_ext >&5
10342 rm -f conftest* 10532 rm -f conftest*
10343 xe_check_libs="" 10533 xe_check_libs=""
10344 10534
10345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 10535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10346 echo "$ac_t""yes" 1>&6 10536 echo "$ac_t""yes" 1>&6
10347 with_shlib=yes 10537 { test "$extra_verbose" = "yes" && cat << \EOF
10348 else 10538 Defining HAVE_DLOPEN
10349 echo "$ac_t""no" 1>&6 10539 EOF
10350 with_shlib=no 10540 cat >> confdefs.h <<\EOF
10351 fi 10541 #define HAVE_DLOPEN 1
10352 10542 EOF
10353 10543 }
10544 DLL_LIB=; with_shlib=yes
10545 else
10546 echo "$ac_t""no" 1>&6
10354 fi 10547 fi
10355 10548
10356 } 10549 }
10357 test -z "$with_shlib" && with_shlib=yes 10550 test -z "$with_shlib" && {
10551 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
10552 echo "configure:10553: checking for shl_load in -ldld" >&5
10553 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
10554
10555 xe_check_libs=" -ldld "
10556 cat > conftest.$ac_ext <<EOF
10557 #line 10558 "configure"
10558 #include "confdefs.h"
10559 /* Override any gcc2 internal prototype to avoid an error. */
10560 /* We use char because int might match the return type of a gcc2
10561 builtin and then its argument prototype would still apply. */
10562 char shl_load();
10563
10564 int main() {
10565 shl_load()
10566 ; return 0; }
10567 EOF
10568 if { (eval echo configure:10569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10569 rm -rf conftest*
10570 eval "ac_cv_lib_$ac_lib_var=yes"
10571 else
10572 echo "configure: failed program was:" >&5
10573 cat conftest.$ac_ext >&5
10574 rm -rf conftest*
10575 eval "ac_cv_lib_$ac_lib_var=no"
10576 fi
10577 rm -f conftest*
10578 xe_check_libs=""
10579
10580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10581 echo "$ac_t""yes" 1>&6
10582 { test "$extra_verbose" = "yes" && cat << \EOF
10583 Defining HAVE_SHL_LOAD
10584 EOF
10585 cat >> confdefs.h <<\EOF
10586 #define HAVE_SHL_LOAD 1
10587 EOF
10588 }
10589 DLL_LIB=dld; with_shlib=yes
10590 else
10591 echo "$ac_t""no" 1>&6
10592 fi
10593
10594 }
10595 test -z "$with_shlib" && {
10596 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
10597 echo "configure:10598: checking for dld_init in -ldld" >&5
10598 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
10599
10600 xe_check_libs=" -ldld "
10601 cat > conftest.$ac_ext <<EOF
10602 #line 10603 "configure"
10603 #include "confdefs.h"
10604 /* Override any gcc2 internal prototype to avoid an error. */
10605 /* We use char because int might match the return type of a gcc2
10606 builtin and then its argument prototype would still apply. */
10607 char dld_init();
10608
10609 int main() {
10610 dld_init()
10611 ; return 0; }
10612 EOF
10613 if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10614 rm -rf conftest*
10615 eval "ac_cv_lib_$ac_lib_var=yes"
10616 else
10617 echo "configure: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10619 rm -rf conftest*
10620 eval "ac_cv_lib_$ac_lib_var=no"
10621 fi
10622 rm -f conftest*
10623 xe_check_libs=""
10624
10625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10626 echo "$ac_t""yes" 1>&6
10627 { test "$extra_verbose" = "yes" && cat << \EOF
10628 Defining HAVE_DLD_INIT
10629 EOF
10630 cat >> confdefs.h <<\EOF
10631 #define HAVE_DLD_INIT 1
10632 EOF
10633 }
10634 DLL_LIB=dld; with_shlib=yes
10635 else
10636 echo "$ac_t""no" 1>&6
10637 fi
10638
10639 }
10358 if test "$with_shlib" = "yes"; then 10640 if test "$with_shlib" = "yes"; then
10359 { test "$extra_verbose" = "yes" && cat << \EOF 10641 { test "$extra_verbose" = "yes" && cat << \EOF
10360 Defining HAVE_SHLIB 10642 Defining HAVE_SHLIB
10361 EOF 10643 EOF
10362 cat >> confdefs.h <<\EOF 10644 cat >> confdefs.h <<\EOF
10363 #define HAVE_SHLIB 1 10645 #define HAVE_SHLIB 1
10364 EOF 10646 EOF
10365 } 10647 }
10366 10648
10367 extra_objs="$extra_objs dlopen.o" && if test "$extra_verbose" = "yes"; then 10649 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
10368 echo " xemacs will be linked with \"dlopen.o\"" 10650 echo " xemacs will be linked with \"sysdll.o\""
10369 fi 10651 fi
10652 extra_objs="$extra_objs dll.o" && if test "$extra_verbose" = "yes"; then
10653 echo " xemacs will be linked with \"dll.o\""
10654 fi
10655 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
10656
10657 dll_ld="ld"
10658 dll_lflags="-shared"
10659 dll_cflags="-r"
10660 dll_oflags="-o "
10661
10662 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
10663 echo "configure:10664: checking how to build a shared library" >&5
10664 case `uname -rs` in
10665 UNIX_SV*|UNIX_System_V*)
10666 dll_lflags="-G"
10667 dll_cflags=-Kpic
10668 dll_ld="ld"
10669 ;;
10670 BSD/OS*)
10671 dll_cflags=
10672 dll_lflags="-r"
10673 dll_ld="shlicc2"
10674 ;;
10675 FreeBSD*2*)
10676 dll_lflags="-Bshareable"
10677 dll_cflags="-fPIC -DPIC"
10678 dll_ld=ld
10679 ;;
10680 SunOS*4.*)
10681 dll_cflags="-P"
10682 dll_lflags="-dp -assert pure-text -assert nodefinitions"
10683 ;;
10684 SunOS*5.*)
10685 dll_ld="cc"
10686 dll_cflags="-KPIC"
10687 dll_lflags="-G"
10688 dll_oflags="-W0,-y-o -W0,-y"
10689 ;;
10690 IRIX*5.*|IRIX*6.*)
10691 dll_cflags="-KPIC"
10692 ;;
10693 OSF1*)
10694 ;;
10695 HP-UX*)
10696 dll_ld="ld"
10697 dll_lflags="-b"
10698 dll_cflags="+z"
10699 ;;
10700 SCO_SV*)
10701 dll_ld="ld"
10702 dll_lflags="-G"
10703 dll_cflags="-Kpic"
10704 ;;
10705 AIX*)
10706 dll_lflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:\${@:.ell=.exp} -b noentry -lc"
10707 dll_ld="ld"
10708 ;;
10709 *)
10710 ;;
10711 esac
10712
10713 if test "$GCC" = "yes" ; then
10714 dll_cflags="-fPIC"
10715 case `uname -rs` in
10716 SunOS*5.*)
10717 dll_ld="ld"
10718 dll_oflags="-o "
10719 dll_lflags="-G"
10720 ;;
10721 SCO_SV*)
10722 dll_ld="ld"
10723 dll_lflags="-G"
10724 dll_cflags="-b elf"
10725 ;;
10726 FreeBSD*)
10727 dll_cflags="-DDLSYM_NEEDS_UNDERSCORE -DPIC -fPIC"
10728 dll_lflags="-Bshareable"
10729 dll_ld=ld
10730 ;;
10731 BSD/OS*)
10732 dll_cflags=
10733 dll_lflags="-r"
10734 dll_ld="shlicc2"
10735 ;;
10736 UNIX_SV*)
10737 dll_cflags="-fPIC"
10738 ;;
10739 *)
10740 dll_ld="$CC"
10741 dll_lflags="-shared"
10742 esac
10743 fi
10744
10745 echo "$ac_t"""lflags: $dll_lflags cflags: $dll_cflags"" 1>&6
10746
10747
10748
10749
10750
10370 ld_dynamic_link_flags= 10751 ld_dynamic_link_flags=
10371 case "$opsys" in 10752 case "$opsys" in
10753 hpux*) ld_dynamic_link_flags="-E" ;;
10372 linux*) ld_dynamic_link_flags="-rdynamic" ;; 10754 linux*) ld_dynamic_link_flags="-rdynamic" ;;
10373 *) ;; 10755 *) ;;
10374 esac 10756 esac
10375 fi 10757 fi
10376 10758
10837 echo " WARNING: You should strongly considering installing XPM." 11219 echo " WARNING: You should strongly considering installing XPM."
10838 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." 11220 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
10839 echo " --------------------------------------------------------------------" 11221 echo " --------------------------------------------------------------------"
10840 fi 11222 fi
10841 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." 11223 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
10842 test "$with_gif" = yes && echo " Compiling in (built in) support for GIF image conversion." 11224 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
10843 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." 11225 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
10844 test "$with_png" = yes && echo " Compiling in support for PNG image conversion." 11226 test "$with_png" = yes && echo " Compiling in support for PNG image conversion."
10845 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." 11227 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion."
10846 case "$with_sound" in 11228 case "$with_sound" in
10847 nas ) echo " Compiling in network sound (NAS) support." ;; 11229 nas ) echo " Compiling in network sound (NAS) support." ;;
10848 native ) echo " Compiling in native sound support." ;; 11230 native ) echo " Compiling in native sound support." ;;
10849 both ) echo " Compiling in both network and native sound support." ;; 11231 both ) echo " Compiling in both network and native sound support." ;;
10850 esac 11232 esac
10906 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" 11288 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
10907 echo " The \`Info-default-directory-list' will be initialized from:" 11289 echo " The \`Info-default-directory-list' will be initialized from:"
10908 echo " INFOPATH=\"$infopath\"" 11290 echo " INFOPATH=\"$infopath\""
10909 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." 11291 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
10910 test "$with_minimal_tagbits" != "no" -o "$with_gung" != "no" && \ 11292 test "$with_minimal_tagbits" != "no" -o "$with_gung" != "no" && \
10911 echo "Using Lisp_Objects with minimal tagbits." 11293 echo " Using Lisp_Objects with minimal tagbits."
10912 test "$with_gung" != "no" && echo "Using indexed lrecord implementation." 11294 test "$with_gung" != "no" && echo " Using indexed lrecord implementation."
10913 test "$debug" = yes && echo " Compiling in extra code for debugging." 11295 test "$debug" = yes && echo " Compiling in extra code for debugging."
10914 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage." 11296 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
10915 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." 11297 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
10916 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ 11298 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
10917 != "no no no no no"; then 11299 != "no no no no no"; then
11043 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 11425 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
11044 s%@libs_xauth@%$libs_xauth%g 11426 s%@libs_xauth@%$libs_xauth%g
11045 s%@OFFIX_O@%$OFFIX_O%g 11427 s%@OFFIX_O@%$OFFIX_O%g
11046 s%@lwlib_objs@%$lwlib_objs%g 11428 s%@lwlib_objs@%$lwlib_objs%g
11047 s%@ALLOCA@%$ALLOCA%g 11429 s%@ALLOCA@%$ALLOCA%g
11430 s%@dll_ld@%$dll_ld%g
11431 s%@dll_cflags@%$dll_cflags%g
11432 s%@dll_oflags@%$dll_oflags%g
11433 s%@dll_lflags@%$dll_lflags%g
11048 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g 11434 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
11049 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g 11435 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
11050 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g 11436 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
11051 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g 11437 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
11052 s%@version@%$version%g 11438 s%@version@%$version%g