Mercurial > noffle
comparison configure @ 217:b4f1731a6470 noffle
[svn] * Makefile.in,aclocal.m4,config.h.in,configure,configure.in
docs/Makefile.in,src/Makefile.in: Regularise format of Noffle
default parameters in configure.in and regenerate.
author | bears |
---|---|
date | Thu, 22 Nov 2001 22:25:12 +0000 |
parents | 79e324213734 |
children | 9fb4b7d7e64b |
comparison
equal
deleted
inserted
replaced
216:a652fc5b7ced | 217:b4f1731a6470 |
---|---|
14 ac_help="$ac_help | 14 ac_help="$ac_help |
15 | 15 |
16 NOFFLE options: | 16 NOFFLE options: |
17 --enable-debug=[no/yes] build with debugging [default=no]" | 17 --enable-debug=[no/yes] build with debugging [default=no]" |
18 ac_help="$ac_help | 18 ac_help="$ac_help |
19 --with-docdir=PATH specify where to put the documentation" | 19 --with-docdir=DIR other documentation [PREFIX/doc/noffle]" |
20 ac_help="$ac_help | 20 ac_help="$ac_help |
21 --with-spooldir=PATH news spool directory (/var/spool/noffle)" | 21 --with-spooldir=DIR news spool directory [/var/spool/noffle]" |
22 ac_help="$ac_help | 22 ac_help="$ac_help |
23 --with-configfile=PATH configuration file (/etc/noffle.conf)" | 23 --with-configfile=FILE configuration file [/etc/noffle.conf]" |
24 | 24 |
25 # Initialize some variables set by options. | 25 # Initialize some variables set by options. |
26 # The variables have the same names as the options, with | 26 # The variables have the same names as the options, with |
27 # dashes changed to underlines. | 27 # dashes changed to underlines. |
28 build=NONE | 28 build=NONE |
1313 echo "$ac_t""no" 1>&6 | 1313 echo "$ac_t""no" 1>&6 |
1314 fi | 1314 fi |
1315 rm -f conftest* | 1315 rm -f conftest* |
1316 | 1316 |
1317 | 1317 |
1318 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | 1318 |
1319 echo "configure:1320: checking for POSIXized ISC" >&5 | 1319 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
1320 if test -d /etc/conf/kconfig.d && | 1320 echo "configure:1321: checking for strerror in -lcposix" >&5 |
1321 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | 1321 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
1322 then | 1322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1323 echo $ac_n "(cached) $ac_c" 1>&6 | |
1324 else | |
1325 ac_save_LIBS="$LIBS" | |
1326 LIBS="-lcposix $LIBS" | |
1327 cat > conftest.$ac_ext <<EOF | |
1328 #line 1329 "configure" | |
1329 #include "confdefs.h" | |
1330 /* Override any gcc2 internal prototype to avoid an error. */ | |
1331 /* We use char because int might match the return type of a gcc2 | |
1332 builtin and then its argument prototype would still apply. */ | |
1333 char strerror(); | |
1334 | |
1335 int main() { | |
1336 strerror() | |
1337 ; return 0; } | |
1338 EOF | |
1339 if { (eval echo configure:1340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1340 rm -rf conftest* | |
1341 eval "ac_cv_lib_$ac_lib_var=yes" | |
1342 else | |
1343 echo "configure: failed program was:" >&5 | |
1344 cat conftest.$ac_ext >&5 | |
1345 rm -rf conftest* | |
1346 eval "ac_cv_lib_$ac_lib_var=no" | |
1347 fi | |
1348 rm -f conftest* | |
1349 LIBS="$ac_save_LIBS" | |
1350 | |
1351 fi | |
1352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1323 echo "$ac_t""yes" 1>&6 | 1353 echo "$ac_t""yes" 1>&6 |
1324 ISC=yes # If later tests want to check for ISC. | 1354 LIBS="$LIBS -lcposix" |
1325 cat >> confdefs.h <<\EOF | |
1326 #define _POSIX_SOURCE 1 | |
1327 EOF | |
1328 | |
1329 if test "$GCC" = yes; then | |
1330 CC="$CC -posix" | |
1331 else | |
1332 CC="$CC -Xp" | |
1333 fi | |
1334 else | 1355 else |
1335 echo "$ac_t""no" 1>&6 | 1356 echo "$ac_t""no" 1>&6 |
1336 ISC= | 1357 fi |
1337 fi | 1358 |
1359 | |
1338 | 1360 |
1339 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` | 1361 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
1340 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 | 1362 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
1341 echo "configure:1342: checking for minix/config.h" >&5 | 1363 echo "configure:1364: checking for minix/config.h" >&5 |
1342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 1364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1343 echo $ac_n "(cached) $ac_c" 1>&6 | 1365 echo $ac_n "(cached) $ac_c" 1>&6 |
1344 else | 1366 else |
1345 cat > conftest.$ac_ext <<EOF | 1367 cat > conftest.$ac_ext <<EOF |
1346 #line 1347 "configure" | 1368 #line 1369 "configure" |
1347 #include "confdefs.h" | 1369 #include "confdefs.h" |
1348 #include <minix/config.h> | 1370 #include <minix/config.h> |
1349 EOF | 1371 EOF |
1350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1351 { (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1373 { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1353 if test -z "$ac_err"; then | 1375 if test -z "$ac_err"; then |
1354 rm -rf conftest* | 1376 rm -rf conftest* |
1355 eval "ac_cv_header_$ac_safe=yes" | 1377 eval "ac_cv_header_$ac_safe=yes" |
1356 else | 1378 else |
1395 # candidate. So, let's use it below instead of gethostbyname, and see. | 1417 # candidate. So, let's use it below instead of gethostbyname, and see. |
1396 | 1418 |
1397 # [ This is ripped from GNU tar. ] | 1419 # [ This is ripped from GNU tar. ] |
1398 | 1420 |
1399 echo $ac_n "checking for gethostent""... $ac_c" 1>&6 | 1421 echo $ac_n "checking for gethostent""... $ac_c" 1>&6 |
1400 echo "configure:1401: checking for gethostent" >&5 | 1422 echo "configure:1423: checking for gethostent" >&5 |
1401 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then | 1423 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then |
1402 echo $ac_n "(cached) $ac_c" 1>&6 | 1424 echo $ac_n "(cached) $ac_c" 1>&6 |
1403 else | 1425 else |
1404 cat > conftest.$ac_ext <<EOF | 1426 cat > conftest.$ac_ext <<EOF |
1405 #line 1406 "configure" | 1427 #line 1428 "configure" |
1406 #include "confdefs.h" | 1428 #include "confdefs.h" |
1407 /* System header to define __stub macros and hopefully few prototypes, | 1429 /* System header to define __stub macros and hopefully few prototypes, |
1408 which can conflict with char gethostent(); below. */ | 1430 which can conflict with char gethostent(); below. */ |
1409 #include <assert.h> | 1431 #include <assert.h> |
1410 /* Override any gcc2 internal prototype to avoid an error. */ | 1432 /* Override any gcc2 internal prototype to avoid an error. */ |
1423 gethostent(); | 1445 gethostent(); |
1424 #endif | 1446 #endif |
1425 | 1447 |
1426 ; return 0; } | 1448 ; return 0; } |
1427 EOF | 1449 EOF |
1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1450 if { (eval echo configure:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1429 rm -rf conftest* | 1451 rm -rf conftest* |
1430 eval "ac_cv_func_gethostent=yes" | 1452 eval "ac_cv_func_gethostent=yes" |
1431 else | 1453 else |
1432 echo "configure: failed program was:" >&5 | 1454 echo "configure: failed program was:" >&5 |
1433 cat conftest.$ac_ext >&5 | 1455 cat conftest.$ac_ext >&5 |
1444 echo "$ac_t""no" 1>&6 | 1466 echo "$ac_t""no" 1>&6 |
1445 fi | 1467 fi |
1446 | 1468 |
1447 if test $ac_cv_func_gethostent = no; then | 1469 if test $ac_cv_func_gethostent = no; then |
1448 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 | 1470 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 |
1449 echo "configure:1450: checking for gethostent in -lnsl" >&5 | 1471 echo "configure:1472: checking for gethostent in -lnsl" >&5 |
1450 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` | 1472 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` |
1451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1452 echo $ac_n "(cached) $ac_c" 1>&6 | 1474 echo $ac_n "(cached) $ac_c" 1>&6 |
1453 else | 1475 else |
1454 ac_save_LIBS="$LIBS" | 1476 ac_save_LIBS="$LIBS" |
1455 LIBS="-lnsl $LIBS" | 1477 LIBS="-lnsl $LIBS" |
1456 cat > conftest.$ac_ext <<EOF | 1478 cat > conftest.$ac_ext <<EOF |
1457 #line 1458 "configure" | 1479 #line 1480 "configure" |
1458 #include "confdefs.h" | 1480 #include "confdefs.h" |
1459 /* Override any gcc2 internal prototype to avoid an error. */ | 1481 /* Override any gcc2 internal prototype to avoid an error. */ |
1460 /* We use char because int might match the return type of a gcc2 | 1482 /* We use char because int might match the return type of a gcc2 |
1461 builtin and then its argument prototype would still apply. */ | 1483 builtin and then its argument prototype would still apply. */ |
1462 char gethostent(); | 1484 char gethostent(); |
1463 | 1485 |
1464 int main() { | 1486 int main() { |
1465 gethostent() | 1487 gethostent() |
1466 ; return 0; } | 1488 ; return 0; } |
1467 EOF | 1489 EOF |
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1490 if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1469 rm -rf conftest* | 1491 rm -rf conftest* |
1470 eval "ac_cv_lib_$ac_lib_var=yes" | 1492 eval "ac_cv_lib_$ac_lib_var=yes" |
1471 else | 1493 else |
1472 echo "configure: failed program was:" >&5 | 1494 echo "configure: failed program was:" >&5 |
1473 cat conftest.$ac_ext >&5 | 1495 cat conftest.$ac_ext >&5 |
1492 echo "$ac_t""no" 1>&6 | 1514 echo "$ac_t""no" 1>&6 |
1493 fi | 1515 fi |
1494 | 1516 |
1495 fi | 1517 fi |
1496 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 | 1518 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 |
1497 echo "configure:1498: checking for setsockopt" >&5 | 1519 echo "configure:1520: checking for setsockopt" >&5 |
1498 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then | 1520 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then |
1499 echo $ac_n "(cached) $ac_c" 1>&6 | 1521 echo $ac_n "(cached) $ac_c" 1>&6 |
1500 else | 1522 else |
1501 cat > conftest.$ac_ext <<EOF | 1523 cat > conftest.$ac_ext <<EOF |
1502 #line 1503 "configure" | 1524 #line 1525 "configure" |
1503 #include "confdefs.h" | 1525 #include "confdefs.h" |
1504 /* System header to define __stub macros and hopefully few prototypes, | 1526 /* System header to define __stub macros and hopefully few prototypes, |
1505 which can conflict with char setsockopt(); below. */ | 1527 which can conflict with char setsockopt(); below. */ |
1506 #include <assert.h> | 1528 #include <assert.h> |
1507 /* Override any gcc2 internal prototype to avoid an error. */ | 1529 /* Override any gcc2 internal prototype to avoid an error. */ |
1520 setsockopt(); | 1542 setsockopt(); |
1521 #endif | 1543 #endif |
1522 | 1544 |
1523 ; return 0; } | 1545 ; return 0; } |
1524 EOF | 1546 EOF |
1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1547 if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1526 rm -rf conftest* | 1548 rm -rf conftest* |
1527 eval "ac_cv_func_setsockopt=yes" | 1549 eval "ac_cv_func_setsockopt=yes" |
1528 else | 1550 else |
1529 echo "configure: failed program was:" >&5 | 1551 echo "configure: failed program was:" >&5 |
1530 cat conftest.$ac_ext >&5 | 1552 cat conftest.$ac_ext >&5 |
1541 echo "$ac_t""no" 1>&6 | 1563 echo "$ac_t""no" 1>&6 |
1542 fi | 1564 fi |
1543 | 1565 |
1544 if test $ac_cv_func_setsockopt = no; then | 1566 if test $ac_cv_func_setsockopt = no; then |
1545 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 | 1567 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 |
1546 echo "configure:1547: checking for setsockopt in -lsocket" >&5 | 1568 echo "configure:1569: checking for setsockopt in -lsocket" >&5 |
1547 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` | 1569 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` |
1548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1549 echo $ac_n "(cached) $ac_c" 1>&6 | 1571 echo $ac_n "(cached) $ac_c" 1>&6 |
1550 else | 1572 else |
1551 ac_save_LIBS="$LIBS" | 1573 ac_save_LIBS="$LIBS" |
1552 LIBS="-lsocket $LIBS" | 1574 LIBS="-lsocket $LIBS" |
1553 cat > conftest.$ac_ext <<EOF | 1575 cat > conftest.$ac_ext <<EOF |
1554 #line 1555 "configure" | 1576 #line 1577 "configure" |
1555 #include "confdefs.h" | 1577 #include "confdefs.h" |
1556 /* Override any gcc2 internal prototype to avoid an error. */ | 1578 /* Override any gcc2 internal prototype to avoid an error. */ |
1557 /* We use char because int might match the return type of a gcc2 | 1579 /* We use char because int might match the return type of a gcc2 |
1558 builtin and then its argument prototype would still apply. */ | 1580 builtin and then its argument prototype would still apply. */ |
1559 char setsockopt(); | 1581 char setsockopt(); |
1560 | 1582 |
1561 int main() { | 1583 int main() { |
1562 setsockopt() | 1584 setsockopt() |
1563 ; return 0; } | 1585 ; return 0; } |
1564 EOF | 1586 EOF |
1565 if { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1587 if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1566 rm -rf conftest* | 1588 rm -rf conftest* |
1567 eval "ac_cv_lib_$ac_lib_var=yes" | 1589 eval "ac_cv_lib_$ac_lib_var=yes" |
1568 else | 1590 else |
1569 echo "configure: failed program was:" >&5 | 1591 echo "configure: failed program was:" >&5 |
1570 cat conftest.$ac_ext >&5 | 1592 cat conftest.$ac_ext >&5 |
1591 | 1613 |
1592 fi | 1614 fi |
1593 | 1615 |
1594 | 1616 |
1595 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6 | 1617 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6 |
1596 echo "configure:1597: checking for gdbm_open in -lgdbm" >&5 | 1618 echo "configure:1619: checking for gdbm_open in -lgdbm" >&5 |
1597 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'` | 1619 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'` |
1598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1599 echo $ac_n "(cached) $ac_c" 1>&6 | 1621 echo $ac_n "(cached) $ac_c" 1>&6 |
1600 else | 1622 else |
1601 ac_save_LIBS="$LIBS" | 1623 ac_save_LIBS="$LIBS" |
1602 LIBS="-lgdbm $LIBS" | 1624 LIBS="-lgdbm $LIBS" |
1603 cat > conftest.$ac_ext <<EOF | 1625 cat > conftest.$ac_ext <<EOF |
1604 #line 1605 "configure" | 1626 #line 1627 "configure" |
1605 #include "confdefs.h" | 1627 #include "confdefs.h" |
1606 /* Override any gcc2 internal prototype to avoid an error. */ | 1628 /* Override any gcc2 internal prototype to avoid an error. */ |
1607 /* We use char because int might match the return type of a gcc2 | 1629 /* We use char because int might match the return type of a gcc2 |
1608 builtin and then its argument prototype would still apply. */ | 1630 builtin and then its argument prototype would still apply. */ |
1609 char gdbm_open(); | 1631 char gdbm_open(); |
1610 | 1632 |
1611 int main() { | 1633 int main() { |
1612 gdbm_open() | 1634 gdbm_open() |
1613 ; return 0; } | 1635 ; return 0; } |
1614 EOF | 1636 EOF |
1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1637 if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1616 rm -rf conftest* | 1638 rm -rf conftest* |
1617 eval "ac_cv_lib_$ac_lib_var=yes" | 1639 eval "ac_cv_lib_$ac_lib_var=yes" |
1618 else | 1640 else |
1619 echo "configure: failed program was:" >&5 | 1641 echo "configure: failed program was:" >&5 |
1620 cat conftest.$ac_ext >&5 | 1642 cat conftest.$ac_ext >&5 |
1641 | 1663 |
1642 | 1664 |
1643 | 1665 |
1644 | 1666 |
1645 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 1667 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1646 echo "configure:1647: checking for ANSI C header files" >&5 | 1668 echo "configure:1669: checking for ANSI C header files" >&5 |
1647 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 1669 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1648 echo $ac_n "(cached) $ac_c" 1>&6 | 1670 echo $ac_n "(cached) $ac_c" 1>&6 |
1649 else | 1671 else |
1650 cat > conftest.$ac_ext <<EOF | 1672 cat > conftest.$ac_ext <<EOF |
1651 #line 1652 "configure" | 1673 #line 1674 "configure" |
1652 #include "confdefs.h" | 1674 #include "confdefs.h" |
1653 #include <stdlib.h> | 1675 #include <stdlib.h> |
1654 #include <stdarg.h> | 1676 #include <stdarg.h> |
1655 #include <string.h> | 1677 #include <string.h> |
1656 #include <float.h> | 1678 #include <float.h> |
1657 EOF | 1679 EOF |
1658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1659 { (eval echo configure:1660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1681 { (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1661 if test -z "$ac_err"; then | 1683 if test -z "$ac_err"; then |
1662 rm -rf conftest* | 1684 rm -rf conftest* |
1663 ac_cv_header_stdc=yes | 1685 ac_cv_header_stdc=yes |
1664 else | 1686 else |
1671 rm -f conftest* | 1693 rm -f conftest* |
1672 | 1694 |
1673 if test $ac_cv_header_stdc = yes; then | 1695 if test $ac_cv_header_stdc = yes; then |
1674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 1696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1675 cat > conftest.$ac_ext <<EOF | 1697 cat > conftest.$ac_ext <<EOF |
1676 #line 1677 "configure" | 1698 #line 1699 "configure" |
1677 #include "confdefs.h" | 1699 #include "confdefs.h" |
1678 #include <string.h> | 1700 #include <string.h> |
1679 EOF | 1701 EOF |
1680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 1702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1681 egrep "memchr" >/dev/null 2>&1; then | 1703 egrep "memchr" >/dev/null 2>&1; then |
1689 fi | 1711 fi |
1690 | 1712 |
1691 if test $ac_cv_header_stdc = yes; then | 1713 if test $ac_cv_header_stdc = yes; then |
1692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 1714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1693 cat > conftest.$ac_ext <<EOF | 1715 cat > conftest.$ac_ext <<EOF |
1694 #line 1695 "configure" | 1716 #line 1717 "configure" |
1695 #include "confdefs.h" | 1717 #include "confdefs.h" |
1696 #include <stdlib.h> | 1718 #include <stdlib.h> |
1697 EOF | 1719 EOF |
1698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 1720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1699 egrep "free" >/dev/null 2>&1; then | 1721 egrep "free" >/dev/null 2>&1; then |
1710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 1732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1711 if test "$cross_compiling" = yes; then | 1733 if test "$cross_compiling" = yes; then |
1712 : | 1734 : |
1713 else | 1735 else |
1714 cat > conftest.$ac_ext <<EOF | 1736 cat > conftest.$ac_ext <<EOF |
1715 #line 1716 "configure" | 1737 #line 1738 "configure" |
1716 #include "confdefs.h" | 1738 #include "confdefs.h" |
1717 #include <ctype.h> | 1739 #include <ctype.h> |
1718 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 1740 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1719 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 1741 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 1742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1721 int main () { int i; for (i = 0; i < 256; i++) | 1743 int main () { int i; for (i = 0; i < 256; i++) |
1722 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 1744 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1723 exit (0); } | 1745 exit (0); } |
1724 | 1746 |
1725 EOF | 1747 EOF |
1726 if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1727 then | 1749 then |
1728 : | 1750 : |
1729 else | 1751 else |
1730 echo "configure: failed program was:" >&5 | 1752 echo "configure: failed program was:" >&5 |
1731 cat conftest.$ac_ext >&5 | 1753 cat conftest.$ac_ext >&5 |
1749 ac_header_dirent=no | 1771 ac_header_dirent=no |
1750 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | 1772 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
1751 do | 1773 do |
1752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 1774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1753 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | 1775 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
1754 echo "configure:1755: checking for $ac_hdr that defines DIR" >&5 | 1776 echo "configure:1777: checking for $ac_hdr that defines DIR" >&5 |
1755 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then | 1777 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
1756 echo $ac_n "(cached) $ac_c" 1>&6 | 1778 echo $ac_n "(cached) $ac_c" 1>&6 |
1757 else | 1779 else |
1758 cat > conftest.$ac_ext <<EOF | 1780 cat > conftest.$ac_ext <<EOF |
1759 #line 1760 "configure" | 1781 #line 1782 "configure" |
1760 #include "confdefs.h" | 1782 #include "confdefs.h" |
1761 #include <sys/types.h> | 1783 #include <sys/types.h> |
1762 #include <$ac_hdr> | 1784 #include <$ac_hdr> |
1763 int main() { | 1785 int main() { |
1764 DIR *dirp = 0; | 1786 DIR *dirp = 0; |
1765 ; return 0; } | 1787 ; return 0; } |
1766 EOF | 1788 EOF |
1767 if { (eval echo configure:1768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 1789 if { (eval echo configure:1790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1768 rm -rf conftest* | 1790 rm -rf conftest* |
1769 eval "ac_cv_header_dirent_$ac_safe=yes" | 1791 eval "ac_cv_header_dirent_$ac_safe=yes" |
1770 else | 1792 else |
1771 echo "configure: failed program was:" >&5 | 1793 echo "configure: failed program was:" >&5 |
1772 cat conftest.$ac_ext >&5 | 1794 cat conftest.$ac_ext >&5 |
1787 fi | 1809 fi |
1788 done | 1810 done |
1789 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 1811 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
1790 if test $ac_header_dirent = dirent.h; then | 1812 if test $ac_header_dirent = dirent.h; then |
1791 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | 1813 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
1792 echo "configure:1793: checking for opendir in -ldir" >&5 | 1814 echo "configure:1815: checking for opendir in -ldir" >&5 |
1793 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` | 1815 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
1794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1795 echo $ac_n "(cached) $ac_c" 1>&6 | 1817 echo $ac_n "(cached) $ac_c" 1>&6 |
1796 else | 1818 else |
1797 ac_save_LIBS="$LIBS" | 1819 ac_save_LIBS="$LIBS" |
1798 LIBS="-ldir $LIBS" | 1820 LIBS="-ldir $LIBS" |
1799 cat > conftest.$ac_ext <<EOF | 1821 cat > conftest.$ac_ext <<EOF |
1800 #line 1801 "configure" | 1822 #line 1823 "configure" |
1801 #include "confdefs.h" | 1823 #include "confdefs.h" |
1802 /* Override any gcc2 internal prototype to avoid an error. */ | 1824 /* Override any gcc2 internal prototype to avoid an error. */ |
1803 /* We use char because int might match the return type of a gcc2 | 1825 /* We use char because int might match the return type of a gcc2 |
1804 builtin and then its argument prototype would still apply. */ | 1826 builtin and then its argument prototype would still apply. */ |
1805 char opendir(); | 1827 char opendir(); |
1806 | 1828 |
1807 int main() { | 1829 int main() { |
1808 opendir() | 1830 opendir() |
1809 ; return 0; } | 1831 ; return 0; } |
1810 EOF | 1832 EOF |
1811 if { (eval echo configure:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1833 if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1812 rm -rf conftest* | 1834 rm -rf conftest* |
1813 eval "ac_cv_lib_$ac_lib_var=yes" | 1835 eval "ac_cv_lib_$ac_lib_var=yes" |
1814 else | 1836 else |
1815 echo "configure: failed program was:" >&5 | 1837 echo "configure: failed program was:" >&5 |
1816 cat conftest.$ac_ext >&5 | 1838 cat conftest.$ac_ext >&5 |
1828 echo "$ac_t""no" 1>&6 | 1850 echo "$ac_t""no" 1>&6 |
1829 fi | 1851 fi |
1830 | 1852 |
1831 else | 1853 else |
1832 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | 1854 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
1833 echo "configure:1834: checking for opendir in -lx" >&5 | 1855 echo "configure:1856: checking for opendir in -lx" >&5 |
1834 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` | 1856 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
1835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1836 echo $ac_n "(cached) $ac_c" 1>&6 | 1858 echo $ac_n "(cached) $ac_c" 1>&6 |
1837 else | 1859 else |
1838 ac_save_LIBS="$LIBS" | 1860 ac_save_LIBS="$LIBS" |
1839 LIBS="-lx $LIBS" | 1861 LIBS="-lx $LIBS" |
1840 cat > conftest.$ac_ext <<EOF | 1862 cat > conftest.$ac_ext <<EOF |
1841 #line 1842 "configure" | 1863 #line 1864 "configure" |
1842 #include "confdefs.h" | 1864 #include "confdefs.h" |
1843 /* Override any gcc2 internal prototype to avoid an error. */ | 1865 /* Override any gcc2 internal prototype to avoid an error. */ |
1844 /* We use char because int might match the return type of a gcc2 | 1866 /* We use char because int might match the return type of a gcc2 |
1845 builtin and then its argument prototype would still apply. */ | 1867 builtin and then its argument prototype would still apply. */ |
1846 char opendir(); | 1868 char opendir(); |
1847 | 1869 |
1848 int main() { | 1870 int main() { |
1849 opendir() | 1871 opendir() |
1850 ; return 0; } | 1872 ; return 0; } |
1851 EOF | 1873 EOF |
1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1874 if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1853 rm -rf conftest* | 1875 rm -rf conftest* |
1854 eval "ac_cv_lib_$ac_lib_var=yes" | 1876 eval "ac_cv_lib_$ac_lib_var=yes" |
1855 else | 1877 else |
1856 echo "configure: failed program was:" >&5 | 1878 echo "configure: failed program was:" >&5 |
1857 cat conftest.$ac_ext >&5 | 1879 cat conftest.$ac_ext >&5 |
1873 | 1895 |
1874 for ac_hdr in gdbm.h syslog.h sys/resource.h sys/utsname.h | 1896 for ac_hdr in gdbm.h syslog.h sys/resource.h sys/utsname.h |
1875 do | 1897 do |
1876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 1898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 1899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1878 echo "configure:1879: checking for $ac_hdr" >&5 | 1900 echo "configure:1901: checking for $ac_hdr" >&5 |
1879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 1901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1880 echo $ac_n "(cached) $ac_c" 1>&6 | 1902 echo $ac_n "(cached) $ac_c" 1>&6 |
1881 else | 1903 else |
1882 cat > conftest.$ac_ext <<EOF | 1904 cat > conftest.$ac_ext <<EOF |
1883 #line 1884 "configure" | 1905 #line 1906 "configure" |
1884 #include "confdefs.h" | 1906 #include "confdefs.h" |
1885 #include <$ac_hdr> | 1907 #include <$ac_hdr> |
1886 EOF | 1908 EOF |
1887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1888 { (eval echo configure:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1910 { (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1890 if test -z "$ac_err"; then | 1912 if test -z "$ac_err"; then |
1891 rm -rf conftest* | 1913 rm -rf conftest* |
1892 eval "ac_cv_header_$ac_safe=yes" | 1914 eval "ac_cv_header_$ac_safe=yes" |
1893 else | 1915 else |
1913 | 1935 |
1914 for ac_hdr in fnmatch.h errno.h getopt.h time.h sys/time.h signal.h | 1936 for ac_hdr in fnmatch.h errno.h getopt.h time.h sys/time.h signal.h |
1915 do | 1937 do |
1916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 1938 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 1939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1918 echo "configure:1919: checking for $ac_hdr" >&5 | 1940 echo "configure:1941: checking for $ac_hdr" >&5 |
1919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 1941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1920 echo $ac_n "(cached) $ac_c" 1>&6 | 1942 echo $ac_n "(cached) $ac_c" 1>&6 |
1921 else | 1943 else |
1922 cat > conftest.$ac_ext <<EOF | 1944 cat > conftest.$ac_ext <<EOF |
1923 #line 1924 "configure" | 1945 #line 1946 "configure" |
1924 #include "confdefs.h" | 1946 #include "confdefs.h" |
1925 #include <$ac_hdr> | 1947 #include <$ac_hdr> |
1926 EOF | 1948 EOF |
1927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1928 { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1950 { (eval echo configure:1951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1930 if test -z "$ac_err"; then | 1952 if test -z "$ac_err"; then |
1931 rm -rf conftest* | 1953 rm -rf conftest* |
1932 eval "ac_cv_header_$ac_safe=yes" | 1954 eval "ac_cv_header_$ac_safe=yes" |
1933 else | 1955 else |
1953 | 1975 |
1954 for ac_hdr in netdb.h sys/socket.h fcntl.h limits.h unistd.h | 1976 for ac_hdr in netdb.h sys/socket.h fcntl.h limits.h unistd.h |
1955 do | 1977 do |
1956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 1978 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 1979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1958 echo "configure:1959: checking for $ac_hdr" >&5 | 1980 echo "configure:1981: checking for $ac_hdr" >&5 |
1959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 1981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1960 echo $ac_n "(cached) $ac_c" 1>&6 | 1982 echo $ac_n "(cached) $ac_c" 1>&6 |
1961 else | 1983 else |
1962 cat > conftest.$ac_ext <<EOF | 1984 cat > conftest.$ac_ext <<EOF |
1963 #line 1964 "configure" | 1985 #line 1986 "configure" |
1964 #include "confdefs.h" | 1986 #include "confdefs.h" |
1965 #include <$ac_hdr> | 1987 #include <$ac_hdr> |
1966 EOF | 1988 EOF |
1967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1968 { (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1990 { (eval echo configure:1991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1970 if test -z "$ac_err"; then | 1992 if test -z "$ac_err"; then |
1971 rm -rf conftest* | 1993 rm -rf conftest* |
1972 eval "ac_cv_header_$ac_safe=yes" | 1994 eval "ac_cv_header_$ac_safe=yes" |
1973 else | 1995 else |
1993 | 2015 |
1994 | 2016 |
1995 | 2017 |
1996 | 2018 |
1997 echo $ac_n "checking for working const""... $ac_c" 1>&6 | 2019 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1998 echo "configure:1999: checking for working const" >&5 | 2020 echo "configure:2021: checking for working const" >&5 |
1999 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 2021 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2000 echo $ac_n "(cached) $ac_c" 1>&6 | 2022 echo $ac_n "(cached) $ac_c" 1>&6 |
2001 else | 2023 else |
2002 cat > conftest.$ac_ext <<EOF | 2024 cat > conftest.$ac_ext <<EOF |
2003 #line 2004 "configure" | 2025 #line 2026 "configure" |
2004 #include "confdefs.h" | 2026 #include "confdefs.h" |
2005 | 2027 |
2006 int main() { | 2028 int main() { |
2007 | 2029 |
2008 /* Ultrix mips cc rejects this. */ | 2030 /* Ultrix mips cc rejects this. */ |
2009 typedef int charset[2]; const charset x = {0,0}; | 2031 typedef int charset[2]; const charset x; |
2010 /* SunOS 4.1.1 cc rejects this. */ | 2032 /* SunOS 4.1.1 cc rejects this. */ |
2011 char const *const *ccp; | 2033 char const *const *ccp; |
2012 char **p; | 2034 char **p; |
2013 /* NEC SVR4.0.2 mips cc rejects this. */ | 2035 /* NEC SVR4.0.2 mips cc rejects this. */ |
2014 struct point {int x, y;}; | 2036 struct point {int x, y;}; |
2047 const int foo = 10; | 2069 const int foo = 10; |
2048 } | 2070 } |
2049 | 2071 |
2050 ; return 0; } | 2072 ; return 0; } |
2051 EOF | 2073 EOF |
2052 if { (eval echo configure:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2074 if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2053 rm -rf conftest* | 2075 rm -rf conftest* |
2054 ac_cv_c_const=yes | 2076 ac_cv_c_const=yes |
2055 else | 2077 else |
2056 echo "configure: failed program was:" >&5 | 2078 echo "configure: failed program was:" >&5 |
2057 cat conftest.$ac_ext >&5 | 2079 cat conftest.$ac_ext >&5 |
2068 EOF | 2090 EOF |
2069 | 2091 |
2070 fi | 2092 fi |
2071 | 2093 |
2072 echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 2094 echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
2073 echo "configure:2074: checking for size_t" >&5 | 2095 echo "configure:2096: checking for size_t" >&5 |
2074 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 2096 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
2075 echo $ac_n "(cached) $ac_c" 1>&6 | 2097 echo $ac_n "(cached) $ac_c" 1>&6 |
2076 else | 2098 else |
2077 cat > conftest.$ac_ext <<EOF | 2099 cat > conftest.$ac_ext <<EOF |
2078 #line 2079 "configure" | 2100 #line 2101 "configure" |
2079 #include "confdefs.h" | 2101 #include "confdefs.h" |
2080 #include <sys/types.h> | 2102 #include <sys/types.h> |
2081 #if STDC_HEADERS | 2103 #if STDC_HEADERS |
2082 #include <stdlib.h> | 2104 #include <stdlib.h> |
2083 #include <stddef.h> | 2105 #include <stddef.h> |
2101 EOF | 2123 EOF |
2102 | 2124 |
2103 fi | 2125 fi |
2104 | 2126 |
2105 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 2127 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
2106 echo "configure:2107: checking whether time.h and sys/time.h may both be included" >&5 | 2128 echo "configure:2129: checking whether time.h and sys/time.h may both be included" >&5 |
2107 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 2129 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2108 echo $ac_n "(cached) $ac_c" 1>&6 | 2130 echo $ac_n "(cached) $ac_c" 1>&6 |
2109 else | 2131 else |
2110 cat > conftest.$ac_ext <<EOF | 2132 cat > conftest.$ac_ext <<EOF |
2111 #line 2112 "configure" | 2133 #line 2134 "configure" |
2112 #include "confdefs.h" | 2134 #include "confdefs.h" |
2113 #include <sys/types.h> | 2135 #include <sys/types.h> |
2114 #include <sys/time.h> | 2136 #include <sys/time.h> |
2115 #include <time.h> | 2137 #include <time.h> |
2116 int main() { | 2138 int main() { |
2117 struct tm *tp; | 2139 struct tm *tp; |
2118 ; return 0; } | 2140 ; return 0; } |
2119 EOF | 2141 EOF |
2120 if { (eval echo configure:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2142 if { (eval echo configure:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2121 rm -rf conftest* | 2143 rm -rf conftest* |
2122 ac_cv_header_time=yes | 2144 ac_cv_header_time=yes |
2123 else | 2145 else |
2124 echo "configure: failed program was:" >&5 | 2146 echo "configure: failed program was:" >&5 |
2125 cat conftest.$ac_ext >&5 | 2147 cat conftest.$ac_ext >&5 |
2136 EOF | 2158 EOF |
2137 | 2159 |
2138 fi | 2160 fi |
2139 | 2161 |
2140 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 2162 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
2141 echo "configure:2142: checking whether struct tm is in sys/time.h or time.h" >&5 | 2163 echo "configure:2164: checking whether struct tm is in sys/time.h or time.h" >&5 |
2142 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 2164 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2143 echo $ac_n "(cached) $ac_c" 1>&6 | 2165 echo $ac_n "(cached) $ac_c" 1>&6 |
2144 else | 2166 else |
2145 cat > conftest.$ac_ext <<EOF | 2167 cat > conftest.$ac_ext <<EOF |
2146 #line 2147 "configure" | 2168 #line 2169 "configure" |
2147 #include "confdefs.h" | 2169 #include "confdefs.h" |
2148 #include <sys/types.h> | 2170 #include <sys/types.h> |
2149 #include <time.h> | 2171 #include <time.h> |
2150 int main() { | 2172 int main() { |
2151 struct tm *tp; tp->tm_sec; | 2173 struct tm *tp; tp->tm_sec; |
2152 ; return 0; } | 2174 ; return 0; } |
2153 EOF | 2175 EOF |
2154 if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2176 if { (eval echo configure:2177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2155 rm -rf conftest* | 2177 rm -rf conftest* |
2156 ac_cv_struct_tm=time.h | 2178 ac_cv_struct_tm=time.h |
2157 else | 2179 else |
2158 echo "configure: failed program was:" >&5 | 2180 echo "configure: failed program was:" >&5 |
2159 cat conftest.$ac_ext >&5 | 2181 cat conftest.$ac_ext >&5 |
2171 | 2193 |
2172 fi | 2194 fi |
2173 | 2195 |
2174 | 2196 |
2175 echo $ac_n "checking socklen_t""... $ac_c" 1>&6 | 2197 echo $ac_n "checking socklen_t""... $ac_c" 1>&6 |
2176 echo "configure:2177: checking socklen_t" >&5 | 2198 echo "configure:2199: checking socklen_t" >&5 |
2177 if eval "test \"`echo '$''{'noffle_cv_type_socklen_t'+set}'`\" = set"; then | 2199 if eval "test \"`echo '$''{'noffle_cv_type_socklen_t'+set}'`\" = set"; then |
2178 echo $ac_n "(cached) $ac_c" 1>&6 | 2200 echo $ac_n "(cached) $ac_c" 1>&6 |
2179 else | 2201 else |
2180 cat > conftest.$ac_ext <<EOF | 2202 cat > conftest.$ac_ext <<EOF |
2181 #line 2182 "configure" | 2203 #line 2204 "configure" |
2182 #include "confdefs.h" | 2204 #include "confdefs.h" |
2183 | 2205 |
2184 #include <sys/types.h> | 2206 #include <sys/types.h> |
2185 #include <sys/socket.h> | 2207 #include <sys/socket.h> |
2186 | 2208 |
2187 int main() { | 2209 int main() { |
2188 socklen_t s; | 2210 socklen_t s; |
2189 ; return 0; } | 2211 ; return 0; } |
2190 EOF | 2212 EOF |
2191 if { (eval echo configure:2192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2213 if { (eval echo configure:2214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2192 rm -rf conftest* | 2214 rm -rf conftest* |
2193 noffle_cv_type_socklen_t=yes | 2215 noffle_cv_type_socklen_t=yes |
2194 else | 2216 else |
2195 echo "configure: failed program was:" >&5 | 2217 echo "configure: failed program was:" >&5 |
2196 cat conftest.$ac_ext >&5 | 2218 cat conftest.$ac_ext >&5 |
2212 fi | 2234 fi |
2213 | 2235 |
2214 | 2236 |
2215 | 2237 |
2216 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 2238 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
2217 echo "configure:2218: checking return type of signal handlers" >&5 | 2239 echo "configure:2240: checking return type of signal handlers" >&5 |
2218 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 2240 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2219 echo $ac_n "(cached) $ac_c" 1>&6 | 2241 echo $ac_n "(cached) $ac_c" 1>&6 |
2220 else | 2242 else |
2221 cat > conftest.$ac_ext <<EOF | 2243 cat > conftest.$ac_ext <<EOF |
2222 #line 2223 "configure" | 2244 #line 2245 "configure" |
2223 #include "confdefs.h" | 2245 #include "confdefs.h" |
2224 #include <sys/types.h> | 2246 #include <sys/types.h> |
2225 #include <signal.h> | 2247 #include <signal.h> |
2226 #ifdef signal | 2248 #ifdef signal |
2227 #undef signal | 2249 #undef signal |
2234 | 2256 |
2235 int main() { | 2257 int main() { |
2236 int i; | 2258 int i; |
2237 ; return 0; } | 2259 ; return 0; } |
2238 EOF | 2260 EOF |
2239 if { (eval echo configure:2240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2261 if { (eval echo configure:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2240 rm -rf conftest* | 2262 rm -rf conftest* |
2241 ac_cv_type_signal=void | 2263 ac_cv_type_signal=void |
2242 else | 2264 else |
2243 echo "configure: failed program was:" >&5 | 2265 echo "configure: failed program was:" >&5 |
2244 cat conftest.$ac_ext >&5 | 2266 cat conftest.$ac_ext >&5 |
2253 #define RETSIGTYPE $ac_cv_type_signal | 2275 #define RETSIGTYPE $ac_cv_type_signal |
2254 EOF | 2276 EOF |
2255 | 2277 |
2256 | 2278 |
2257 echo $ac_n "checking for strftime""... $ac_c" 1>&6 | 2279 echo $ac_n "checking for strftime""... $ac_c" 1>&6 |
2258 echo "configure:2259: checking for strftime" >&5 | 2280 echo "configure:2281: checking for strftime" >&5 |
2259 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then | 2281 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then |
2260 echo $ac_n "(cached) $ac_c" 1>&6 | 2282 echo $ac_n "(cached) $ac_c" 1>&6 |
2261 else | 2283 else |
2262 cat > conftest.$ac_ext <<EOF | 2284 cat > conftest.$ac_ext <<EOF |
2263 #line 2264 "configure" | 2285 #line 2286 "configure" |
2264 #include "confdefs.h" | 2286 #include "confdefs.h" |
2265 /* System header to define __stub macros and hopefully few prototypes, | 2287 /* System header to define __stub macros and hopefully few prototypes, |
2266 which can conflict with char strftime(); below. */ | 2288 which can conflict with char strftime(); below. */ |
2267 #include <assert.h> | 2289 #include <assert.h> |
2268 /* Override any gcc2 internal prototype to avoid an error. */ | 2290 /* Override any gcc2 internal prototype to avoid an error. */ |
2281 strftime(); | 2303 strftime(); |
2282 #endif | 2304 #endif |
2283 | 2305 |
2284 ; return 0; } | 2306 ; return 0; } |
2285 EOF | 2307 EOF |
2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2308 if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2287 rm -rf conftest* | 2309 rm -rf conftest* |
2288 eval "ac_cv_func_strftime=yes" | 2310 eval "ac_cv_func_strftime=yes" |
2289 else | 2311 else |
2290 echo "configure: failed program was:" >&5 | 2312 echo "configure: failed program was:" >&5 |
2291 cat conftest.$ac_ext >&5 | 2313 cat conftest.$ac_ext >&5 |
2303 | 2325 |
2304 else | 2326 else |
2305 echo "$ac_t""no" 1>&6 | 2327 echo "$ac_t""no" 1>&6 |
2306 # strftime is in -lintl on SCO UNIX. | 2328 # strftime is in -lintl on SCO UNIX. |
2307 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 | 2329 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 |
2308 echo "configure:2309: checking for strftime in -lintl" >&5 | 2330 echo "configure:2331: checking for strftime in -lintl" >&5 |
2309 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` | 2331 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` |
2310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 2332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2311 echo $ac_n "(cached) $ac_c" 1>&6 | 2333 echo $ac_n "(cached) $ac_c" 1>&6 |
2312 else | 2334 else |
2313 ac_save_LIBS="$LIBS" | 2335 ac_save_LIBS="$LIBS" |
2314 LIBS="-lintl $LIBS" | 2336 LIBS="-lintl $LIBS" |
2315 cat > conftest.$ac_ext <<EOF | 2337 cat > conftest.$ac_ext <<EOF |
2316 #line 2317 "configure" | 2338 #line 2339 "configure" |
2317 #include "confdefs.h" | 2339 #include "confdefs.h" |
2318 /* Override any gcc2 internal prototype to avoid an error. */ | 2340 /* Override any gcc2 internal prototype to avoid an error. */ |
2319 /* We use char because int might match the return type of a gcc2 | 2341 /* We use char because int might match the return type of a gcc2 |
2320 builtin and then its argument prototype would still apply. */ | 2342 builtin and then its argument prototype would still apply. */ |
2321 char strftime(); | 2343 char strftime(); |
2322 | 2344 |
2323 int main() { | 2345 int main() { |
2324 strftime() | 2346 strftime() |
2325 ; return 0; } | 2347 ; return 0; } |
2326 EOF | 2348 EOF |
2327 if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2349 if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2328 rm -rf conftest* | 2350 rm -rf conftest* |
2329 eval "ac_cv_lib_$ac_lib_var=yes" | 2351 eval "ac_cv_lib_$ac_lib_var=yes" |
2330 else | 2352 else |
2331 echo "configure: failed program was:" >&5 | 2353 echo "configure: failed program was:" >&5 |
2332 cat conftest.$ac_ext >&5 | 2354 cat conftest.$ac_ext >&5 |
2349 fi | 2371 fi |
2350 | 2372 |
2351 fi | 2373 fi |
2352 | 2374 |
2353 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6 | 2375 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6 |
2354 echo "configure:2355: checking for working fnmatch" >&5 | 2376 echo "configure:2377: checking for working fnmatch" >&5 |
2355 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then | 2377 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then |
2356 echo $ac_n "(cached) $ac_c" 1>&6 | 2378 echo $ac_n "(cached) $ac_c" 1>&6 |
2357 else | 2379 else |
2358 # Some versions of Solaris or SCO have a broken fnmatch function. | 2380 # Some versions of Solaris or SCO have a broken fnmatch function. |
2359 # So we run a test program. If we are cross-compiling, take no chance. | 2381 # So we run a test program. If we are cross-compiling, take no chance. |
2360 # Thanks to John Oleynick and Franc,ois Pinard for this test. | 2382 # Thanks to John Oleynick and Franc,ois Pinard for this test. |
2361 if test "$cross_compiling" = yes; then | 2383 if test "$cross_compiling" = yes; then |
2362 ac_cv_func_fnmatch_works=no | 2384 ac_cv_func_fnmatch_works=no |
2363 else | 2385 else |
2364 cat > conftest.$ac_ext <<EOF | 2386 cat > conftest.$ac_ext <<EOF |
2365 #line 2366 "configure" | 2387 #line 2388 "configure" |
2366 #include "confdefs.h" | 2388 #include "confdefs.h" |
2367 main() { exit (fnmatch ("a*", "abc", 0) != 0); } | 2389 main() { exit (fnmatch ("a*", "abc", 0) != 0); } |
2368 EOF | 2390 EOF |
2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 2391 if { (eval echo configure:2392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2370 then | 2392 then |
2371 ac_cv_func_fnmatch_works=yes | 2393 ac_cv_func_fnmatch_works=yes |
2372 else | 2394 else |
2373 echo "configure: failed program was:" >&5 | 2395 echo "configure: failed program was:" >&5 |
2374 cat conftest.$ac_ext >&5 | 2396 cat conftest.$ac_ext >&5 |
2389 fi | 2411 fi |
2390 | 2412 |
2391 for ac_func in fdopen vsnprintf snprintf __vsnprintf __snprintf | 2413 for ac_func in fdopen vsnprintf snprintf __vsnprintf __snprintf |
2392 do | 2414 do |
2393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 2415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2394 echo "configure:2395: checking for $ac_func" >&5 | 2416 echo "configure:2417: checking for $ac_func" >&5 |
2395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 2417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2396 echo $ac_n "(cached) $ac_c" 1>&6 | 2418 echo $ac_n "(cached) $ac_c" 1>&6 |
2397 else | 2419 else |
2398 cat > conftest.$ac_ext <<EOF | 2420 cat > conftest.$ac_ext <<EOF |
2399 #line 2400 "configure" | 2421 #line 2422 "configure" |
2400 #include "confdefs.h" | 2422 #include "confdefs.h" |
2401 /* System header to define __stub macros and hopefully few prototypes, | 2423 /* System header to define __stub macros and hopefully few prototypes, |
2402 which can conflict with char $ac_func(); below. */ | 2424 which can conflict with char $ac_func(); below. */ |
2403 #include <assert.h> | 2425 #include <assert.h> |
2404 /* Override any gcc2 internal prototype to avoid an error. */ | 2426 /* Override any gcc2 internal prototype to avoid an error. */ |
2417 $ac_func(); | 2439 $ac_func(); |
2418 #endif | 2440 #endif |
2419 | 2441 |
2420 ; return 0; } | 2442 ; return 0; } |
2421 EOF | 2443 EOF |
2422 if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2423 rm -rf conftest* | 2445 rm -rf conftest* |
2424 eval "ac_cv_func_$ac_func=yes" | 2446 eval "ac_cv_func_$ac_func=yes" |
2425 else | 2447 else |
2426 echo "configure: failed program was:" >&5 | 2448 echo "configure: failed program was:" >&5 |
2427 cat conftest.$ac_ext >&5 | 2449 cat conftest.$ac_ext >&5 |
2444 done | 2466 done |
2445 | 2467 |
2446 for ac_func in gethostname mkdir mktime select socket strerror strstr uname | 2468 for ac_func in gethostname mkdir mktime select socket strerror strstr uname |
2447 do | 2469 do |
2448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 2470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2449 echo "configure:2450: checking for $ac_func" >&5 | 2471 echo "configure:2472: checking for $ac_func" >&5 |
2450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 2472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2451 echo $ac_n "(cached) $ac_c" 1>&6 | 2473 echo $ac_n "(cached) $ac_c" 1>&6 |
2452 else | 2474 else |
2453 cat > conftest.$ac_ext <<EOF | 2475 cat > conftest.$ac_ext <<EOF |
2454 #line 2455 "configure" | 2476 #line 2477 "configure" |
2455 #include "confdefs.h" | 2477 #include "confdefs.h" |
2456 /* System header to define __stub macros and hopefully few prototypes, | 2478 /* System header to define __stub macros and hopefully few prototypes, |
2457 which can conflict with char $ac_func(); below. */ | 2479 which can conflict with char $ac_func(); below. */ |
2458 #include <assert.h> | 2480 #include <assert.h> |
2459 /* Override any gcc2 internal prototype to avoid an error. */ | 2481 /* Override any gcc2 internal prototype to avoid an error. */ |
2472 $ac_func(); | 2494 $ac_func(); |
2473 #endif | 2495 #endif |
2474 | 2496 |
2475 ; return 0; } | 2497 ; return 0; } |
2476 EOF | 2498 EOF |
2477 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2478 rm -rf conftest* | 2500 rm -rf conftest* |
2479 eval "ac_cv_func_$ac_func=yes" | 2501 eval "ac_cv_func_$ac_func=yes" |
2480 else | 2502 else |
2481 echo "configure: failed program was:" >&5 | 2503 echo "configure: failed program was:" >&5 |
2482 cat conftest.$ac_ext >&5 | 2504 cat conftest.$ac_ext >&5 |
2528 # Check whether --with-docdir or --without-docdir was given. | 2550 # Check whether --with-docdir or --without-docdir was given. |
2529 if test "${with_docdir+set}" = set; then | 2551 if test "${with_docdir+set}" = set; then |
2530 withval="$with_docdir" | 2552 withval="$with_docdir" |
2531 noffle_cv_docdir=$withval | 2553 noffle_cv_docdir=$withval |
2532 else | 2554 else |
2533 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6 | 2555 echo $ac_n "checking other documentation directory""... $ac_c" 1>&6 |
2534 echo "configure:2535: checking where to put the documentation" >&5 | 2556 echo "configure:2557: checking other documentation directory" >&5 |
2535 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then | 2557 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then |
2536 echo $ac_n "(cached) $ac_c" 1>&6 | 2558 echo $ac_n "(cached) $ac_c" 1>&6 |
2537 else | 2559 else |
2538 if test x$prefix = xNONE; then | 2560 if test x$prefix = xNONE; then |
2539 noffle_cv_prefix=$ac_default_prefix | 2561 noffle_cv_prefix=$ac_default_prefix |
2548 | 2570 |
2549 fi | 2571 fi |
2550 | 2572 |
2551 | 2573 |
2552 echo $ac_n "checking spooldir""... $ac_c" 1>&6 | 2574 echo $ac_n "checking spooldir""... $ac_c" 1>&6 |
2553 echo "configure:2554: checking spooldir" >&5 | 2575 echo "configure:2576: checking spooldir" >&5 |
2554 # Check whether --with-spooldir or --without-spooldir was given. | 2576 # Check whether --with-spooldir or --without-spooldir was given. |
2555 if test "${with_spooldir+set}" = set; then | 2577 if test "${with_spooldir+set}" = set; then |
2556 withval="$with_spooldir" | 2578 withval="$with_spooldir" |
2557 if echo "$withval" | egrep >/dev/null -v '^/' ; then | 2579 if echo "$withval" | egrep >/dev/null -v '^/' ; then |
2558 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } | 2580 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } |
2571 EOF | 2593 EOF |
2572 | 2594 |
2573 | 2595 |
2574 | 2596 |
2575 echo $ac_n "checking configfile""... $ac_c" 1>&6 | 2597 echo $ac_n "checking configfile""... $ac_c" 1>&6 |
2576 echo "configure:2577: checking configfile" >&5 | 2598 echo "configure:2599: checking configfile" >&5 |
2577 # Check whether --with-configfile or --without-configfile was given. | 2599 # Check whether --with-configfile or --without-configfile was given. |
2578 if test "${with_configfile+set}" = set; then | 2600 if test "${with_configfile+set}" = set; then |
2579 withval="$with_configfile" | 2601 withval="$with_configfile" |
2580 if echo "$withval" | egrep >/dev/null -v '^/' ; then | 2602 if echo "$withval" | egrep >/dev/null -v '^/' ; then |
2581 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } | 2603 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } |