… | |
… | |
1591 | else |
1591 | else |
1592 | echo "$ac_t""no" 1>&6 |
1592 | echo "$ac_t""no" 1>&6 |
1593 | IMAGEMAGICK=no |
1593 | IMAGEMAGICK=no |
1594 | fi |
1594 | fi |
1595 | |
1595 | |
|
|
1596 | if test x"$IMAGEMAGICK" != xno ; then |
|
|
1597 | echo $ac_n "checking whether GetMagickInfo works""... $ac_c" 1>&6 |
|
|
1598 | echo "configure:1599: checking whether GetMagickInfo works" >&5 |
|
|
1599 | if test "$cross_compiling" = yes; then |
|
|
1600 | IMAGEMAGICK=yes |
|
|
1601 | else |
|
|
1602 | cat > conftest.$ac_ext <<EOF |
|
|
1603 | #line 1604 "configure" |
|
|
1604 | #include "confdefs.h" |
|
|
1605 | #include <magick/magick.h> |
|
|
1606 | int main(void) { return (NULL == GetMagickInfo(NULL)) } |
|
|
1607 | EOF |
|
|
1608 | if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
|
|
1609 | then |
|
|
1610 | IMAGEMAGICK=yes |
|
|
1611 | else |
|
|
1612 | echo "configure: failed program was:" >&5 |
|
|
1613 | cat conftest.$ac_ext >&5 |
|
|
1614 | rm -fr conftest* |
|
|
1615 | IMAGEMAGICK=no |
|
|
1616 | fi |
|
|
1617 | rm -fr conftest* |
|
|
1618 | fi |
|
|
1619 | |
|
|
1620 | echo "$ac_t""$IMAGEMAGICK" 1>&6 |
|
|
1621 | fi |
1596 | if test x"$IMAGEMAGICK" = xno ; then |
1622 | if test x"$IMAGEMAGICK" = xno ; then |
1597 | echo "configure: warning: ImageMagick support disabled!" 1>&2 |
1623 | echo "configure: warning: ImageMagick support disabled!" 1>&2 |
1598 | fi |
1624 | fi |
1599 | fi |
1625 | fi |
1600 | if test x"$IMAGEMAGICK" = xyes ; then |
1626 | if test x"$IMAGEMAGICK" = xyes ; then |
… | |
… | |
1607 | LIB_MAGICK= |
1633 | LIB_MAGICK= |
1608 | fi |
1634 | fi |
1609 | |
1635 | |
1610 | |
1636 | |
1611 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1637 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1612 | echo "configure:1613: checking how to run the C preprocessor" >&5 |
1638 | echo "configure:1639: checking how to run the C preprocessor" >&5 |
1613 | # On Suns, sometimes $CPP names a directory. |
1639 | # On Suns, sometimes $CPP names a directory. |
1614 | if test -n "$CPP" && test -d "$CPP"; then |
1640 | if test -n "$CPP" && test -d "$CPP"; then |
1615 | CPP= |
1641 | CPP= |
1616 | fi |
1642 | fi |
1617 | if test -z "$CPP"; then |
1643 | if test -z "$CPP"; then |
… | |
… | |
1622 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1648 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1623 | CPP="${CC-cc} -E" |
1649 | CPP="${CC-cc} -E" |
1624 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1650 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1625 | # not just through cpp. |
1651 | # not just through cpp. |
1626 | cat > conftest.$ac_ext <<EOF |
1652 | cat > conftest.$ac_ext <<EOF |
1627 | #line 1628 "configure" |
1653 | #line 1654 "configure" |
1628 | #include "confdefs.h" |
1654 | #include "confdefs.h" |
1629 | #include <assert.h> |
1655 | #include <assert.h> |
1630 | Syntax Error |
1656 | Syntax Error |
1631 | EOF |
1657 | EOF |
1632 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1658 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1633 | { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1659 | { (eval echo configure:1660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1634 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1660 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1635 | if test -z "$ac_err"; then |
1661 | if test -z "$ac_err"; then |
1636 | : |
1662 | : |
1637 | else |
1663 | else |
1638 | echo "$ac_err" >&5 |
1664 | echo "$ac_err" >&5 |
1639 | echo "configure: failed program was:" >&5 |
1665 | echo "configure: failed program was:" >&5 |
1640 | cat conftest.$ac_ext >&5 |
1666 | cat conftest.$ac_ext >&5 |
1641 | rm -rf conftest* |
1667 | rm -rf conftest* |
1642 | CPP="${CC-cc} -E -traditional-cpp" |
1668 | CPP="${CC-cc} -E -traditional-cpp" |
1643 | cat > conftest.$ac_ext <<EOF |
1669 | cat > conftest.$ac_ext <<EOF |
1644 | #line 1645 "configure" |
1670 | #line 1671 "configure" |
1645 | #include "confdefs.h" |
1671 | #include "confdefs.h" |
1646 | #include <assert.h> |
1672 | #include <assert.h> |
1647 | Syntax Error |
1673 | Syntax Error |
1648 | EOF |
1674 | EOF |
1649 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1675 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1650 | { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1676 | { (eval echo configure:1677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1651 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1677 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1652 | if test -z "$ac_err"; then |
1678 | if test -z "$ac_err"; then |
1653 | : |
1679 | : |
1654 | else |
1680 | else |
1655 | echo "$ac_err" >&5 |
1681 | echo "$ac_err" >&5 |
1656 | echo "configure: failed program was:" >&5 |
1682 | echo "configure: failed program was:" >&5 |
1657 | cat conftest.$ac_ext >&5 |
1683 | cat conftest.$ac_ext >&5 |
1658 | rm -rf conftest* |
1684 | rm -rf conftest* |
1659 | CPP="${CC-cc} -nologo -E" |
1685 | CPP="${CC-cc} -nologo -E" |
1660 | cat > conftest.$ac_ext <<EOF |
1686 | cat > conftest.$ac_ext <<EOF |
1661 | #line 1662 "configure" |
1687 | #line 1688 "configure" |
1662 | #include "confdefs.h" |
1688 | #include "confdefs.h" |
1663 | #include <assert.h> |
1689 | #include <assert.h> |
1664 | Syntax Error |
1690 | Syntax Error |
1665 | EOF |
1691 | EOF |
1666 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1667 | { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1693 | { (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1668 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1694 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1669 | if test -z "$ac_err"; then |
1695 | if test -z "$ac_err"; then |
1670 | : |
1696 | : |
1671 | else |
1697 | else |
1672 | echo "$ac_err" >&5 |
1698 | echo "$ac_err" >&5 |
… | |
… | |
1687 | ac_cv_prog_CPP="$CPP" |
1713 | ac_cv_prog_CPP="$CPP" |
1688 | fi |
1714 | fi |
1689 | echo "$ac_t""$CPP" 1>&6 |
1715 | echo "$ac_t""$CPP" 1>&6 |
1690 | |
1716 | |
1691 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1717 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1692 | echo "configure:1693: checking for ANSI C header files" >&5 |
1718 | echo "configure:1719: checking for ANSI C header files" >&5 |
1693 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1719 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1694 | echo $ac_n "(cached) $ac_c" 1>&6 |
1720 | echo $ac_n "(cached) $ac_c" 1>&6 |
1695 | else |
1721 | else |
1696 | cat > conftest.$ac_ext <<EOF |
1722 | cat > conftest.$ac_ext <<EOF |
1697 | #line 1698 "configure" |
1723 | #line 1724 "configure" |
1698 | #include "confdefs.h" |
1724 | #include "confdefs.h" |
1699 | #include <stdlib.h> |
1725 | #include <stdlib.h> |
1700 | #include <stdarg.h> |
1726 | #include <stdarg.h> |
1701 | #include <string.h> |
1727 | #include <string.h> |
1702 | #include <float.h> |
1728 | #include <float.h> |
1703 | EOF |
1729 | EOF |
1704 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1730 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1705 | { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1731 | { (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1706 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1732 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1707 | if test -z "$ac_err"; then |
1733 | if test -z "$ac_err"; then |
1708 | rm -rf conftest* |
1734 | rm -rf conftest* |
1709 | ac_cv_header_stdc=yes |
1735 | ac_cv_header_stdc=yes |
1710 | else |
1736 | else |
… | |
… | |
1717 | rm -f conftest* |
1743 | rm -f conftest* |
1718 | |
1744 | |
1719 | if test $ac_cv_header_stdc = yes; then |
1745 | if test $ac_cv_header_stdc = yes; then |
1720 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1746 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1721 | cat > conftest.$ac_ext <<EOF |
1747 | cat > conftest.$ac_ext <<EOF |
1722 | #line 1723 "configure" |
1748 | #line 1749 "configure" |
1723 | #include "confdefs.h" |
1749 | #include "confdefs.h" |
1724 | #include <string.h> |
1750 | #include <string.h> |
1725 | EOF |
1751 | EOF |
1726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1752 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1727 | egrep "memchr" >/dev/null 2>&1; then |
1753 | egrep "memchr" >/dev/null 2>&1; then |
… | |
… | |
1735 | fi |
1761 | fi |
1736 | |
1762 | |
1737 | if test $ac_cv_header_stdc = yes; then |
1763 | if test $ac_cv_header_stdc = yes; then |
1738 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1764 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1739 | cat > conftest.$ac_ext <<EOF |
1765 | cat > conftest.$ac_ext <<EOF |
1740 | #line 1741 "configure" |
1766 | #line 1767 "configure" |
1741 | #include "confdefs.h" |
1767 | #include "confdefs.h" |
1742 | #include <stdlib.h> |
1768 | #include <stdlib.h> |
1743 | EOF |
1769 | EOF |
1744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1745 | egrep "free" >/dev/null 2>&1; then |
1771 | egrep "free" >/dev/null 2>&1; then |
… | |
… | |
1756 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1782 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1757 | if test "$cross_compiling" = yes; then |
1783 | if test "$cross_compiling" = yes; then |
1758 | : |
1784 | : |
1759 | else |
1785 | else |
1760 | cat > conftest.$ac_ext <<EOF |
1786 | cat > conftest.$ac_ext <<EOF |
1761 | #line 1762 "configure" |
1787 | #line 1788 "configure" |
1762 | #include "confdefs.h" |
1788 | #include "confdefs.h" |
1763 | #include <ctype.h> |
1789 | #include <ctype.h> |
1764 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1790 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1765 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1791 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1766 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1792 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1767 | int main () { int i; for (i = 0; i < 256; i++) |
1793 | int main () { int i; for (i = 0; i < 256; i++) |
1768 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1794 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1769 | exit (0); } |
1795 | exit (0); } |
1770 | |
1796 | |
1771 | EOF |
1797 | EOF |
1772 | if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1798 | if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1773 | then |
1799 | then |
1774 | : |
1800 | : |
1775 | else |
1801 | else |
1776 | echo "configure: failed program was:" >&5 |
1802 | echo "configure: failed program was:" >&5 |
1777 | cat conftest.$ac_ext >&5 |
1803 | cat conftest.$ac_ext >&5 |
… | |
… | |
1794 | |
1820 | |
1795 | for ac_hdr in unistd.h |
1821 | for ac_hdr in unistd.h |
1796 | do |
1822 | do |
1797 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1823 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1798 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1824 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1799 | echo "configure:1800: checking for $ac_hdr" >&5 |
1825 | echo "configure:1826: checking for $ac_hdr" >&5 |
1800 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1826 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1801 | echo $ac_n "(cached) $ac_c" 1>&6 |
1827 | echo $ac_n "(cached) $ac_c" 1>&6 |
1802 | else |
1828 | else |
1803 | cat > conftest.$ac_ext <<EOF |
1829 | cat > conftest.$ac_ext <<EOF |
1804 | #line 1805 "configure" |
1830 | #line 1831 "configure" |
1805 | #include "confdefs.h" |
1831 | #include "confdefs.h" |
1806 | #include <$ac_hdr> |
1832 | #include <$ac_hdr> |
1807 | EOF |
1833 | EOF |
1808 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1809 | { (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1835 | { (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1810 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1811 | if test -z "$ac_err"; then |
1837 | if test -z "$ac_err"; then |
1812 | rm -rf conftest* |
1838 | rm -rf conftest* |
1813 | eval "ac_cv_header_$ac_safe=yes" |
1839 | eval "ac_cv_header_$ac_safe=yes" |
1814 | else |
1840 | else |
… | |
… | |
1832 | fi |
1858 | fi |
1833 | done |
1859 | done |
1834 | |
1860 | |
1835 | |
1861 | |
1836 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1862 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1837 | echo "configure:1838: checking for working const" >&5 |
1863 | echo "configure:1864: checking for working const" >&5 |
1838 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1864 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1839 | echo $ac_n "(cached) $ac_c" 1>&6 |
1865 | echo $ac_n "(cached) $ac_c" 1>&6 |
1840 | else |
1866 | else |
1841 | cat > conftest.$ac_ext <<EOF |
1867 | cat > conftest.$ac_ext <<EOF |
1842 | #line 1843 "configure" |
1868 | #line 1869 "configure" |
1843 | #include "confdefs.h" |
1869 | #include "confdefs.h" |
1844 | |
1870 | |
1845 | int main() { |
1871 | int main() { |
1846 | |
1872 | |
1847 | /* Ultrix mips cc rejects this. */ |
1873 | /* Ultrix mips cc rejects this. */ |
… | |
… | |
1886 | const int foo = 10; |
1912 | const int foo = 10; |
1887 | } |
1913 | } |
1888 | |
1914 | |
1889 | ; return 0; } |
1915 | ; return 0; } |
1890 | EOF |
1916 | EOF |
1891 | if { (eval echo configure:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1917 | if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1892 | rm -rf conftest* |
1918 | rm -rf conftest* |
1893 | ac_cv_c_const=yes |
1919 | ac_cv_c_const=yes |
1894 | else |
1920 | else |
1895 | echo "configure: failed program was:" >&5 |
1921 | echo "configure: failed program was:" >&5 |
1896 | cat conftest.$ac_ext >&5 |
1922 | cat conftest.$ac_ext >&5 |
… | |
… | |
1907 | EOF |
1933 | EOF |
1908 | |
1934 | |
1909 | fi |
1935 | fi |
1910 | |
1936 | |
1911 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1937 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1912 | echo "configure:1913: checking for size_t" >&5 |
1938 | echo "configure:1939: checking for size_t" >&5 |
1913 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1939 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1914 | echo $ac_n "(cached) $ac_c" 1>&6 |
1940 | echo $ac_n "(cached) $ac_c" 1>&6 |
1915 | else |
1941 | else |
1916 | cat > conftest.$ac_ext <<EOF |
1942 | cat > conftest.$ac_ext <<EOF |
1917 | #line 1918 "configure" |
1943 | #line 1944 "configure" |
1918 | #include "confdefs.h" |
1944 | #include "confdefs.h" |
1919 | #include <sys/types.h> |
1945 | #include <sys/types.h> |
1920 | #if STDC_HEADERS |
1946 | #if STDC_HEADERS |
1921 | #include <stdlib.h> |
1947 | #include <stdlib.h> |
1922 | #include <stddef.h> |
1948 | #include <stddef.h> |
… | |
… | |
1942 | fi |
1968 | fi |
1943 | |
1969 | |
1944 | |
1970 | |
1945 | |
1971 | |
1946 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1972 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1947 | echo "configure:1948: checking size of char" >&5 |
1973 | echo "configure:1974: checking size of char" >&5 |
1948 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1974 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1949 | echo $ac_n "(cached) $ac_c" 1>&6 |
1975 | echo $ac_n "(cached) $ac_c" 1>&6 |
1950 | else |
1976 | else |
1951 | if test "$cross_compiling" = yes; then |
1977 | if test "$cross_compiling" = yes; then |
1952 | ac_cv_sizeof_char=1 |
1978 | ac_cv_sizeof_char=1 |
1953 | else |
1979 | else |
1954 | cat > conftest.$ac_ext <<EOF |
1980 | cat > conftest.$ac_ext <<EOF |
1955 | #line 1956 "configure" |
1981 | #line 1982 "configure" |
1956 | #include "confdefs.h" |
1982 | #include "confdefs.h" |
1957 | #include <stdio.h> |
1983 | #include <stdio.h> |
1958 | main() |
1984 | main() |
1959 | { |
1985 | { |
1960 | FILE *f=fopen("conftestval", "w"); |
1986 | FILE *f=fopen("conftestval", "w"); |
1961 | if (!f) exit(1); |
1987 | if (!f) exit(1); |
1962 | fprintf(f, "%d\n", sizeof(char)); |
1988 | fprintf(f, "%d\n", sizeof(char)); |
1963 | exit(0); |
1989 | exit(0); |
1964 | } |
1990 | } |
1965 | EOF |
1991 | EOF |
1966 | if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1992 | if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1967 | then |
1993 | then |
1968 | ac_cv_sizeof_char=`cat conftestval` |
1994 | ac_cv_sizeof_char=`cat conftestval` |
1969 | else |
1995 | else |
1970 | echo "configure: failed program was:" >&5 |
1996 | echo "configure: failed program was:" >&5 |
1971 | cat conftest.$ac_ext >&5 |
1997 | cat conftest.$ac_ext >&5 |
… | |
… | |
1981 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
2007 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
1982 | EOF |
2008 | EOF |
1983 | |
2009 | |
1984 | |
2010 | |
1985 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
2011 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1986 | echo "configure:1987: checking size of short" >&5 |
2012 | echo "configure:2013: checking size of short" >&5 |
1987 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
2013 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
1988 | echo $ac_n "(cached) $ac_c" 1>&6 |
2014 | echo $ac_n "(cached) $ac_c" 1>&6 |
1989 | else |
2015 | else |
1990 | if test "$cross_compiling" = yes; then |
2016 | if test "$cross_compiling" = yes; then |
1991 | ac_cv_sizeof_short=1 |
2017 | ac_cv_sizeof_short=1 |
1992 | else |
2018 | else |
1993 | cat > conftest.$ac_ext <<EOF |
2019 | cat > conftest.$ac_ext <<EOF |
1994 | #line 1995 "configure" |
2020 | #line 2021 "configure" |
1995 | #include "confdefs.h" |
2021 | #include "confdefs.h" |
1996 | #include <stdio.h> |
2022 | #include <stdio.h> |
1997 | main() |
2023 | main() |
1998 | { |
2024 | { |
1999 | FILE *f=fopen("conftestval", "w"); |
2025 | FILE *f=fopen("conftestval", "w"); |
2000 | if (!f) exit(1); |
2026 | if (!f) exit(1); |
2001 | fprintf(f, "%d\n", sizeof(short)); |
2027 | fprintf(f, "%d\n", sizeof(short)); |
2002 | exit(0); |
2028 | exit(0); |
2003 | } |
2029 | } |
2004 | EOF |
2030 | EOF |
2005 | if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2031 | if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2006 | then |
2032 | then |
2007 | ac_cv_sizeof_short=`cat conftestval` |
2033 | ac_cv_sizeof_short=`cat conftestval` |
2008 | else |
2034 | else |
2009 | echo "configure: failed program was:" >&5 |
2035 | echo "configure: failed program was:" >&5 |
2010 | cat conftest.$ac_ext >&5 |
2036 | cat conftest.$ac_ext >&5 |
… | |
… | |
2020 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
2046 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
2021 | EOF |
2047 | EOF |
2022 | |
2048 | |
2023 | |
2049 | |
2024 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
2050 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
2025 | echo "configure:2026: checking size of int" >&5 |
2051 | echo "configure:2052: checking size of int" >&5 |
2026 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
2052 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
2027 | echo $ac_n "(cached) $ac_c" 1>&6 |
2053 | echo $ac_n "(cached) $ac_c" 1>&6 |
2028 | else |
2054 | else |
2029 | if test "$cross_compiling" = yes; then |
2055 | if test "$cross_compiling" = yes; then |
2030 | ac_cv_sizeof_int=2 |
2056 | ac_cv_sizeof_int=2 |
2031 | else |
2057 | else |
2032 | cat > conftest.$ac_ext <<EOF |
2058 | cat > conftest.$ac_ext <<EOF |
2033 | #line 2034 "configure" |
2059 | #line 2060 "configure" |
2034 | #include "confdefs.h" |
2060 | #include "confdefs.h" |
2035 | #include <stdio.h> |
2061 | #include <stdio.h> |
2036 | main() |
2062 | main() |
2037 | { |
2063 | { |
2038 | FILE *f=fopen("conftestval", "w"); |
2064 | FILE *f=fopen("conftestval", "w"); |
2039 | if (!f) exit(1); |
2065 | if (!f) exit(1); |
2040 | fprintf(f, "%d\n", sizeof(int)); |
2066 | fprintf(f, "%d\n", sizeof(int)); |
2041 | exit(0); |
2067 | exit(0); |
2042 | } |
2068 | } |
2043 | EOF |
2069 | EOF |
2044 | if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2070 | if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2045 | then |
2071 | then |
2046 | ac_cv_sizeof_int=`cat conftestval` |
2072 | ac_cv_sizeof_int=`cat conftestval` |
2047 | else |
2073 | else |
2048 | echo "configure: failed program was:" >&5 |
2074 | echo "configure: failed program was:" >&5 |
2049 | cat conftest.$ac_ext >&5 |
2075 | cat conftest.$ac_ext >&5 |
… | |
… | |
2059 | #define SIZEOF_INT $ac_cv_sizeof_int |
2085 | #define SIZEOF_INT $ac_cv_sizeof_int |
2060 | EOF |
2086 | EOF |
2061 | |
2087 | |
2062 | |
2088 | |
2063 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
2089 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
2064 | echo "configure:2065: checking size of long" >&5 |
2090 | echo "configure:2091: checking size of long" >&5 |
2065 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
2091 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
2066 | echo $ac_n "(cached) $ac_c" 1>&6 |
2092 | echo $ac_n "(cached) $ac_c" 1>&6 |
2067 | else |
2093 | else |
2068 | if test "$cross_compiling" = yes; then |
2094 | if test "$cross_compiling" = yes; then |
2069 | ac_cv_sizeof_long=4 |
2095 | ac_cv_sizeof_long=4 |
2070 | else |
2096 | else |
2071 | cat > conftest.$ac_ext <<EOF |
2097 | cat > conftest.$ac_ext <<EOF |
2072 | #line 2073 "configure" |
2098 | #line 2099 "configure" |
2073 | #include "confdefs.h" |
2099 | #include "confdefs.h" |
2074 | #include <stdio.h> |
2100 | #include <stdio.h> |
2075 | main() |
2101 | main() |
2076 | { |
2102 | { |
2077 | FILE *f=fopen("conftestval", "w"); |
2103 | FILE *f=fopen("conftestval", "w"); |
2078 | if (!f) exit(1); |
2104 | if (!f) exit(1); |
2079 | fprintf(f, "%d\n", sizeof(long)); |
2105 | fprintf(f, "%d\n", sizeof(long)); |
2080 | exit(0); |
2106 | exit(0); |
2081 | } |
2107 | } |
2082 | EOF |
2108 | EOF |
2083 | if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2109 | if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2084 | then |
2110 | then |
2085 | ac_cv_sizeof_long=`cat conftestval` |
2111 | ac_cv_sizeof_long=`cat conftestval` |
2086 | else |
2112 | else |
2087 | echo "configure: failed program was:" >&5 |
2113 | echo "configure: failed program was:" >&5 |
2088 | cat conftest.$ac_ext >&5 |
2114 | cat conftest.$ac_ext >&5 |
… | |
… | |
2099 | EOF |
2125 | EOF |
2100 | |
2126 | |
2101 | |
2127 | |
2102 | |
2128 | |
2103 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2129 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2104 | echo "configure:2105: checking for an 8 bit integer type" >&5 |
2130 | echo "configure:2131: checking for an 8 bit integer type" >&5 |
2105 | if test $ac_cv_sizeof_char -ge 1 ; then |
2131 | if test $ac_cv_sizeof_char -ge 1 ; then |
2106 | INT_8_BIT=char |
2132 | INT_8_BIT=char |
2107 | echo "$ac_t""char" 1>&6 |
2133 | echo "$ac_t""char" 1>&6 |
2108 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2134 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2109 | INT_8_BIT=short |
2135 | INT_8_BIT=short |
… | |
… | |
2117 | else |
2143 | else |
2118 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2144 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2119 | fi |
2145 | fi |
2120 | |
2146 | |
2121 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2147 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2122 | echo "configure:2123: checking for a 16 bit integer type" >&5 |
2148 | echo "configure:2149: checking for a 16 bit integer type" >&5 |
2123 | if test $ac_cv_sizeof_char -ge 2 ; then |
2149 | if test $ac_cv_sizeof_char -ge 2 ; then |
2124 | INT_16_BIT=char |
2150 | INT_16_BIT=char |
2125 | echo "$ac_t""char" 1>&6 |
2151 | echo "$ac_t""char" 1>&6 |
2126 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2152 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2127 | INT_16_BIT=short |
2153 | INT_16_BIT=short |
… | |
… | |
2135 | else |
2161 | else |
2136 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2162 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2137 | fi |
2163 | fi |
2138 | |
2164 | |
2139 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2165 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2140 | echo "configure:2141: checking for a 32 bit integer type" >&5 |
2166 | echo "configure:2167: checking for a 32 bit integer type" >&5 |
2141 | if test $ac_cv_sizeof_char -ge 4 ; then |
2167 | if test $ac_cv_sizeof_char -ge 4 ; then |
2142 | INT_32_BIT=char |
2168 | INT_32_BIT=char |
2143 | echo "$ac_t""char" 1>&6 |
2169 | echo "$ac_t""char" 1>&6 |
2144 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2170 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2145 | INT_32_BIT=short |
2171 | INT_32_BIT=short |
… | |
… | |
2157 | |
2183 | |
2158 | |
2184 | |
2159 | |
2185 | |
2160 | |
2186 | |
2161 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2187 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2162 | echo "configure:2163: checking for vprintf" >&5 |
2188 | echo "configure:2189: checking for vprintf" >&5 |
2163 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2189 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2164 | echo $ac_n "(cached) $ac_c" 1>&6 |
2190 | echo $ac_n "(cached) $ac_c" 1>&6 |
2165 | else |
2191 | else |
2166 | cat > conftest.$ac_ext <<EOF |
2192 | cat > conftest.$ac_ext <<EOF |
2167 | #line 2168 "configure" |
2193 | #line 2194 "configure" |
2168 | #include "confdefs.h" |
2194 | #include "confdefs.h" |
2169 | /* System header to define __stub macros and hopefully few prototypes, |
2195 | /* System header to define __stub macros and hopefully few prototypes, |
2170 | which can conflict with char vprintf(); below. */ |
2196 | which can conflict with char vprintf(); below. */ |
2171 | #include <assert.h> |
2197 | #include <assert.h> |
2172 | /* Override any gcc2 internal prototype to avoid an error. */ |
2198 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2185 | vprintf(); |
2211 | vprintf(); |
2186 | #endif |
2212 | #endif |
2187 | |
2213 | |
2188 | ; return 0; } |
2214 | ; return 0; } |
2189 | EOF |
2215 | EOF |
2190 | if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2216 | if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2191 | rm -rf conftest* |
2217 | rm -rf conftest* |
2192 | eval "ac_cv_func_vprintf=yes" |
2218 | eval "ac_cv_func_vprintf=yes" |
2193 | else |
2219 | else |
2194 | echo "configure: failed program was:" >&5 |
2220 | echo "configure: failed program was:" >&5 |
2195 | cat conftest.$ac_ext >&5 |
2221 | cat conftest.$ac_ext >&5 |
… | |
… | |
2209 | echo "$ac_t""no" 1>&6 |
2235 | echo "$ac_t""no" 1>&6 |
2210 | fi |
2236 | fi |
2211 | |
2237 | |
2212 | if test "$ac_cv_func_vprintf" != yes; then |
2238 | if test "$ac_cv_func_vprintf" != yes; then |
2213 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2239 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2214 | echo "configure:2215: checking for _doprnt" >&5 |
2240 | echo "configure:2241: checking for _doprnt" >&5 |
2215 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2241 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2216 | echo $ac_n "(cached) $ac_c" 1>&6 |
2242 | echo $ac_n "(cached) $ac_c" 1>&6 |
2217 | else |
2243 | else |
2218 | cat > conftest.$ac_ext <<EOF |
2244 | cat > conftest.$ac_ext <<EOF |
2219 | #line 2220 "configure" |
2245 | #line 2246 "configure" |
2220 | #include "confdefs.h" |
2246 | #include "confdefs.h" |
2221 | /* System header to define __stub macros and hopefully few prototypes, |
2247 | /* System header to define __stub macros and hopefully few prototypes, |
2222 | which can conflict with char _doprnt(); below. */ |
2248 | which can conflict with char _doprnt(); below. */ |
2223 | #include <assert.h> |
2249 | #include <assert.h> |
2224 | /* Override any gcc2 internal prototype to avoid an error. */ |
2250 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2237 | _doprnt(); |
2263 | _doprnt(); |
2238 | #endif |
2264 | #endif |
2239 | |
2265 | |
2240 | ; return 0; } |
2266 | ; return 0; } |
2241 | EOF |
2267 | EOF |
2242 | if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2268 | if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2243 | rm -rf conftest* |
2269 | rm -rf conftest* |
2244 | eval "ac_cv_func__doprnt=yes" |
2270 | eval "ac_cv_func__doprnt=yes" |
2245 | else |
2271 | else |
2246 | echo "configure: failed program was:" >&5 |
2272 | echo "configure: failed program was:" >&5 |
2247 | cat conftest.$ac_ext >&5 |
2273 | cat conftest.$ac_ext >&5 |
… | |
… | |
2264 | fi |
2290 | fi |
2265 | |
2291 | |
2266 | for ac_func in strdup |
2292 | for ac_func in strdup |
2267 | do |
2293 | do |
2268 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2294 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2269 | echo "configure:2270: checking for $ac_func" >&5 |
2295 | echo "configure:2296: checking for $ac_func" >&5 |
2270 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2296 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2271 | echo $ac_n "(cached) $ac_c" 1>&6 |
2297 | echo $ac_n "(cached) $ac_c" 1>&6 |
2272 | else |
2298 | else |
2273 | cat > conftest.$ac_ext <<EOF |
2299 | cat > conftest.$ac_ext <<EOF |
2274 | #line 2275 "configure" |
2300 | #line 2301 "configure" |
2275 | #include "confdefs.h" |
2301 | #include "confdefs.h" |
2276 | /* System header to define __stub macros and hopefully few prototypes, |
2302 | /* System header to define __stub macros and hopefully few prototypes, |
2277 | which can conflict with char $ac_func(); below. */ |
2303 | which can conflict with char $ac_func(); below. */ |
2278 | #include <assert.h> |
2304 | #include <assert.h> |
2279 | /* Override any gcc2 internal prototype to avoid an error. */ |
2305 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2292 | $ac_func(); |
2318 | $ac_func(); |
2293 | #endif |
2319 | #endif |
2294 | |
2320 | |
2295 | ; return 0; } |
2321 | ; return 0; } |
2296 | EOF |
2322 | EOF |
2297 | if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2323 | if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2298 | rm -rf conftest* |
2324 | rm -rf conftest* |
2299 | eval "ac_cv_func_$ac_func=yes" |
2325 | eval "ac_cv_func_$ac_func=yes" |
2300 | else |
2326 | else |
2301 | echo "configure: failed program was:" >&5 |
2327 | echo "configure: failed program was:" >&5 |
2302 | cat conftest.$ac_ext >&5 |
2328 | cat conftest.$ac_ext >&5 |
… | |
… | |
2321 | |
2347 | |
2322 | |
2348 | |
2323 | for ac_func in getopt_long |
2349 | for ac_func in getopt_long |
2324 | do |
2350 | do |
2325 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2351 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2326 | echo "configure:2327: checking for $ac_func" >&5 |
2352 | echo "configure:2353: checking for $ac_func" >&5 |
2327 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2353 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2328 | echo $ac_n "(cached) $ac_c" 1>&6 |
2354 | echo $ac_n "(cached) $ac_c" 1>&6 |
2329 | else |
2355 | else |
2330 | cat > conftest.$ac_ext <<EOF |
2356 | cat > conftest.$ac_ext <<EOF |
2331 | #line 2332 "configure" |
2357 | #line 2358 "configure" |
2332 | #include "confdefs.h" |
2358 | #include "confdefs.h" |
2333 | /* System header to define __stub macros and hopefully few prototypes, |
2359 | /* System header to define __stub macros and hopefully few prototypes, |
2334 | which can conflict with char $ac_func(); below. */ |
2360 | which can conflict with char $ac_func(); below. */ |
2335 | #include <assert.h> |
2361 | #include <assert.h> |
2336 | /* Override any gcc2 internal prototype to avoid an error. */ |
2362 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2349 | $ac_func(); |
2375 | $ac_func(); |
2350 | #endif |
2376 | #endif |
2351 | |
2377 | |
2352 | ; return 0; } |
2378 | ; return 0; } |
2353 | EOF |
2379 | EOF |
2354 | if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2380 | if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2355 | rm -rf conftest* |
2381 | rm -rf conftest* |
2356 | eval "ac_cv_func_$ac_func=yes" |
2382 | eval "ac_cv_func_$ac_func=yes" |
2357 | else |
2383 | else |
2358 | echo "configure: failed program was:" >&5 |
2384 | echo "configure: failed program was:" >&5 |
2359 | cat conftest.$ac_ext >&5 |
2385 | cat conftest.$ac_ext >&5 |