Changeset 22 for emailtotracscript/trunk
- Timestamp:
- 01/15/06 11:53:48 (17 years ago)
- Location:
- emailtotracscript/trunk
- Files:
-
- 2 added
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
emailtotracscript/trunk/Makefile.in
r21 r22 8 8 # defaullt values are: 9 9 # 10 # MTA_USER "nobody"11 # TRAC_USER "www-data"12 # TRAC_SCRIPT_NAME "email2trac"13 10 # 14 11 PREFIX=@prefix@ … … 16 13 PYTHON_BIN=@PYTHON@ 17 14 18 CC=gcc 15 # User names 16 # 17 TRAC_USER=@trac_user@ 18 MTA_USER=@mta_user@ 19 20 CC=@CC@ 19 21 DEBUG=0 20 22 CFLAGS=-DMTA_USER=\"$(MTA_USER)\" -DTRAC_USER=\"$(TRAC_USER)\" -DTRAC_SCRIPT_NAME=\"$(TRAC_SCRIPT_NAME)\" -DTRAC_SCRIPT_PATH=\"$(INSTALL_BIN)\" -DDEBUG=$(DEBUG) … … 32 34 for script in $(PYTHON_FILES) ; \ 33 35 do \ 34 name=`basename email2trac.py '.py'` 35 sed -e "s%^\#\!/usr/bin/python%\#\!$(PYTHON_BIN)%" $$script > $(INSTALL_BIN)/$$name ; \ 36 chmod a+x $(INSTALL_BIN)/$$name ; \ 36 name=`basename $$script '.py'` ; \ 37 install --mode=755 --owner=root $$script $(INSTALL_BIN)/$$name 37 38 done 38 39 39 40 clean: 40 rm run_email2trac 41 rm run_email2trac -
emailtotracscript/trunk/configure
r21 r22 273 273 274 274 ac_unique_file="email2trac.py" 275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS pyexecdir PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pkgpyexecdirLIBOBJS LTLIBOBJS'275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS pyexecdir trac_user mta_user PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pkgpyexecdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS' 276 276 ac_subst_files='' 277 277 … … 714 714 ac_cv_env_target_alias_set=${target_alias+set} 715 715 ac_cv_env_target_alias_value=$target_alias 716 ac_env_CC_set=${CC+set} 717 ac_env_CC_value=$CC 718 ac_cv_env_CC_set=${CC+set} 719 ac_cv_env_CC_value=$CC 720 ac_env_CFLAGS_set=${CFLAGS+set} 721 ac_env_CFLAGS_value=$CFLAGS 722 ac_cv_env_CFLAGS_set=${CFLAGS+set} 723 ac_cv_env_CFLAGS_value=$CFLAGS 724 ac_env_LDFLAGS_set=${LDFLAGS+set} 725 ac_env_LDFLAGS_value=$LDFLAGS 726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 727 ac_cv_env_LDFLAGS_value=$LDFLAGS 728 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 729 ac_env_CPPFLAGS_value=$CPPFLAGS 730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 732 ac_env_CPP_set=${CPP+set} 733 ac_env_CPP_value=$CPP 734 ac_cv_env_CPP_set=${CPP+set} 735 ac_cv_env_CPP_value=$CPP 716 736 717 737 # … … 780 800 781 801 cat <<\_ACEOF 802 803 Optional Packages: 804 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 805 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 806 807 --with-trac_user=USER Specify the name of the user that trac use, 808 default=www-data 809 810 --with-mta_user=USER Specify the name of the user that your MTA use, 811 default=nobody 812 813 Some influential environment variables: 814 CC C compiler command 815 CFLAGS C compiler flags 816 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 817 nonstandard directory <lib dir> 818 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 819 headers in a nonstandard directory <include dir> 820 CPP C preprocessor 821 822 Use these variables to override the choices made by `configure' or to help 823 it to find libraries and programs with nonstandard names/locations. 782 824 783 825 _ACEOF … … 1224 1266 1225 1267 1268 1269 1226 1270 # Find any Python interpreter. 1227 1271 for ac_prog in python python2 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 … … 1340 1384 1341 1385 1342 1343 ac_config_files="$ac_config_files Makefile" 1386 ac_ext=c 1387 ac_cpp='$CPP $CPPFLAGS' 1388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1390 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1391 if test -n "$ac_tool_prefix"; then 1392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1393 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1394 echo "$as_me:$LINENO: checking for $ac_word" >&5 1395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1396 if test "${ac_cv_prog_CC+set}" = set; then 1397 echo $ECHO_N "(cached) $ECHO_C" >&6 1398 else 1399 if test -n "$CC"; then 1400 ac_cv_prog_CC="$CC" # Let the user override the test. 1401 else 1402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1403 for as_dir in $PATH 1404 do 1405 IFS=$as_save_IFS 1406 test -z "$as_dir" && as_dir=. 1407 for ac_exec_ext in '' $ac_executable_extensions; do 1408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1409 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1411 break 2 1412 fi 1413 done 1414 done 1415 1416 fi 1417 fi 1418 CC=$ac_cv_prog_CC 1419 if test -n "$CC"; then 1420 echo "$as_me:$LINENO: result: $CC" >&5 1421 echo "${ECHO_T}$CC" >&6 1422 else 1423 echo "$as_me:$LINENO: result: no" >&5 1424 echo "${ECHO_T}no" >&6 1425 fi 1426 1427 fi 1428 if test -z "$ac_cv_prog_CC"; then 1429 ac_ct_CC=$CC 1430 # Extract the first word of "gcc", so it can be a program name with args. 1431 set dummy gcc; ac_word=$2 1432 echo "$as_me:$LINENO: checking for $ac_word" >&5 1433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1434 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1435 echo $ECHO_N "(cached) $ECHO_C" >&6 1436 else 1437 if test -n "$ac_ct_CC"; then 1438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1439 else 1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1441 for as_dir in $PATH 1442 do 1443 IFS=$as_save_IFS 1444 test -z "$as_dir" && as_dir=. 1445 for ac_exec_ext in '' $ac_executable_extensions; do 1446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1447 ac_cv_prog_ac_ct_CC="gcc" 1448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1449 break 2 1450 fi 1451 done 1452 done 1453 1454 fi 1455 fi 1456 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1457 if test -n "$ac_ct_CC"; then 1458 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1459 echo "${ECHO_T}$ac_ct_CC" >&6 1460 else 1461 echo "$as_me:$LINENO: result: no" >&5 1462 echo "${ECHO_T}no" >&6 1463 fi 1464 1465 CC=$ac_ct_CC 1466 else 1467 CC="$ac_cv_prog_CC" 1468 fi 1469 1470 if test -z "$CC"; then 1471 if test -n "$ac_tool_prefix"; then 1472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1473 set dummy ${ac_tool_prefix}cc; ac_word=$2 1474 echo "$as_me:$LINENO: checking for $ac_word" >&5 1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1476 if test "${ac_cv_prog_CC+set}" = set; then 1477 echo $ECHO_N "(cached) $ECHO_C" >&6 1478 else 1479 if test -n "$CC"; then 1480 ac_cv_prog_CC="$CC" # Let the user override the test. 1481 else 1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1483 for as_dir in $PATH 1484 do 1485 IFS=$as_save_IFS 1486 test -z "$as_dir" && as_dir=. 1487 for ac_exec_ext in '' $ac_executable_extensions; do 1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1489 ac_cv_prog_CC="${ac_tool_prefix}cc" 1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1491 break 2 1492 fi 1493 done 1494 done 1495 1496 fi 1497 fi 1498 CC=$ac_cv_prog_CC 1499 if test -n "$CC"; then 1500 echo "$as_me:$LINENO: result: $CC" >&5 1501 echo "${ECHO_T}$CC" >&6 1502 else 1503 echo "$as_me:$LINENO: result: no" >&5 1504 echo "${ECHO_T}no" >&6 1505 fi 1506 1507 fi 1508 if test -z "$ac_cv_prog_CC"; then 1509 ac_ct_CC=$CC 1510 # Extract the first word of "cc", so it can be a program name with args. 1511 set dummy cc; ac_word=$2 1512 echo "$as_me:$LINENO: checking for $ac_word" >&5 1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1515 echo $ECHO_N "(cached) $ECHO_C" >&6 1516 else 1517 if test -n "$ac_ct_CC"; then 1518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1519 else 1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1521 for as_dir in $PATH 1522 do 1523 IFS=$as_save_IFS 1524 test -z "$as_dir" && as_dir=. 1525 for ac_exec_ext in '' $ac_executable_extensions; do 1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1527 ac_cv_prog_ac_ct_CC="cc" 1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1529 break 2 1530 fi 1531 done 1532 done 1533 1534 fi 1535 fi 1536 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1537 if test -n "$ac_ct_CC"; then 1538 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1539 echo "${ECHO_T}$ac_ct_CC" >&6 1540 else 1541 echo "$as_me:$LINENO: result: no" >&5 1542 echo "${ECHO_T}no" >&6 1543 fi 1544 1545 CC=$ac_ct_CC 1546 else 1547 CC="$ac_cv_prog_CC" 1548 fi 1549 1550 fi 1551 if test -z "$CC"; then 1552 # Extract the first word of "cc", so it can be a program name with args. 1553 set dummy cc; ac_word=$2 1554 echo "$as_me:$LINENO: checking for $ac_word" >&5 1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1556 if test "${ac_cv_prog_CC+set}" = set; then 1557 echo $ECHO_N "(cached) $ECHO_C" >&6 1558 else 1559 if test -n "$CC"; then 1560 ac_cv_prog_CC="$CC" # Let the user override the test. 1561 else 1562 ac_prog_rejected=no 1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1564 for as_dir in $PATH 1565 do 1566 IFS=$as_save_IFS 1567 test -z "$as_dir" && as_dir=. 1568 for ac_exec_ext in '' $ac_executable_extensions; do 1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1571 ac_prog_rejected=yes 1572 continue 1573 fi 1574 ac_cv_prog_CC="cc" 1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1576 break 2 1577 fi 1578 done 1579 done 1580 1581 if test $ac_prog_rejected = yes; then 1582 # We found a bogon in the path, so make sure we never use it. 1583 set dummy $ac_cv_prog_CC 1584 shift 1585 if test $# != 0; then 1586 # We chose a different compiler from the bogus one. 1587 # However, it has the same basename, so the bogon will be chosen 1588 # first if we set CC to just the basename; use the full file name. 1589 shift 1590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1591 fi 1592 fi 1593 fi 1594 fi 1595 CC=$ac_cv_prog_CC 1596 if test -n "$CC"; then 1597 echo "$as_me:$LINENO: result: $CC" >&5 1598 echo "${ECHO_T}$CC" >&6 1599 else 1600 echo "$as_me:$LINENO: result: no" >&5 1601 echo "${ECHO_T}no" >&6 1602 fi 1603 1604 fi 1605 if test -z "$CC"; then 1606 if test -n "$ac_tool_prefix"; then 1607 for ac_prog in cl 1608 do 1609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1611 echo "$as_me:$LINENO: checking for $ac_word" >&5 1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1613 if test "${ac_cv_prog_CC+set}" = set; then 1614 echo $ECHO_N "(cached) $ECHO_C" >&6 1615 else 1616 if test -n "$CC"; then 1617 ac_cv_prog_CC="$CC" # Let the user override the test. 1618 else 1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1620 for as_dir in $PATH 1621 do 1622 IFS=$as_save_IFS 1623 test -z "$as_dir" && as_dir=. 1624 for ac_exec_ext in '' $ac_executable_extensions; do 1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1628 break 2 1629 fi 1630 done 1631 done 1632 1633 fi 1634 fi 1635 CC=$ac_cv_prog_CC 1636 if test -n "$CC"; then 1637 echo "$as_me:$LINENO: result: $CC" >&5 1638 echo "${ECHO_T}$CC" >&6 1639 else 1640 echo "$as_me:$LINENO: result: no" >&5 1641 echo "${ECHO_T}no" >&6 1642 fi 1643 1644 test -n "$CC" && break 1645 done 1646 fi 1647 if test -z "$CC"; then 1648 ac_ct_CC=$CC 1649 for ac_prog in cl 1650 do 1651 # Extract the first word of "$ac_prog", so it can be a program name with args. 1652 set dummy $ac_prog; ac_word=$2 1653 echo "$as_me:$LINENO: checking for $ac_word" >&5 1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1656 echo $ECHO_N "(cached) $ECHO_C" >&6 1657 else 1658 if test -n "$ac_ct_CC"; then 1659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1660 else 1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1662 for as_dir in $PATH 1663 do 1664 IFS=$as_save_IFS 1665 test -z "$as_dir" && as_dir=. 1666 for ac_exec_ext in '' $ac_executable_extensions; do 1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1668 ac_cv_prog_ac_ct_CC="$ac_prog" 1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1670 break 2 1671 fi 1672 done 1673 done 1674 1675 fi 1676 fi 1677 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1678 if test -n "$ac_ct_CC"; then 1679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1680 echo "${ECHO_T}$ac_ct_CC" >&6 1681 else 1682 echo "$as_me:$LINENO: result: no" >&5 1683 echo "${ECHO_T}no" >&6 1684 fi 1685 1686 test -n "$ac_ct_CC" && break 1687 done 1688 1689 CC=$ac_ct_CC 1690 fi 1691 1692 fi 1693 1694 1695 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1696 See \`config.log' for more details." >&5 1697 echo "$as_me: error: no acceptable C compiler found in \$PATH 1698 See \`config.log' for more details." >&2;} 1699 { (exit 1); exit 1; }; } 1700 1701 # Provide some information about the compiler. 1702 echo "$as_me:$LINENO:" \ 1703 "checking for C compiler version" >&5 1704 ac_compiler=`set X $ac_compile; echo $2` 1705 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1706 (eval $ac_compiler --version </dev/null >&5) 2>&5 1707 ac_status=$? 1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1709 (exit $ac_status); } 1710 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1711 (eval $ac_compiler -v </dev/null >&5) 2>&5 1712 ac_status=$? 1713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1714 (exit $ac_status); } 1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1716 (eval $ac_compiler -V </dev/null >&5) 2>&5 1717 ac_status=$? 1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1719 (exit $ac_status); } 1720 1721 cat >conftest.$ac_ext <<_ACEOF 1722 /* confdefs.h. */ 1723 _ACEOF 1724 cat confdefs.h >>conftest.$ac_ext 1725 cat >>conftest.$ac_ext <<_ACEOF 1726 /* end confdefs.h. */ 1727 1728 int 1729 main () 1730 { 1731 1732 ; 1733 return 0; 1734 } 1735 _ACEOF 1736 ac_clean_files_save=$ac_clean_files 1737 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1738 # Try to create an executable without -o first, disregard a.out. 1739 # It will help us diagnose broken compilers, and finding out an intuition 1740 # of exeext. 1741 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1742 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1743 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1744 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1745 (eval $ac_link_default) 2>&5 1746 ac_status=$? 1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1748 (exit $ac_status); }; then 1749 # Find the output, starting from the most likely. This scheme is 1750 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1751 # resort. 1752 1753 # Be careful to initialize this variable, since it used to be cached. 1754 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1755 ac_cv_exeext= 1756 # b.out is created by i960 compilers. 1757 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1758 do 1759 test -f "$ac_file" || continue 1760 case $ac_file in 1761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1762 ;; 1763 conftest.$ac_ext ) 1764 # This is the source file. 1765 ;; 1766 [ab].out ) 1767 # We found the default executable, but exeext='' is most 1768 # certainly right. 1769 break;; 1770 *.* ) 1771 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1772 # FIXME: I believe we export ac_cv_exeext for Libtool, 1773 # but it would be cool to find out if it's true. Does anybody 1774 # maintain Libtool? --akim. 1775 export ac_cv_exeext 1776 break;; 1777 * ) 1778 break;; 1779 esac 1780 done 1781 else 1782 echo "$as_me: failed program was:" >&5 1783 sed 's/^/| /' conftest.$ac_ext >&5 1784 1785 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1786 See \`config.log' for more details." >&5 1787 echo "$as_me: error: C compiler cannot create executables 1788 See \`config.log' for more details." >&2;} 1789 { (exit 77); exit 77; }; } 1790 fi 1791 1792 ac_exeext=$ac_cv_exeext 1793 echo "$as_me:$LINENO: result: $ac_file" >&5 1794 echo "${ECHO_T}$ac_file" >&6 1795 1796 # Check the compiler produces executables we can run. If not, either 1797 # the compiler is broken, or we cross compile. 1798 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1799 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1800 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1801 # If not cross compiling, check that we can run a simple program. 1802 if test "$cross_compiling" != yes; then 1803 if { ac_try='./$ac_file' 1804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1805 (eval $ac_try) 2>&5 1806 ac_status=$? 1807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1808 (exit $ac_status); }; }; then 1809 cross_compiling=no 1810 else 1811 if test "$cross_compiling" = maybe; then 1812 cross_compiling=yes 1813 else 1814 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1815 If you meant to cross compile, use \`--host'. 1816 See \`config.log' for more details." >&5 1817 echo "$as_me: error: cannot run C compiled programs. 1818 If you meant to cross compile, use \`--host'. 1819 See \`config.log' for more details." >&2;} 1820 { (exit 1); exit 1; }; } 1821 fi 1822 fi 1823 fi 1824 echo "$as_me:$LINENO: result: yes" >&5 1825 echo "${ECHO_T}yes" >&6 1826 1827 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1828 ac_clean_files=$ac_clean_files_save 1829 # Check the compiler produces executables we can run. If not, either 1830 # the compiler is broken, or we cross compile. 1831 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1832 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1833 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1834 echo "${ECHO_T}$cross_compiling" >&6 1835 1836 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1837 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1839 (eval $ac_link) 2>&5 1840 ac_status=$? 1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1842 (exit $ac_status); }; then 1843 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1844 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1845 # work properly (i.e., refer to `conftest.exe'), while it won't with 1846 # `rm'. 1847 for ac_file in conftest.exe conftest conftest.*; do 1848 test -f "$ac_file" || continue 1849 case $ac_file in 1850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1851 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1852 export ac_cv_exeext 1853 break;; 1854 * ) break;; 1855 esac 1856 done 1857 else 1858 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1859 See \`config.log' for more details." >&5 1860 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1861 See \`config.log' for more details." >&2;} 1862 { (exit 1); exit 1; }; } 1863 fi 1864 1865 rm -f conftest$ac_cv_exeext 1866 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1867 echo "${ECHO_T}$ac_cv_exeext" >&6 1868 1869 rm -f conftest.$ac_ext 1870 EXEEXT=$ac_cv_exeext 1871 ac_exeext=$EXEEXT 1872 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1873 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1874 if test "${ac_cv_objext+set}" = set; then 1875 echo $ECHO_N "(cached) $ECHO_C" >&6 1876 else 1877 cat >conftest.$ac_ext <<_ACEOF 1878 /* confdefs.h. */ 1879 _ACEOF 1880 cat confdefs.h >>conftest.$ac_ext 1881 cat >>conftest.$ac_ext <<_ACEOF 1882 /* end confdefs.h. */ 1883 1884 int 1885 main () 1886 { 1887 1888 ; 1889 return 0; 1890 } 1891 _ACEOF 1892 rm -f conftest.o conftest.obj 1893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1894 (eval $ac_compile) 2>&5 1895 ac_status=$? 1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1897 (exit $ac_status); }; then 1898 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1899 case $ac_file in 1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1901 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1902 break;; 1903 esac 1904 done 1905 else 1906 echo "$as_me: failed program was:" >&5 1907 sed 's/^/| /' conftest.$ac_ext >&5 1908 1909 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1910 See \`config.log' for more details." >&5 1911 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1912 See \`config.log' for more details." >&2;} 1913 { (exit 1); exit 1; }; } 1914 fi 1915 1916 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1917 fi 1918 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1919 echo "${ECHO_T}$ac_cv_objext" >&6 1920 OBJEXT=$ac_cv_objext 1921 ac_objext=$OBJEXT 1922 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1923 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1924 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1925 echo $ECHO_N "(cached) $ECHO_C" >&6 1926 else 1927 cat >conftest.$ac_ext <<_ACEOF 1928 /* confdefs.h. */ 1929 _ACEOF 1930 cat confdefs.h >>conftest.$ac_ext 1931 cat >>conftest.$ac_ext <<_ACEOF 1932 /* end confdefs.h. */ 1933 1934 int 1935 main () 1936 { 1937 #ifndef __GNUC__ 1938 choke me 1939 #endif 1940 1941 ; 1942 return 0; 1943 } 1944 _ACEOF 1945 rm -f conftest.$ac_objext 1946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1947 (eval $ac_compile) 2>conftest.er1 1948 ac_status=$? 1949 grep -v '^ *+' conftest.er1 >conftest.err 1950 rm -f conftest.er1 1951 cat conftest.err >&5 1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1953 (exit $ac_status); } && 1954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 1955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1956 (eval $ac_try) 2>&5 1957 ac_status=$? 1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1959 (exit $ac_status); }; } && 1960 { ac_try='test -s conftest.$ac_objext' 1961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1962 (eval $ac_try) 2>&5 1963 ac_status=$? 1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1965 (exit $ac_status); }; }; then 1966 ac_compiler_gnu=yes 1967 else 1968 echo "$as_me: failed program was:" >&5 1969 sed 's/^/| /' conftest.$ac_ext >&5 1970 1971 ac_compiler_gnu=no 1972 fi 1973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1974 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1975 1976 fi 1977 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1978 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1979 GCC=`test $ac_compiler_gnu = yes && echo yes` 1980 ac_test_CFLAGS=${CFLAGS+set} 1981 ac_save_CFLAGS=$CFLAGS 1982 CFLAGS="-g" 1983 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1984 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1985 if test "${ac_cv_prog_cc_g+set}" = set; then 1986 echo $ECHO_N "(cached) $ECHO_C" >&6 1987 else 1988 cat >conftest.$ac_ext <<_ACEOF 1989 /* confdefs.h. */ 1990 _ACEOF 1991 cat confdefs.h >>conftest.$ac_ext 1992 cat >>conftest.$ac_ext <<_ACEOF 1993 /* end confdefs.h. */ 1994 1995 int 1996 main () 1997 { 1998 1999 ; 2000 return 0; 2001 } 2002 _ACEOF 2003 rm -f conftest.$ac_objext 2004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2005 (eval $ac_compile) 2>conftest.er1 2006 ac_status=$? 2007 grep -v '^ *+' conftest.er1 >conftest.err 2008 rm -f conftest.er1 2009 cat conftest.err >&5 2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2011 (exit $ac_status); } && 2012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2014 (eval $ac_try) 2>&5 2015 ac_status=$? 2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2017 (exit $ac_status); }; } && 2018 { ac_try='test -s conftest.$ac_objext' 2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2020 (eval $ac_try) 2>&5 2021 ac_status=$? 2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2023 (exit $ac_status); }; }; then 2024 ac_cv_prog_cc_g=yes 2025 else 2026 echo "$as_me: failed program was:" >&5 2027 sed 's/^/| /' conftest.$ac_ext >&5 2028 2029 ac_cv_prog_cc_g=no 2030 fi 2031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2032 fi 2033 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2034 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2035 if test "$ac_test_CFLAGS" = set; then 2036 CFLAGS=$ac_save_CFLAGS 2037 elif test $ac_cv_prog_cc_g = yes; then 2038 if test "$GCC" = yes; then 2039 CFLAGS="-g -O2" 2040 else 2041 CFLAGS="-g" 2042 fi 2043 else 2044 if test "$GCC" = yes; then 2045 CFLAGS="-O2" 2046 else 2047 CFLAGS= 2048 fi 2049 fi 2050 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2051 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2052 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2053 echo $ECHO_N "(cached) $ECHO_C" >&6 2054 else 2055 ac_cv_prog_cc_stdc=no 2056 ac_save_CC=$CC 2057 cat >conftest.$ac_ext <<_ACEOF 2058 /* confdefs.h. */ 2059 _ACEOF 2060 cat confdefs.h >>conftest.$ac_ext 2061 cat >>conftest.$ac_ext <<_ACEOF 2062 /* end confdefs.h. */ 2063 #include <stdarg.h> 2064 #include <stdio.h> 2065 #include <sys/types.h> 2066 #include <sys/stat.h> 2067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2068 struct buf { int x; }; 2069 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2070 static char *e (p, i) 2071 char **p; 2072 int i; 2073 { 2074 return p[i]; 2075 } 2076 static char *f (char * (*g) (char **, int), char **p, ...) 2077 { 2078 char *s; 2079 va_list v; 2080 va_start (v,p); 2081 s = g (p, va_arg (v,int)); 2082 va_end (v); 2083 return s; 2084 } 2085 2086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2087 function prototypes and stuff, but not '\xHH' hex character constants. 2088 These don't provoke an error unfortunately, instead are silently treated 2089 as 'x'. The following induces an error, until -std1 is added to get 2090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2091 array size at least. It's necessary to write '\x00'==0 to get something 2092 that's true only with -std1. */ 2093 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2094 2095 int test (int i, double x); 2096 struct s1 {int (*f) (int a);}; 2097 struct s2 {int (*f) (double a);}; 2098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2099 int argc; 2100 char **argv; 2101 int 2102 main () 2103 { 2104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2105 ; 2106 return 0; 2107 } 2108 _ACEOF 2109 # Don't try gcc -ansi; that turns off useful extensions and 2110 # breaks some systems' header files. 2111 # AIX -qlanglvl=ansi 2112 # Ultrix and OSF/1 -std1 2113 # HP-UX 10.20 and later -Ae 2114 # HP-UX older versions -Aa -D_HPUX_SOURCE 2115 # SVR4 -Xc -D__EXTENSIONS__ 2116 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2117 do 2118 CC="$ac_save_CC $ac_arg" 2119 rm -f conftest.$ac_objext 2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2121 (eval $ac_compile) 2>conftest.er1 2122 ac_status=$? 2123 grep -v '^ *+' conftest.er1 >conftest.err 2124 rm -f conftest.er1 2125 cat conftest.err >&5 2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2127 (exit $ac_status); } && 2128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2130 (eval $ac_try) 2>&5 2131 ac_status=$? 2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2133 (exit $ac_status); }; } && 2134 { ac_try='test -s conftest.$ac_objext' 2135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2136 (eval $ac_try) 2>&5 2137 ac_status=$? 2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2139 (exit $ac_status); }; }; then 2140 ac_cv_prog_cc_stdc=$ac_arg 2141 break 2142 else 2143 echo "$as_me: failed program was:" >&5 2144 sed 's/^/| /' conftest.$ac_ext >&5 2145 2146 fi 2147 rm -f conftest.err conftest.$ac_objext 2148 done 2149 rm -f conftest.$ac_ext conftest.$ac_objext 2150 CC=$ac_save_CC 2151 2152 fi 2153 2154 case "x$ac_cv_prog_cc_stdc" in 2155 x|xno) 2156 echo "$as_me:$LINENO: result: none needed" >&5 2157 echo "${ECHO_T}none needed" >&6 ;; 2158 *) 2159 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2160 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2161 CC="$CC $ac_cv_prog_cc_stdc" ;; 2162 esac 2163 2164 # Some people use a C++ compiler to compile C. Since we use `exit', 2165 # in C++ we need to declare it. In case someone uses the same compiler 2166 # for both compiling C and C++ we need to have the C++ compiler decide 2167 # the declaration of exit, since it's the most demanding environment. 2168 cat >conftest.$ac_ext <<_ACEOF 2169 #ifndef __cplusplus 2170 choke me 2171 #endif 2172 _ACEOF 2173 rm -f conftest.$ac_objext 2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2175 (eval $ac_compile) 2>conftest.er1 2176 ac_status=$? 2177 grep -v '^ *+' conftest.er1 >conftest.err 2178 rm -f conftest.er1 2179 cat conftest.err >&5 2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2181 (exit $ac_status); } && 2182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2184 (eval $ac_try) 2>&5 2185 ac_status=$? 2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2187 (exit $ac_status); }; } && 2188 { ac_try='test -s conftest.$ac_objext' 2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2190 (eval $ac_try) 2>&5 2191 ac_status=$? 2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2193 (exit $ac_status); }; }; then 2194 for ac_declaration in \ 2195 '' \ 2196 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2197 'extern "C" void std::exit (int); using std::exit;' \ 2198 'extern "C" void exit (int) throw ();' \ 2199 'extern "C" void exit (int);' \ 2200 'void exit (int);' 2201 do 2202 cat >conftest.$ac_ext <<_ACEOF 2203 /* confdefs.h. */ 2204 _ACEOF 2205 cat confdefs.h >>conftest.$ac_ext 2206 cat >>conftest.$ac_ext <<_ACEOF 2207 /* end confdefs.h. */ 2208 $ac_declaration 2209 #include <stdlib.h> 2210 int 2211 main () 2212 { 2213 exit (42); 2214 ; 2215 return 0; 2216 } 2217 _ACEOF 2218 rm -f conftest.$ac_objext 2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2220 (eval $ac_compile) 2>conftest.er1 2221 ac_status=$? 2222 grep -v '^ *+' conftest.er1 >conftest.err 2223 rm -f conftest.er1 2224 cat conftest.err >&5 2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2226 (exit $ac_status); } && 2227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2229 (eval $ac_try) 2>&5 2230 ac_status=$? 2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2232 (exit $ac_status); }; } && 2233 { ac_try='test -s conftest.$ac_objext' 2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2235 (eval $ac_try) 2>&5 2236 ac_status=$? 2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2238 (exit $ac_status); }; }; then 2239 : 2240 else 2241 echo "$as_me: failed program was:" >&5 2242 sed 's/^/| /' conftest.$ac_ext >&5 2243 2244 continue 2245 fi 2246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2247 cat >conftest.$ac_ext <<_ACEOF 2248 /* confdefs.h. */ 2249 _ACEOF 2250 cat confdefs.h >>conftest.$ac_ext 2251 cat >>conftest.$ac_ext <<_ACEOF 2252 /* end confdefs.h. */ 2253 $ac_declaration 2254 int 2255 main () 2256 { 2257 exit (42); 2258 ; 2259 return 0; 2260 } 2261 _ACEOF 2262 rm -f conftest.$ac_objext 2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2264 (eval $ac_compile) 2>conftest.er1 2265 ac_status=$? 2266 grep -v '^ *+' conftest.er1 >conftest.err 2267 rm -f conftest.er1 2268 cat conftest.err >&5 2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2270 (exit $ac_status); } && 2271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2273 (eval $ac_try) 2>&5 2274 ac_status=$? 2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2276 (exit $ac_status); }; } && 2277 { ac_try='test -s conftest.$ac_objext' 2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2279 (eval $ac_try) 2>&5 2280 ac_status=$? 2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2282 (exit $ac_status); }; }; then 2283 break 2284 else 2285 echo "$as_me: failed program was:" >&5 2286 sed 's/^/| /' conftest.$ac_ext >&5 2287 2288 fi 2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2290 done 2291 rm -f conftest* 2292 if test -n "$ac_declaration"; then 2293 echo '#ifdef __cplusplus' >>confdefs.h 2294 echo $ac_declaration >>confdefs.h 2295 echo '#endif' >>confdefs.h 2296 fi 2297 2298 else 2299 echo "$as_me: failed program was:" >&5 2300 sed 's/^/| /' conftest.$ac_ext >&5 2301 2302 fi 2303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2304 ac_ext=c 2305 ac_cpp='$CPP $CPPFLAGS' 2306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2308 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2309 2310 2311 ac_ext=c 2312 ac_cpp='$CPP $CPPFLAGS' 2313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2315 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2316 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2317 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2318 # On Suns, sometimes $CPP names a directory. 2319 if test -n "$CPP" && test -d "$CPP"; then 2320 CPP= 2321 fi 2322 if test -z "$CPP"; then 2323 if test "${ac_cv_prog_CPP+set}" = set; then 2324 echo $ECHO_N "(cached) $ECHO_C" >&6 2325 else 2326 # Double quotes because CPP needs to be expanded 2327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2328 do 2329 ac_preproc_ok=false 2330 for ac_c_preproc_warn_flag in '' yes 2331 do 2332 # Use a header file that comes with gcc, so configuring glibc 2333 # with a fresh cross-compiler works. 2334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2335 # <limits.h> exists even on freestanding compilers. 2336 # On the NeXT, cc -E runs the code through the compiler's parser, 2337 # not just through cpp. "Syntax error" is here to catch this case. 2338 cat >conftest.$ac_ext <<_ACEOF 2339 /* confdefs.h. */ 2340 _ACEOF 2341 cat confdefs.h >>conftest.$ac_ext 2342 cat >>conftest.$ac_ext <<_ACEOF 2343 /* end confdefs.h. */ 2344 #ifdef __STDC__ 2345 # include <limits.h> 2346 #else 2347 # include <assert.h> 2348 #endif 2349 Syntax error 2350 _ACEOF 2351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2353 ac_status=$? 2354 grep -v '^ *+' conftest.er1 >conftest.err 2355 rm -f conftest.er1 2356 cat conftest.err >&5 2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2358 (exit $ac_status); } >/dev/null; then 2359 if test -s conftest.err; then 2360 ac_cpp_err=$ac_c_preproc_warn_flag 2361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2362 else 2363 ac_cpp_err= 2364 fi 2365 else 2366 ac_cpp_err=yes 2367 fi 2368 if test -z "$ac_cpp_err"; then 2369 : 2370 else 2371 echo "$as_me: failed program was:" >&5 2372 sed 's/^/| /' conftest.$ac_ext >&5 2373 2374 # Broken: fails on valid input. 2375 continue 2376 fi 2377 rm -f conftest.err conftest.$ac_ext 2378 2379 # OK, works on sane cases. Now check whether non-existent headers 2380 # can be detected and how. 2381 cat >conftest.$ac_ext <<_ACEOF 2382 /* confdefs.h. */ 2383 _ACEOF 2384 cat confdefs.h >>conftest.$ac_ext 2385 cat >>conftest.$ac_ext <<_ACEOF 2386 /* end confdefs.h. */ 2387 #include <ac_nonexistent.h> 2388 _ACEOF 2389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2391 ac_status=$? 2392 grep -v '^ *+' conftest.er1 >conftest.err 2393 rm -f conftest.er1 2394 cat conftest.err >&5 2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2396 (exit $ac_status); } >/dev/null; then 2397 if test -s conftest.err; then 2398 ac_cpp_err=$ac_c_preproc_warn_flag 2399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2400 else 2401 ac_cpp_err= 2402 fi 2403 else 2404 ac_cpp_err=yes 2405 fi 2406 if test -z "$ac_cpp_err"; then 2407 # Broken: success on invalid input. 2408 continue 2409 else 2410 echo "$as_me: failed program was:" >&5 2411 sed 's/^/| /' conftest.$ac_ext >&5 2412 2413 # Passes both tests. 2414 ac_preproc_ok=: 2415 break 2416 fi 2417 rm -f conftest.err conftest.$ac_ext 2418 2419 done 2420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2421 rm -f conftest.err conftest.$ac_ext 2422 if $ac_preproc_ok; then 2423 break 2424 fi 2425 2426 done 2427 ac_cv_prog_CPP=$CPP 2428 2429 fi 2430 CPP=$ac_cv_prog_CPP 2431 else 2432 ac_cv_prog_CPP=$CPP 2433 fi 2434 echo "$as_me:$LINENO: result: $CPP" >&5 2435 echo "${ECHO_T}$CPP" >&6 2436 ac_preproc_ok=false 2437 for ac_c_preproc_warn_flag in '' yes 2438 do 2439 # Use a header file that comes with gcc, so configuring glibc 2440 # with a fresh cross-compiler works. 2441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2442 # <limits.h> exists even on freestanding compilers. 2443 # On the NeXT, cc -E runs the code through the compiler's parser, 2444 # not just through cpp. "Syntax error" is here to catch this case. 2445 cat >conftest.$ac_ext <<_ACEOF 2446 /* confdefs.h. */ 2447 _ACEOF 2448 cat confdefs.h >>conftest.$ac_ext 2449 cat >>conftest.$ac_ext <<_ACEOF 2450 /* end confdefs.h. */ 2451 #ifdef __STDC__ 2452 # include <limits.h> 2453 #else 2454 # include <assert.h> 2455 #endif 2456 Syntax error 2457 _ACEOF 2458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2460 ac_status=$? 2461 grep -v '^ *+' conftest.er1 >conftest.err 2462 rm -f conftest.er1 2463 cat conftest.err >&5 2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2465 (exit $ac_status); } >/dev/null; then 2466 if test -s conftest.err; then 2467 ac_cpp_err=$ac_c_preproc_warn_flag 2468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2469 else 2470 ac_cpp_err= 2471 fi 2472 else 2473 ac_cpp_err=yes 2474 fi 2475 if test -z "$ac_cpp_err"; then 2476 : 2477 else 2478 echo "$as_me: failed program was:" >&5 2479 sed 's/^/| /' conftest.$ac_ext >&5 2480 2481 # Broken: fails on valid input. 2482 continue 2483 fi 2484 rm -f conftest.err conftest.$ac_ext 2485 2486 # OK, works on sane cases. Now check whether non-existent headers 2487 # can be detected and how. 2488 cat >conftest.$ac_ext <<_ACEOF 2489 /* confdefs.h. */ 2490 _ACEOF 2491 cat confdefs.h >>conftest.$ac_ext 2492 cat >>conftest.$ac_ext <<_ACEOF 2493 /* end confdefs.h. */ 2494 #include <ac_nonexistent.h> 2495 _ACEOF 2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2498 ac_status=$? 2499 grep -v '^ *+' conftest.er1 >conftest.err 2500 rm -f conftest.er1 2501 cat conftest.err >&5 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); } >/dev/null; then 2504 if test -s conftest.err; then 2505 ac_cpp_err=$ac_c_preproc_warn_flag 2506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2507 else 2508 ac_cpp_err= 2509 fi 2510 else 2511 ac_cpp_err=yes 2512 fi 2513 if test -z "$ac_cpp_err"; then 2514 # Broken: success on invalid input. 2515 continue 2516 else 2517 echo "$as_me: failed program was:" >&5 2518 sed 's/^/| /' conftest.$ac_ext >&5 2519 2520 # Passes both tests. 2521 ac_preproc_ok=: 2522 break 2523 fi 2524 rm -f conftest.err conftest.$ac_ext 2525 2526 done 2527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2528 rm -f conftest.err conftest.$ac_ext 2529 if $ac_preproc_ok; then 2530 : 2531 else 2532 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2533 See \`config.log' for more details." >&5 2534 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2535 See \`config.log' for more details." >&2;} 2536 { (exit 1); exit 1; }; } 2537 fi 2538 2539 ac_ext=c 2540 ac_cpp='$CPP $CPPFLAGS' 2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2544 2545 2546 echo "$as_me:$LINENO: checking for egrep" >&5 2547 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2548 if test "${ac_cv_prog_egrep+set}" = set; then 2549 echo $ECHO_N "(cached) $ECHO_C" >&6 2550 else 2551 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2552 then ac_cv_prog_egrep='grep -E' 2553 else ac_cv_prog_egrep='egrep' 2554 fi 2555 fi 2556 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2557 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2558 EGREP=$ac_cv_prog_egrep 2559 2560 2561 if test $ac_cv_c_compiler_gnu = yes; then 2562 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 2563 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 2564 if test "${ac_cv_prog_gcc_traditional+set}" = set; then 2565 echo $ECHO_N "(cached) $ECHO_C" >&6 2566 else 2567 ac_pattern="Autoconf.*'x'" 2568 cat >conftest.$ac_ext <<_ACEOF 2569 /* confdefs.h. */ 2570 _ACEOF 2571 cat confdefs.h >>conftest.$ac_ext 2572 cat >>conftest.$ac_ext <<_ACEOF 2573 /* end confdefs.h. */ 2574 #include <sgtty.h> 2575 Autoconf TIOCGETP 2576 _ACEOF 2577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2578 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2579 ac_cv_prog_gcc_traditional=yes 2580 else 2581 ac_cv_prog_gcc_traditional=no 2582 fi 2583 rm -f conftest* 2584 2585 2586 if test $ac_cv_prog_gcc_traditional = no; then 2587 cat >conftest.$ac_ext <<_ACEOF 2588 /* confdefs.h. */ 2589 _ACEOF 2590 cat confdefs.h >>conftest.$ac_ext 2591 cat >>conftest.$ac_ext <<_ACEOF 2592 /* end confdefs.h. */ 2593 #include <termio.h> 2594 Autoconf TCGETA 2595 _ACEOF 2596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2597 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2598 ac_cv_prog_gcc_traditional=yes 2599 fi 2600 rm -f conftest* 2601 2602 fi 2603 fi 2604 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 2605 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2606 if test $ac_cv_prog_gcc_traditional = yes; then 2607 CC="$CC -traditional" 2608 fi 2609 fi 2610 2611 2612 2613 2614 # Check whether --with-trac_user or --without-trac_user was given. 2615 if test "${with_trac_user+set}" = set; then 2616 withval="$with_trac_user" 2617 case "${withval}" in 2618 *) trac_user="${withval}" ;; 2619 esac 2620 else 2621 trac_user="www-data" 2622 2623 fi; 2624 2625 # Check whether --with-mta_user or --without-mta_user was given. 2626 if test "${with_mta_user+set}" = set; then 2627 withval="$with_mta_user" 2628 case "${withval}" in 2629 *) mta_user="${withval}" ;; 2630 esac 2631 else 2632 mta_user="nobody" 2633 2634 fi; ac_config_files="$ac_config_files Makefile email2trac.py delete_spam.py" 1344 2635 cat >confcache <<\_ACEOF 1345 2636 # This file is a shell script that caches the results of configure … … 1893 3184 # Handling of arguments. 1894 3185 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3186 "email2trac.py" ) CONFIG_FILES="$CONFIG_FILES email2trac.py" ;; 3187 "delete_spam.py" ) CONFIG_FILES="$CONFIG_FILES delete_spam.py" ;; 1895 3188 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 1896 3189 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} … … 1977 3270 s,@LIBS@,$LIBS,;t t 1978 3271 s,@pyexecdir@,$pyexecdir,;t t 3272 s,@trac_user@,$trac_user,;t t 3273 s,@mta_user@,$mta_user,;t t 1979 3274 s,@PYTHON@,$PYTHON,;t t 1980 3275 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t … … 1985 3280 s,@pkgpythondir@,$pkgpythondir,;t t 1986 3281 s,@pkgpyexecdir@,$pkgpyexecdir,;t t 3282 s,@CC@,$CC,;t t 3283 s,@CFLAGS@,$CFLAGS,;t t 3284 s,@LDFLAGS@,$LDFLAGS,;t t 3285 s,@CPPFLAGS@,$CPPFLAGS,;t t 3286 s,@ac_ct_CC@,$ac_ct_CC,;t t 3287 s,@EXEEXT@,$EXEEXT,;t t 3288 s,@OBJEXT@,$OBJEXT,;t t 3289 s,@CPP@,$CPP,;t t 3290 s,@EGREP@,$EGREP,;t t 1987 3291 s,@LIBOBJS@,$LIBOBJS,;t t 1988 3292 s,@LTLIBOBJS@,$LTLIBOBJS,;t t -
emailtotracscript/trunk/configure.in
r21 r22 3 3 AC_SUBST(exec_prefix) 4 4 AC_SUBST(pyexecdir) 5 AC_SUBST(trac_user) 6 AC_SUBST(mta_user) 5 7 6 8 AM_PATH_PYTHON 9 AC_PROG_GCC_TRADITIONAL 7 10 11 12 AC_ARG_WITH(trac_user, 13 [ 14 --with-trac_user=USER Specify the name of the user that trac use, 15 default=www-data], 16 17 [case "${withval}" in 18 *) trac_user="${withval}" ;; 19 esac], 20 21 [trac_user="www-data"] 22 )dnl 23 24 AC_ARG_WITH(mta_user, 25 [ 26 --with-mta_user=USER Specify the name of the user that your MTA use, 27 default=nobody], 28 29 [case "${withval}" in 30 *) mta_user="${withval}" ;; 31 esac], 32 33 [mta_user="nobody"] 34 )dnl 8 35 AC_OUTPUT( 9 36 Makefile 37 email2trac.py 38 delete_spam.py 10 39 )
Note: See TracChangeset
for help on using the changeset viewer.