/[public]/psiconv/trunk/configure
ViewVC logotype

Diff of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 20 Revision 21
20ac_help="$ac_help 20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help 22ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)" 23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help 24ac_help="$ac_help
25 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
26ac_help="$ac_help
27 --enable-iso-c Try to warn if code is not ISO C "
28ac_help="$ac_help
25 --with-imagemagick enable ImageMagick (default = yes)" 29 --with-imagemagick enable ImageMagick (default = yes)"
26ac_help="$ac_help 30ac_help="$ac_help
27 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)" 31 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)"
28ac_help="$ac_help 32ac_help="$ac_help
29 --enable-html4-docs Enable generation of HTML 4 docs (default: off)" 33 --enable-html4-docs Enable generation of HTML 4 docs (default: off)"
30ac_help="$ac_help 34ac_help="$ac_help
31 --enable-ascii-docs Enable generation of ASCII docs (default: off)" 35 --enable-ascii-docs Enable generation of ASCII docs (default: off)"
32ac_help="$ac_help 36ac_help="$ac_help
33 --enable-rtf-docs Enable generation of RTF docs (default: off)" 37 --enable-rtf-docs Enable generation of RTF docs (default: off)"
34ac_help="$ac_help
35 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
36ac_help="$ac_help
37 --enable-iso-c Try to warn if code is not ISO C "
38 38
39# Initialize some variables set by options. 39# Initialize some variables set by options.
40# The variables have the same names as the options, with 40# The variables have the same names as the options, with
41# dashes changed to underlines. 41# dashes changed to underlines.
42build=NONE 42build=NONE
1474# Redirect the config.log output again, so that the ltconfig log is not 1474# Redirect the config.log output again, so that the ltconfig log is not
1475# clobbered by the next message. 1475# clobbered by the next message.
1476exec 5>>./config.log 1476exec 5>>./config.log
1477 1477
1478 1478
1479# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1480if test "${enable_compile_warnings+set}" = set; then
1481 enableval="$enable_compile_warnings"
1482 :
1483else
1484 enable_compile_warnings=minimum
1485fi
1486
1487
1488echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1489echo "configure:1490: checking what warning flags to pass to the C compiler" >&5
1490warnCFLAGS=
1491if test "x$GCC" != xyes; then
1492 enable_compile_warnings=no
1493fi
1494if test "x$enable_compile_warnings" != "xno"; then
1495 if test "x$GCC" = "xyes"; then
1496 case " $CFLAGS " in
1497 *\ \ -Wall\ \ *) ;;
1498 *) warnCFLAGS="-Wall -Wunused" ;;
1499 esac
1500
1501 ## -W is not all that useful. And it cannot be controlled
1502 ## with individual -Wno-xxx flags, unlike -Wall
1503 if test "x$enable_compile_warnings" = "xyes"; then
1504 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
1505 fi
1506 fi
1507fi
1508echo "$ac_t""$warnCFLAGS" 1>&6
1509
1510# Check whether --enable-iso-c or --disable-iso-c was given.
1511if test "${enable_iso_c+set}" = set; then
1512 enableval="$enable_iso_c"
1513 :
1514else
1515 enable_iso_c=no
1516fi
1517
1518
1519echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1520echo "configure:1521: checking what language compliance flags to pass to the C compiler" >&5
1521complCFLAGS=
1522if test "x$enable_iso_c" != "xno"; then
1523 if test "x$GCC" = "xyes"; then
1524 case " $CFLAGS " in
1525 *\ \ -ansi\ \ *) ;;
1526 *) complCFLAGS="$complCFLAGS -ansi" ;;
1527 esac
1528
1529 case " $CFLAGS " in
1530 *\ \ -pedantic\ \ *) ;;
1531 *) complCFLAGS="$complCFLAGS -pedantic" ;;
1532 esac
1533 fi
1534fi
1535echo "$ac_t""$complCFLAGS" 1>&6
1536if test "x$cflags_set" != "xyes"; then
1537 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1538 cflags_set=yes
1539
1540fi
1541
1542
1479# Check whether --with-imagemagick or --without-imagemagick was given. 1543# Check whether --with-imagemagick or --without-imagemagick was given.
1480if test "${with_imagemagick+set}" = set; then 1544if test "${with_imagemagick+set}" = set; then
1481 withval="$with_imagemagick" 1545 withval="$with_imagemagick"
1482 IMAGEMAGICK=$withval 1546 IMAGEMAGICK=$withval
1483else 1547else
1484 IMAGEMAGICK='yes' 1548 IMAGEMAGICK='yes'
1485fi 1549fi
1486 1550
1487if test x"$IMAGEMAGICK" != xno ; then 1551if test x"$IMAGEMAGICK" != xno ; then
1488 echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6 1552 echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6
1489echo "configure:1490: checking for MagickWarning in -lMagick" >&5 1553echo "configure:1554: checking for MagickWarning in -lMagick" >&5
1490ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'` 1554ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'`
1491if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1555if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6 1556 echo $ac_n "(cached) $ac_c" 1>&6
1493else 1557else
1494 ac_save_LIBS="$LIBS" 1558 ac_save_LIBS="$LIBS"
1495LIBS="-lMagick $LIBS" 1559LIBS="-lMagick $LIBS"
1496cat > conftest.$ac_ext <<EOF 1560cat > conftest.$ac_ext <<EOF
1497#line 1498 "configure" 1561#line 1562 "configure"
1498#include "confdefs.h" 1562#include "confdefs.h"
1499/* Override any gcc2 internal prototype to avoid an error. */ 1563/* Override any gcc2 internal prototype to avoid an error. */
1500/* We use char because int might match the return type of a gcc2 1564/* We use char because int might match the return type of a gcc2
1501 builtin and then its argument prototype would still apply. */ 1565 builtin and then its argument prototype would still apply. */
1502char MagickWarning(); 1566char MagickWarning();
1503 1567
1504int main() { 1568int main() {
1505MagickWarning() 1569MagickWarning()
1506; return 0; } 1570; return 0; }
1507EOF 1571EOF
1508if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1572if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1509 rm -rf conftest* 1573 rm -rf conftest*
1510 eval "ac_cv_lib_$ac_lib_var=yes" 1574 eval "ac_cv_lib_$ac_lib_var=yes"
1511else 1575else
1512 echo "configure: failed program was:" >&5 1576 echo "configure: failed program was:" >&5
1513 cat conftest.$ac_ext >&5 1577 cat conftest.$ac_ext >&5
1540 LIB_MAGICK= 1604 LIB_MAGICK=
1541fi 1605fi
1542 1606
1543 1607
1544echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1608echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1545echo "configure:1546: checking how to run the C preprocessor" >&5 1609echo "configure:1610: checking how to run the C preprocessor" >&5
1546# On Suns, sometimes $CPP names a directory. 1610# On Suns, sometimes $CPP names a directory.
1547if test -n "$CPP" && test -d "$CPP"; then 1611if test -n "$CPP" && test -d "$CPP"; then
1548 CPP= 1612 CPP=
1549fi 1613fi
1550if test -z "$CPP"; then 1614if test -z "$CPP"; then
1555 # substituted into the Makefile and "${CC-cc}" will confuse make. 1619 # substituted into the Makefile and "${CC-cc}" will confuse make.
1556 CPP="${CC-cc} -E" 1620 CPP="${CC-cc} -E"
1557 # On the NeXT, cc -E runs the code through the compiler's parser, 1621 # On the NeXT, cc -E runs the code through the compiler's parser,
1558 # not just through cpp. 1622 # not just through cpp.
1559 cat > conftest.$ac_ext <<EOF 1623 cat > conftest.$ac_ext <<EOF
1560#line 1561 "configure" 1624#line 1625 "configure"
1561#include "confdefs.h" 1625#include "confdefs.h"
1562#include <assert.h> 1626#include <assert.h>
1563Syntax Error 1627Syntax Error
1564EOF 1628EOF
1565ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1629ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1566{ (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1630{ (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1567ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1631ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1568if test -z "$ac_err"; then 1632if test -z "$ac_err"; then
1569 : 1633 :
1570else 1634else
1571 echo "$ac_err" >&5 1635 echo "$ac_err" >&5
1572 echo "configure: failed program was:" >&5 1636 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5 1637 cat conftest.$ac_ext >&5
1574 rm -rf conftest* 1638 rm -rf conftest*
1575 CPP="${CC-cc} -E -traditional-cpp" 1639 CPP="${CC-cc} -E -traditional-cpp"
1576 cat > conftest.$ac_ext <<EOF 1640 cat > conftest.$ac_ext <<EOF
1577#line 1578 "configure" 1641#line 1642 "configure"
1578#include "confdefs.h" 1642#include "confdefs.h"
1579#include <assert.h> 1643#include <assert.h>
1580Syntax Error 1644Syntax Error
1581EOF 1645EOF
1582ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1646ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1583{ (eval echo configure:1584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1647{ (eval echo configure:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1584ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1648ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1585if test -z "$ac_err"; then 1649if test -z "$ac_err"; then
1586 : 1650 :
1587else 1651else
1588 echo "$ac_err" >&5 1652 echo "$ac_err" >&5
1589 echo "configure: failed program was:" >&5 1653 echo "configure: failed program was:" >&5
1590 cat conftest.$ac_ext >&5 1654 cat conftest.$ac_ext >&5
1591 rm -rf conftest* 1655 rm -rf conftest*
1592 CPP="${CC-cc} -nologo -E" 1656 CPP="${CC-cc} -nologo -E"
1593 cat > conftest.$ac_ext <<EOF 1657 cat > conftest.$ac_ext <<EOF
1594#line 1595 "configure" 1658#line 1659 "configure"
1595#include "confdefs.h" 1659#include "confdefs.h"
1596#include <assert.h> 1660#include <assert.h>
1597Syntax Error 1661Syntax Error
1598EOF 1662EOF
1599ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1600{ (eval echo configure:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1664{ (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1601ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1665ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1602if test -z "$ac_err"; then 1666if test -z "$ac_err"; then
1603 : 1667 :
1604else 1668else
1605 echo "$ac_err" >&5 1669 echo "$ac_err" >&5
1620 ac_cv_prog_CPP="$CPP" 1684 ac_cv_prog_CPP="$CPP"
1621fi 1685fi
1622echo "$ac_t""$CPP" 1>&6 1686echo "$ac_t""$CPP" 1>&6
1623 1687
1624echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1688echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1625echo "configure:1626: checking for ANSI C header files" >&5 1689echo "configure:1690: checking for ANSI C header files" >&5
1626if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1690if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6 1691 echo $ac_n "(cached) $ac_c" 1>&6
1628else 1692else
1629 cat > conftest.$ac_ext <<EOF 1693 cat > conftest.$ac_ext <<EOF
1630#line 1631 "configure" 1694#line 1695 "configure"
1631#include "confdefs.h" 1695#include "confdefs.h"
1632#include <stdlib.h> 1696#include <stdlib.h>
1633#include <stdarg.h> 1697#include <stdarg.h>
1634#include <string.h> 1698#include <string.h>
1635#include <float.h> 1699#include <float.h>
1636EOF 1700EOF
1637ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1701ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1638{ (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1702{ (eval echo configure:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1639ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1703ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1640if test -z "$ac_err"; then 1704if test -z "$ac_err"; then
1641 rm -rf conftest* 1705 rm -rf conftest*
1642 ac_cv_header_stdc=yes 1706 ac_cv_header_stdc=yes
1643else 1707else
1650rm -f conftest* 1714rm -f conftest*
1651 1715
1652if test $ac_cv_header_stdc = yes; then 1716if test $ac_cv_header_stdc = yes; then
1653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1654cat > conftest.$ac_ext <<EOF 1718cat > conftest.$ac_ext <<EOF
1655#line 1656 "configure" 1719#line 1720 "configure"
1656#include "confdefs.h" 1720#include "confdefs.h"
1657#include <string.h> 1721#include <string.h>
1658EOF 1722EOF
1659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1660 egrep "memchr" >/dev/null 2>&1; then 1724 egrep "memchr" >/dev/null 2>&1; then
1668fi 1732fi
1669 1733
1670if test $ac_cv_header_stdc = yes; then 1734if test $ac_cv_header_stdc = yes; then
1671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1672cat > conftest.$ac_ext <<EOF 1736cat > conftest.$ac_ext <<EOF
1673#line 1674 "configure" 1737#line 1738 "configure"
1674#include "confdefs.h" 1738#include "confdefs.h"
1675#include <stdlib.h> 1739#include <stdlib.h>
1676EOF 1740EOF
1677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1678 egrep "free" >/dev/null 2>&1; then 1742 egrep "free" >/dev/null 2>&1; then
1689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1690if test "$cross_compiling" = yes; then 1754if test "$cross_compiling" = yes; then
1691 : 1755 :
1692else 1756else
1693 cat > conftest.$ac_ext <<EOF 1757 cat > conftest.$ac_ext <<EOF
1694#line 1695 "configure" 1758#line 1759 "configure"
1695#include "confdefs.h" 1759#include "confdefs.h"
1696#include <ctype.h> 1760#include <ctype.h>
1697#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1761#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1698#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1762#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1699#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1763#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1700int main () { int i; for (i = 0; i < 256; i++) 1764int main () { int i; for (i = 0; i < 256; i++)
1701if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1765if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1702exit (0); } 1766exit (0); }
1703 1767
1704EOF 1768EOF
1705if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1769if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1706then 1770then
1707 : 1771 :
1708else 1772else
1709 echo "configure: failed program was:" >&5 1773 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5 1774 cat conftest.$ac_ext >&5
1727 1791
1728for ac_hdr in unistd.h 1792for ac_hdr in unistd.h
1729do 1793do
1730ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1794ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1731echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1795echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1732echo "configure:1733: checking for $ac_hdr" >&5 1796echo "configure:1797: checking for $ac_hdr" >&5
1733if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1797if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6 1798 echo $ac_n "(cached) $ac_c" 1>&6
1735else 1799else
1736 cat > conftest.$ac_ext <<EOF 1800 cat > conftest.$ac_ext <<EOF
1737#line 1738 "configure" 1801#line 1802 "configure"
1738#include "confdefs.h" 1802#include "confdefs.h"
1739#include <$ac_hdr> 1803#include <$ac_hdr>
1740EOF 1804EOF
1741ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1805ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1742{ (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1806{ (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1743ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1807ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1744if test -z "$ac_err"; then 1808if test -z "$ac_err"; then
1745 rm -rf conftest* 1809 rm -rf conftest*
1746 eval "ac_cv_header_$ac_safe=yes" 1810 eval "ac_cv_header_$ac_safe=yes"
1747else 1811else
1765fi 1829fi
1766done 1830done
1767 1831
1768 1832
1769echo $ac_n "checking for working const""... $ac_c" 1>&6 1833echo $ac_n "checking for working const""... $ac_c" 1>&6
1770echo "configure:1771: checking for working const" >&5 1834echo "configure:1835: checking for working const" >&5
1771if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1835if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6 1836 echo $ac_n "(cached) $ac_c" 1>&6
1773else 1837else
1774 cat > conftest.$ac_ext <<EOF 1838 cat > conftest.$ac_ext <<EOF
1775#line 1776 "configure" 1839#line 1840 "configure"
1776#include "confdefs.h" 1840#include "confdefs.h"
1777 1841
1778int main() { 1842int main() {
1779 1843
1780/* Ultrix mips cc rejects this. */ 1844/* Ultrix mips cc rejects this. */
1819 const int foo = 10; 1883 const int foo = 10;
1820} 1884}
1821 1885
1822; return 0; } 1886; return 0; }
1823EOF 1887EOF
1824if { (eval echo configure:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1888if { (eval echo configure:1889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1825 rm -rf conftest* 1889 rm -rf conftest*
1826 ac_cv_c_const=yes 1890 ac_cv_c_const=yes
1827else 1891else
1828 echo "configure: failed program was:" >&5 1892 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5 1893 cat conftest.$ac_ext >&5
1840EOF 1904EOF
1841 1905
1842fi 1906fi
1843 1907
1844echo $ac_n "checking for size_t""... $ac_c" 1>&6 1908echo $ac_n "checking for size_t""... $ac_c" 1>&6
1845echo "configure:1846: checking for size_t" >&5 1909echo "configure:1910: checking for size_t" >&5
1846if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1910if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6 1911 echo $ac_n "(cached) $ac_c" 1>&6
1848else 1912else
1849 cat > conftest.$ac_ext <<EOF 1913 cat > conftest.$ac_ext <<EOF
1850#line 1851 "configure" 1914#line 1915 "configure"
1851#include "confdefs.h" 1915#include "confdefs.h"
1852#include <sys/types.h> 1916#include <sys/types.h>
1853#if STDC_HEADERS 1917#if STDC_HEADERS
1854#include <stdlib.h> 1918#include <stdlib.h>
1855#include <stddef.h> 1919#include <stddef.h>
1875fi 1939fi
1876 1940
1877 1941
1878 1942
1879echo $ac_n "checking size of char""... $ac_c" 1>&6 1943echo $ac_n "checking size of char""... $ac_c" 1>&6
1880echo "configure:1881: checking size of char" >&5 1944echo "configure:1945: checking size of char" >&5
1881if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 1945if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6 1946 echo $ac_n "(cached) $ac_c" 1>&6
1883else 1947else
1884 if test "$cross_compiling" = yes; then 1948 if test "$cross_compiling" = yes; then
1885 ac_cv_sizeof_char=1 1949 ac_cv_sizeof_char=1
1886else 1950else
1887 cat > conftest.$ac_ext <<EOF 1951 cat > conftest.$ac_ext <<EOF
1888#line 1889 "configure" 1952#line 1953 "configure"
1889#include "confdefs.h" 1953#include "confdefs.h"
1890#include <stdio.h> 1954#include <stdio.h>
1891main() 1955main()
1892{ 1956{
1893 FILE *f=fopen("conftestval", "w"); 1957 FILE *f=fopen("conftestval", "w");
1894 if (!f) exit(1); 1958 if (!f) exit(1);
1895 fprintf(f, "%d\n", sizeof(char)); 1959 fprintf(f, "%d\n", sizeof(char));
1896 exit(0); 1960 exit(0);
1897} 1961}
1898EOF 1962EOF
1899if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1963if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1900then 1964then
1901 ac_cv_sizeof_char=`cat conftestval` 1965 ac_cv_sizeof_char=`cat conftestval`
1902else 1966else
1903 echo "configure: failed program was:" >&5 1967 echo "configure: failed program was:" >&5
1904 cat conftest.$ac_ext >&5 1968 cat conftest.$ac_ext >&5
1914#define SIZEOF_CHAR $ac_cv_sizeof_char 1978#define SIZEOF_CHAR $ac_cv_sizeof_char
1915EOF 1979EOF
1916 1980
1917 1981
1918echo $ac_n "checking size of short""... $ac_c" 1>&6 1982echo $ac_n "checking size of short""... $ac_c" 1>&6
1919echo "configure:1920: checking size of short" >&5 1983echo "configure:1984: checking size of short" >&5
1920if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 1984if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6 1985 echo $ac_n "(cached) $ac_c" 1>&6
1922else 1986else
1923 if test "$cross_compiling" = yes; then 1987 if test "$cross_compiling" = yes; then
1924 ac_cv_sizeof_short=1 1988 ac_cv_sizeof_short=1
1925else 1989else
1926 cat > conftest.$ac_ext <<EOF 1990 cat > conftest.$ac_ext <<EOF
1927#line 1928 "configure" 1991#line 1992 "configure"
1928#include "confdefs.h" 1992#include "confdefs.h"
1929#include <stdio.h> 1993#include <stdio.h>
1930main() 1994main()
1931{ 1995{
1932 FILE *f=fopen("conftestval", "w"); 1996 FILE *f=fopen("conftestval", "w");
1933 if (!f) exit(1); 1997 if (!f) exit(1);
1934 fprintf(f, "%d\n", sizeof(short)); 1998 fprintf(f, "%d\n", sizeof(short));
1935 exit(0); 1999 exit(0);
1936} 2000}
1937EOF 2001EOF
1938if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2002if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1939then 2003then
1940 ac_cv_sizeof_short=`cat conftestval` 2004 ac_cv_sizeof_short=`cat conftestval`
1941else 2005else
1942 echo "configure: failed program was:" >&5 2006 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5 2007 cat conftest.$ac_ext >&5
1953#define SIZEOF_SHORT $ac_cv_sizeof_short 2017#define SIZEOF_SHORT $ac_cv_sizeof_short
1954EOF 2018EOF
1955 2019
1956 2020
1957echo $ac_n "checking size of int""... $ac_c" 1>&6 2021echo $ac_n "checking size of int""... $ac_c" 1>&6
1958echo "configure:1959: checking size of int" >&5 2022echo "configure:2023: checking size of int" >&5
1959if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 2023if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6 2024 echo $ac_n "(cached) $ac_c" 1>&6
1961else 2025else
1962 if test "$cross_compiling" = yes; then 2026 if test "$cross_compiling" = yes; then
1963 ac_cv_sizeof_int=2 2027 ac_cv_sizeof_int=2
1964else 2028else
1965 cat > conftest.$ac_ext <<EOF 2029 cat > conftest.$ac_ext <<EOF
1966#line 1967 "configure" 2030#line 2031 "configure"
1967#include "confdefs.h" 2031#include "confdefs.h"
1968#include <stdio.h> 2032#include <stdio.h>
1969main() 2033main()
1970{ 2034{
1971 FILE *f=fopen("conftestval", "w"); 2035 FILE *f=fopen("conftestval", "w");
1972 if (!f) exit(1); 2036 if (!f) exit(1);
1973 fprintf(f, "%d\n", sizeof(int)); 2037 fprintf(f, "%d\n", sizeof(int));
1974 exit(0); 2038 exit(0);
1975} 2039}
1976EOF 2040EOF
1977if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2041if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1978then 2042then
1979 ac_cv_sizeof_int=`cat conftestval` 2043 ac_cv_sizeof_int=`cat conftestval`
1980else 2044else
1981 echo "configure: failed program was:" >&5 2045 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5 2046 cat conftest.$ac_ext >&5
1992#define SIZEOF_INT $ac_cv_sizeof_int 2056#define SIZEOF_INT $ac_cv_sizeof_int
1993EOF 2057EOF
1994 2058
1995 2059
1996echo $ac_n "checking size of long""... $ac_c" 1>&6 2060echo $ac_n "checking size of long""... $ac_c" 1>&6
1997echo "configure:1998: checking size of long" >&5 2061echo "configure:2062: checking size of long" >&5
1998if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 2062if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6 2063 echo $ac_n "(cached) $ac_c" 1>&6
2000else 2064else
2001 if test "$cross_compiling" = yes; then 2065 if test "$cross_compiling" = yes; then
2002 ac_cv_sizeof_long=4 2066 ac_cv_sizeof_long=4
2003else 2067else
2004 cat > conftest.$ac_ext <<EOF 2068 cat > conftest.$ac_ext <<EOF
2005#line 2006 "configure" 2069#line 2070 "configure"
2006#include "confdefs.h" 2070#include "confdefs.h"
2007#include <stdio.h> 2071#include <stdio.h>
2008main() 2072main()
2009{ 2073{
2010 FILE *f=fopen("conftestval", "w"); 2074 FILE *f=fopen("conftestval", "w");
2011 if (!f) exit(1); 2075 if (!f) exit(1);
2012 fprintf(f, "%d\n", sizeof(long)); 2076 fprintf(f, "%d\n", sizeof(long));
2013 exit(0); 2077 exit(0);
2014} 2078}
2015EOF 2079EOF
2016if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2080if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2017then 2081then
2018 ac_cv_sizeof_long=`cat conftestval` 2082 ac_cv_sizeof_long=`cat conftestval`
2019else 2083else
2020 echo "configure: failed program was:" >&5 2084 echo "configure: failed program was:" >&5
2021 cat conftest.$ac_ext >&5 2085 cat conftest.$ac_ext >&5
2032EOF 2096EOF
2033 2097
2034 2098
2035 2099
2036echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 2100echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6
2037echo "configure:2038: checking for an 8 bit integer type" >&5 2101echo "configure:2102: checking for an 8 bit integer type" >&5
2038if test $ac_cv_sizeof_char -ge 1 ; then 2102if test $ac_cv_sizeof_char -ge 1 ; then
2039 INT_8_BIT=char 2103 INT_8_BIT=char
2040 echo "$ac_t""char" 1>&6 2104 echo "$ac_t""char" 1>&6
2041elif test $ac_cv_sizeof_short -ge 1 ; then 2105elif test $ac_cv_sizeof_short -ge 1 ; then
2042 INT_8_BIT=short 2106 INT_8_BIT=short
2050else 2114else
2051 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } 2115 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; }
2052fi 2116fi
2053 2117
2054echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 2118echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6
2055echo "configure:2056: checking for a 16 bit integer type" >&5 2119echo "configure:2120: checking for a 16 bit integer type" >&5
2056if test $ac_cv_sizeof_char -ge 2 ; then 2120if test $ac_cv_sizeof_char -ge 2 ; then
2057 INT_16_BIT=char 2121 INT_16_BIT=char
2058 echo "$ac_t""char" 1>&6 2122 echo "$ac_t""char" 1>&6
2059elif test $ac_cv_sizeof_short -ge 2 ; then 2123elif test $ac_cv_sizeof_short -ge 2 ; then
2060 INT_16_BIT=short 2124 INT_16_BIT=short
2068else 2132else
2069 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } 2133 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; }
2070fi 2134fi
2071 2135
2072echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 2136echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6
2073echo "configure:2074: checking for a 32 bit integer type" >&5 2137echo "configure:2138: checking for a 32 bit integer type" >&5
2074if test $ac_cv_sizeof_char -ge 4 ; then 2138if test $ac_cv_sizeof_char -ge 4 ; then
2075 INT_32_BIT=char 2139 INT_32_BIT=char
2076 echo "$ac_t""char" 1>&6 2140 echo "$ac_t""char" 1>&6
2077elif test $ac_cv_sizeof_short -ge 4 ; then 2141elif test $ac_cv_sizeof_short -ge 4 ; then
2078 INT_32_BIT=short 2142 INT_32_BIT=short
2090 2154
2091 2155
2092 2156
2093 2157
2094echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2158echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2095echo "configure:2096: checking for vprintf" >&5 2159echo "configure:2160: checking for vprintf" >&5
2096if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2160if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6 2161 echo $ac_n "(cached) $ac_c" 1>&6
2098else 2162else
2099 cat > conftest.$ac_ext <<EOF 2163 cat > conftest.$ac_ext <<EOF
2100#line 2101 "configure" 2164#line 2165 "configure"
2101#include "confdefs.h" 2165#include "confdefs.h"
2102/* System header to define __stub macros and hopefully few prototypes, 2166/* System header to define __stub macros and hopefully few prototypes,
2103 which can conflict with char vprintf(); below. */ 2167 which can conflict with char vprintf(); below. */
2104#include <assert.h> 2168#include <assert.h>
2105/* Override any gcc2 internal prototype to avoid an error. */ 2169/* Override any gcc2 internal prototype to avoid an error. */
2118vprintf(); 2182vprintf();
2119#endif 2183#endif
2120 2184
2121; return 0; } 2185; return 0; }
2122EOF 2186EOF
2123if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2187if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2124 rm -rf conftest* 2188 rm -rf conftest*
2125 eval "ac_cv_func_vprintf=yes" 2189 eval "ac_cv_func_vprintf=yes"
2126else 2190else
2127 echo "configure: failed program was:" >&5 2191 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5 2192 cat conftest.$ac_ext >&5
2142 echo "$ac_t""no" 1>&6 2206 echo "$ac_t""no" 1>&6
2143fi 2207fi
2144 2208
2145if test "$ac_cv_func_vprintf" != yes; then 2209if test "$ac_cv_func_vprintf" != yes; then
2146echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2210echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2147echo "configure:2148: checking for _doprnt" >&5 2211echo "configure:2212: checking for _doprnt" >&5
2148if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2212if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6 2213 echo $ac_n "(cached) $ac_c" 1>&6
2150else 2214else
2151 cat > conftest.$ac_ext <<EOF 2215 cat > conftest.$ac_ext <<EOF
2152#line 2153 "configure" 2216#line 2217 "configure"
2153#include "confdefs.h" 2217#include "confdefs.h"
2154/* System header to define __stub macros and hopefully few prototypes, 2218/* System header to define __stub macros and hopefully few prototypes,
2155 which can conflict with char _doprnt(); below. */ 2219 which can conflict with char _doprnt(); below. */
2156#include <assert.h> 2220#include <assert.h>
2157/* Override any gcc2 internal prototype to avoid an error. */ 2221/* Override any gcc2 internal prototype to avoid an error. */
2170_doprnt(); 2234_doprnt();
2171#endif 2235#endif
2172 2236
2173; return 0; } 2237; return 0; }
2174EOF 2238EOF
2175if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2239if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2176 rm -rf conftest* 2240 rm -rf conftest*
2177 eval "ac_cv_func__doprnt=yes" 2241 eval "ac_cv_func__doprnt=yes"
2178else 2242else
2179 echo "configure: failed program was:" >&5 2243 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5 2244 cat conftest.$ac_ext >&5
2197fi 2261fi
2198 2262
2199for ac_func in strdup 2263for ac_func in strdup
2200do 2264do
2201echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2265echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2202echo "configure:2203: checking for $ac_func" >&5 2266echo "configure:2267: checking for $ac_func" >&5
2203if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2267if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6 2268 echo $ac_n "(cached) $ac_c" 1>&6
2205else 2269else
2206 cat > conftest.$ac_ext <<EOF 2270 cat > conftest.$ac_ext <<EOF
2207#line 2208 "configure" 2271#line 2272 "configure"
2208#include "confdefs.h" 2272#include "confdefs.h"
2209/* System header to define __stub macros and hopefully few prototypes, 2273/* System header to define __stub macros and hopefully few prototypes,
2210 which can conflict with char $ac_func(); below. */ 2274 which can conflict with char $ac_func(); below. */
2211#include <assert.h> 2275#include <assert.h>
2212/* Override any gcc2 internal prototype to avoid an error. */ 2276/* Override any gcc2 internal prototype to avoid an error. */
2225$ac_func(); 2289$ac_func();
2226#endif 2290#endif
2227 2291
2228; return 0; } 2292; return 0; }
2229EOF 2293EOF
2230if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2294if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2231 rm -rf conftest* 2295 rm -rf conftest*
2232 eval "ac_cv_func_$ac_func=yes" 2296 eval "ac_cv_func_$ac_func=yes"
2233else 2297else
2234 echo "configure: failed program was:" >&5 2298 echo "configure: failed program was:" >&5
2235 cat conftest.$ac_ext >&5 2299 cat conftest.$ac_ext >&5
2246#define $ac_tr_func 1 2310#define $ac_tr_func 1
2247EOF 2311EOF
2248 2312
2249else 2313else
2250 echo "$ac_t""no" 1>&6 2314 echo "$ac_t""no" 1>&6
2315LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2251fi 2316fi
2252done 2317done
2253 2318
2254for ac_func in strdup 2319
2320for ac_func in getopt_long
2255do 2321do
2256echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2322echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2257echo "configure:2258: checking for $ac_func" >&5 2323echo "configure:2324: checking for $ac_func" >&5
2258if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2324if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6 2325 echo $ac_n "(cached) $ac_c" 1>&6
2260else 2326else
2261 cat > conftest.$ac_ext <<EOF 2327 cat > conftest.$ac_ext <<EOF
2262#line 2263 "configure" 2328#line 2329 "configure"
2263#include "confdefs.h" 2329#include "confdefs.h"
2264/* System header to define __stub macros and hopefully few prototypes, 2330/* System header to define __stub macros and hopefully few prototypes,
2265 which can conflict with char $ac_func(); below. */ 2331 which can conflict with char $ac_func(); below. */
2266#include <assert.h> 2332#include <assert.h>
2267/* Override any gcc2 internal prototype to avoid an error. */ 2333/* Override any gcc2 internal prototype to avoid an error. */
2280$ac_func(); 2346$ac_func();
2281#endif 2347#endif
2282 2348
2283; return 0; } 2349; return 0; }
2284EOF 2350EOF
2285if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2351if { (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_func_$ac_func=yes" 2353 eval "ac_cv_func_$ac_func=yes"
2288else 2354else
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
2301#define $ac_tr_func 1 2367#define $ac_tr_func 1
2302EOF 2368EOF
2303 2369
2304else 2370else
2305 echo "$ac_t""no" 1>&6 2371 echo "$ac_t""no" 1>&6
2306LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2372LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2307fi 2373fi
2308done 2374done
2309 2375
2310 2376
2311 2377
2395else 2461else
2396 RTFDOCS_TRUE='#' 2462 RTFDOCS_TRUE='#'
2397 RTFDOCS_FALSE= 2463 RTFDOCS_FALSE=
2398fi 2464fi
2399 2465
2400# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
2401if test "${enable_compile_warnings+set}" = set; then
2402 enableval="$enable_compile_warnings"
2403 :
2404else
2405 enable_compile_warnings=minimum
2406fi
2407
2408
2409echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
2410echo "configure:2411: checking what warning flags to pass to the C compiler" >&5
2411warnCFLAGS=
2412if test "x$GCC" != xyes; then
2413 enable_compile_warnings=no
2414fi
2415if test "x$enable_compile_warnings" != "xno"; then
2416 if test "x$GCC" = "xyes"; then
2417 case " $CFLAGS " in
2418 *\ \ -Wall\ \ *) ;;
2419 *) warnCFLAGS="-Wall -Wunused" ;;
2420 esac
2421
2422 ## -W is not all that useful. And it cannot be controlled
2423 ## with individual -Wno-xxx flags, unlike -Wall
2424 if test "x$enable_compile_warnings" = "xyes"; then
2425 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
2426 fi
2427 fi
2428fi
2429echo "$ac_t""$warnCFLAGS" 1>&6
2430
2431# Check whether --enable-iso-c or --disable-iso-c was given.
2432if test "${enable_iso_c+set}" = set; then
2433 enableval="$enable_iso_c"
2434 :
2435else
2436 enable_iso_c=no
2437fi
2438
2439
2440echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
2441echo "configure:2442: checking what language compliance flags to pass to the C compiler" >&5
2442complCFLAGS=
2443if test "x$enable_iso_c" != "xno"; then
2444 if test "x$GCC" = "xyes"; then
2445 case " $CFLAGS " in
2446 *\ \ -ansi\ \ *) ;;
2447 *) complCFLAGS="$complCFLAGS -ansi" ;;
2448 esac
2449
2450 case " $CFLAGS " in
2451 *\ \ -pedantic\ \ *) ;;
2452 *) complCFLAGS="$complCFLAGS -pedantic" ;;
2453 esac
2454 fi
2455fi
2456echo "$ac_t""$complCFLAGS" 1>&6
2457if test "x$cflags_set" != "xyes"; then
2458 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
2459 cflags_set=yes
2460
2461fi
2462 2466
2463trap '' 1 2 15 2467trap '' 1 2 15
2464cat > confcache <<\EOF 2468cat > confcache <<\EOF
2465# This file is a shell script that caches the results of configure 2469# This file is a shell script that caches the results of configure
2466# tests run on this system so they can be shared between configure 2470# tests run on this system so they can be shared between configure
2618s%@CC@%$CC%g 2622s%@CC@%$CC%g
2619s%@LD@%$LD%g 2623s%@LD@%$LD%g
2620s%@NM@%$NM%g 2624s%@NM@%$NM%g
2621s%@LN_S@%$LN_S%g 2625s%@LN_S@%$LN_S%g
2622s%@LIBTOOL@%$LIBTOOL%g 2626s%@LIBTOOL@%$LIBTOOL%g
2627s%@cflags_set@%$cflags_set%g
2623s%@LIB_MAGICK@%$LIB_MAGICK%g 2628s%@LIB_MAGICK@%$LIB_MAGICK%g
2624s%@CPP@%$CPP%g 2629s%@CPP@%$CPP%g
2625s%@INT_8_BIT@%$INT_8_BIT%g 2630s%@INT_8_BIT@%$INT_8_BIT%g
2626s%@INT_16_BIT@%$INT_16_BIT%g 2631s%@INT_16_BIT@%$INT_16_BIT%g
2627s%@INT_32_BIT@%$INT_32_BIT%g 2632s%@INT_32_BIT@%$INT_32_BIT%g
2632s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g 2637s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g
2633s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g 2638s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g
2634s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g 2639s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g
2635s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g 2640s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g
2636s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g 2641s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g
2637s%@cflags_set@%$cflags_set%g
2638 2642
2639CEOF 2643CEOF
2640EOF 2644EOF
2641 2645
2642cat >> $CONFIG_STATUS <<\EOF 2646cat >> $CONFIG_STATUS <<\EOF

Legend:
Removed from v.20  
changed lines
  Added in v.21

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26