| … | |
… | |
| 473 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
473 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 474 | echo > confdefs.h |
474 | echo > confdefs.h |
| 475 | |
475 | |
| 476 | # A filename unique to this package, relative to the directory that |
476 | # A filename unique to this package, relative to the directory that |
| 477 | # configure is in, which we can look for to find out if srcdir is correct. |
477 | # configure is in, which we can look for to find out if srcdir is correct. |
| 478 | ac_unique_file=psiconv |
478 | ac_unique_file=lib/psiconv |
| 479 | |
479 | |
| 480 | # Find the source files, if location was not specified. |
480 | # Find the source files, if location was not specified. |
| 481 | if test -z "$srcdir"; then |
481 | if test -z "$srcdir"; then |
| 482 | ac_srcdir_defaulted=yes |
482 | ac_srcdir_defaulted=yes |
| 483 | # Try the directory containing this script, then its parent. |
483 | # Try the directory containing this script, then its parent. |
| … | |
… | |
| 713 | fi |
713 | fi |
| 714 | |
714 | |
| 715 | |
715 | |
| 716 | PACKAGE=psiconv |
716 | PACKAGE=psiconv |
| 717 | |
717 | |
| 718 | VERSION=0.6.1 |
718 | VERSION=0.6.3 |
| 719 | |
719 | |
| 720 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
720 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
| 721 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
721 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
| 722 | fi |
722 | fi |
| 723 | cat >> confdefs.h <<EOF |
723 | cat >> confdefs.h <<EOF |
| … | |
… | |
| 1550 | else |
1550 | else |
| 1551 | IMAGEMAGICK='yes' |
1551 | IMAGEMAGICK='yes' |
| 1552 | fi |
1552 | fi |
| 1553 | |
1553 | |
| 1554 | if test x"$IMAGEMAGICK" != xno ; then |
1554 | if test x"$IMAGEMAGICK" != xno ; then |
| 1555 | echo $ac_n "checking for ConstituteImage in -lMagick""... $ac_c" 1>&6 |
1555 | # Extract the first word of "Magick-config", so it can be a program name with args. |
| 1556 | echo "configure:1557: checking for ConstituteImage in -lMagick" >&5 |
1556 | set dummy Magick-config; ac_word=$2 |
| 1557 | ac_lib_var=`echo Magick'_'ConstituteImage | sed 'y%./+-%__p_%'` |
1557 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
|
1558 | echo "configure:1559: checking for $ac_word" >&5 |
| 1558 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1559 | if eval "test \"`echo '$''{'ac_cv_prog_IMAGEMAGICK'+set}'`\" = set"; then |
| 1559 | echo $ac_n "(cached) $ac_c" 1>&6 |
1560 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1560 | else |
1561 | else |
| 1561 | ac_save_LIBS="$LIBS" |
1562 | if test -n "$IMAGEMAGICK"; then |
| 1562 | LIBS="-lMagick $LIBS" |
1563 | ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test. |
| 1563 | cat > conftest.$ac_ext <<EOF |
|
|
| 1564 | #line 1565 "configure" |
|
|
| 1565 | #include "confdefs.h" |
|
|
| 1566 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
| 1567 | /* We use char because int might match the return type of a gcc2 |
|
|
| 1568 | builtin and then its argument prototype would still apply. */ |
|
|
| 1569 | char ConstituteImage(); |
|
|
| 1570 | |
|
|
| 1571 | int main() { |
|
|
| 1572 | ConstituteImage() |
|
|
| 1573 | ; return 0; } |
|
|
| 1574 | EOF |
|
|
| 1575 | if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
| 1576 | rm -rf conftest* |
|
|
| 1577 | eval "ac_cv_lib_$ac_lib_var=yes" |
|
|
| 1578 | else |
1564 | else |
| 1579 | echo "configure: failed program was:" >&5 |
1565 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1580 | cat conftest.$ac_ext >&5 |
1566 | ac_dummy="$PATH" |
| 1581 | rm -rf conftest* |
1567 | for ac_dir in $ac_dummy; do |
| 1582 | eval "ac_cv_lib_$ac_lib_var=no" |
1568 | test -z "$ac_dir" && ac_dir=. |
|
|
1569 | if test -f $ac_dir/$ac_word; then |
|
|
1570 | ac_cv_prog_IMAGEMAGICK="yes" |
|
|
1571 | break |
|
|
1572 | fi |
|
|
1573 | done |
|
|
1574 | IFS="$ac_save_ifs" |
|
|
1575 | test -z "$ac_cv_prog_IMAGEMAGICK" && ac_cv_prog_IMAGEMAGICK="no" |
| 1583 | fi |
1576 | fi |
| 1584 | rm -f conftest* |
|
|
| 1585 | LIBS="$ac_save_LIBS" |
|
|
| 1586 | |
|
|
| 1587 | fi |
1577 | fi |
| 1588 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1578 | IMAGEMAGICK="$ac_cv_prog_IMAGEMAGICK" |
| 1589 | echo "$ac_t""yes" 1>&6 |
1579 | if test -n "$IMAGEMAGICK"; then |
| 1590 | IMAGEMAGICK=yes |
1580 | echo "$ac_t""$IMAGEMAGICK" 1>&6 |
| 1591 | else |
1581 | else |
| 1592 | echo "$ac_t""no" 1>&6 |
1582 | echo "$ac_t""no" 1>&6 |
| 1593 | IMAGEMAGICK=no |
|
|
| 1594 | fi |
1583 | fi |
| 1595 | |
1584 | |
| 1596 | if test x"$IMAGEMAGICK" != xno ; then |
1585 | if test x"$IMAGEMAGICK" != xno ; then |
|
|
1586 | CFLAGS_OLD="$CFLAGS" |
|
|
1587 | CPPFLAGS_OLD="$CPPFLAGS" |
|
|
1588 | LDFLAGS_OLD="$LDFLAGS" |
|
|
1589 | LIBS_OLD="$LIBS" |
|
|
1590 | CFLAGS="$CFLAGS `Magick-config --cflags`" |
|
|
1591 | CPPFLAGS="$CPPFLAGS `Magick-config --cppflags`" |
|
|
1592 | LDFLAGS="$LDFLAGS `Magick-config --ldflags`" |
|
|
1593 | LIBS="$LIBS `Magick-config --libs`" |
|
|
1594 | |
| 1597 | echo $ac_n "checking whether GetMagickInfo works""... $ac_c" 1>&6 |
1595 | echo $ac_n "checking whether GetMagickInfo works""... $ac_c" 1>&6 |
| 1598 | echo "configure:1599: checking whether GetMagickInfo works" >&5 |
1596 | echo "configure:1597: checking whether GetMagickInfo works" >&5 |
| 1599 | if test "$cross_compiling" = yes; then |
1597 | if test "$cross_compiling" = yes; then |
| 1600 | IMAGEMAGICK=yes |
1598 | IMAGEMAGICK=yes |
| 1601 | else |
1599 | else |
| 1602 | cat > conftest.$ac_ext <<EOF |
1600 | cat > conftest.$ac_ext <<EOF |
| 1603 | #line 1604 "configure" |
1601 | #line 1602 "configure" |
| 1604 | #include "confdefs.h" |
1602 | #include "confdefs.h" |
| 1605 | #include <magick/magick.h> |
1603 | #include <magick/magick.h> |
|
|
1604 | #include <magick/config.h> |
|
|
1605 | #include <stdio.h> |
|
|
1606 | extern void OpenModules(void); |
|
|
1607 | int main(void) { GetMagickInfo(NULL); |
|
|
1608 | #if defined(HasLTDL) |
|
|
1609 | OpenModules(); |
|
|
1610 | #endif |
| 1606 | int main(void) { return (NULL == GetMagickInfo(NULL)) } |
1611 | return (NULL == GetMagickInfo(NULL)); } |
| 1607 | EOF |
1612 | 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 |
1613 | if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1609 | then |
1614 | then |
| 1610 | IMAGEMAGICK=yes |
1615 | IMAGEMAGICK=yes |
| 1611 | else |
1616 | else |
| 1612 | echo "configure: failed program was:" >&5 |
1617 | echo "configure: failed program was:" >&5 |
| 1613 | cat conftest.$ac_ext >&5 |
1618 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 1616 | fi |
1621 | fi |
| 1617 | rm -fr conftest* |
1622 | rm -fr conftest* |
| 1618 | fi |
1623 | fi |
| 1619 | |
1624 | |
| 1620 | echo "$ac_t""$IMAGEMAGICK" 1>&6 |
1625 | echo "$ac_t""$IMAGEMAGICK" 1>&6 |
|
|
1626 | LDFLAGS="$LDFLAGS_OLD" |
|
|
1627 | LIBS="$LIBS_OLD" |
|
|
1628 | if test x"$IMAGEMAGICK" = xno ; then |
|
|
1629 | CFLAGS="$CFLAGS_OLD" |
|
|
1630 | CPPFLAGS="$CPPFLAGS_OLD" |
|
|
1631 | fi |
| 1621 | fi |
1632 | fi |
| 1622 | if test x"$IMAGEMAGICK" = xno ; then |
|
|
| 1623 | echo "configure: warning: ImageMagick support disabled!" 1>&2 |
|
|
| 1624 | fi |
|
|
| 1625 | fi |
1633 | fi |
| 1626 | if test x"$IMAGEMAGICK" = xyes ; then |
1634 | if test x"$IMAGEMAGICK" = xyes ; then |
| 1627 | LIB_MAGICK=-lMagick |
1635 | LIB_MAGICK="`Magick-config --libs` `Magick-config --ldflags`" |
| 1628 | cat >> confdefs.h <<\EOF |
1636 | cat >> confdefs.h <<\EOF |
| 1629 | #define IMAGEMAGICK 1 |
1637 | #define IMAGEMAGICK 1 |
| 1630 | EOF |
1638 | EOF |
| 1631 | |
1639 | |
| 1632 | else |
1640 | else |
| 1633 | LIB_MAGICK= |
1641 | LIB_MAGICK= |
| 1634 | fi |
1642 | fi |
| 1635 | |
1643 | |
| 1636 | |
1644 | |
| 1637 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1645 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1638 | echo "configure:1639: checking how to run the C preprocessor" >&5 |
1646 | echo "configure:1647: checking how to run the C preprocessor" >&5 |
| 1639 | # On Suns, sometimes $CPP names a directory. |
1647 | # On Suns, sometimes $CPP names a directory. |
| 1640 | if test -n "$CPP" && test -d "$CPP"; then |
1648 | if test -n "$CPP" && test -d "$CPP"; then |
| 1641 | CPP= |
1649 | CPP= |
| 1642 | fi |
1650 | fi |
| 1643 | if test -z "$CPP"; then |
1651 | if test -z "$CPP"; then |
| … | |
… | |
| 1648 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1656 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1649 | CPP="${CC-cc} -E" |
1657 | CPP="${CC-cc} -E" |
| 1650 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1658 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1651 | # not just through cpp. |
1659 | # not just through cpp. |
| 1652 | cat > conftest.$ac_ext <<EOF |
1660 | cat > conftest.$ac_ext <<EOF |
| 1653 | #line 1654 "configure" |
1661 | #line 1662 "configure" |
| 1654 | #include "confdefs.h" |
1662 | #include "confdefs.h" |
| 1655 | #include <assert.h> |
1663 | #include <assert.h> |
| 1656 | Syntax Error |
1664 | Syntax Error |
| 1657 | EOF |
1665 | EOF |
| 1658 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1666 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1659 | { (eval echo configure:1660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1667 | { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1660 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1668 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1661 | if test -z "$ac_err"; then |
1669 | if test -z "$ac_err"; then |
| 1662 | : |
1670 | : |
| 1663 | else |
1671 | else |
| 1664 | echo "$ac_err" >&5 |
1672 | echo "$ac_err" >&5 |
| 1665 | echo "configure: failed program was:" >&5 |
1673 | echo "configure: failed program was:" >&5 |
| 1666 | cat conftest.$ac_ext >&5 |
1674 | cat conftest.$ac_ext >&5 |
| 1667 | rm -rf conftest* |
1675 | rm -rf conftest* |
| 1668 | CPP="${CC-cc} -E -traditional-cpp" |
1676 | CPP="${CC-cc} -E -traditional-cpp" |
| 1669 | cat > conftest.$ac_ext <<EOF |
1677 | cat > conftest.$ac_ext <<EOF |
| 1670 | #line 1671 "configure" |
1678 | #line 1679 "configure" |
| 1671 | #include "confdefs.h" |
1679 | #include "confdefs.h" |
| 1672 | #include <assert.h> |
1680 | #include <assert.h> |
| 1673 | Syntax Error |
1681 | Syntax Error |
| 1674 | EOF |
1682 | EOF |
| 1675 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1683 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1676 | { (eval echo configure:1677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1684 | { (eval echo configure:1685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1677 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1685 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1678 | if test -z "$ac_err"; then |
1686 | if test -z "$ac_err"; then |
| 1679 | : |
1687 | : |
| 1680 | else |
1688 | else |
| 1681 | echo "$ac_err" >&5 |
1689 | echo "$ac_err" >&5 |
| 1682 | echo "configure: failed program was:" >&5 |
1690 | echo "configure: failed program was:" >&5 |
| 1683 | cat conftest.$ac_ext >&5 |
1691 | cat conftest.$ac_ext >&5 |
| 1684 | rm -rf conftest* |
1692 | rm -rf conftest* |
| 1685 | CPP="${CC-cc} -nologo -E" |
1693 | CPP="${CC-cc} -nologo -E" |
| 1686 | cat > conftest.$ac_ext <<EOF |
1694 | cat > conftest.$ac_ext <<EOF |
| 1687 | #line 1688 "configure" |
1695 | #line 1696 "configure" |
| 1688 | #include "confdefs.h" |
1696 | #include "confdefs.h" |
| 1689 | #include <assert.h> |
1697 | #include <assert.h> |
| 1690 | Syntax Error |
1698 | Syntax Error |
| 1691 | EOF |
1699 | EOF |
| 1692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1700 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1693 | { (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1701 | { (eval echo configure:1702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1694 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1702 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1695 | if test -z "$ac_err"; then |
1703 | if test -z "$ac_err"; then |
| 1696 | : |
1704 | : |
| 1697 | else |
1705 | else |
| 1698 | echo "$ac_err" >&5 |
1706 | echo "$ac_err" >&5 |
| … | |
… | |
| 1713 | ac_cv_prog_CPP="$CPP" |
1721 | ac_cv_prog_CPP="$CPP" |
| 1714 | fi |
1722 | fi |
| 1715 | echo "$ac_t""$CPP" 1>&6 |
1723 | echo "$ac_t""$CPP" 1>&6 |
| 1716 | |
1724 | |
| 1717 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1725 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1718 | echo "configure:1719: checking for ANSI C header files" >&5 |
1726 | echo "configure:1727: checking for ANSI C header files" >&5 |
| 1719 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1727 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1720 | echo $ac_n "(cached) $ac_c" 1>&6 |
1728 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1721 | else |
1729 | else |
| 1722 | cat > conftest.$ac_ext <<EOF |
1730 | cat > conftest.$ac_ext <<EOF |
| 1723 | #line 1724 "configure" |
1731 | #line 1732 "configure" |
| 1724 | #include "confdefs.h" |
1732 | #include "confdefs.h" |
| 1725 | #include <stdlib.h> |
1733 | #include <stdlib.h> |
| 1726 | #include <stdarg.h> |
1734 | #include <stdarg.h> |
| 1727 | #include <string.h> |
1735 | #include <string.h> |
| 1728 | #include <float.h> |
1736 | #include <float.h> |
| 1729 | EOF |
1737 | EOF |
| 1730 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1738 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1731 | { (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1739 | { (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1732 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1740 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1733 | if test -z "$ac_err"; then |
1741 | if test -z "$ac_err"; then |
| 1734 | rm -rf conftest* |
1742 | rm -rf conftest* |
| 1735 | ac_cv_header_stdc=yes |
1743 | ac_cv_header_stdc=yes |
| 1736 | else |
1744 | else |
| … | |
… | |
| 1743 | rm -f conftest* |
1751 | rm -f conftest* |
| 1744 | |
1752 | |
| 1745 | if test $ac_cv_header_stdc = yes; then |
1753 | if test $ac_cv_header_stdc = yes; then |
| 1746 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1754 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1747 | cat > conftest.$ac_ext <<EOF |
1755 | cat > conftest.$ac_ext <<EOF |
| 1748 | #line 1749 "configure" |
1756 | #line 1757 "configure" |
| 1749 | #include "confdefs.h" |
1757 | #include "confdefs.h" |
| 1750 | #include <string.h> |
1758 | #include <string.h> |
| 1751 | EOF |
1759 | EOF |
| 1752 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1760 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1753 | egrep "memchr" >/dev/null 2>&1; then |
1761 | egrep "memchr" >/dev/null 2>&1; then |
| … | |
… | |
| 1761 | fi |
1769 | fi |
| 1762 | |
1770 | |
| 1763 | if test $ac_cv_header_stdc = yes; then |
1771 | if test $ac_cv_header_stdc = yes; then |
| 1764 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1772 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1765 | cat > conftest.$ac_ext <<EOF |
1773 | cat > conftest.$ac_ext <<EOF |
| 1766 | #line 1767 "configure" |
1774 | #line 1775 "configure" |
| 1767 | #include "confdefs.h" |
1775 | #include "confdefs.h" |
| 1768 | #include <stdlib.h> |
1776 | #include <stdlib.h> |
| 1769 | EOF |
1777 | EOF |
| 1770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1771 | egrep "free" >/dev/null 2>&1; then |
1779 | egrep "free" >/dev/null 2>&1; then |
| … | |
… | |
| 1782 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1790 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1783 | if test "$cross_compiling" = yes; then |
1791 | if test "$cross_compiling" = yes; then |
| 1784 | : |
1792 | : |
| 1785 | else |
1793 | else |
| 1786 | cat > conftest.$ac_ext <<EOF |
1794 | cat > conftest.$ac_ext <<EOF |
| 1787 | #line 1788 "configure" |
1795 | #line 1796 "configure" |
| 1788 | #include "confdefs.h" |
1796 | #include "confdefs.h" |
| 1789 | #include <ctype.h> |
1797 | #include <ctype.h> |
| 1790 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1798 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1791 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1799 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 1792 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1800 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 1793 | int main () { int i; for (i = 0; i < 256; i++) |
1801 | int main () { int i; for (i = 0; i < 256; i++) |
| 1794 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1802 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1795 | exit (0); } |
1803 | exit (0); } |
| 1796 | |
1804 | |
| 1797 | EOF |
1805 | EOF |
| 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 |
1806 | if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1799 | then |
1807 | then |
| 1800 | : |
1808 | : |
| 1801 | else |
1809 | else |
| 1802 | echo "configure: failed program was:" >&5 |
1810 | echo "configure: failed program was:" >&5 |
| 1803 | cat conftest.$ac_ext >&5 |
1811 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 1820 | |
1828 | |
| 1821 | for ac_hdr in unistd.h |
1829 | for ac_hdr in unistd.h |
| 1822 | do |
1830 | do |
| 1823 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1831 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1824 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1832 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1825 | echo "configure:1826: checking for $ac_hdr" >&5 |
1833 | echo "configure:1834: checking for $ac_hdr" >&5 |
| 1826 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1834 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1827 | echo $ac_n "(cached) $ac_c" 1>&6 |
1835 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1828 | else |
1836 | else |
| 1829 | cat > conftest.$ac_ext <<EOF |
1837 | cat > conftest.$ac_ext <<EOF |
| 1830 | #line 1831 "configure" |
1838 | #line 1839 "configure" |
| 1831 | #include "confdefs.h" |
1839 | #include "confdefs.h" |
| 1832 | #include <$ac_hdr> |
1840 | #include <$ac_hdr> |
| 1833 | EOF |
1841 | EOF |
| 1834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1835 | { (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1843 | { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1837 | if test -z "$ac_err"; then |
1845 | if test -z "$ac_err"; then |
| 1838 | rm -rf conftest* |
1846 | rm -rf conftest* |
| 1839 | eval "ac_cv_header_$ac_safe=yes" |
1847 | eval "ac_cv_header_$ac_safe=yes" |
| 1840 | else |
1848 | else |
| … | |
… | |
| 1858 | fi |
1866 | fi |
| 1859 | done |
1867 | done |
| 1860 | |
1868 | |
| 1861 | |
1869 | |
| 1862 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1870 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 1863 | echo "configure:1864: checking for working const" >&5 |
1871 | echo "configure:1872: checking for working const" >&5 |
| 1864 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1872 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 1865 | echo $ac_n "(cached) $ac_c" 1>&6 |
1873 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1866 | else |
1874 | else |
| 1867 | cat > conftest.$ac_ext <<EOF |
1875 | cat > conftest.$ac_ext <<EOF |
| 1868 | #line 1869 "configure" |
1876 | #line 1877 "configure" |
| 1869 | #include "confdefs.h" |
1877 | #include "confdefs.h" |
| 1870 | |
1878 | |
| 1871 | int main() { |
1879 | int main() { |
| 1872 | |
1880 | |
| 1873 | /* Ultrix mips cc rejects this. */ |
1881 | /* Ultrix mips cc rejects this. */ |
| … | |
… | |
| 1912 | const int foo = 10; |
1920 | const int foo = 10; |
| 1913 | } |
1921 | } |
| 1914 | |
1922 | |
| 1915 | ; return 0; } |
1923 | ; return 0; } |
| 1916 | EOF |
1924 | EOF |
| 1917 | if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1925 | if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1918 | rm -rf conftest* |
1926 | rm -rf conftest* |
| 1919 | ac_cv_c_const=yes |
1927 | ac_cv_c_const=yes |
| 1920 | else |
1928 | else |
| 1921 | echo "configure: failed program was:" >&5 |
1929 | echo "configure: failed program was:" >&5 |
| 1922 | cat conftest.$ac_ext >&5 |
1930 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 1933 | EOF |
1941 | EOF |
| 1934 | |
1942 | |
| 1935 | fi |
1943 | fi |
| 1936 | |
1944 | |
| 1937 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1945 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 1938 | echo "configure:1939: checking for size_t" >&5 |
1946 | echo "configure:1947: checking for size_t" >&5 |
| 1939 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1947 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 1940 | echo $ac_n "(cached) $ac_c" 1>&6 |
1948 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1941 | else |
1949 | else |
| 1942 | cat > conftest.$ac_ext <<EOF |
1950 | cat > conftest.$ac_ext <<EOF |
| 1943 | #line 1944 "configure" |
1951 | #line 1952 "configure" |
| 1944 | #include "confdefs.h" |
1952 | #include "confdefs.h" |
| 1945 | #include <sys/types.h> |
1953 | #include <sys/types.h> |
| 1946 | #if STDC_HEADERS |
1954 | #if STDC_HEADERS |
| 1947 | #include <stdlib.h> |
1955 | #include <stdlib.h> |
| 1948 | #include <stddef.h> |
1956 | #include <stddef.h> |
| … | |
… | |
| 1968 | fi |
1976 | fi |
| 1969 | |
1977 | |
| 1970 | |
1978 | |
| 1971 | |
1979 | |
| 1972 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1980 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
| 1973 | echo "configure:1974: checking size of char" >&5 |
1981 | echo "configure:1982: checking size of char" >&5 |
| 1974 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1982 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
| 1975 | echo $ac_n "(cached) $ac_c" 1>&6 |
1983 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1976 | else |
1984 | else |
| 1977 | if test "$cross_compiling" = yes; then |
1985 | if test "$cross_compiling" = yes; then |
| 1978 | ac_cv_sizeof_char=1 |
1986 | ac_cv_sizeof_char=1 |
| 1979 | else |
1987 | else |
| 1980 | cat > conftest.$ac_ext <<EOF |
1988 | cat > conftest.$ac_ext <<EOF |
| 1981 | #line 1982 "configure" |
1989 | #line 1990 "configure" |
| 1982 | #include "confdefs.h" |
1990 | #include "confdefs.h" |
| 1983 | #include <stdio.h> |
1991 | #include <stdio.h> |
| 1984 | main() |
1992 | main() |
| 1985 | { |
1993 | { |
| 1986 | FILE *f=fopen("conftestval", "w"); |
1994 | FILE *f=fopen("conftestval", "w"); |
| 1987 | if (!f) exit(1); |
1995 | if (!f) exit(1); |
| 1988 | fprintf(f, "%d\n", sizeof(char)); |
1996 | fprintf(f, "%d\n", sizeof(char)); |
| 1989 | exit(0); |
1997 | exit(0); |
| 1990 | } |
1998 | } |
| 1991 | EOF |
1999 | EOF |
| 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 |
2000 | if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1993 | then |
2001 | then |
| 1994 | ac_cv_sizeof_char=`cat conftestval` |
2002 | ac_cv_sizeof_char=`cat conftestval` |
| 1995 | else |
2003 | else |
| 1996 | echo "configure: failed program was:" >&5 |
2004 | echo "configure: failed program was:" >&5 |
| 1997 | cat conftest.$ac_ext >&5 |
2005 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2007 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
2015 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2008 | EOF |
2016 | EOF |
| 2009 | |
2017 | |
| 2010 | |
2018 | |
| 2011 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
2019 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
| 2012 | echo "configure:2013: checking size of short" >&5 |
2020 | echo "configure:2021: checking size of short" >&5 |
| 2013 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
2021 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 2014 | echo $ac_n "(cached) $ac_c" 1>&6 |
2022 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2015 | else |
2023 | else |
| 2016 | if test "$cross_compiling" = yes; then |
2024 | if test "$cross_compiling" = yes; then |
| 2017 | ac_cv_sizeof_short=1 |
2025 | ac_cv_sizeof_short=1 |
| 2018 | else |
2026 | else |
| 2019 | cat > conftest.$ac_ext <<EOF |
2027 | cat > conftest.$ac_ext <<EOF |
| 2020 | #line 2021 "configure" |
2028 | #line 2029 "configure" |
| 2021 | #include "confdefs.h" |
2029 | #include "confdefs.h" |
| 2022 | #include <stdio.h> |
2030 | #include <stdio.h> |
| 2023 | main() |
2031 | main() |
| 2024 | { |
2032 | { |
| 2025 | FILE *f=fopen("conftestval", "w"); |
2033 | FILE *f=fopen("conftestval", "w"); |
| 2026 | if (!f) exit(1); |
2034 | if (!f) exit(1); |
| 2027 | fprintf(f, "%d\n", sizeof(short)); |
2035 | fprintf(f, "%d\n", sizeof(short)); |
| 2028 | exit(0); |
2036 | exit(0); |
| 2029 | } |
2037 | } |
| 2030 | EOF |
2038 | EOF |
| 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 |
2039 | if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2032 | then |
2040 | then |
| 2033 | ac_cv_sizeof_short=`cat conftestval` |
2041 | ac_cv_sizeof_short=`cat conftestval` |
| 2034 | else |
2042 | else |
| 2035 | echo "configure: failed program was:" >&5 |
2043 | echo "configure: failed program was:" >&5 |
| 2036 | cat conftest.$ac_ext >&5 |
2044 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2046 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
2054 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2047 | EOF |
2055 | EOF |
| 2048 | |
2056 | |
| 2049 | |
2057 | |
| 2050 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
2058 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
| 2051 | echo "configure:2052: checking size of int" >&5 |
2059 | echo "configure:2060: checking size of int" >&5 |
| 2052 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
2060 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 2053 | echo $ac_n "(cached) $ac_c" 1>&6 |
2061 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2054 | else |
2062 | else |
| 2055 | if test "$cross_compiling" = yes; then |
2063 | if test "$cross_compiling" = yes; then |
| 2056 | ac_cv_sizeof_int=2 |
2064 | ac_cv_sizeof_int=2 |
| 2057 | else |
2065 | else |
| 2058 | cat > conftest.$ac_ext <<EOF |
2066 | cat > conftest.$ac_ext <<EOF |
| 2059 | #line 2060 "configure" |
2067 | #line 2068 "configure" |
| 2060 | #include "confdefs.h" |
2068 | #include "confdefs.h" |
| 2061 | #include <stdio.h> |
2069 | #include <stdio.h> |
| 2062 | main() |
2070 | main() |
| 2063 | { |
2071 | { |
| 2064 | FILE *f=fopen("conftestval", "w"); |
2072 | FILE *f=fopen("conftestval", "w"); |
| 2065 | if (!f) exit(1); |
2073 | if (!f) exit(1); |
| 2066 | fprintf(f, "%d\n", sizeof(int)); |
2074 | fprintf(f, "%d\n", sizeof(int)); |
| 2067 | exit(0); |
2075 | exit(0); |
| 2068 | } |
2076 | } |
| 2069 | EOF |
2077 | EOF |
| 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 |
2078 | if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2071 | then |
2079 | then |
| 2072 | ac_cv_sizeof_int=`cat conftestval` |
2080 | ac_cv_sizeof_int=`cat conftestval` |
| 2073 | else |
2081 | else |
| 2074 | echo "configure: failed program was:" >&5 |
2082 | echo "configure: failed program was:" >&5 |
| 2075 | cat conftest.$ac_ext >&5 |
2083 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2085 | #define SIZEOF_INT $ac_cv_sizeof_int |
2093 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2086 | EOF |
2094 | EOF |
| 2087 | |
2095 | |
| 2088 | |
2096 | |
| 2089 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
2097 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
| 2090 | echo "configure:2091: checking size of long" >&5 |
2098 | echo "configure:2099: checking size of long" >&5 |
| 2091 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
2099 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 2092 | echo $ac_n "(cached) $ac_c" 1>&6 |
2100 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2093 | else |
2101 | else |
| 2094 | if test "$cross_compiling" = yes; then |
2102 | if test "$cross_compiling" = yes; then |
| 2095 | ac_cv_sizeof_long=4 |
2103 | ac_cv_sizeof_long=4 |
| 2096 | else |
2104 | else |
| 2097 | cat > conftest.$ac_ext <<EOF |
2105 | cat > conftest.$ac_ext <<EOF |
| 2098 | #line 2099 "configure" |
2106 | #line 2107 "configure" |
| 2099 | #include "confdefs.h" |
2107 | #include "confdefs.h" |
| 2100 | #include <stdio.h> |
2108 | #include <stdio.h> |
| 2101 | main() |
2109 | main() |
| 2102 | { |
2110 | { |
| 2103 | FILE *f=fopen("conftestval", "w"); |
2111 | FILE *f=fopen("conftestval", "w"); |
| 2104 | if (!f) exit(1); |
2112 | if (!f) exit(1); |
| 2105 | fprintf(f, "%d\n", sizeof(long)); |
2113 | fprintf(f, "%d\n", sizeof(long)); |
| 2106 | exit(0); |
2114 | exit(0); |
| 2107 | } |
2115 | } |
| 2108 | EOF |
2116 | EOF |
| 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 |
2117 | if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2110 | then |
2118 | then |
| 2111 | ac_cv_sizeof_long=`cat conftestval` |
2119 | ac_cv_sizeof_long=`cat conftestval` |
| 2112 | else |
2120 | else |
| 2113 | echo "configure: failed program was:" >&5 |
2121 | echo "configure: failed program was:" >&5 |
| 2114 | cat conftest.$ac_ext >&5 |
2122 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2125 | EOF |
2133 | EOF |
| 2126 | |
2134 | |
| 2127 | |
2135 | |
| 2128 | |
2136 | |
| 2129 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2137 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
| 2130 | echo "configure:2131: checking for an 8 bit integer type" >&5 |
2138 | echo "configure:2139: checking for an 8 bit integer type" >&5 |
| 2131 | if test $ac_cv_sizeof_char -ge 1 ; then |
2139 | if test $ac_cv_sizeof_char -ge 1 ; then |
| 2132 | INT_8_BIT=char |
2140 | INT_8_BIT=char |
| 2133 | echo "$ac_t""char" 1>&6 |
2141 | echo "$ac_t""char" 1>&6 |
| 2134 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2142 | elif test $ac_cv_sizeof_short -ge 1 ; then |
| 2135 | INT_8_BIT=short |
2143 | INT_8_BIT=short |
| … | |
… | |
| 2143 | else |
2151 | else |
| 2144 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2152 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
| 2145 | fi |
2153 | fi |
| 2146 | |
2154 | |
| 2147 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2155 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
| 2148 | echo "configure:2149: checking for a 16 bit integer type" >&5 |
2156 | echo "configure:2157: checking for a 16 bit integer type" >&5 |
| 2149 | if test $ac_cv_sizeof_char -ge 2 ; then |
2157 | if test $ac_cv_sizeof_char -ge 2 ; then |
| 2150 | INT_16_BIT=char |
2158 | INT_16_BIT=char |
| 2151 | echo "$ac_t""char" 1>&6 |
2159 | echo "$ac_t""char" 1>&6 |
| 2152 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2160 | elif test $ac_cv_sizeof_short -ge 2 ; then |
| 2153 | INT_16_BIT=short |
2161 | INT_16_BIT=short |
| … | |
… | |
| 2161 | else |
2169 | else |
| 2162 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2170 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
| 2163 | fi |
2171 | fi |
| 2164 | |
2172 | |
| 2165 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2173 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
| 2166 | echo "configure:2167: checking for a 32 bit integer type" >&5 |
2174 | echo "configure:2175: checking for a 32 bit integer type" >&5 |
| 2167 | if test $ac_cv_sizeof_char -ge 4 ; then |
2175 | if test $ac_cv_sizeof_char -ge 4 ; then |
| 2168 | INT_32_BIT=char |
2176 | INT_32_BIT=char |
| 2169 | echo "$ac_t""char" 1>&6 |
2177 | echo "$ac_t""char" 1>&6 |
| 2170 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2178 | elif test $ac_cv_sizeof_short -ge 4 ; then |
| 2171 | INT_32_BIT=short |
2179 | INT_32_BIT=short |
| … | |
… | |
| 2183 | |
2191 | |
| 2184 | |
2192 | |
| 2185 | |
2193 | |
| 2186 | |
2194 | |
| 2187 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2195 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
| 2188 | echo "configure:2189: checking for vprintf" >&5 |
2196 | echo "configure:2197: checking for vprintf" >&5 |
| 2189 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2197 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 2190 | echo $ac_n "(cached) $ac_c" 1>&6 |
2198 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2191 | else |
2199 | else |
| 2192 | cat > conftest.$ac_ext <<EOF |
2200 | cat > conftest.$ac_ext <<EOF |
| 2193 | #line 2194 "configure" |
2201 | #line 2202 "configure" |
| 2194 | #include "confdefs.h" |
2202 | #include "confdefs.h" |
| 2195 | /* System header to define __stub macros and hopefully few prototypes, |
2203 | /* System header to define __stub macros and hopefully few prototypes, |
| 2196 | which can conflict with char vprintf(); below. */ |
2204 | which can conflict with char vprintf(); below. */ |
| 2197 | #include <assert.h> |
2205 | #include <assert.h> |
| 2198 | /* Override any gcc2 internal prototype to avoid an error. */ |
2206 | /* Override any gcc2 internal prototype to avoid an error. */ |
| … | |
… | |
| 2211 | vprintf(); |
2219 | vprintf(); |
| 2212 | #endif |
2220 | #endif |
| 2213 | |
2221 | |
| 2214 | ; return 0; } |
2222 | ; return 0; } |
| 2215 | EOF |
2223 | EOF |
| 2216 | if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2224 | if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2217 | rm -rf conftest* |
2225 | rm -rf conftest* |
| 2218 | eval "ac_cv_func_vprintf=yes" |
2226 | eval "ac_cv_func_vprintf=yes" |
| 2219 | else |
2227 | else |
| 2220 | echo "configure: failed program was:" >&5 |
2228 | echo "configure: failed program was:" >&5 |
| 2221 | cat conftest.$ac_ext >&5 |
2229 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2235 | echo "$ac_t""no" 1>&6 |
2243 | echo "$ac_t""no" 1>&6 |
| 2236 | fi |
2244 | fi |
| 2237 | |
2245 | |
| 2238 | if test "$ac_cv_func_vprintf" != yes; then |
2246 | if test "$ac_cv_func_vprintf" != yes; then |
| 2239 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2247 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
| 2240 | echo "configure:2241: checking for _doprnt" >&5 |
2248 | echo "configure:2249: checking for _doprnt" >&5 |
| 2241 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2249 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 2242 | echo $ac_n "(cached) $ac_c" 1>&6 |
2250 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2243 | else |
2251 | else |
| 2244 | cat > conftest.$ac_ext <<EOF |
2252 | cat > conftest.$ac_ext <<EOF |
| 2245 | #line 2246 "configure" |
2253 | #line 2254 "configure" |
| 2246 | #include "confdefs.h" |
2254 | #include "confdefs.h" |
| 2247 | /* System header to define __stub macros and hopefully few prototypes, |
2255 | /* System header to define __stub macros and hopefully few prototypes, |
| 2248 | which can conflict with char _doprnt(); below. */ |
2256 | which can conflict with char _doprnt(); below. */ |
| 2249 | #include <assert.h> |
2257 | #include <assert.h> |
| 2250 | /* Override any gcc2 internal prototype to avoid an error. */ |
2258 | /* Override any gcc2 internal prototype to avoid an error. */ |
| … | |
… | |
| 2263 | _doprnt(); |
2271 | _doprnt(); |
| 2264 | #endif |
2272 | #endif |
| 2265 | |
2273 | |
| 2266 | ; return 0; } |
2274 | ; return 0; } |
| 2267 | EOF |
2275 | EOF |
| 2268 | if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2276 | if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2269 | rm -rf conftest* |
2277 | rm -rf conftest* |
| 2270 | eval "ac_cv_func__doprnt=yes" |
2278 | eval "ac_cv_func__doprnt=yes" |
| 2271 | else |
2279 | else |
| 2272 | echo "configure: failed program was:" >&5 |
2280 | echo "configure: failed program was:" >&5 |
| 2273 | cat conftest.$ac_ext >&5 |
2281 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2290 | fi |
2298 | fi |
| 2291 | |
2299 | |
| 2292 | for ac_func in strdup |
2300 | for ac_func in strdup |
| 2293 | do |
2301 | do |
| 2294 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2302 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2295 | echo "configure:2296: checking for $ac_func" >&5 |
2303 | echo "configure:2304: checking for $ac_func" >&5 |
| 2296 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2304 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2297 | echo $ac_n "(cached) $ac_c" 1>&6 |
2305 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2298 | else |
2306 | else |
| 2299 | cat > conftest.$ac_ext <<EOF |
2307 | cat > conftest.$ac_ext <<EOF |
| 2300 | #line 2301 "configure" |
2308 | #line 2309 "configure" |
| 2301 | #include "confdefs.h" |
2309 | #include "confdefs.h" |
| 2302 | /* System header to define __stub macros and hopefully few prototypes, |
2310 | /* System header to define __stub macros and hopefully few prototypes, |
| 2303 | which can conflict with char $ac_func(); below. */ |
2311 | which can conflict with char $ac_func(); below. */ |
| 2304 | #include <assert.h> |
2312 | #include <assert.h> |
| 2305 | /* Override any gcc2 internal prototype to avoid an error. */ |
2313 | /* Override any gcc2 internal prototype to avoid an error. */ |
| … | |
… | |
| 2318 | $ac_func(); |
2326 | $ac_func(); |
| 2319 | #endif |
2327 | #endif |
| 2320 | |
2328 | |
| 2321 | ; return 0; } |
2329 | ; return 0; } |
| 2322 | EOF |
2330 | EOF |
| 2323 | if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2331 | if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2324 | rm -rf conftest* |
2332 | rm -rf conftest* |
| 2325 | eval "ac_cv_func_$ac_func=yes" |
2333 | eval "ac_cv_func_$ac_func=yes" |
| 2326 | else |
2334 | else |
| 2327 | echo "configure: failed program was:" >&5 |
2335 | echo "configure: failed program was:" >&5 |
| 2328 | cat conftest.$ac_ext >&5 |
2336 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2347 | |
2355 | |
| 2348 | |
2356 | |
| 2349 | for ac_func in getopt_long |
2357 | for ac_func in getopt_long |
| 2350 | do |
2358 | do |
| 2351 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2359 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2352 | echo "configure:2353: checking for $ac_func" >&5 |
2360 | echo "configure:2361: checking for $ac_func" >&5 |
| 2353 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2361 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2354 | echo $ac_n "(cached) $ac_c" 1>&6 |
2362 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2355 | else |
2363 | else |
| 2356 | cat > conftest.$ac_ext <<EOF |
2364 | cat > conftest.$ac_ext <<EOF |
| 2357 | #line 2358 "configure" |
2365 | #line 2366 "configure" |
| 2358 | #include "confdefs.h" |
2366 | #include "confdefs.h" |
| 2359 | /* System header to define __stub macros and hopefully few prototypes, |
2367 | /* System header to define __stub macros and hopefully few prototypes, |
| 2360 | which can conflict with char $ac_func(); below. */ |
2368 | which can conflict with char $ac_func(); below. */ |
| 2361 | #include <assert.h> |
2369 | #include <assert.h> |
| 2362 | /* Override any gcc2 internal prototype to avoid an error. */ |
2370 | /* Override any gcc2 internal prototype to avoid an error. */ |
| … | |
… | |
| 2375 | $ac_func(); |
2383 | $ac_func(); |
| 2376 | #endif |
2384 | #endif |
| 2377 | |
2385 | |
| 2378 | ; return 0; } |
2386 | ; return 0; } |
| 2379 | EOF |
2387 | EOF |
| 2380 | if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2388 | if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2381 | rm -rf conftest* |
2389 | rm -rf conftest* |
| 2382 | eval "ac_cv_func_$ac_func=yes" |
2390 | eval "ac_cv_func_$ac_func=yes" |
| 2383 | else |
2391 | else |
| 2384 | echo "configure: failed program was:" >&5 |
2392 | echo "configure: failed program was:" >&5 |
| 2385 | cat conftest.$ac_ext >&5 |
2393 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2592 | done |
2600 | done |
| 2593 | |
2601 | |
| 2594 | ac_given_srcdir=$srcdir |
2602 | ac_given_srcdir=$srcdir |
| 2595 | ac_given_INSTALL="$INSTALL" |
2603 | ac_given_INSTALL="$INSTALL" |
| 2596 | |
2604 | |
| 2597 | trap 'rm -fr `echo "Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
2605 | trap 'rm -fr `echo "Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 2598 | EOF |
2606 | EOF |
| 2599 | cat >> $CONFIG_STATUS <<EOF |
2607 | cat >> $CONFIG_STATUS <<EOF |
| 2600 | |
2608 | |
| 2601 | # Protect against being on the right side of a sed subst in config.status. |
2609 | # Protect against being on the right side of a sed subst in config.status. |
| 2602 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
2610 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| … | |
… | |
| 2650 | s%@RANLIB@%$RANLIB%g |
2658 | s%@RANLIB@%$RANLIB%g |
| 2651 | s%@CC@%$CC%g |
2659 | s%@CC@%$CC%g |
| 2652 | s%@LN_S@%$LN_S%g |
2660 | s%@LN_S@%$LN_S%g |
| 2653 | s%@LIBTOOL@%$LIBTOOL%g |
2661 | s%@LIBTOOL@%$LIBTOOL%g |
| 2654 | s%@cflags_set@%$cflags_set%g |
2662 | s%@cflags_set@%$cflags_set%g |
|
|
2663 | s%@IMAGEMAGICK@%$IMAGEMAGICK%g |
| 2655 | s%@LIB_MAGICK@%$LIB_MAGICK%g |
2664 | s%@LIB_MAGICK@%$LIB_MAGICK%g |
| 2656 | s%@CPP@%$CPP%g |
2665 | s%@CPP@%$CPP%g |
| 2657 | s%@INT_8_BIT@%$INT_8_BIT%g |
2666 | s%@INT_8_BIT@%$INT_8_BIT%g |
| 2658 | s%@INT_16_BIT@%$INT_16_BIT%g |
2667 | s%@INT_16_BIT@%$INT_16_BIT%g |
| 2659 | s%@INT_32_BIT@%$INT_32_BIT%g |
2668 | s%@INT_32_BIT@%$INT_32_BIT%g |
| … | |
… | |
| 2705 | fi |
2714 | fi |
| 2706 | EOF |
2715 | EOF |
| 2707 | |
2716 | |
| 2708 | cat >> $CONFIG_STATUS <<EOF |
2717 | cat >> $CONFIG_STATUS <<EOF |
| 2709 | |
2718 | |
| 2710 | CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile"} |
2719 | CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile"} |
| 2711 | EOF |
2720 | EOF |
| 2712 | cat >> $CONFIG_STATUS <<\EOF |
2721 | cat >> $CONFIG_STATUS <<\EOF |
| 2713 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
2722 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 2714 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2723 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 2715 | case "$ac_file" in |
2724 | case "$ac_file" in |