comparison configure @ 45:32ba1198c6fa noffle

[svn] * Makefile.in, configure, configure.in, docs/Makefile.in, src/Makefile.in: Added checks for the mail and sort programs. ./configure will abort if they're not found. * README: Removed the paragraph about news client software, as it's the same as the one in docs/NOTES. * TODO: Removed 'expiring by groups' and 'move some text from noffle.1 to noffle.conf.5'. * docs/NOTES: Changed the text about -DDEBUG to explain one should use './configure --enable-debug'. * docs/noffle.1, docs/noffle.conf.5: Minor fixes. Added myself and Jim Hague to the AUTHORS section :-) * src/client.h, src/common.h, src/configfile.h, src/content.c, src/content.h, src/control.c, src/control.h, src/database.h, src/dynamicstring.c, src/dynamicstring.h, src/fetch.h, src/fetchlist.h, src/group.h, src/itemlist.c, src/itemlist.h, src/lock.h, src/log.c, src/log.h, src/noffle.c, src/online.h, src/outgoing.h, src/over.c, src/over.h, src/post.h, src/protocol.h, src/pseudo.h, src/request.h, src/server.h, src/util.c, src/util.h: Added the <config.h> include. * src/content.c: Added missing include "content.h". Added a missing 'void' in the declaration of clearCont(). * src/fetchlist.c: Casted fetchlist.size to (size_t) in a call to qsort(), as qsort() expects a size_t. This removes a warning. * src/noffle.c: Made doRequested() static. Added missing void to enableCorefiles(). * src/log.c, src/protocol.c, src/online.c, src/pseudo.c: Added missing includes. * src/pseudo.c: Made genOv() and genPseudo() static. * src/server.c: Added missing void to postArts(). Made touchArticle() static. * src/util.c: Casted arguments of malloc() and memcpy() to size_t. * src/dynamicstring.c, src/itemlist.c, src/over.c, src/request.c, src/util.c: Removed casting of the result of malloc(). This is not necessary and can hide a missing include of <stdlib.h>.
author uh1763
date Sat, 06 May 2000 00:49:38 +0100
parents 2842f50feb55
children 48b7f28c3189
comparison
equal deleted inserted replaced
44:bb6a1bf61279 45:32ba1198c6fa
1245 echo "$ac_t""no" 1>&6 1245 echo "$ac_t""no" 1>&6
1246 SET_MAKE="MAKE=${MAKE-make}" 1246 SET_MAKE="MAKE=${MAKE-make}"
1247 fi 1247 fi
1248 1248
1249 1249
1250 # Extract the first word of "mail", so it can be a program name with args.
1251 set dummy mail; ac_word=$2
1252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1253 echo "configure:1254: checking for $ac_word" >&5
1254 if eval "test \"`echo '$''{'ac_cv_prog_MAILPROG'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1256 else
1257 if test -n "$MAILPROG"; then
1258 ac_cv_prog_MAILPROG="$MAILPROG" # Let the user override the test.
1259 else
1260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1261 ac_dummy="$PATH"
1262 for ac_dir in $ac_dummy; do
1263 test -z "$ac_dir" && ac_dir=.
1264 if test -f $ac_dir/$ac_word; then
1265 ac_cv_prog_MAILPROG="mail"
1266 break
1267 fi
1268 done
1269 IFS="$ac_save_ifs"
1270 fi
1271 fi
1272 MAILPROG="$ac_cv_prog_MAILPROG"
1273 if test -n "$MAILPROG"; then
1274 echo "$ac_t""$MAILPROG" 1>&6
1275 else
1276 echo "$ac_t""no" 1>&6
1277 fi
1278
1279 if test "x$MAILPROG" != "xmail"; then
1280 { echo "configure: error: mail program not found." 1>&2; exit 1; }
1281 fi
1282
1283 # Extract the first word of "sort", so it can be a program name with args.
1284 set dummy sort; ac_word=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_SORTPROG'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290 if test -n "$SORTPROG"; then
1291 ac_cv_prog_SORTPROG="$SORTPROG" # Let the user override the test.
1292 else
1293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1294 ac_dummy="$PATH"
1295 for ac_dir in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_prog_SORTPROG="sort"
1299 break
1300 fi
1301 done
1302 IFS="$ac_save_ifs"
1303 fi
1304 fi
1305 SORTPROG="$ac_cv_prog_SORTPROG"
1306 if test -n "$SORTPROG"; then
1307 echo "$ac_t""$SORTPROG" 1>&6
1308 else
1309 echo "$ac_t""no" 1>&6
1310 fi
1311
1312 if test "x$SORTPROG" != "xsort"; then
1313 { echo "configure: error: sort program not found." 1>&2; exit 1; }
1314 fi
1315
1250 1316
1251 1317
1252 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1318 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1253 echo "configure:1254: checking for AIX" >&5 1319 echo "configure:1320: checking for AIX" >&5
1254 cat > conftest.$ac_ext <<EOF 1320 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure" 1321 #line 1322 "configure"
1256 #include "confdefs.h" 1322 #include "confdefs.h"
1257 #ifdef _AIX 1323 #ifdef _AIX
1258 yes 1324 yes
1259 #endif 1325 #endif
1260 1326
1272 fi 1338 fi
1273 rm -f conftest* 1339 rm -f conftest*
1274 1340
1275 1341
1276 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1342 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1277 echo "configure:1278: checking for POSIXized ISC" >&5 1343 echo "configure:1344: checking for POSIXized ISC" >&5
1278 if test -d /etc/conf/kconfig.d && 1344 if test -d /etc/conf/kconfig.d &&
1279 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1345 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1280 then 1346 then
1281 echo "$ac_t""yes" 1>&6 1347 echo "$ac_t""yes" 1>&6
1282 ISC=yes # If later tests want to check for ISC. 1348 ISC=yes # If later tests want to check for ISC.
1294 ISC= 1360 ISC=
1295 fi 1361 fi
1296 1362
1297 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1363 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1298 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1364 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1299 echo "configure:1300: checking for minix/config.h" >&5 1365 echo "configure:1366: checking for minix/config.h" >&5
1300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6 1367 echo $ac_n "(cached) $ac_c" 1>&6
1302 else 1368 else
1303 cat > conftest.$ac_ext <<EOF 1369 cat > conftest.$ac_ext <<EOF
1304 #line 1305 "configure" 1370 #line 1371 "configure"
1305 #include "confdefs.h" 1371 #include "confdefs.h"
1306 #include <minix/config.h> 1372 #include <minix/config.h>
1307 EOF 1373 EOF
1308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1309 { (eval echo configure:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1375 { (eval echo configure:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1311 if test -z "$ac_err"; then 1377 if test -z "$ac_err"; then
1312 rm -rf conftest* 1378 rm -rf conftest*
1313 eval "ac_cv_header_$ac_safe=yes" 1379 eval "ac_cv_header_$ac_safe=yes"
1314 else 1380 else
1353 # candidate. So, let's use it below instead of gethostbyname, and see. 1419 # candidate. So, let's use it below instead of gethostbyname, and see.
1354 1420
1355 # [ This is ripped from GNU tar. ] 1421 # [ This is ripped from GNU tar. ]
1356 1422
1357 echo $ac_n "checking for gethostent""... $ac_c" 1>&6 1423 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
1358 echo "configure:1359: checking for gethostent" >&5 1424 echo "configure:1425: checking for gethostent" >&5
1359 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then 1425 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6 1426 echo $ac_n "(cached) $ac_c" 1>&6
1361 else 1427 else
1362 cat > conftest.$ac_ext <<EOF 1428 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure" 1429 #line 1430 "configure"
1364 #include "confdefs.h" 1430 #include "confdefs.h"
1365 /* System header to define __stub macros and hopefully few prototypes, 1431 /* System header to define __stub macros and hopefully few prototypes,
1366 which can conflict with char gethostent(); below. */ 1432 which can conflict with char gethostent(); below. */
1367 #include <assert.h> 1433 #include <assert.h>
1368 /* Override any gcc2 internal prototype to avoid an error. */ 1434 /* Override any gcc2 internal prototype to avoid an error. */
1381 gethostent(); 1447 gethostent();
1382 #endif 1448 #endif
1383 1449
1384 ; return 0; } 1450 ; return 0; }
1385 EOF 1451 EOF
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1452 if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1387 rm -rf conftest* 1453 rm -rf conftest*
1388 eval "ac_cv_func_gethostent=yes" 1454 eval "ac_cv_func_gethostent=yes"
1389 else 1455 else
1390 echo "configure: failed program was:" >&5 1456 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5 1457 cat conftest.$ac_ext >&5
1402 echo "$ac_t""no" 1>&6 1468 echo "$ac_t""no" 1>&6
1403 fi 1469 fi
1404 1470
1405 if test $ac_cv_func_gethostent = no; then 1471 if test $ac_cv_func_gethostent = no; then
1406 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 1472 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
1407 echo "configure:1408: checking for gethostent in -lnsl" >&5 1473 echo "configure:1474: checking for gethostent in -lnsl" >&5
1408 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` 1474 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
1409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6 1476 echo $ac_n "(cached) $ac_c" 1>&6
1411 else 1477 else
1412 ac_save_LIBS="$LIBS" 1478 ac_save_LIBS="$LIBS"
1413 LIBS="-lnsl $LIBS" 1479 LIBS="-lnsl $LIBS"
1414 cat > conftest.$ac_ext <<EOF 1480 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure" 1481 #line 1482 "configure"
1416 #include "confdefs.h" 1482 #include "confdefs.h"
1417 /* Override any gcc2 internal prototype to avoid an error. */ 1483 /* Override any gcc2 internal prototype to avoid an error. */
1418 /* We use char because int might match the return type of a gcc2 1484 /* We use char because int might match the return type of a gcc2
1419 builtin and then its argument prototype would still apply. */ 1485 builtin and then its argument prototype would still apply. */
1420 char gethostent(); 1486 char gethostent();
1421 1487
1422 int main() { 1488 int main() {
1423 gethostent() 1489 gethostent()
1424 ; return 0; } 1490 ; return 0; }
1425 EOF 1491 EOF
1426 if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1492 if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1427 rm -rf conftest* 1493 rm -rf conftest*
1428 eval "ac_cv_lib_$ac_lib_var=yes" 1494 eval "ac_cv_lib_$ac_lib_var=yes"
1429 else 1495 else
1430 echo "configure: failed program was:" >&5 1496 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5 1497 cat conftest.$ac_ext >&5
1450 echo "$ac_t""no" 1>&6 1516 echo "$ac_t""no" 1>&6
1451 fi 1517 fi
1452 1518
1453 fi 1519 fi
1454 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 1520 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
1455 echo "configure:1456: checking for setsockopt" >&5 1521 echo "configure:1522: checking for setsockopt" >&5
1456 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then 1522 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6 1523 echo $ac_n "(cached) $ac_c" 1>&6
1458 else 1524 else
1459 cat > conftest.$ac_ext <<EOF 1525 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure" 1526 #line 1527 "configure"
1461 #include "confdefs.h" 1527 #include "confdefs.h"
1462 /* System header to define __stub macros and hopefully few prototypes, 1528 /* System header to define __stub macros and hopefully few prototypes,
1463 which can conflict with char setsockopt(); below. */ 1529 which can conflict with char setsockopt(); below. */
1464 #include <assert.h> 1530 #include <assert.h>
1465 /* Override any gcc2 internal prototype to avoid an error. */ 1531 /* Override any gcc2 internal prototype to avoid an error. */
1478 setsockopt(); 1544 setsockopt();
1479 #endif 1545 #endif
1480 1546
1481 ; return 0; } 1547 ; return 0; }
1482 EOF 1548 EOF
1483 if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1549 if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1484 rm -rf conftest* 1550 rm -rf conftest*
1485 eval "ac_cv_func_setsockopt=yes" 1551 eval "ac_cv_func_setsockopt=yes"
1486 else 1552 else
1487 echo "configure: failed program was:" >&5 1553 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5 1554 cat conftest.$ac_ext >&5
1499 echo "$ac_t""no" 1>&6 1565 echo "$ac_t""no" 1>&6
1500 fi 1566 fi
1501 1567
1502 if test $ac_cv_func_setsockopt = no; then 1568 if test $ac_cv_func_setsockopt = no; then
1503 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 1569 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
1504 echo "configure:1505: checking for setsockopt in -lsocket" >&5 1570 echo "configure:1571: checking for setsockopt in -lsocket" >&5
1505 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` 1571 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
1506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6 1573 echo $ac_n "(cached) $ac_c" 1>&6
1508 else 1574 else
1509 ac_save_LIBS="$LIBS" 1575 ac_save_LIBS="$LIBS"
1510 LIBS="-lsocket $LIBS" 1576 LIBS="-lsocket $LIBS"
1511 cat > conftest.$ac_ext <<EOF 1577 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure" 1578 #line 1579 "configure"
1513 #include "confdefs.h" 1579 #include "confdefs.h"
1514 /* Override any gcc2 internal prototype to avoid an error. */ 1580 /* Override any gcc2 internal prototype to avoid an error. */
1515 /* We use char because int might match the return type of a gcc2 1581 /* We use char because int might match the return type of a gcc2
1516 builtin and then its argument prototype would still apply. */ 1582 builtin and then its argument prototype would still apply. */
1517 char setsockopt(); 1583 char setsockopt();
1518 1584
1519 int main() { 1585 int main() {
1520 setsockopt() 1586 setsockopt()
1521 ; return 0; } 1587 ; return 0; }
1522 EOF 1588 EOF
1523 if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1589 if { (eval echo configure:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1524 rm -rf conftest* 1590 rm -rf conftest*
1525 eval "ac_cv_lib_$ac_lib_var=yes" 1591 eval "ac_cv_lib_$ac_lib_var=yes"
1526 else 1592 else
1527 echo "configure: failed program was:" >&5 1593 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5 1594 cat conftest.$ac_ext >&5
1549 1615
1550 fi 1616 fi
1551 1617
1552 1618
1553 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6 1619 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
1554 echo "configure:1555: checking for gdbm_open in -lgdbm" >&5 1620 echo "configure:1621: checking for gdbm_open in -lgdbm" >&5
1555 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'` 1621 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
1556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6 1623 echo $ac_n "(cached) $ac_c" 1>&6
1558 else 1624 else
1559 ac_save_LIBS="$LIBS" 1625 ac_save_LIBS="$LIBS"
1560 LIBS="-lgdbm $LIBS" 1626 LIBS="-lgdbm $LIBS"
1561 cat > conftest.$ac_ext <<EOF 1627 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure" 1628 #line 1629 "configure"
1563 #include "confdefs.h" 1629 #include "confdefs.h"
1564 /* Override any gcc2 internal prototype to avoid an error. */ 1630 /* Override any gcc2 internal prototype to avoid an error. */
1565 /* We use char because int might match the return type of a gcc2 1631 /* We use char because int might match the return type of a gcc2
1566 builtin and then its argument prototype would still apply. */ 1632 builtin and then its argument prototype would still apply. */
1567 char gdbm_open(); 1633 char gdbm_open();
1568 1634
1569 int main() { 1635 int main() {
1570 gdbm_open() 1636 gdbm_open()
1571 ; return 0; } 1637 ; return 0; }
1572 EOF 1638 EOF
1573 if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1639 if { (eval echo configure:1640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1574 rm -rf conftest* 1640 rm -rf conftest*
1575 eval "ac_cv_lib_$ac_lib_var=yes" 1641 eval "ac_cv_lib_$ac_lib_var=yes"
1576 else 1642 else
1577 echo "configure: failed program was:" >&5 1643 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5 1644 cat conftest.$ac_ext >&5
1599 1665
1600 1666
1601 1667
1602 1668
1603 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1669 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1604 echo "configure:1605: checking for ANSI C header files" >&5 1670 echo "configure:1671: checking for ANSI C header files" >&5
1605 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1671 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6 1672 echo $ac_n "(cached) $ac_c" 1>&6
1607 else 1673 else
1608 cat > conftest.$ac_ext <<EOF 1674 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure" 1675 #line 1676 "configure"
1610 #include "confdefs.h" 1676 #include "confdefs.h"
1611 #include <stdlib.h> 1677 #include <stdlib.h>
1612 #include <stdarg.h> 1678 #include <stdarg.h>
1613 #include <string.h> 1679 #include <string.h>
1614 #include <float.h> 1680 #include <float.h>
1615 EOF 1681 EOF
1616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1617 { (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1683 { (eval echo configure:1684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1619 if test -z "$ac_err"; then 1685 if test -z "$ac_err"; then
1620 rm -rf conftest* 1686 rm -rf conftest*
1621 ac_cv_header_stdc=yes 1687 ac_cv_header_stdc=yes
1622 else 1688 else
1629 rm -f conftest* 1695 rm -f conftest*
1630 1696
1631 if test $ac_cv_header_stdc = yes; then 1697 if test $ac_cv_header_stdc = yes; then
1632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1633 cat > conftest.$ac_ext <<EOF 1699 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure" 1700 #line 1701 "configure"
1635 #include "confdefs.h" 1701 #include "confdefs.h"
1636 #include <string.h> 1702 #include <string.h>
1637 EOF 1703 EOF
1638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1639 egrep "memchr" >/dev/null 2>&1; then 1705 egrep "memchr" >/dev/null 2>&1; then
1647 fi 1713 fi
1648 1714
1649 if test $ac_cv_header_stdc = yes; then 1715 if test $ac_cv_header_stdc = yes; then
1650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1716 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1651 cat > conftest.$ac_ext <<EOF 1717 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure" 1718 #line 1719 "configure"
1653 #include "confdefs.h" 1719 #include "confdefs.h"
1654 #include <stdlib.h> 1720 #include <stdlib.h>
1655 EOF 1721 EOF
1656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1657 egrep "free" >/dev/null 2>&1; then 1723 egrep "free" >/dev/null 2>&1; then
1668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1734 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1669 if test "$cross_compiling" = yes; then 1735 if test "$cross_compiling" = yes; then
1670 : 1736 :
1671 else 1737 else
1672 cat > conftest.$ac_ext <<EOF 1738 cat > conftest.$ac_ext <<EOF
1673 #line 1674 "configure" 1739 #line 1740 "configure"
1674 #include "confdefs.h" 1740 #include "confdefs.h"
1675 #include <ctype.h> 1741 #include <ctype.h>
1676 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1742 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1677 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1743 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1678 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1744 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1679 int main () { int i; for (i = 0; i < 256; i++) 1745 int main () { int i; for (i = 0; i < 256; i++)
1680 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1746 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1681 exit (0); } 1747 exit (0); }
1682 1748
1683 EOF 1749 EOF
1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1750 if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1685 then 1751 then
1686 : 1752 :
1687 else 1753 else
1688 echo "configure: failed program was:" >&5 1754 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5 1755 cat conftest.$ac_ext >&5
1707 ac_header_dirent=no 1773 ac_header_dirent=no
1708 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1774 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1709 do 1775 do
1710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1711 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1777 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1712 echo "configure:1713: checking for $ac_hdr that defines DIR" >&5 1778 echo "configure:1779: checking for $ac_hdr that defines DIR" >&5
1713 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1779 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6 1780 echo $ac_n "(cached) $ac_c" 1>&6
1715 else 1781 else
1716 cat > conftest.$ac_ext <<EOF 1782 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure" 1783 #line 1784 "configure"
1718 #include "confdefs.h" 1784 #include "confdefs.h"
1719 #include <sys/types.h> 1785 #include <sys/types.h>
1720 #include <$ac_hdr> 1786 #include <$ac_hdr>
1721 int main() { 1787 int main() {
1722 DIR *dirp = 0; 1788 DIR *dirp = 0;
1723 ; return 0; } 1789 ; return 0; }
1724 EOF 1790 EOF
1725 if { (eval echo configure:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1791 if { (eval echo configure:1792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1726 rm -rf conftest* 1792 rm -rf conftest*
1727 eval "ac_cv_header_dirent_$ac_safe=yes" 1793 eval "ac_cv_header_dirent_$ac_safe=yes"
1728 else 1794 else
1729 echo "configure: failed program was:" >&5 1795 echo "configure: failed program was:" >&5
1730 cat conftest.$ac_ext >&5 1796 cat conftest.$ac_ext >&5
1745 fi 1811 fi
1746 done 1812 done
1747 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1813 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1748 if test $ac_header_dirent = dirent.h; then 1814 if test $ac_header_dirent = dirent.h; then
1749 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1815 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1750 echo "configure:1751: checking for opendir in -ldir" >&5 1816 echo "configure:1817: checking for opendir in -ldir" >&5
1751 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1817 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6 1819 echo $ac_n "(cached) $ac_c" 1>&6
1754 else 1820 else
1755 ac_save_LIBS="$LIBS" 1821 ac_save_LIBS="$LIBS"
1756 LIBS="-ldir $LIBS" 1822 LIBS="-ldir $LIBS"
1757 cat > conftest.$ac_ext <<EOF 1823 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure" 1824 #line 1825 "configure"
1759 #include "confdefs.h" 1825 #include "confdefs.h"
1760 /* Override any gcc2 internal prototype to avoid an error. */ 1826 /* Override any gcc2 internal prototype to avoid an error. */
1761 /* We use char because int might match the return type of a gcc2 1827 /* We use char because int might match the return type of a gcc2
1762 builtin and then its argument prototype would still apply. */ 1828 builtin and then its argument prototype would still apply. */
1763 char opendir(); 1829 char opendir();
1764 1830
1765 int main() { 1831 int main() {
1766 opendir() 1832 opendir()
1767 ; return 0; } 1833 ; return 0; }
1768 EOF 1834 EOF
1769 if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1770 rm -rf conftest* 1836 rm -rf conftest*
1771 eval "ac_cv_lib_$ac_lib_var=yes" 1837 eval "ac_cv_lib_$ac_lib_var=yes"
1772 else 1838 else
1773 echo "configure: failed program was:" >&5 1839 echo "configure: failed program was:" >&5
1774 cat conftest.$ac_ext >&5 1840 cat conftest.$ac_ext >&5
1786 echo "$ac_t""no" 1>&6 1852 echo "$ac_t""no" 1>&6
1787 fi 1853 fi
1788 1854
1789 else 1855 else
1790 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1856 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1791 echo "configure:1792: checking for opendir in -lx" >&5 1857 echo "configure:1858: checking for opendir in -lx" >&5
1792 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1858 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6 1860 echo $ac_n "(cached) $ac_c" 1>&6
1795 else 1861 else
1796 ac_save_LIBS="$LIBS" 1862 ac_save_LIBS="$LIBS"
1797 LIBS="-lx $LIBS" 1863 LIBS="-lx $LIBS"
1798 cat > conftest.$ac_ext <<EOF 1864 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure" 1865 #line 1866 "configure"
1800 #include "confdefs.h" 1866 #include "confdefs.h"
1801 /* Override any gcc2 internal prototype to avoid an error. */ 1867 /* Override any gcc2 internal prototype to avoid an error. */
1802 /* We use char because int might match the return type of a gcc2 1868 /* We use char because int might match the return type of a gcc2
1803 builtin and then its argument prototype would still apply. */ 1869 builtin and then its argument prototype would still apply. */
1804 char opendir(); 1870 char opendir();
1805 1871
1806 int main() { 1872 int main() {
1807 opendir() 1873 opendir()
1808 ; return 0; } 1874 ; return 0; }
1809 EOF 1875 EOF
1810 if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1876 if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1811 rm -rf conftest* 1877 rm -rf conftest*
1812 eval "ac_cv_lib_$ac_lib_var=yes" 1878 eval "ac_cv_lib_$ac_lib_var=yes"
1813 else 1879 else
1814 echo "configure: failed program was:" >&5 1880 echo "configure: failed program was:" >&5
1815 cat conftest.$ac_ext >&5 1881 cat conftest.$ac_ext >&5
1831 1897
1832 for ac_hdr in gdbm.h syslog.h sys/resource.h sys/utsname.h 1898 for ac_hdr in gdbm.h syslog.h sys/resource.h sys/utsname.h
1833 do 1899 do
1834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_hdr" >&5 1902 echo "configure:1903: checking for $ac_hdr" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6 1904 echo $ac_n "(cached) $ac_c" 1>&6
1839 else 1905 else
1840 cat > conftest.$ac_ext <<EOF 1906 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure" 1907 #line 1908 "configure"
1842 #include "confdefs.h" 1908 #include "confdefs.h"
1843 #include <$ac_hdr> 1909 #include <$ac_hdr>
1844 EOF 1910 EOF
1845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1846 { (eval echo configure:1847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1912 { (eval echo configure:1913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1848 if test -z "$ac_err"; then 1914 if test -z "$ac_err"; then
1849 rm -rf conftest* 1915 rm -rf conftest*
1850 eval "ac_cv_header_$ac_safe=yes" 1916 eval "ac_cv_header_$ac_safe=yes"
1851 else 1917 else
1871 1937
1872 for ac_hdr in fnmatch.h errno.h getopt.h time.h sys/time.h signal.h 1938 for ac_hdr in fnmatch.h errno.h getopt.h time.h sys/time.h signal.h
1873 do 1939 do
1874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_hdr" >&5 1942 echo "configure:1943: checking for $ac_hdr" >&5
1877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6 1944 echo $ac_n "(cached) $ac_c" 1>&6
1879 else 1945 else
1880 cat > conftest.$ac_ext <<EOF 1946 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure" 1947 #line 1948 "configure"
1882 #include "confdefs.h" 1948 #include "confdefs.h"
1883 #include <$ac_hdr> 1949 #include <$ac_hdr>
1884 EOF 1950 EOF
1885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1886 { (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1952 { (eval echo configure:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1888 if test -z "$ac_err"; then 1954 if test -z "$ac_err"; then
1889 rm -rf conftest* 1955 rm -rf conftest*
1890 eval "ac_cv_header_$ac_safe=yes" 1956 eval "ac_cv_header_$ac_safe=yes"
1891 else 1957 else
1911 1977
1912 for ac_hdr in netdb.h sys/socket.h fcntl.h limits.h unistd.h 1978 for ac_hdr in netdb.h sys/socket.h fcntl.h limits.h unistd.h
1913 do 1979 do
1914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1916 echo "configure:1917: checking for $ac_hdr" >&5 1982 echo "configure:1983: checking for $ac_hdr" >&5
1917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6 1984 echo $ac_n "(cached) $ac_c" 1>&6
1919 else 1985 else
1920 cat > conftest.$ac_ext <<EOF 1986 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure" 1987 #line 1988 "configure"
1922 #include "confdefs.h" 1988 #include "confdefs.h"
1923 #include <$ac_hdr> 1989 #include <$ac_hdr>
1924 EOF 1990 EOF
1925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1926 { (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1992 { (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1928 if test -z "$ac_err"; then 1994 if test -z "$ac_err"; then
1929 rm -rf conftest* 1995 rm -rf conftest*
1930 eval "ac_cv_header_$ac_safe=yes" 1996 eval "ac_cv_header_$ac_safe=yes"
1931 else 1997 else
1951 2017
1952 2018
1953 2019
1954 2020
1955 echo $ac_n "checking for working const""... $ac_c" 1>&6 2021 echo $ac_n "checking for working const""... $ac_c" 1>&6
1956 echo "configure:1957: checking for working const" >&5 2022 echo "configure:2023: checking for working const" >&5
1957 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2023 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6 2024 echo $ac_n "(cached) $ac_c" 1>&6
1959 else 2025 else
1960 cat > conftest.$ac_ext <<EOF 2026 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure" 2027 #line 2028 "configure"
1962 #include "confdefs.h" 2028 #include "confdefs.h"
1963 2029
1964 int main() { 2030 int main() {
1965 2031
1966 /* Ultrix mips cc rejects this. */ 2032 /* Ultrix mips cc rejects this. */
2005 const int foo = 10; 2071 const int foo = 10;
2006 } 2072 }
2007 2073
2008 ; return 0; } 2074 ; return 0; }
2009 EOF 2075 EOF
2010 if { (eval echo configure:2011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2076 if { (eval echo configure:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2011 rm -rf conftest* 2077 rm -rf conftest*
2012 ac_cv_c_const=yes 2078 ac_cv_c_const=yes
2013 else 2079 else
2014 echo "configure: failed program was:" >&5 2080 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5 2081 cat conftest.$ac_ext >&5
2026 EOF 2092 EOF
2027 2093
2028 fi 2094 fi
2029 2095
2030 echo $ac_n "checking for size_t""... $ac_c" 1>&6 2096 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2031 echo "configure:2032: checking for size_t" >&5 2097 echo "configure:2098: checking for size_t" >&5
2032 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2098 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6 2099 echo $ac_n "(cached) $ac_c" 1>&6
2034 else 2100 else
2035 cat > conftest.$ac_ext <<EOF 2101 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure" 2102 #line 2103 "configure"
2037 #include "confdefs.h" 2103 #include "confdefs.h"
2038 #include <sys/types.h> 2104 #include <sys/types.h>
2039 #if STDC_HEADERS 2105 #if STDC_HEADERS
2040 #include <stdlib.h> 2106 #include <stdlib.h>
2041 #include <stddef.h> 2107 #include <stddef.h>
2059 EOF 2125 EOF
2060 2126
2061 fi 2127 fi
2062 2128
2063 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2129 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2064 echo "configure:2065: checking whether time.h and sys/time.h may both be included" >&5 2130 echo "configure:2131: checking whether time.h and sys/time.h may both be included" >&5
2065 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2131 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6 2132 echo $ac_n "(cached) $ac_c" 1>&6
2067 else 2133 else
2068 cat > conftest.$ac_ext <<EOF 2134 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure" 2135 #line 2136 "configure"
2070 #include "confdefs.h" 2136 #include "confdefs.h"
2071 #include <sys/types.h> 2137 #include <sys/types.h>
2072 #include <sys/time.h> 2138 #include <sys/time.h>
2073 #include <time.h> 2139 #include <time.h>
2074 int main() { 2140 int main() {
2075 struct tm *tp; 2141 struct tm *tp;
2076 ; return 0; } 2142 ; return 0; }
2077 EOF 2143 EOF
2078 if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2144 if { (eval echo configure:2145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2079 rm -rf conftest* 2145 rm -rf conftest*
2080 ac_cv_header_time=yes 2146 ac_cv_header_time=yes
2081 else 2147 else
2082 echo "configure: failed program was:" >&5 2148 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5 2149 cat conftest.$ac_ext >&5
2094 EOF 2160 EOF
2095 2161
2096 fi 2162 fi
2097 2163
2098 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2164 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2099 echo "configure:2100: checking whether struct tm is in sys/time.h or time.h" >&5 2165 echo "configure:2166: checking whether struct tm is in sys/time.h or time.h" >&5
2100 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2166 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6 2167 echo $ac_n "(cached) $ac_c" 1>&6
2102 else 2168 else
2103 cat > conftest.$ac_ext <<EOF 2169 cat > conftest.$ac_ext <<EOF
2104 #line 2105 "configure" 2170 #line 2171 "configure"
2105 #include "confdefs.h" 2171 #include "confdefs.h"
2106 #include <sys/types.h> 2172 #include <sys/types.h>
2107 #include <time.h> 2173 #include <time.h>
2108 int main() { 2174 int main() {
2109 struct tm *tp; tp->tm_sec; 2175 struct tm *tp; tp->tm_sec;
2110 ; return 0; } 2176 ; return 0; }
2111 EOF 2177 EOF
2112 if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2178 if { (eval echo configure:2179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2113 rm -rf conftest* 2179 rm -rf conftest*
2114 ac_cv_struct_tm=time.h 2180 ac_cv_struct_tm=time.h
2115 else 2181 else
2116 echo "configure: failed program was:" >&5 2182 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5 2183 cat conftest.$ac_ext >&5
2129 2195
2130 fi 2196 fi
2131 2197
2132 2198
2133 echo $ac_n "checking socklen_t""... $ac_c" 1>&6 2199 echo $ac_n "checking socklen_t""... $ac_c" 1>&6
2134 echo "configure:2135: checking socklen_t" >&5 2200 echo "configure:2201: checking socklen_t" >&5
2135 if eval "test \"`echo '$''{'noffle_cv_type_socklen_t'+set}'`\" = set"; then 2201 if eval "test \"`echo '$''{'noffle_cv_type_socklen_t'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6 2202 echo $ac_n "(cached) $ac_c" 1>&6
2137 else 2203 else
2138 cat > conftest.$ac_ext <<EOF 2204 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure" 2205 #line 2206 "configure"
2140 #include "confdefs.h" 2206 #include "confdefs.h"
2141 2207
2142 #include <sys/types.h> 2208 #include <sys/types.h>
2143 #include <sys/socket.h> 2209 #include <sys/socket.h>
2144 2210
2145 int main() { 2211 int main() {
2146 socklen_t s; 2212 socklen_t s;
2147 ; return 0; } 2213 ; return 0; }
2148 EOF 2214 EOF
2149 if { (eval echo configure:2150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2215 if { (eval echo configure:2216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2150 rm -rf conftest* 2216 rm -rf conftest*
2151 noffle_cv_type_socklen_t=yes 2217 noffle_cv_type_socklen_t=yes
2152 else 2218 else
2153 echo "configure: failed program was:" >&5 2219 echo "configure: failed program was:" >&5
2154 cat conftest.$ac_ext >&5 2220 cat conftest.$ac_ext >&5
2170 fi 2236 fi
2171 2237
2172 2238
2173 2239
2174 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2240 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2175 echo "configure:2176: checking return type of signal handlers" >&5 2241 echo "configure:2242: checking return type of signal handlers" >&5
2176 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2242 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6 2243 echo $ac_n "(cached) $ac_c" 1>&6
2178 else 2244 else
2179 cat > conftest.$ac_ext <<EOF 2245 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure" 2246 #line 2247 "configure"
2181 #include "confdefs.h" 2247 #include "confdefs.h"
2182 #include <sys/types.h> 2248 #include <sys/types.h>
2183 #include <signal.h> 2249 #include <signal.h>
2184 #ifdef signal 2250 #ifdef signal
2185 #undef signal 2251 #undef signal
2192 2258
2193 int main() { 2259 int main() {
2194 int i; 2260 int i;
2195 ; return 0; } 2261 ; return 0; }
2196 EOF 2262 EOF
2197 if { (eval echo configure:2198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2263 if { (eval echo configure:2264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2198 rm -rf conftest* 2264 rm -rf conftest*
2199 ac_cv_type_signal=void 2265 ac_cv_type_signal=void
2200 else 2266 else
2201 echo "configure: failed program was:" >&5 2267 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5 2268 cat conftest.$ac_ext >&5
2211 #define RETSIGTYPE $ac_cv_type_signal 2277 #define RETSIGTYPE $ac_cv_type_signal
2212 EOF 2278 EOF
2213 2279
2214 2280
2215 echo $ac_n "checking for strftime""... $ac_c" 1>&6 2281 echo $ac_n "checking for strftime""... $ac_c" 1>&6
2216 echo "configure:2217: checking for strftime" >&5 2282 echo "configure:2283: checking for strftime" >&5
2217 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then 2283 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6 2284 echo $ac_n "(cached) $ac_c" 1>&6
2219 else 2285 else
2220 cat > conftest.$ac_ext <<EOF 2286 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure" 2287 #line 2288 "configure"
2222 #include "confdefs.h" 2288 #include "confdefs.h"
2223 /* System header to define __stub macros and hopefully few prototypes, 2289 /* System header to define __stub macros and hopefully few prototypes,
2224 which can conflict with char strftime(); below. */ 2290 which can conflict with char strftime(); below. */
2225 #include <assert.h> 2291 #include <assert.h>
2226 /* Override any gcc2 internal prototype to avoid an error. */ 2292 /* Override any gcc2 internal prototype to avoid an error. */
2239 strftime(); 2305 strftime();
2240 #endif 2306 #endif
2241 2307
2242 ; return 0; } 2308 ; return 0; }
2243 EOF 2309 EOF
2244 if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2245 rm -rf conftest* 2311 rm -rf conftest*
2246 eval "ac_cv_func_strftime=yes" 2312 eval "ac_cv_func_strftime=yes"
2247 else 2313 else
2248 echo "configure: failed program was:" >&5 2314 echo "configure: failed program was:" >&5
2249 cat conftest.$ac_ext >&5 2315 cat conftest.$ac_ext >&5
2261 2327
2262 else 2328 else
2263 echo "$ac_t""no" 1>&6 2329 echo "$ac_t""no" 1>&6
2264 # strftime is in -lintl on SCO UNIX. 2330 # strftime is in -lintl on SCO UNIX.
2265 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 2331 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2266 echo "configure:2267: checking for strftime in -lintl" >&5 2332 echo "configure:2333: checking for strftime in -lintl" >&5
2267 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` 2333 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6 2335 echo $ac_n "(cached) $ac_c" 1>&6
2270 else 2336 else
2271 ac_save_LIBS="$LIBS" 2337 ac_save_LIBS="$LIBS"
2272 LIBS="-lintl $LIBS" 2338 LIBS="-lintl $LIBS"
2273 cat > conftest.$ac_ext <<EOF 2339 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure" 2340 #line 2341 "configure"
2275 #include "confdefs.h" 2341 #include "confdefs.h"
2276 /* Override any gcc2 internal prototype to avoid an error. */ 2342 /* Override any gcc2 internal prototype to avoid an error. */
2277 /* We use char because int might match the return type of a gcc2 2343 /* We use char because int might match the return type of a gcc2
2278 builtin and then its argument prototype would still apply. */ 2344 builtin and then its argument prototype would still apply. */
2279 char strftime(); 2345 char strftime();
2280 2346
2281 int main() { 2347 int main() {
2282 strftime() 2348 strftime()
2283 ; return 0; } 2349 ; return 0; }
2284 EOF 2350 EOF
2285 if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2286 rm -rf conftest* 2352 rm -rf conftest*
2287 eval "ac_cv_lib_$ac_lib_var=yes" 2353 eval "ac_cv_lib_$ac_lib_var=yes"
2288 else 2354 else
2289 echo "configure: failed program was:" >&5 2355 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5 2356 cat conftest.$ac_ext >&5
2307 fi 2373 fi
2308 2374
2309 fi 2375 fi
2310 2376
2311 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6 2377 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
2312 echo "configure:2313: checking for working fnmatch" >&5 2378 echo "configure:2379: checking for working fnmatch" >&5
2313 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then 2379 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6 2380 echo $ac_n "(cached) $ac_c" 1>&6
2315 else 2381 else
2316 # Some versions of Solaris or SCO have a broken fnmatch function. 2382 # Some versions of Solaris or SCO have a broken fnmatch function.
2317 # So we run a test program. If we are cross-compiling, take no chance. 2383 # So we run a test program. If we are cross-compiling, take no chance.
2318 # Thanks to John Oleynick and Franc,ois Pinard for this test. 2384 # Thanks to John Oleynick and Franc,ois Pinard for this test.
2319 if test "$cross_compiling" = yes; then 2385 if test "$cross_compiling" = yes; then
2320 ac_cv_func_fnmatch_works=no 2386 ac_cv_func_fnmatch_works=no
2321 else 2387 else
2322 cat > conftest.$ac_ext <<EOF 2388 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure" 2389 #line 2390 "configure"
2324 #include "confdefs.h" 2390 #include "confdefs.h"
2325 main() { exit (fnmatch ("a*", "abc", 0) != 0); } 2391 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
2326 EOF 2392 EOF
2327 if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2393 if { (eval echo configure:2394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2328 then 2394 then
2329 ac_cv_func_fnmatch_works=yes 2395 ac_cv_func_fnmatch_works=yes
2330 else 2396 else
2331 echo "configure: failed program was:" >&5 2397 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5 2398 cat conftest.$ac_ext >&5
2347 fi 2413 fi
2348 2414
2349 for ac_func in fdopen vsnprintf snprintf __vsnprintf __snprintf 2415 for ac_func in fdopen vsnprintf snprintf __vsnprintf __snprintf
2350 do 2416 do
2351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_func" >&5 2418 echo "configure:2419: checking for $ac_func" >&5
2353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6 2420 echo $ac_n "(cached) $ac_c" 1>&6
2355 else 2421 else
2356 cat > conftest.$ac_ext <<EOF 2422 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure" 2423 #line 2424 "configure"
2358 #include "confdefs.h" 2424 #include "confdefs.h"
2359 /* System header to define __stub macros and hopefully few prototypes, 2425 /* System header to define __stub macros and hopefully few prototypes,
2360 which can conflict with char $ac_func(); below. */ 2426 which can conflict with char $ac_func(); below. */
2361 #include <assert.h> 2427 #include <assert.h>
2362 /* Override any gcc2 internal prototype to avoid an error. */ 2428 /* Override any gcc2 internal prototype to avoid an error. */
2375 $ac_func(); 2441 $ac_func();
2376 #endif 2442 #endif
2377 2443
2378 ; return 0; } 2444 ; return 0; }
2379 EOF 2445 EOF
2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2446 if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2381 rm -rf conftest* 2447 rm -rf conftest*
2382 eval "ac_cv_func_$ac_func=yes" 2448 eval "ac_cv_func_$ac_func=yes"
2383 else 2449 else
2384 echo "configure: failed program was:" >&5 2450 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5 2451 cat conftest.$ac_ext >&5
2402 done 2468 done
2403 2469
2404 for ac_func in gethostname mkdir mktime select socket strerror strstr uname 2470 for ac_func in gethostname mkdir mktime select socket strerror strstr uname
2405 do 2471 do
2406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2407 echo "configure:2408: checking for $ac_func" >&5 2473 echo "configure:2474: checking for $ac_func" >&5
2408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6 2475 echo $ac_n "(cached) $ac_c" 1>&6
2410 else 2476 else
2411 cat > conftest.$ac_ext <<EOF 2477 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure" 2478 #line 2479 "configure"
2413 #include "confdefs.h" 2479 #include "confdefs.h"
2414 /* System header to define __stub macros and hopefully few prototypes, 2480 /* System header to define __stub macros and hopefully few prototypes,
2415 which can conflict with char $ac_func(); below. */ 2481 which can conflict with char $ac_func(); below. */
2416 #include <assert.h> 2482 #include <assert.h>
2417 /* Override any gcc2 internal prototype to avoid an error. */ 2483 /* Override any gcc2 internal prototype to avoid an error. */
2430 $ac_func(); 2496 $ac_func();
2431 #endif 2497 #endif
2432 2498
2433 ; return 0; } 2499 ; return 0; }
2434 EOF 2500 EOF
2435 if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2436 rm -rf conftest* 2502 rm -rf conftest*
2437 eval "ac_cv_func_$ac_func=yes" 2503 eval "ac_cv_func_$ac_func=yes"
2438 else 2504 else
2439 echo "configure: failed program was:" >&5 2505 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5 2506 cat conftest.$ac_ext >&5
2486 if test "${with_docdir+set}" = set; then 2552 if test "${with_docdir+set}" = set; then
2487 withval="$with_docdir" 2553 withval="$with_docdir"
2488 noffle_cv_docdir=$withval 2554 noffle_cv_docdir=$withval
2489 else 2555 else
2490 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6 2556 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
2491 echo "configure:2492: checking where to put the documentation" >&5 2557 echo "configure:2558: checking where to put the documentation" >&5
2492 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then 2558 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6 2559 echo $ac_n "(cached) $ac_c" 1>&6
2494 else 2560 else
2495 if test x$prefix = xNONE; then 2561 if test x$prefix = xNONE; then
2496 noffle_cv_prefix=$ac_default_prefix 2562 noffle_cv_prefix=$ac_default_prefix
2673 s%@AUTOHEADER@%$AUTOHEADER%g 2739 s%@AUTOHEADER@%$AUTOHEADER%g
2674 s%@MAKEINFO@%$MAKEINFO%g 2740 s%@MAKEINFO@%$MAKEINFO%g
2675 s%@SET_MAKE@%$SET_MAKE%g 2741 s%@SET_MAKE@%$SET_MAKE%g
2676 s%@CC@%$CC%g 2742 s%@CC@%$CC%g
2677 s%@CPP@%$CPP%g 2743 s%@CPP@%$CPP%g
2744 s%@MAILPROG@%$MAILPROG%g
2745 s%@SORTPROG@%$SORTPROG%g
2678 s%@CONFIGFILE@%$CONFIGFILE%g 2746 s%@CONFIGFILE@%$CONFIGFILE%g
2679 s%@SPOOLDIR@%$SPOOLDIR%g 2747 s%@SPOOLDIR@%$SPOOLDIR%g
2680 s%@DOCDIR@%$DOCDIR%g 2748 s%@DOCDIR@%$DOCDIR%g
2681 2749
2682 CEOF 2750 CEOF