|
a/src/configure |
|
b/src/configure |
|
... |
|
... |
575 |
PACKAGE_VERSION='1.6'
|
575 |
PACKAGE_VERSION='1.6'
|
576 |
PACKAGE_STRING='Recoll 1.6'
|
576 |
PACKAGE_STRING='Recoll 1.6'
|
577 |
PACKAGE_BUGREPORT=''
|
577 |
PACKAGE_BUGREPORT=''
|
578 |
|
578 |
|
579 |
ac_unique_file="index/recollindex.cpp"
|
579 |
ac_unique_file="index/recollindex.cpp"
|
|
|
580 |
# Factoring default headers for most tests.
|
|
|
581 |
ac_includes_default="\
|
|
|
582 |
#include <stdio.h>
|
|
|
583 |
#ifdef HAVE_SYS_TYPES_H
|
|
|
584 |
# include <sys/types.h>
|
|
|
585 |
#endif
|
|
|
586 |
#ifdef HAVE_SYS_STAT_H
|
|
|
587 |
# include <sys/stat.h>
|
|
|
588 |
#endif
|
|
|
589 |
#ifdef STDC_HEADERS
|
|
|
590 |
# include <stdlib.h>
|
|
|
591 |
# include <stddef.h>
|
|
|
592 |
#else
|
|
|
593 |
# ifdef HAVE_STDLIB_H
|
|
|
594 |
# include <stdlib.h>
|
|
|
595 |
# endif
|
|
|
596 |
#endif
|
|
|
597 |
#ifdef HAVE_STRING_H
|
|
|
598 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
|
|
599 |
# include <memory.h>
|
|
|
600 |
# endif
|
|
|
601 |
# include <string.h>
|
|
|
602 |
#endif
|
|
|
603 |
#ifdef HAVE_STRINGS_H
|
|
|
604 |
# include <strings.h>
|
|
|
605 |
#endif
|
|
|
606 |
#ifdef HAVE_INTTYPES_H
|
|
|
607 |
# include <inttypes.h>
|
|
|
608 |
#endif
|
|
|
609 |
#ifdef HAVE_STDINT_H
|
|
|
610 |
# include <stdint.h>
|
|
|
611 |
#endif
|
|
|
612 |
#ifdef HAVE_UNISTD_H
|
|
|
613 |
# include <unistd.h>
|
|
|
614 |
#endif"
|
|
|
615 |
|
580 |
ac_subst_vars='SHELL
|
616 |
ac_subst_vars='SHELL
|
581 |
PATH_SEPARATOR
|
617 |
PATH_SEPARATOR
|
582 |
PACKAGE_NAME
|
618 |
PACKAGE_NAME
|
583 |
PACKAGE_TARNAME
|
619 |
PACKAGE_TARNAME
|
584 |
PACKAGE_VERSION
|
620 |
PACKAGE_VERSION
|
|
... |
|
... |
612 |
ECHO_T
|
648 |
ECHO_T
|
613 |
LIBS
|
649 |
LIBS
|
614 |
build_alias
|
650 |
build_alias
|
615 |
host_alias
|
651 |
host_alias
|
616 |
target_alias
|
652 |
target_alias
|
617 |
aspellProg
|
|
|
618 |
CC
|
653 |
CC
|
619 |
CFLAGS
|
654 |
CFLAGS
|
620 |
LDFLAGS
|
655 |
LDFLAGS
|
621 |
CPPFLAGS
|
656 |
CPPFLAGS
|
622 |
ac_ct_CC
|
657 |
ac_ct_CC
|
623 |
EXEEXT
|
658 |
EXEEXT
|
624 |
OBJEXT
|
659 |
OBJEXT
|
|
|
660 |
CPP
|
|
|
661 |
GREP
|
|
|
662 |
EGREP
|
|
|
663 |
aspellProg
|
625 |
CXX
|
664 |
CXX
|
626 |
CXXFLAGS
|
665 |
CXXFLAGS
|
627 |
ac_ct_CXX
|
666 |
ac_ct_CXX
|
628 |
XAPIAN_CONFIG
|
667 |
XAPIAN_CONFIG
|
629 |
QMAKE
|
668 |
QMAKE
|
|
... |
|
... |
651 |
CC
|
690 |
CC
|
652 |
CFLAGS
|
691 |
CFLAGS
|
653 |
LDFLAGS
|
692 |
LDFLAGS
|
654 |
LIBS
|
693 |
LIBS
|
655 |
CPPFLAGS
|
694 |
CPPFLAGS
|
|
|
695 |
CPP
|
656 |
CXX
|
696 |
CXX
|
657 |
CXXFLAGS
|
697 |
CXXFLAGS
|
658 |
CCC
|
698 |
CCC
|
659 |
XMKMF
|
699 |
XMKMF
|
660 |
CXXCPP'
|
700 |
CXXCPP'
|
|
... |
|
... |
1248 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
1288 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
1249 |
nonstandard directory <lib dir>
|
1289 |
nonstandard directory <lib dir>
|
1250 |
LIBS libraries to pass to the linker, e.g. -l<library>
|
1290 |
LIBS libraries to pass to the linker, e.g. -l<library>
|
1251 |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
1291 |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
1252 |
you have headers in a nonstandard directory <include dir>
|
1292 |
you have headers in a nonstandard directory <include dir>
|
|
|
1293 |
CPP C preprocessor
|
1253 |
CXX C++ compiler command
|
1294 |
CXX C++ compiler command
|
1254 |
CXXFLAGS C++ compiler flags
|
1295 |
CXXFLAGS C++ compiler flags
|
1255 |
XMKMF Path to xmkmf, Makefile generator for X Window System
|
1296 |
XMKMF Path to xmkmf, Makefile generator for X Window System
|
1256 |
CXXCPP C++ preprocessor
|
1297 |
CXXCPP C++ preprocessor
|
1257 |
|
1298 |
|
|
... |
|
... |
1700 |
are really simple.
|
1741 |
are really simple.
|
1701 |
EOF
|
1742 |
EOF
|
1702 |
exit 1
|
1743 |
exit 1
|
1703 |
fi
|
1744 |
fi
|
1704 |
|
1745 |
|
1705 |
# Use aspell to provide spelling expansions ?
|
|
|
1706 |
# The default is yes. If we do find an aspell installation, we use it. Else
|
|
|
1707 |
# we do compile the aspell module using an internal copy of aspell.h
|
|
|
1708 |
# Only --with-aspell=no will completely disable aspell support
|
|
|
1709 |
|
|
|
1710 |
# Check whether --with-aspell was given.
|
|
|
1711 |
if test "${with_aspell+set}" = set; then
|
|
|
1712 |
withval=$with_aspell; withAspell=$withval
|
|
|
1713 |
else
|
|
|
1714 |
withAspell=yes
|
|
|
1715 |
fi
|
|
|
1716 |
|
|
|
1717 |
case $withAspell in
|
|
|
1718 |
no);;
|
|
|
1719 |
yes)
|
|
|
1720 |
# Extract the first word of "aspell", so it can be a program name with args.
|
|
|
1721 |
set dummy aspell; ac_word=$2
|
|
|
1722 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
1723 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
1724 |
if test "${ac_cv_path_aspellProg+set}" = set; then
|
|
|
1725 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
1726 |
else
|
|
|
1727 |
case $aspellProg in
|
|
|
1728 |
[\\/]* | ?:[\\/]*)
|
|
|
1729 |
ac_cv_path_aspellProg="$aspellProg" # Let the user override the test with a path.
|
|
|
1730 |
;;
|
|
|
1731 |
*)
|
|
|
1732 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
1733 |
for as_dir in $PATH
|
|
|
1734 |
do
|
|
|
1735 |
IFS=$as_save_IFS
|
|
|
1736 |
test -z "$as_dir" && as_dir=.
|
|
|
1737 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
1738 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
1739 |
ac_cv_path_aspellProg="$as_dir/$ac_word$ac_exec_ext"
|
|
|
1740 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
1741 |
break 2
|
|
|
1742 |
fi
|
|
|
1743 |
done
|
|
|
1744 |
done
|
|
|
1745 |
IFS=$as_save_IFS
|
|
|
1746 |
|
|
|
1747 |
;;
|
|
|
1748 |
esac
|
|
|
1749 |
fi
|
|
|
1750 |
aspellProg=$ac_cv_path_aspellProg
|
|
|
1751 |
if test -n "$aspellProg"; then
|
|
|
1752 |
{ echo "$as_me:$LINENO: result: $aspellProg" >&5
|
|
|
1753 |
echo "${ECHO_T}$aspellProg" >&6; }
|
|
|
1754 |
else
|
|
|
1755 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
1756 |
echo "${ECHO_T}no" >&6; }
|
|
|
1757 |
fi
|
|
|
1758 |
|
|
|
1759 |
|
|
|
1760 |
;;
|
|
|
1761 |
*) # The argument should be the path to the aspell program
|
|
|
1762 |
aspellProg=$withAspell
|
|
|
1763 |
;;
|
|
|
1764 |
esac
|
|
|
1765 |
|
|
|
1766 |
if test X$withAspell != Xno ; then
|
|
|
1767 |
|
|
|
1768 |
cat >>confdefs.h <<\_ACEOF
|
|
|
1769 |
#define RCL_USE_ASPELL 1
|
|
|
1770 |
_ACEOF
|
|
|
1771 |
|
|
|
1772 |
if test X$aspellProg != X ; then
|
|
|
1773 |
aspellBase=`dirname $aspellProg`
|
|
|
1774 |
aspellBase=`dirname $aspellBase`
|
|
|
1775 |
|
|
|
1776 |
cat >>confdefs.h <<_ACEOF
|
|
|
1777 |
#define ASPELL_PROG "$aspellProg"
|
|
|
1778 |
_ACEOF
|
|
|
1779 |
|
|
|
1780 |
if test -f $aspellBase/include/aspell.h ; then
|
|
|
1781 |
|
|
|
1782 |
cat >>confdefs.h <<_ACEOF
|
|
|
1783 |
#define ASPELL_INCLUDE "$aspellBase/include/aspell.h"
|
|
|
1784 |
_ACEOF
|
|
|
1785 |
|
|
|
1786 |
else
|
|
|
1787 |
{ echo "$as_me:$LINENO: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&5
|
|
|
1788 |
echo "$as_me: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&6;}
|
|
|
1789 |
cat >>confdefs.h <<\_ACEOF
|
|
|
1790 |
#define ASPELL_INCLUDE "aspell-local.h"
|
|
|
1791 |
_ACEOF
|
|
|
1792 |
|
|
|
1793 |
fi
|
|
|
1794 |
else
|
|
|
1795 |
# aspell support enabled but no aspell install yet
|
|
|
1796 |
{ echo "$as_me:$LINENO: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&5
|
|
|
1797 |
echo "$as_me: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&6;}
|
|
|
1798 |
cat >>confdefs.h <<\_ACEOF
|
|
|
1799 |
#define ASPELL_INCLUDE "aspell-local.h"
|
|
|
1800 |
_ACEOF
|
|
|
1801 |
|
|
|
1802 |
fi
|
|
|
1803 |
fi
|
|
|
1804 |
|
|
|
1805 |
# Real time monitoring with FAM
|
|
|
1806 |
|
|
|
1807 |
# Check whether --with-fam was given.
|
|
|
1808 |
if test "${with_fam+set}" = set; then
|
|
|
1809 |
withval=$with_fam; withFam=$withval
|
|
|
1810 |
else
|
|
|
1811 |
withFam=no
|
|
|
1812 |
fi
|
|
|
1813 |
|
|
|
1814 |
case $withFam in
|
|
|
1815 |
no);;
|
|
|
1816 |
yes)
|
|
|
1817 |
for dir in /usr/local/lib ${libdir};do
|
|
|
1818 |
if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi
|
|
|
1819 |
done
|
|
|
1820 |
;;
|
|
|
1821 |
*) # The argument should be the path to the fam library
|
|
|
1822 |
famLib=$withFam
|
|
|
1823 |
;;
|
|
|
1824 |
esac
|
|
|
1825 |
|
|
|
1826 |
if test X$withFam != Xno ; then
|
|
|
1827 |
|
|
|
1828 |
cat >>confdefs.h <<\_ACEOF
|
|
|
1829 |
#define RCL_MONITOR 1
|
|
|
1830 |
_ACEOF
|
|
|
1831 |
|
|
|
1832 |
|
|
|
1833 |
cat >>confdefs.h <<\_ACEOF
|
|
|
1834 |
#define RCL_USE_FAM 1
|
|
|
1835 |
_ACEOF
|
|
|
1836 |
|
|
|
1837 |
if test X$famLib != X ; then
|
|
|
1838 |
famLibDir=`dirname $famLib`
|
|
|
1839 |
famBase=`dirname $famLibDir`
|
|
|
1840 |
famBLib=`basename $famLib .so | sed -e s/lib//`
|
|
|
1841 |
if test ! -f $famBase/include/fam.h ; then
|
|
|
1842 |
{ { echo "$as_me:$LINENO: error: fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support" >&5
|
|
|
1843 |
echo "$as_me: error: fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support" >&2;}
|
|
|
1844 |
{ (exit 1); exit 1; }; }
|
|
|
1845 |
fi
|
|
|
1846 |
LIBFAM="-L$famLibDir -l$famBLib"
|
|
|
1847 |
{ echo "$as_me:$LINENO: fam library directive: $LIBFAM" >&5
|
|
|
1848 |
echo "$as_me: fam library directive: $LIBFAM" >&6;}
|
|
|
1849 |
|
|
|
1850 |
cat >>confdefs.h <<_ACEOF
|
|
|
1851 |
#define FAM_INCLUDE "$famBase/include/fam.h"
|
|
|
1852 |
_ACEOF
|
|
|
1853 |
|
|
|
1854 |
else
|
|
|
1855 |
{ { echo "$as_me:$LINENO: error: fam library not found" >&5
|
|
|
1856 |
echo "$as_me: error: fam library not found" >&2;}
|
|
|
1857 |
{ (exit 1); exit 1; }; }
|
|
|
1858 |
fi
|
|
|
1859 |
fi
|
|
|
1860 |
|
|
|
1861 |
if test -f /usr/include/sys/inotify.h -a X$withFam = Xno ; then
|
|
|
1862 |
inot_default=yes
|
|
|
1863 |
else
|
|
|
1864 |
inot_default=no
|
|
|
1865 |
fi
|
|
|
1866 |
|
|
|
1867 |
# Real time monitoring with inotify
|
|
|
1868 |
|
|
|
1869 |
# Check whether --with-inotify was given.
|
|
|
1870 |
if test "${with_inotify+set}" = set; then
|
|
|
1871 |
withval=$with_inotify; withInotify=$withval
|
|
|
1872 |
else
|
|
|
1873 |
withInotify=$inot_default
|
|
|
1874 |
fi
|
|
|
1875 |
|
|
|
1876 |
|
|
|
1877 |
if test X$withInotify != Xno ; then
|
|
|
1878 |
{ echo "$as_me:$LINENO: enabled support for inotify monitoring" >&5
|
|
|
1879 |
echo "$as_me: enabled support for inotify monitoring" >&6;}
|
|
|
1880 |
|
|
|
1881 |
cat >>confdefs.h <<\_ACEOF
|
|
|
1882 |
#define RCL_MONITOR 1
|
|
|
1883 |
_ACEOF
|
|
|
1884 |
|
|
|
1885 |
|
|
|
1886 |
cat >>confdefs.h <<\_ACEOF
|
|
|
1887 |
#define RCL_USE_INOTIFY 1
|
|
|
1888 |
_ACEOF
|
|
|
1889 |
|
|
|
1890 |
else
|
|
|
1891 |
{ echo "$as_me:$LINENO: inotify monitoring disabled" >&5
|
|
|
1892 |
echo "$as_me: inotify monitoring disabled" >&6;}
|
|
|
1893 |
fi
|
|
|
1894 |
|
|
|
1895 |
ac_ext=c
|
1746 |
ac_ext=c
|
1896 |
ac_cpp='$CPP $CPPFLAGS'
|
1747 |
ac_cpp='$CPP $CPPFLAGS'
|
1897 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
1748 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
1898 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
1749 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
1899 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
1750 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
... |
|
... |
2809 |
ac_cpp='$CPP $CPPFLAGS'
|
2660 |
ac_cpp='$CPP $CPPFLAGS'
|
2810 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
2661 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
2811 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
2662 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
2812 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2663 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2813 |
|
2664 |
|
|
|
2665 |
|
|
|
2666 |
ac_ext=c
|
|
|
2667 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
2668 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
2669 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
2670 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
2671 |
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
|
|
2672 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
|
|
2673 |
# On Suns, sometimes $CPP names a directory.
|
|
|
2674 |
if test -n "$CPP" && test -d "$CPP"; then
|
|
|
2675 |
CPP=
|
|
|
2676 |
fi
|
|
|
2677 |
if test -z "$CPP"; then
|
|
|
2678 |
if test "${ac_cv_prog_CPP+set}" = set; then
|
|
|
2679 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2680 |
else
|
|
|
2681 |
# Double quotes because CPP needs to be expanded
|
|
|
2682 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
|
|
2683 |
do
|
|
|
2684 |
ac_preproc_ok=false
|
|
|
2685 |
for ac_c_preproc_warn_flag in '' yes
|
|
|
2686 |
do
|
|
|
2687 |
# Use a header file that comes with gcc, so configuring glibc
|
|
|
2688 |
# with a fresh cross-compiler works.
|
|
|
2689 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
2690 |
# <limits.h> exists even on freestanding compilers.
|
|
|
2691 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
2692 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
|
2693 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
2694 |
/* confdefs.h. */
|
|
|
2695 |
_ACEOF
|
|
|
2696 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
2697 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
2698 |
/* end confdefs.h. */
|
|
|
2699 |
#ifdef __STDC__
|
|
|
2700 |
# include <limits.h>
|
|
|
2701 |
#else
|
|
|
2702 |
# include <assert.h>
|
|
|
2703 |
#endif
|
|
|
2704 |
Syntax error
|
|
|
2705 |
_ACEOF
|
|
|
2706 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
2707 |
case "(($ac_try" in
|
|
|
2708 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2709 |
*) ac_try_echo=$ac_try;;
|
|
|
2710 |
esac
|
|
|
2711 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2712 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
2713 |
ac_status=$?
|
|
|
2714 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
2715 |
rm -f conftest.er1
|
|
|
2716 |
cat conftest.err >&5
|
|
|
2717 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2718 |
(exit $ac_status); } >/dev/null && {
|
|
|
2719 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
2720 |
test ! -s conftest.err
|
|
|
2721 |
}; then
|
|
|
2722 |
:
|
|
|
2723 |
else
|
|
|
2724 |
echo "$as_me: failed program was:" >&5
|
|
|
2725 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
2726 |
|
|
|
2727 |
# Broken: fails on valid input.
|
|
|
2728 |
continue
|
|
|
2729 |
fi
|
|
|
2730 |
|
|
|
2731 |
rm -f conftest.err conftest.$ac_ext
|
|
|
2732 |
|
|
|
2733 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
|
2734 |
# can be detected and how.
|
|
|
2735 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
2736 |
/* confdefs.h. */
|
|
|
2737 |
_ACEOF
|
|
|
2738 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
2739 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
2740 |
/* end confdefs.h. */
|
|
|
2741 |
#include <ac_nonexistent.h>
|
|
|
2742 |
_ACEOF
|
|
|
2743 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
2744 |
case "(($ac_try" in
|
|
|
2745 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2746 |
*) ac_try_echo=$ac_try;;
|
|
|
2747 |
esac
|
|
|
2748 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2749 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
2750 |
ac_status=$?
|
|
|
2751 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
2752 |
rm -f conftest.er1
|
|
|
2753 |
cat conftest.err >&5
|
|
|
2754 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2755 |
(exit $ac_status); } >/dev/null && {
|
|
|
2756 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
2757 |
test ! -s conftest.err
|
|
|
2758 |
}; then
|
|
|
2759 |
# Broken: success on invalid input.
|
|
|
2760 |
continue
|
|
|
2761 |
else
|
|
|
2762 |
echo "$as_me: failed program was:" >&5
|
|
|
2763 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
2764 |
|
|
|
2765 |
# Passes both tests.
|
|
|
2766 |
ac_preproc_ok=:
|
|
|
2767 |
break
|
|
|
2768 |
fi
|
|
|
2769 |
|
|
|
2770 |
rm -f conftest.err conftest.$ac_ext
|
|
|
2771 |
|
|
|
2772 |
done
|
|
|
2773 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
|
2774 |
rm -f conftest.err conftest.$ac_ext
|
|
|
2775 |
if $ac_preproc_ok; then
|
|
|
2776 |
break
|
|
|
2777 |
fi
|
|
|
2778 |
|
|
|
2779 |
done
|
|
|
2780 |
ac_cv_prog_CPP=$CPP
|
|
|
2781 |
|
|
|
2782 |
fi
|
|
|
2783 |
CPP=$ac_cv_prog_CPP
|
|
|
2784 |
else
|
|
|
2785 |
ac_cv_prog_CPP=$CPP
|
|
|
2786 |
fi
|
|
|
2787 |
{ echo "$as_me:$LINENO: result: $CPP" >&5
|
|
|
2788 |
echo "${ECHO_T}$CPP" >&6; }
|
|
|
2789 |
ac_preproc_ok=false
|
|
|
2790 |
for ac_c_preproc_warn_flag in '' yes
|
|
|
2791 |
do
|
|
|
2792 |
# Use a header file that comes with gcc, so configuring glibc
|
|
|
2793 |
# with a fresh cross-compiler works.
|
|
|
2794 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
2795 |
# <limits.h> exists even on freestanding compilers.
|
|
|
2796 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
2797 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
|
2798 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
2799 |
/* confdefs.h. */
|
|
|
2800 |
_ACEOF
|
|
|
2801 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
2802 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
2803 |
/* end confdefs.h. */
|
|
|
2804 |
#ifdef __STDC__
|
|
|
2805 |
# include <limits.h>
|
|
|
2806 |
#else
|
|
|
2807 |
# include <assert.h>
|
|
|
2808 |
#endif
|
|
|
2809 |
Syntax error
|
|
|
2810 |
_ACEOF
|
|
|
2811 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
2812 |
case "(($ac_try" in
|
|
|
2813 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2814 |
*) ac_try_echo=$ac_try;;
|
|
|
2815 |
esac
|
|
|
2816 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2817 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
2818 |
ac_status=$?
|
|
|
2819 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
2820 |
rm -f conftest.er1
|
|
|
2821 |
cat conftest.err >&5
|
|
|
2822 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2823 |
(exit $ac_status); } >/dev/null && {
|
|
|
2824 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
2825 |
test ! -s conftest.err
|
|
|
2826 |
}; then
|
|
|
2827 |
:
|
|
|
2828 |
else
|
|
|
2829 |
echo "$as_me: failed program was:" >&5
|
|
|
2830 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
2831 |
|
|
|
2832 |
# Broken: fails on valid input.
|
|
|
2833 |
continue
|
|
|
2834 |
fi
|
|
|
2835 |
|
|
|
2836 |
rm -f conftest.err conftest.$ac_ext
|
|
|
2837 |
|
|
|
2838 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
|
2839 |
# can be detected and how.
|
|
|
2840 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
2841 |
/* confdefs.h. */
|
|
|
2842 |
_ACEOF
|
|
|
2843 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
2844 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
2845 |
/* end confdefs.h. */
|
|
|
2846 |
#include <ac_nonexistent.h>
|
|
|
2847 |
_ACEOF
|
|
|
2848 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
2849 |
case "(($ac_try" in
|
|
|
2850 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2851 |
*) ac_try_echo=$ac_try;;
|
|
|
2852 |
esac
|
|
|
2853 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2854 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
2855 |
ac_status=$?
|
|
|
2856 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
2857 |
rm -f conftest.er1
|
|
|
2858 |
cat conftest.err >&5
|
|
|
2859 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2860 |
(exit $ac_status); } >/dev/null && {
|
|
|
2861 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
2862 |
test ! -s conftest.err
|
|
|
2863 |
}; then
|
|
|
2864 |
# Broken: success on invalid input.
|
|
|
2865 |
continue
|
|
|
2866 |
else
|
|
|
2867 |
echo "$as_me: failed program was:" >&5
|
|
|
2868 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
2869 |
|
|
|
2870 |
# Passes both tests.
|
|
|
2871 |
ac_preproc_ok=:
|
|
|
2872 |
break
|
|
|
2873 |
fi
|
|
|
2874 |
|
|
|
2875 |
rm -f conftest.err conftest.$ac_ext
|
|
|
2876 |
|
|
|
2877 |
done
|
|
|
2878 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
|
2879 |
rm -f conftest.err conftest.$ac_ext
|
|
|
2880 |
if $ac_preproc_ok; then
|
|
|
2881 |
:
|
|
|
2882 |
else
|
|
|
2883 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
|
|
2884 |
See \`config.log' for more details." >&5
|
|
|
2885 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
|
|
2886 |
See \`config.log' for more details." >&2;}
|
|
|
2887 |
{ (exit 1); exit 1; }; }
|
|
|
2888 |
fi
|
|
|
2889 |
|
|
|
2890 |
ac_ext=c
|
|
|
2891 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
2892 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
2893 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
2894 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
2895 |
|
|
|
2896 |
|
|
|
2897 |
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
|
|
2898 |
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
|
|
2899 |
if test "${ac_cv_path_GREP+set}" = set; then
|
|
|
2900 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2901 |
else
|
|
|
2902 |
# Extract the first word of "grep ggrep" to use in msg output
|
|
|
2903 |
if test -z "$GREP"; then
|
|
|
2904 |
set dummy grep ggrep; ac_prog_name=$2
|
|
|
2905 |
if test "${ac_cv_path_GREP+set}" = set; then
|
|
|
2906 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2907 |
else
|
|
|
2908 |
ac_path_GREP_found=false
|
|
|
2909 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
|
2910 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2911 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
|
2912 |
do
|
|
|
2913 |
IFS=$as_save_IFS
|
|
|
2914 |
test -z "$as_dir" && as_dir=.
|
|
|
2915 |
for ac_prog in grep ggrep; do
|
|
|
2916 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2917 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
|
2918 |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
|
|
2919 |
# Check for GNU ac_path_GREP and select it if it is found.
|
|
|
2920 |
# Check for GNU $ac_path_GREP
|
|
|
2921 |
case `"$ac_path_GREP" --version 2>&1` in
|
|
|
2922 |
*GNU*)
|
|
|
2923 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
|
|
2924 |
*)
|
|
|
2925 |
ac_count=0
|
|
|
2926 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
|
|
2927 |
while :
|
|
|
2928 |
do
|
|
|
2929 |
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
|
2930 |
mv "conftest.tmp" "conftest.in"
|
|
|
2931 |
cp "conftest.in" "conftest.nl"
|
|
|
2932 |
echo 'GREP' >> "conftest.nl"
|
|
|
2933 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
|
2934 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
|
2935 |
ac_count=`expr $ac_count + 1`
|
|
|
2936 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
|
2937 |
# Best one so far, save it but keep looking for a better one
|
|
|
2938 |
ac_cv_path_GREP="$ac_path_GREP"
|
|
|
2939 |
ac_path_GREP_max=$ac_count
|
|
|
2940 |
fi
|
|
|
2941 |
# 10*(2^10) chars as input seems more than enough
|
|
|
2942 |
test $ac_count -gt 10 && break
|
|
|
2943 |
done
|
|
|
2944 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
|
2945 |
esac
|
|
|
2946 |
|
|
|
2947 |
|
|
|
2948 |
$ac_path_GREP_found && break 3
|
|
|
2949 |
done
|
|
|
2950 |
done
|
|
|
2951 |
|
|
|
2952 |
done
|
|
|
2953 |
IFS=$as_save_IFS
|
|
|
2954 |
|
|
|
2955 |
|
|
|
2956 |
fi
|
|
|
2957 |
|
|
|
2958 |
GREP="$ac_cv_path_GREP"
|
|
|
2959 |
if test -z "$GREP"; then
|
|
|
2960 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
|
2961 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
|
|
2962 |
{ (exit 1); exit 1; }; }
|
|
|
2963 |
fi
|
|
|
2964 |
|
|
|
2965 |
else
|
|
|
2966 |
ac_cv_path_GREP=$GREP
|
|
|
2967 |
fi
|
|
|
2968 |
|
|
|
2969 |
|
|
|
2970 |
fi
|
|
|
2971 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
|
|
2972 |
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
|
|
2973 |
GREP="$ac_cv_path_GREP"
|
|
|
2974 |
|
|
|
2975 |
|
|
|
2976 |
{ echo "$as_me:$LINENO: checking for egrep" >&5
|
|
|
2977 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
|
|
2978 |
if test "${ac_cv_path_EGREP+set}" = set; then
|
|
|
2979 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2980 |
else
|
|
|
2981 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
|
|
2982 |
then ac_cv_path_EGREP="$GREP -E"
|
|
|
2983 |
else
|
|
|
2984 |
# Extract the first word of "egrep" to use in msg output
|
|
|
2985 |
if test -z "$EGREP"; then
|
|
|
2986 |
set dummy egrep; ac_prog_name=$2
|
|
|
2987 |
if test "${ac_cv_path_EGREP+set}" = set; then
|
|
|
2988 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2989 |
else
|
|
|
2990 |
ac_path_EGREP_found=false
|
|
|
2991 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
|
2992 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2993 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
|
2994 |
do
|
|
|
2995 |
IFS=$as_save_IFS
|
|
|
2996 |
test -z "$as_dir" && as_dir=.
|
|
|
2997 |
for ac_prog in egrep; do
|
|
|
2998 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2999 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
|
3000 |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
|
|
3001 |
# Check for GNU ac_path_EGREP and select it if it is found.
|
|
|
3002 |
# Check for GNU $ac_path_EGREP
|
|
|
3003 |
case `"$ac_path_EGREP" --version 2>&1` in
|
|
|
3004 |
*GNU*)
|
|
|
3005 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
|
|
3006 |
*)
|
|
|
3007 |
ac_count=0
|
|
|
3008 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
|
|
3009 |
while :
|
|
|
3010 |
do
|
|
|
3011 |
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
|
3012 |
mv "conftest.tmp" "conftest.in"
|
|
|
3013 |
cp "conftest.in" "conftest.nl"
|
|
|
3014 |
echo 'EGREP' >> "conftest.nl"
|
|
|
3015 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
|
3016 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
|
3017 |
ac_count=`expr $ac_count + 1`
|
|
|
3018 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
|
3019 |
# Best one so far, save it but keep looking for a better one
|
|
|
3020 |
ac_cv_path_EGREP="$ac_path_EGREP"
|
|
|
3021 |
ac_path_EGREP_max=$ac_count
|
|
|
3022 |
fi
|
|
|
3023 |
# 10*(2^10) chars as input seems more than enough
|
|
|
3024 |
test $ac_count -gt 10 && break
|
|
|
3025 |
done
|
|
|
3026 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
|
3027 |
esac
|
|
|
3028 |
|
|
|
3029 |
|
|
|
3030 |
$ac_path_EGREP_found && break 3
|
|
|
3031 |
done
|
|
|
3032 |
done
|
|
|
3033 |
|
|
|
3034 |
done
|
|
|
3035 |
IFS=$as_save_IFS
|
|
|
3036 |
|
|
|
3037 |
|
|
|
3038 |
fi
|
|
|
3039 |
|
|
|
3040 |
EGREP="$ac_cv_path_EGREP"
|
|
|
3041 |
if test -z "$EGREP"; then
|
|
|
3042 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
|
3043 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
|
|
3044 |
{ (exit 1); exit 1; }; }
|
|
|
3045 |
fi
|
|
|
3046 |
|
|
|
3047 |
else
|
|
|
3048 |
ac_cv_path_EGREP=$EGREP
|
|
|
3049 |
fi
|
|
|
3050 |
|
|
|
3051 |
|
|
|
3052 |
fi
|
|
|
3053 |
fi
|
|
|
3054 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
|
|
3055 |
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
|
|
3056 |
EGREP="$ac_cv_path_EGREP"
|
|
|
3057 |
|
|
|
3058 |
|
|
|
3059 |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
|
|
3060 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
|
|
3061 |
if test "${ac_cv_header_stdc+set}" = set; then
|
|
|
3062 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3063 |
else
|
|
|
3064 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3065 |
/* confdefs.h. */
|
|
|
3066 |
_ACEOF
|
|
|
3067 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3068 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3069 |
/* end confdefs.h. */
|
|
|
3070 |
#include <stdlib.h>
|
|
|
3071 |
#include <stdarg.h>
|
|
|
3072 |
#include <string.h>
|
|
|
3073 |
#include <float.h>
|
|
|
3074 |
|
|
|
3075 |
int
|
|
|
3076 |
main ()
|
|
|
3077 |
{
|
|
|
3078 |
|
|
|
3079 |
;
|
|
|
3080 |
return 0;
|
|
|
3081 |
}
|
|
|
3082 |
_ACEOF
|
|
|
3083 |
rm -f conftest.$ac_objext
|
|
|
3084 |
if { (ac_try="$ac_compile"
|
|
|
3085 |
case "(($ac_try" in
|
|
|
3086 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3087 |
*) ac_try_echo=$ac_try;;
|
|
|
3088 |
esac
|
|
|
3089 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3090 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
3091 |
ac_status=$?
|
|
|
3092 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
3093 |
rm -f conftest.er1
|
|
|
3094 |
cat conftest.err >&5
|
|
|
3095 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3096 |
(exit $ac_status); } && {
|
|
|
3097 |
test -z "$ac_c_werror_flag" ||
|
|
|
3098 |
test ! -s conftest.err
|
|
|
3099 |
} && test -s conftest.$ac_objext; then
|
|
|
3100 |
ac_cv_header_stdc=yes
|
|
|
3101 |
else
|
|
|
3102 |
echo "$as_me: failed program was:" >&5
|
|
|
3103 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
3104 |
|
|
|
3105 |
ac_cv_header_stdc=no
|
|
|
3106 |
fi
|
|
|
3107 |
|
|
|
3108 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
3109 |
|
|
|
3110 |
if test $ac_cv_header_stdc = yes; then
|
|
|
3111 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
|
3112 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3113 |
/* confdefs.h. */
|
|
|
3114 |
_ACEOF
|
|
|
3115 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3116 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3117 |
/* end confdefs.h. */
|
|
|
3118 |
#include <string.h>
|
|
|
3119 |
|
|
|
3120 |
_ACEOF
|
|
|
3121 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3122 |
$EGREP "memchr" >/dev/null 2>&1; then
|
|
|
3123 |
:
|
|
|
3124 |
else
|
|
|
3125 |
ac_cv_header_stdc=no
|
|
|
3126 |
fi
|
|
|
3127 |
rm -f conftest*
|
|
|
3128 |
|
|
|
3129 |
fi
|
|
|
3130 |
|
|
|
3131 |
if test $ac_cv_header_stdc = yes; then
|
|
|
3132 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
|
3133 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3134 |
/* confdefs.h. */
|
|
|
3135 |
_ACEOF
|
|
|
3136 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3137 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3138 |
/* end confdefs.h. */
|
|
|
3139 |
#include <stdlib.h>
|
|
|
3140 |
|
|
|
3141 |
_ACEOF
|
|
|
3142 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3143 |
$EGREP "free" >/dev/null 2>&1; then
|
|
|
3144 |
:
|
|
|
3145 |
else
|
|
|
3146 |
ac_cv_header_stdc=no
|
|
|
3147 |
fi
|
|
|
3148 |
rm -f conftest*
|
|
|
3149 |
|
|
|
3150 |
fi
|
|
|
3151 |
|
|
|
3152 |
if test $ac_cv_header_stdc = yes; then
|
|
|
3153 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
|
3154 |
if test "$cross_compiling" = yes; then
|
|
|
3155 |
:
|
|
|
3156 |
else
|
|
|
3157 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3158 |
/* confdefs.h. */
|
|
|
3159 |
_ACEOF
|
|
|
3160 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3161 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3162 |
/* end confdefs.h. */
|
|
|
3163 |
#include <ctype.h>
|
|
|
3164 |
#include <stdlib.h>
|
|
|
3165 |
#if ((' ' & 0x0FF) == 0x020)
|
|
|
3166 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
3167 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
|
3168 |
#else
|
|
|
3169 |
# define ISLOWER(c) \
|
|
|
3170 |
(('a' <= (c) && (c) <= 'i') \
|
|
|
3171 |
|| ('j' <= (c) && (c) <= 'r') \
|
|
|
3172 |
|| ('s' <= (c) && (c) <= 'z'))
|
|
|
3173 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
|
3174 |
#endif
|
|
|
3175 |
|
|
|
3176 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
|
3177 |
int
|
|
|
3178 |
main ()
|
|
|
3179 |
{
|
|
|
3180 |
int i;
|
|
|
3181 |
for (i = 0; i < 256; i++)
|
|
|
3182 |
if (XOR (islower (i), ISLOWER (i))
|
|
|
3183 |
|| toupper (i) != TOUPPER (i))
|
|
|
3184 |
return 2;
|
|
|
3185 |
return 0;
|
|
|
3186 |
}
|
|
|
3187 |
_ACEOF
|
|
|
3188 |
rm -f conftest$ac_exeext
|
|
|
3189 |
if { (ac_try="$ac_link"
|
|
|
3190 |
case "(($ac_try" in
|
|
|
3191 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3192 |
*) ac_try_echo=$ac_try;;
|
|
|
3193 |
esac
|
|
|
3194 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3195 |
(eval "$ac_link") 2>&5
|
|
|
3196 |
ac_status=$?
|
|
|
3197 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3198 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
|
3199 |
{ (case "(($ac_try" in
|
|
|
3200 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3201 |
*) ac_try_echo=$ac_try;;
|
|
|
3202 |
esac
|
|
|
3203 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3204 |
(eval "$ac_try") 2>&5
|
|
|
3205 |
ac_status=$?
|
|
|
3206 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3207 |
(exit $ac_status); }; }; then
|
|
|
3208 |
:
|
|
|
3209 |
else
|
|
|
3210 |
echo "$as_me: program exited with status $ac_status" >&5
|
|
|
3211 |
echo "$as_me: failed program was:" >&5
|
|
|
3212 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
3213 |
|
|
|
3214 |
( exit $ac_status )
|
|
|
3215 |
ac_cv_header_stdc=no
|
|
|
3216 |
fi
|
|
|
3217 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
|
3218 |
fi
|
|
|
3219 |
|
|
|
3220 |
|
|
|
3221 |
fi
|
|
|
3222 |
fi
|
|
|
3223 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
|
|
3224 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
|
|
3225 |
if test $ac_cv_header_stdc = yes; then
|
|
|
3226 |
|
|
|
3227 |
cat >>confdefs.h <<\_ACEOF
|
|
|
3228 |
#define STDC_HEADERS 1
|
|
|
3229 |
_ACEOF
|
|
|
3230 |
|
|
|
3231 |
fi
|
|
|
3232 |
|
|
|
3233 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
|
|
3234 |
|
|
|
3235 |
|
|
|
3236 |
|
|
|
3237 |
|
|
|
3238 |
|
|
|
3239 |
|
|
|
3240 |
|
|
|
3241 |
|
|
|
3242 |
|
|
|
3243 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
|
|
3244 |
inttypes.h stdint.h unistd.h
|
|
|
3245 |
do
|
|
|
3246 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
|
3247 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
|
3248 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
|
3249 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
3250 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3251 |
else
|
|
|
3252 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3253 |
/* confdefs.h. */
|
|
|
3254 |
_ACEOF
|
|
|
3255 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3256 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3257 |
/* end confdefs.h. */
|
|
|
3258 |
$ac_includes_default
|
|
|
3259 |
|
|
|
3260 |
#include <$ac_header>
|
|
|
3261 |
_ACEOF
|
|
|
3262 |
rm -f conftest.$ac_objext
|
|
|
3263 |
if { (ac_try="$ac_compile"
|
|
|
3264 |
case "(($ac_try" in
|
|
|
3265 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3266 |
*) ac_try_echo=$ac_try;;
|
|
|
3267 |
esac
|
|
|
3268 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3269 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
3270 |
ac_status=$?
|
|
|
3271 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
3272 |
rm -f conftest.er1
|
|
|
3273 |
cat conftest.err >&5
|
|
|
3274 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3275 |
(exit $ac_status); } && {
|
|
|
3276 |
test -z "$ac_c_werror_flag" ||
|
|
|
3277 |
test ! -s conftest.err
|
|
|
3278 |
} && test -s conftest.$ac_objext; then
|
|
|
3279 |
eval "$as_ac_Header=yes"
|
|
|
3280 |
else
|
|
|
3281 |
echo "$as_me: failed program was:" >&5
|
|
|
3282 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
3283 |
|
|
|
3284 |
eval "$as_ac_Header=no"
|
|
|
3285 |
fi
|
|
|
3286 |
|
|
|
3287 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
3288 |
fi
|
|
|
3289 |
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
|
3290 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
3291 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
|
3292 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
|
3293 |
cat >>confdefs.h <<_ACEOF
|
|
|
3294 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
|
3295 |
_ACEOF
|
|
|
3296 |
|
|
|
3297 |
fi
|
|
|
3298 |
|
|
|
3299 |
done
|
|
|
3300 |
|
|
|
3301 |
|
|
|
3302 |
|
|
|
3303 |
|
|
|
3304 |
|
|
|
3305 |
|
|
|
3306 |
for ac_header in sys/mount.h sys/statfs.h sys/statvfs.h sys/vfs.h
|
|
|
3307 |
do
|
|
|
3308 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
|
3309 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
3310 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
|
3311 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
|
3312 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
3313 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3314 |
fi
|
|
|
3315 |
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
|
3316 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
3317 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
|
3318 |
else
|
|
|
3319 |
# Is the header compilable?
|
|
|
3320 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
|
|
3321 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
|
|
3322 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3323 |
/* confdefs.h. */
|
|
|
3324 |
_ACEOF
|
|
|
3325 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3326 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3327 |
/* end confdefs.h. */
|
|
|
3328 |
$ac_includes_default
|
|
|
3329 |
#include <$ac_header>
|
|
|
3330 |
_ACEOF
|
|
|
3331 |
rm -f conftest.$ac_objext
|
|
|
3332 |
if { (ac_try="$ac_compile"
|
|
|
3333 |
case "(($ac_try" in
|
|
|
3334 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3335 |
*) ac_try_echo=$ac_try;;
|
|
|
3336 |
esac
|
|
|
3337 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3338 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
3339 |
ac_status=$?
|
|
|
3340 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
3341 |
rm -f conftest.er1
|
|
|
3342 |
cat conftest.err >&5
|
|
|
3343 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3344 |
(exit $ac_status); } && {
|
|
|
3345 |
test -z "$ac_c_werror_flag" ||
|
|
|
3346 |
test ! -s conftest.err
|
|
|
3347 |
} && test -s conftest.$ac_objext; then
|
|
|
3348 |
ac_header_compiler=yes
|
|
|
3349 |
else
|
|
|
3350 |
echo "$as_me: failed program was:" >&5
|
|
|
3351 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
3352 |
|
|
|
3353 |
ac_header_compiler=no
|
|
|
3354 |
fi
|
|
|
3355 |
|
|
|
3356 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
3357 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
|
3358 |
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
|
3359 |
|
|
|
3360 |
# Is the header present?
|
|
|
3361 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
|
|
3362 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
|
|
3363 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3364 |
/* confdefs.h. */
|
|
|
3365 |
_ACEOF
|
|
|
3366 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3367 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3368 |
/* end confdefs.h. */
|
|
|
3369 |
#include <$ac_header>
|
|
|
3370 |
_ACEOF
|
|
|
3371 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
3372 |
case "(($ac_try" in
|
|
|
3373 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3374 |
*) ac_try_echo=$ac_try;;
|
|
|
3375 |
esac
|
|
|
3376 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3377 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
3378 |
ac_status=$?
|
|
|
3379 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
3380 |
rm -f conftest.er1
|
|
|
3381 |
cat conftest.err >&5
|
|
|
3382 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3383 |
(exit $ac_status); } >/dev/null && {
|
|
|
3384 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
3385 |
test ! -s conftest.err
|
|
|
3386 |
}; then
|
|
|
3387 |
ac_header_preproc=yes
|
|
|
3388 |
else
|
|
|
3389 |
echo "$as_me: failed program was:" >&5
|
|
|
3390 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
3391 |
|
|
|
3392 |
ac_header_preproc=no
|
|
|
3393 |
fi
|
|
|
3394 |
|
|
|
3395 |
rm -f conftest.err conftest.$ac_ext
|
|
|
3396 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
|
3397 |
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
|
3398 |
|
|
|
3399 |
# So? What about this header?
|
|
|
3400 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
|
3401 |
yes:no: )
|
|
|
3402 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
|
3403 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
|
3404 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
|
|
3405 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
|
|
3406 |
ac_header_preproc=yes
|
|
|
3407 |
;;
|
|
|
3408 |
no:yes:* )
|
|
|
3409 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
|
|
3410 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
|
|
3411 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
|
|
3412 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
|
|
3413 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
|
3414 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
|
|
3415 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
|
3416 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
|
3417 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
|
|
3418 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
|
|
3419 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
|
|
3420 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
|
|
3421 |
|
|
|
3422 |
;;
|
|
|
3423 |
esac
|
|
|
3424 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
|
3425 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
|
3426 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
3427 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3428 |
else
|
|
|
3429 |
eval "$as_ac_Header=\$ac_header_preproc"
|
|
|
3430 |
fi
|
|
|
3431 |
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
|
3432 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
3433 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
|
3434 |
|
|
|
3435 |
fi
|
|
|
3436 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
|
3437 |
cat >>confdefs.h <<_ACEOF
|
|
|
3438 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
|
3439 |
_ACEOF
|
|
|
3440 |
|
|
|
3441 |
fi
|
|
|
3442 |
|
|
|
3443 |
done
|
|
|
3444 |
|
|
|
3445 |
|
|
|
3446 |
# Use aspell to provide spelling expansions ?
|
|
|
3447 |
# The default is yes. If we do find an aspell installation, we use it. Else
|
|
|
3448 |
# we do compile the aspell module using an internal copy of aspell.h
|
|
|
3449 |
# Only --with-aspell=no will completely disable aspell support
|
|
|
3450 |
|
|
|
3451 |
# Check whether --with-aspell was given.
|
|
|
3452 |
if test "${with_aspell+set}" = set; then
|
|
|
3453 |
withval=$with_aspell; withAspell=$withval
|
|
|
3454 |
else
|
|
|
3455 |
withAspell=yes
|
|
|
3456 |
fi
|
|
|
3457 |
|
|
|
3458 |
case $withAspell in
|
|
|
3459 |
no);;
|
|
|
3460 |
yes)
|
|
|
3461 |
# Extract the first word of "aspell", so it can be a program name with args.
|
|
|
3462 |
set dummy aspell; ac_word=$2
|
|
|
3463 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
3464 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
3465 |
if test "${ac_cv_path_aspellProg+set}" = set; then
|
|
|
3466 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3467 |
else
|
|
|
3468 |
case $aspellProg in
|
|
|
3469 |
[\\/]* | ?:[\\/]*)
|
|
|
3470 |
ac_cv_path_aspellProg="$aspellProg" # Let the user override the test with a path.
|
|
|
3471 |
;;
|
|
|
3472 |
*)
|
|
|
3473 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
3474 |
for as_dir in $PATH
|
|
|
3475 |
do
|
|
|
3476 |
IFS=$as_save_IFS
|
|
|
3477 |
test -z "$as_dir" && as_dir=.
|
|
|
3478 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
3479 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
3480 |
ac_cv_path_aspellProg="$as_dir/$ac_word$ac_exec_ext"
|
|
|
3481 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
3482 |
break 2
|
|
|
3483 |
fi
|
|
|
3484 |
done
|
|
|
3485 |
done
|
|
|
3486 |
IFS=$as_save_IFS
|
|
|
3487 |
|
|
|
3488 |
;;
|
|
|
3489 |
esac
|
|
|
3490 |
fi
|
|
|
3491 |
aspellProg=$ac_cv_path_aspellProg
|
|
|
3492 |
if test -n "$aspellProg"; then
|
|
|
3493 |
{ echo "$as_me:$LINENO: result: $aspellProg" >&5
|
|
|
3494 |
echo "${ECHO_T}$aspellProg" >&6; }
|
|
|
3495 |
else
|
|
|
3496 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
3497 |
echo "${ECHO_T}no" >&6; }
|
|
|
3498 |
fi
|
|
|
3499 |
|
|
|
3500 |
|
|
|
3501 |
;;
|
|
|
3502 |
*) # The argument should be the path to the aspell program
|
|
|
3503 |
aspellProg=$withAspell
|
|
|
3504 |
;;
|
|
|
3505 |
esac
|
|
|
3506 |
|
|
|
3507 |
if test X$withAspell != Xno ; then
|
|
|
3508 |
|
|
|
3509 |
cat >>confdefs.h <<\_ACEOF
|
|
|
3510 |
#define RCL_USE_ASPELL 1
|
|
|
3511 |
_ACEOF
|
|
|
3512 |
|
|
|
3513 |
if test X$aspellProg != X ; then
|
|
|
3514 |
aspellBase=`dirname $aspellProg`
|
|
|
3515 |
aspellBase=`dirname $aspellBase`
|
|
|
3516 |
|
|
|
3517 |
cat >>confdefs.h <<_ACEOF
|
|
|
3518 |
#define ASPELL_PROG "$aspellProg"
|
|
|
3519 |
_ACEOF
|
|
|
3520 |
|
|
|
3521 |
if test -f $aspellBase/include/aspell.h ; then
|
|
|
3522 |
|
|
|
3523 |
cat >>confdefs.h <<_ACEOF
|
|
|
3524 |
#define ASPELL_INCLUDE "$aspellBase/include/aspell.h"
|
|
|
3525 |
_ACEOF
|
|
|
3526 |
|
|
|
3527 |
else
|
|
|
3528 |
{ echo "$as_me:$LINENO: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&5
|
|
|
3529 |
echo "$as_me: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&6;}
|
|
|
3530 |
cat >>confdefs.h <<\_ACEOF
|
|
|
3531 |
#define ASPELL_INCLUDE "aspell-local.h"
|
|
|
3532 |
_ACEOF
|
|
|
3533 |
|
|
|
3534 |
fi
|
|
|
3535 |
else
|
|
|
3536 |
# aspell support enabled but no aspell install yet
|
|
|
3537 |
{ echo "$as_me:$LINENO: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&5
|
|
|
3538 |
echo "$as_me: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&6;}
|
|
|
3539 |
cat >>confdefs.h <<\_ACEOF
|
|
|
3540 |
#define ASPELL_INCLUDE "aspell-local.h"
|
|
|
3541 |
_ACEOF
|
|
|
3542 |
|
|
|
3543 |
fi
|
|
|
3544 |
fi
|
|
|
3545 |
|
|
|
3546 |
# Real time monitoring with FAM
|
|
|
3547 |
|
|
|
3548 |
# Check whether --with-fam was given.
|
|
|
3549 |
if test "${with_fam+set}" = set; then
|
|
|
3550 |
withval=$with_fam; withFam=$withval
|
|
|
3551 |
else
|
|
|
3552 |
withFam=no
|
|
|
3553 |
fi
|
|
|
3554 |
|
|
|
3555 |
case $withFam in
|
|
|
3556 |
no);;
|
|
|
3557 |
yes)
|
|
|
3558 |
for dir in /usr/local/lib ${libdir};do
|
|
|
3559 |
if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi
|
|
|
3560 |
done
|
|
|
3561 |
;;
|
|
|
3562 |
*) # The argument should be the path to the fam library
|
|
|
3563 |
famLib=$withFam
|
|
|
3564 |
;;
|
|
|
3565 |
esac
|
|
|
3566 |
|
|
|
3567 |
if test X$withFam != Xno ; then
|
|
|
3568 |
|
|
|
3569 |
cat >>confdefs.h <<\_ACEOF
|
|
|
3570 |
#define RCL_MONITOR 1
|
|
|
3571 |
_ACEOF
|
|
|
3572 |
|
|
|
3573 |
|
|
|
3574 |
cat >>confdefs.h <<\_ACEOF
|
|
|
3575 |
#define RCL_USE_FAM 1
|
|
|
3576 |
_ACEOF
|
|
|
3577 |
|
|
|
3578 |
if test X$famLib != X ; then
|
|
|
3579 |
famLibDir=`dirname $famLib`
|
|
|
3580 |
famBase=`dirname $famLibDir`
|
|
|
3581 |
famBLib=`basename $famLib .so | sed -e s/lib//`
|
|
|
3582 |
if test ! -f $famBase/include/fam.h ; then
|
|
|
3583 |
{ { echo "$as_me:$LINENO: error: fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support" >&5
|
|
|
3584 |
echo "$as_me: error: fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support" >&2;}
|
|
|
3585 |
{ (exit 1); exit 1; }; }
|
|
|
3586 |
fi
|
|
|
3587 |
LIBFAM="-L$famLibDir -l$famBLib"
|
|
|
3588 |
{ echo "$as_me:$LINENO: fam library directive: $LIBFAM" >&5
|
|
|
3589 |
echo "$as_me: fam library directive: $LIBFAM" >&6;}
|
|
|
3590 |
|
|
|
3591 |
cat >>confdefs.h <<_ACEOF
|
|
|
3592 |
#define FAM_INCLUDE "$famBase/include/fam.h"
|
|
|
3593 |
_ACEOF
|
|
|
3594 |
|
|
|
3595 |
else
|
|
|
3596 |
{ { echo "$as_me:$LINENO: error: fam library not found" >&5
|
|
|
3597 |
echo "$as_me: error: fam library not found" >&2;}
|
|
|
3598 |
{ (exit 1); exit 1; }; }
|
|
|
3599 |
fi
|
|
|
3600 |
fi
|
|
|
3601 |
|
|
|
3602 |
if test -f /usr/include/sys/inotify.h -a X$withFam = Xno ; then
|
|
|
3603 |
inot_default=yes
|
|
|
3604 |
else
|
|
|
3605 |
inot_default=no
|
|
|
3606 |
fi
|
|
|
3607 |
|
|
|
3608 |
# Real time monitoring with inotify
|
|
|
3609 |
|
|
|
3610 |
# Check whether --with-inotify was given.
|
|
|
3611 |
if test "${with_inotify+set}" = set; then
|
|
|
3612 |
withval=$with_inotify; withInotify=$withval
|
|
|
3613 |
else
|
|
|
3614 |
withInotify=$inot_default
|
|
|
3615 |
fi
|
|
|
3616 |
|
|
|
3617 |
|
|
|
3618 |
if test X$withInotify != Xno ; then
|
|
|
3619 |
{ echo "$as_me:$LINENO: enabled support for inotify monitoring" >&5
|
|
|
3620 |
echo "$as_me: enabled support for inotify monitoring" >&6;}
|
|
|
3621 |
|
|
|
3622 |
cat >>confdefs.h <<\_ACEOF
|
|
|
3623 |
#define RCL_MONITOR 1
|
|
|
3624 |
_ACEOF
|
|
|
3625 |
|
|
|
3626 |
|
|
|
3627 |
cat >>confdefs.h <<\_ACEOF
|
|
|
3628 |
#define RCL_USE_INOTIFY 1
|
|
|
3629 |
_ACEOF
|
|
|
3630 |
|
|
|
3631 |
else
|
|
|
3632 |
{ echo "$as_me:$LINENO: inotify monitoring disabled" >&5
|
|
|
3633 |
echo "$as_me: inotify monitoring disabled" >&6;}
|
|
|
3634 |
fi
|
2814 |
|
3635 |
|
2815 |
|
3636 |
|
2816 |
for ac_func in mkdtemp
|
3637 |
for ac_func in mkdtemp
|
2817 |
do
|
3638 |
do
|
2818 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
3639 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
... |
|
... |
6108 |
ECHO_T!$ECHO_T$ac_delim
|
6929 |
ECHO_T!$ECHO_T$ac_delim
|
6109 |
LIBS!$LIBS$ac_delim
|
6930 |
LIBS!$LIBS$ac_delim
|
6110 |
build_alias!$build_alias$ac_delim
|
6931 |
build_alias!$build_alias$ac_delim
|
6111 |
host_alias!$host_alias$ac_delim
|
6932 |
host_alias!$host_alias$ac_delim
|
6112 |
target_alias!$target_alias$ac_delim
|
6933 |
target_alias!$target_alias$ac_delim
|
6113 |
aspellProg!$aspellProg$ac_delim
|
|
|
6114 |
CC!$CC$ac_delim
|
6934 |
CC!$CC$ac_delim
|
6115 |
CFLAGS!$CFLAGS$ac_delim
|
6935 |
CFLAGS!$CFLAGS$ac_delim
|
6116 |
LDFLAGS!$LDFLAGS$ac_delim
|
6936 |
LDFLAGS!$LDFLAGS$ac_delim
|
6117 |
CPPFLAGS!$CPPFLAGS$ac_delim
|
6937 |
CPPFLAGS!$CPPFLAGS$ac_delim
|
6118 |
ac_ct_CC!$ac_ct_CC$ac_delim
|
6938 |
ac_ct_CC!$ac_ct_CC$ac_delim
|
6119 |
EXEEXT!$EXEEXT$ac_delim
|
6939 |
EXEEXT!$EXEEXT$ac_delim
|
6120 |
OBJEXT!$OBJEXT$ac_delim
|
6940 |
OBJEXT!$OBJEXT$ac_delim
|
|
|
6941 |
CPP!$CPP$ac_delim
|
|
|
6942 |
GREP!$GREP$ac_delim
|
|
|
6943 |
EGREP!$EGREP$ac_delim
|
|
|
6944 |
aspellProg!$aspellProg$ac_delim
|
6121 |
CXX!$CXX$ac_delim
|
6945 |
CXX!$CXX$ac_delim
|
6122 |
CXXFLAGS!$CXXFLAGS$ac_delim
|
6946 |
CXXFLAGS!$CXXFLAGS$ac_delim
|
6123 |
ac_ct_CXX!$ac_ct_CXX$ac_delim
|
6947 |
ac_ct_CXX!$ac_ct_CXX$ac_delim
|
6124 |
XAPIAN_CONFIG!$XAPIAN_CONFIG$ac_delim
|
6948 |
XAPIAN_CONFIG!$XAPIAN_CONFIG$ac_delim
|
6125 |
QMAKE!$QMAKE$ac_delim
|
6949 |
QMAKE!$QMAKE$ac_delim
|
|
... |
|
... |
6140 |
HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
|
6964 |
HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
|
6141 |
LIBOBJS!$LIBOBJS$ac_delim
|
6965 |
LIBOBJS!$LIBOBJS$ac_delim
|
6142 |
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
6966 |
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
6143 |
_ACEOF
|
6967 |
_ACEOF
|
6144 |
|
6968 |
|
6145 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
|
6969 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
|
6146 |
break
|
6970 |
break
|
6147 |
elif $ac_last_try; then
|
6971 |
elif $ac_last_try; then
|
6148 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
6972 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
6149 |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
6973 |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
6150 |
{ (exit 1); exit 1; }; }
|
6974 |
{ (exit 1); exit 1; }; }
|