… | |
… | |
1351 | EOF |
1351 | EOF |
1352 | |
1352 | |
1353 | fi |
1353 | fi |
1354 | |
1354 | |
1355 | |
1355 | |
|
|
1356 | echo $ac_n "checking for chmod""... $ac_c" 1>&6 |
|
|
1357 | echo "configure:1358: checking for chmod" >&5 |
|
|
1358 | if eval "test \"`echo '$''{'ac_cv_func_chmod'+set}'`\" = set"; then |
|
|
1359 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1360 | else |
|
|
1361 | cat > conftest.$ac_ext <<EOF |
|
|
1362 | #line 1363 "configure" |
|
|
1363 | #include "confdefs.h" |
|
|
1364 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
1365 | which can conflict with char chmod(); below. */ |
|
|
1366 | #include <assert.h> |
|
|
1367 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
1368 | /* We use char because int might match the return type of a gcc2 |
|
|
1369 | builtin and then its argument prototype would still apply. */ |
|
|
1370 | char chmod(); |
|
|
1371 | |
|
|
1372 | int main() { |
|
|
1373 | |
|
|
1374 | /* The GNU C library defines this for functions which it implements |
|
|
1375 | to always fail with ENOSYS. Some functions are actually named |
|
|
1376 | something starting with __ and the normal name is an alias. */ |
|
|
1377 | #if defined (__stub_chmod) || defined (__stub___chmod) |
|
|
1378 | choke me |
|
|
1379 | #else |
|
|
1380 | chmod(); |
|
|
1381 | #endif |
|
|
1382 | |
|
|
1383 | ; return 0; } |
|
|
1384 | EOF |
|
|
1385 | if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
1386 | rm -rf conftest* |
|
|
1387 | eval "ac_cv_func_chmod=yes" |
|
|
1388 | else |
|
|
1389 | echo "configure: failed program was:" >&5 |
|
|
1390 | cat conftest.$ac_ext >&5 |
|
|
1391 | rm -rf conftest* |
|
|
1392 | eval "ac_cv_func_chmod=no" |
|
|
1393 | fi |
|
|
1394 | rm -f conftest* |
|
|
1395 | fi |
|
|
1396 | |
|
|
1397 | if eval "test \"`echo '$ac_cv_func_'chmod`\" = yes"; then |
|
|
1398 | echo "$ac_t""yes" 1>&6 |
|
|
1399 | cat >> confdefs.h <<\EOF |
|
|
1400 | #define HAVE_CHMOD 1 |
|
|
1401 | EOF |
|
|
1402 | |
|
|
1403 | else |
|
|
1404 | echo "$ac_t""no" 1>&6 |
|
|
1405 | fi |
|
|
1406 | |
|
|
1407 | echo $ac_n "checking for umask""... $ac_c" 1>&6 |
|
|
1408 | echo "configure:1409: checking for umask" >&5 |
|
|
1409 | if eval "test \"`echo '$''{'ac_cv_func_umask'+set}'`\" = set"; then |
|
|
1410 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1411 | else |
|
|
1412 | cat > conftest.$ac_ext <<EOF |
|
|
1413 | #line 1414 "configure" |
|
|
1414 | #include "confdefs.h" |
|
|
1415 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
1416 | which can conflict with char umask(); below. */ |
|
|
1417 | #include <assert.h> |
|
|
1418 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
1419 | /* We use char because int might match the return type of a gcc2 |
|
|
1420 | builtin and then its argument prototype would still apply. */ |
|
|
1421 | char umask(); |
|
|
1422 | |
|
|
1423 | int main() { |
|
|
1424 | |
|
|
1425 | /* The GNU C library defines this for functions which it implements |
|
|
1426 | to always fail with ENOSYS. Some functions are actually named |
|
|
1427 | something starting with __ and the normal name is an alias. */ |
|
|
1428 | #if defined (__stub_umask) || defined (__stub___umask) |
|
|
1429 | choke me |
|
|
1430 | #else |
|
|
1431 | umask(); |
|
|
1432 | #endif |
|
|
1433 | |
|
|
1434 | ; return 0; } |
|
|
1435 | EOF |
|
|
1436 | if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
1437 | rm -rf conftest* |
|
|
1438 | eval "ac_cv_func_umask=yes" |
|
|
1439 | else |
|
|
1440 | echo "configure: failed program was:" >&5 |
|
|
1441 | cat conftest.$ac_ext >&5 |
|
|
1442 | rm -rf conftest* |
|
|
1443 | eval "ac_cv_func_umask=no" |
|
|
1444 | fi |
|
|
1445 | rm -f conftest* |
|
|
1446 | fi |
|
|
1447 | |
|
|
1448 | if eval "test \"`echo '$ac_cv_func_'umask`\" = yes"; then |
|
|
1449 | echo "$ac_t""yes" 1>&6 |
|
|
1450 | cat >> confdefs.h <<\EOF |
|
|
1451 | #define HAVE_UMASK 1 |
|
|
1452 | EOF |
|
|
1453 | |
|
|
1454 | else |
|
|
1455 | echo "$ac_t""no" 1>&6 |
|
|
1456 | fi |
|
|
1457 | |
|
|
1458 | |
1356 | # |
1459 | # |
1357 | # strerror might be internally defined. this would cause a |
1460 | # strerror might be internally defined. this would cause a |
1358 | # CHECK_FUNCS(strerror) to fail because it'd be called with |
1461 | # CHECK_FUNCS(strerror) to fail because it'd be called with |
1359 | # zero arguments. So use our own code. |
1462 | # zero arguments. So use our own code. |
1360 | # |
1463 | # |
1361 | echo $ac_n "checking for strerror""... $ac_c" 1>&6 |
1464 | echo $ac_n "checking for strerror""... $ac_c" 1>&6 |
1362 | echo "configure:1363: checking for strerror" >&5 |
1465 | echo "configure:1466: checking for strerror" >&5 |
1363 | cat > conftest.$ac_ext <<EOF |
1466 | cat > conftest.$ac_ext <<EOF |
1364 | #line 1365 "configure" |
1467 | #line 1468 "configure" |
1365 | #include "confdefs.h" |
1468 | #include "confdefs.h" |
1366 | |
1469 | |
1367 | char *blubb() { return (char *) strerror (42); } |
1470 | char *blubb() { return (char *) strerror (42); } |
1368 | |
1471 | |
1369 | int main() { |
1472 | int main() { |
1370 | |
1473 | |
1371 | (void) blubb(); |
1474 | (void) blubb(); |
1372 | |
1475 | |
1373 | ; return 0; } |
1476 | ; return 0; } |
1374 | EOF |
1477 | EOF |
1375 | if { (eval echo configure:1376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1478 | if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1376 | rm -rf conftest* |
1479 | rm -rf conftest* |
1377 | have_strerror=yes |
1480 | have_strerror=yes |
1378 | else |
1481 | else |
1379 | echo "configure: failed program was:" >&5 |
1482 | echo "configure: failed program was:" >&5 |
1380 | cat conftest.$ac_ext >&5 |
1483 | cat conftest.$ac_ext >&5 |
… | |
… | |
1387 | fi |
1490 | fi |
1388 | rm -f conftest* |
1491 | rm -f conftest* |
1389 | echo "$ac_t""$have_strerror" 1>&6 |
1492 | echo "$ac_t""$have_strerror" 1>&6 |
1390 | |
1493 | |
1391 | echo $ac_n "checking for stdin""... $ac_c" 1>&6 |
1494 | echo $ac_n "checking for stdin""... $ac_c" 1>&6 |
1392 | echo "configure:1393: checking for stdin" >&5 |
1495 | echo "configure:1496: checking for stdin" >&5 |
1393 | cat > conftest.$ac_ext <<EOF |
1496 | cat > conftest.$ac_ext <<EOF |
1394 | #line 1395 "configure" |
1497 | #line 1498 "configure" |
1395 | #include "confdefs.h" |
1498 | #include "confdefs.h" |
1396 | |
1499 | |
1397 | #include <stdio.h> |
1500 | #include <stdio.h> |
1398 | char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; } |
1501 | char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; } |
1399 | |
1502 | |
… | |
… | |
1401 | |
1504 | |
1402 | (void) blubb(); |
1505 | (void) blubb(); |
1403 | |
1506 | |
1404 | ; return 0; } |
1507 | ; return 0; } |
1405 | EOF |
1508 | EOF |
1406 | if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1509 | if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1407 | rm -rf conftest* |
1510 | rm -rf conftest* |
1408 | have_stdio=yes |
1511 | have_stdio=yes |
1409 | else |
1512 | else |
1410 | echo "configure: failed program was:" >&5 |
1513 | echo "configure: failed program was:" >&5 |
1411 | cat conftest.$ac_ext >&5 |
1514 | cat conftest.$ac_ext >&5 |
… | |
… | |
1422 | if test "$ac_cv_header_stdc" = "no" ; then |
1525 | if test "$ac_cv_header_stdc" = "no" ; then |
1423 | for ac_hdr in stdarg.h varargs.h |
1526 | for ac_hdr in stdarg.h varargs.h |
1424 | do |
1527 | do |
1425 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1528 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1426 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1529 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1427 | echo "configure:1428: checking for $ac_hdr" >&5 |
1530 | echo "configure:1531: checking for $ac_hdr" >&5 |
1428 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1531 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1429 | echo $ac_n "(cached) $ac_c" 1>&6 |
1532 | echo $ac_n "(cached) $ac_c" 1>&6 |
1430 | else |
1533 | else |
1431 | cat > conftest.$ac_ext <<EOF |
1534 | cat > conftest.$ac_ext <<EOF |
1432 | #line 1433 "configure" |
1535 | #line 1536 "configure" |
1433 | #include "confdefs.h" |
1536 | #include "confdefs.h" |
1434 | #include <$ac_hdr> |
1537 | #include <$ac_hdr> |
1435 | EOF |
1538 | EOF |
1436 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1539 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1437 | { (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1540 | { (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1438 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1541 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1439 | if test -z "$ac_err"; then |
1542 | if test -z "$ac_err"; then |
1440 | rm -rf conftest* |
1543 | rm -rf conftest* |
1441 | eval "ac_cv_header_$ac_safe=yes" |
1544 | eval "ac_cv_header_$ac_safe=yes" |
1442 | else |
1545 | else |
… | |
… | |
1510 | |
1613 | |
1511 | # |
1614 | # |
1512 | # set version number |
1615 | # set version number |
1513 | # |
1616 | # |
1514 | echo $ac_n "checking version number""... $ac_c" 1>&6 |
1617 | echo $ac_n "checking version number""... $ac_c" 1>&6 |
1515 | echo "configure:1516: checking version number" >&5 |
1618 | echo "configure:1619: checking version number" >&5 |
1516 | version_number="$VERSION"pl"$PATCH" |
1619 | version_number="$VERSION"pl"$PATCH" |
1517 | echo "$ac_t""$version_number" 1>&6 |
1620 | echo "$ac_t""$version_number" 1>&6 |
1518 | |
1621 | |
1519 | |
1622 | |
1520 | |
1623 | |