configure
上传用户:xxcykj
上传日期:2007-01-04
资源大小:727k
文件大小:177k
- if test -f $ac_dir/$ac_word; then
- if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
- ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
- break
- fi
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
- ;;
- esac
- fi
- XGETTEXT="$ac_cv_path_XGETTEXT"
- if test -n "$XGETTEXT"; then
- echo "$ac_t""$XGETTEXT" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- USE_INCLUDED_LIBINTL=yes
- CATOBJEXT=.gmo
- INSTOBJEXT=.mo
- DATADIRNAME=share
- INTLDEPS='$(top_builddir)/intl/libintl.a'
- INTLLIBS=$INTLDEPS
- LIBS=`echo $LIBS | sed -e 's/-lintl//'`
- nls_cv_header_intl=intl/libintl.h
- nls_cv_header_libgt=intl/libgettext.h
- fi
- if test "$XGETTEXT" != ":"; then
- if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
- : ;
- else
- echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
- XGETTEXT=":"
- fi
- fi
- # We need to process the po/ directory.
- POSUB=po
- else
- DATADIRNAME=share
- nls_cv_header_intl=intl/libintl.h
- nls_cv_header_libgt=intl/libgettext.h
- fi
-
-
- # If this is used in GNU gettext we have to set USE_NLS to `yes'
- # because some of the sources are only built for this goal.
- if test "$PACKAGE" = gettext; then
- USE_NLS=yes
- USE_INCLUDED_LIBINTL=yes
- fi
- for lang in $ALL_LINGUAS; do
- GMOFILES="$GMOFILES $lang.gmo"
- POFILES="$POFILES $lang.po"
- done
-
-
-
-
-
-
-
-
-
-
-
-
- if test "x$CATOBJEXT" != "x"; then
- if test "x$ALL_LINGUAS" = "x"; then
- LINGUAS=
- else
- echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
- echo "configure:3258: checking for catalogs to be installed" >&5
- NEW_LINGUAS=
- for lang in ${LINGUAS=$ALL_LINGUAS}; do
- case "$ALL_LINGUAS" in
- *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
- esac
- done
- LINGUAS=$NEW_LINGUAS
- echo "$ac_t""$LINGUAS" 1>&6
- fi
- if test -n "$LINGUAS"; then
- for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
- fi
- fi
- if test $ac_cv_header_locale_h = yes; then
- INCLUDE_LOCALE_H="#include <locale.h>"
- else
- INCLUDE_LOCALE_H="
- /* The system does not provide the header <locale.h>. Take care yourself. */"
- fi
-
- test -d intl || mkdir intl
- if test "$CATOBJEXT" = ".cat"; then
- ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
- echo "configure:3286: checking for linux/version.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3291 "configure"
- #include "confdefs.h"
- #include <linux/version.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3296: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- msgformat=linux
- else
- echo "$ac_t""no" 1>&6
- msgformat=xopen
- fi
- sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
- fi
- sed -e '/^#.*[^\]$/d' -e '/^#$/d'
- $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
- if test "$PACKAGE" = "gettext"; then
- GT_NO="#NO#"
- GT_YES=
- else
- GT_NO=
- GT_YES="#YES#"
- fi
-
-
- MKINSTALLDIRS=
- if test -n "$ac_aux_dir"; then
- MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
- fi
- if test -z "$MKINSTALLDIRS"; then
- MKINSTALLDIRS="$(top_srcdir)/mkinstalldirs"
- fi
-
- l=
-
- test -d po || mkdir po
- if test "x$srcdir" != "x."; then
- if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
- posrcprefix="$srcdir/"
- else
- posrcprefix="../$srcdir/"
- fi
- else
- posrcprefix="../"
- fi
- rm -f po/POTFILES
- sed -e "/^#/d" -e "/^$/d" -e "s,.*, $posrcprefix& \\," -e "$s/(.*) \\/1/"
- < $srcdir/po/POTFILES.in > po/POTFILES
-
- # end i18n
- # Under sysV68, socket and friends are provided by the C library.
- # -linet does not provide socket, but causes multiple definition
- # errors at link-time. It is thus better to only use the C library.
- # So don't add -linet to the link list unless it's necessary
- echo $ac_n "checking for socket""... $ac_c" 1>&6
- echo "configure:3368: checking for socket" >&5
- if eval "test "`echo '$''{'ac_cv_func_socket'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3373 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char socket(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char socket();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_socket) || defined (__stub___socket)
- choke me
- #else
- socket();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3396: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_socket=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_socket=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'socket`" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo "$ac_t""using libc's socket" 1>&6
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
- echo "configure:3414: checking for socket in -lsocket" >&5
- ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3422 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char socket();
- int main() {
- socket()
- ; return 0; }
- EOF
- if { (eval echo configure:3433: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lsocket $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
- echo "configure:3461: checking for socket in -linet" >&5
- ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-linet $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3469 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char socket();
- int main() {
- socket()
- ; return 0; }
- EOF
- if { (eval echo configure:3480: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-linet $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # If gettext isn't in the C library, maybe there's a -lintl.
- echo $ac_n "checking for gettext""... $ac_c" 1>&6
- echo "configure:3512: checking for gettext" >&5
- if eval "test "`echo '$''{'ac_cv_func_gettext'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3517 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gettext(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gettext();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gettext) || defined (__stub___gettext)
- choke me
- #else
- gettext();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3540: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gettext=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gettext=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'gettext`" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo "$ac_t""using libc's gettext" 1>&6
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
- echo "configure:3558: checking for gettext in -lintl" >&5
- ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lintl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3566 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gettext();
- int main() {
- gettext()
- ; return 0; }
- EOF
- if { (eval echo configure:3577: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lintl $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # The condition in this test copes with the presence of inet_addr in libc6.
- echo $ac_n "checking for inet_addr""... $ac_c" 1>&6
- echo "configure:3609: checking for inet_addr" >&5
- if eval "test "`echo '$''{'ac_cv_func_inet_addr'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3614 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char inet_addr(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char inet_addr();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
- choke me
- #else
- inet_addr();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3637: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_inet_addr=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_inet_addr=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'inet_addr`" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo "$ac_t""using libc's inet_addr" 1>&6
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
- echo "configure:3655: checking for inet_addr in -lnsl" >&5
- ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3663 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char inet_addr();
- int main() {
- inet_addr()
- ; return 0; }
- EOF
- if { (eval echo configure:3674: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lnsl $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- echo $ac_n "checking for strchr in -lcposix""... $ac_c" 1>&6
- echo "configure:3705: checking for strchr in -lcposix" >&5
- ac_lib_var=`echo cposix'_'strchr | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lcposix $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3713 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strchr();
- int main() {
- strchr()
- ; return 0; }
- EOF
- if { (eval echo configure:3724: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- EXTRADEFS="$EXTRADEFS -D_SYSV3"
- LIBS="$LIBS -lcposix"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for strstr""... $ac_c" 1>&6
- echo "configure:3747: checking for strstr" >&5
- if eval "test "`echo '$''{'ac_cv_func_strstr'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3752 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strstr(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strstr();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_strstr) || defined (__stub___strstr)
- choke me
- #else
- strstr();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3775: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strstr=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strstr=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'strstr`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_STRSTR 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- EXTRASRC="$EXTRASRC $(srcdir)/strstr.c"
- EXTRAOBJ="$EXTRAOBJ strstr.o"
- fi
- echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
- echo "configure:3801: checking for strcasecmp" >&5
- if eval "test "`echo '$''{'ac_cv_func_strcasecmp'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3806 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char strcasecmp(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strcasecmp();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
- choke me
- #else
- strcasecmp();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3829: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_strcasecmp=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_strcasecmp=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'strcasecmp`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_STRCASECMP 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- EXTRASRC="$EXTRASRC $(srcdir)/strcasecmp.c"
- EXTRAOBJ="$EXTRAOBJ strcasecmp.o"
- fi
-
- echo $ac_n "checking for memmove""... $ac_c" 1>&6
- echo "configure:3855: checking for memmove" >&5
- if eval "test "`echo '$''{'ac_cv_func_memmove'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3860 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char memmove(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char memmove();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_memmove) || defined (__stub___memmove)
- choke me
- #else
- memmove();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3883: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_memmove=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_memmove=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'memmove`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_MEMMOVE 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- EXTRASRC="$EXTRASRC $(srcdir)/memmove.c"
- EXTRAOBJ="$EXTRAOBJ memmove.o"
- fi
-
- echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
- echo "configure:3909: checking for getopt_long" >&5
- if eval "test "`echo '$''{'ac_cv_func_getopt_long'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3914 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char getopt_long(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char getopt_long();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
- choke me
- #else
- getopt_long();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3937: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_getopt_long=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_getopt_long=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'getopt_long`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_GETOPTLONG 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- EXTRASRC="$EXTRASRC $(srcdir)/getopt.c $(srcdir)/getopt1.c"
- EXTRAOBJ="$EXTRAOBJ getopt.o getopt1.o"
- fi
- echo $ac_n "checking for MD5Init""... $ac_c" 1>&6
- echo "configure:3963: checking for MD5Init" >&5
- if eval "test "`echo '$''{'ac_cv_func_MD5Init'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3968 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char MD5Init(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char MD5Init();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_MD5Init) || defined (__stub___MD5Init)
- choke me
- #else
- MD5Init();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3991: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_MD5Init=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_MD5Init=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'MD5Init`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_MD5 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- EXTRASRC="$EXTRASRC $(srcdir)/md5c.c"
- EXTRAOBJ="$EXTRAOBJ md5c.o"
- fi
- echo $ac_n "checking for vprintf""... $ac_c" 1>&6
- echo "configure:4017: checking for vprintf" >&5
- if eval "test "`echo '$''{'ac_cv_func_vprintf'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4022 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char vprintf(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char vprintf();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_vprintf) || defined (__stub___vprintf)
- choke me
- #else
- vprintf();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4045: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_vprintf=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_vprintf=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'vprintf`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_VPRINTF 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$ac_cv_func_vprintf" != yes; then
- echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
- echo "configure:4069: checking for _doprnt" >&5
- if eval "test "`echo '$''{'ac_cv_func__doprnt'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4074 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char _doprnt(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char _doprnt();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub__doprnt) || defined (__stub____doprnt)
- choke me
- #else
- _doprnt();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4097: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func__doprnt=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func__doprnt=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'_doprnt`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_DOPRNT 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
- # for constant arguments. Useless!
- echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
- echo "configure:4124: checking for working alloca.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_alloca_h'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4129 "configure"
- #include "confdefs.h"
- #include <alloca.h>
- int main() {
- char *p = alloca(2 * sizeof(int));
- ; return 0; }
- EOF
- if { (eval echo configure:4136: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_header_alloca_h=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_alloca_h=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
- if test $ac_cv_header_alloca_h = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_ALLOCA_H 1
- EOF
- fi
- echo $ac_n "checking for alloca""... $ac_c" 1>&6
- echo "configure:4157: checking for alloca" >&5
- if eval "test "`echo '$''{'ac_cv_func_alloca_works'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4162 "configure"
- #include "confdefs.h"
- #ifdef __GNUC__
- # define alloca __builtin_alloca
- #else
- # ifdef _MSC_VER
- # include <malloc.h>
- # define alloca _alloca
- # else
- # if HAVE_ALLOCA_H
- # include <alloca.h>
- # else
- # ifdef _AIX
- #pragma alloca
- # else
- # ifndef alloca /* predefined by HP cc +Olibcalls */
- char *alloca ();
- # endif
- # endif
- # endif
- # endif
- #endif
- int main() {
- char *p = (char *) alloca(1);
- ; return 0; }
- EOF
- if { (eval echo configure:4190: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_func_alloca_works=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_func_alloca_works=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
- if test $ac_cv_func_alloca_works = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_ALLOCA 1
- EOF
- fi
- if test $ac_cv_func_alloca_works = no; then
- # The SVR3 libPW and SVR4 libucb both contain incompatible functions
- # that cause trouble. Some versions do not even contain alloca or
- # contain a buggy version. If you still want to use their alloca,
- # use ar to extract alloca.o from them instead of compiling alloca.c.
- ALLOCA=alloca.${ac_objext}
- cat >> confdefs.h <<EOF
- #define C_ALLOCA 1
- EOF
- echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
- echo "configure:4222: checking whether alloca needs Cray hooks" >&5
- if eval "test "`echo '$''{'ac_cv_os_cray'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4227 "configure"
- #include "confdefs.h"
- #if defined(CRAY) && ! defined(CRAY2)
- webecray
- #else
- wenotbecray
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "webecray" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_os_cray=yes
- else
- rm -rf conftest*
- ac_cv_os_cray=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_os_cray" 1>&6
- if test $ac_cv_os_cray = yes; then
- for ac_func in _getb67 GETB67 getb67; do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4252: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4257 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4280: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define CRAY_STACKSEG_END $ac_func
- EOF
- break
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- fi
- echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
- echo "configure:4307: checking stack direction for C alloca" >&5
- if eval "test "`echo '$''{'ac_cv_c_stack_direction'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_c_stack_direction=0
- else
- cat > conftest.$ac_ext <<EOF
- #line 4315 "configure"
- #include "confdefs.h"
- find_stack_direction ()
- {
- static char *addr = 0;
- auto char dummy;
- if (addr == 0)
- {
- addr = &dummy;
- return find_stack_direction ();
- }
- else
- return (&dummy > addr) ? 1 : -1;
- }
- main ()
- {
- exit (find_stack_direction() < 0);
- }
- EOF
- if { (eval echo configure:4334: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_c_stack_direction=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_c_stack_direction=-1
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
- cat >> confdefs.h <<EOF
- #define STACK_DIRECTION $ac_cv_c_stack_direction
- EOF
- fi
- if test -n "$ALLOCA"
- then
- EXTRASRC="$EXTRASRC $(srcdir)/alloca.c"
- EXTRAOBJ="$EXTRAOBJ alloca.o"
- fi
- for ac_func in tcsetattr stty setsid geteuid seteuid gethostbyname
- res_search herror strrchr strerror setlinebuf syslog
- snprintf vprintf vsnprintf vsyslog
- atexit inet_aton strftime setrlimit socketpair sigprocmask
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4372: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4377 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4400: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- # Under Red Hat 4.0 (and many other Linuxes) -lresolv is seriously flaky
- # and breaks gethostbyname(2). It's better to use the bind stuff in the C
- # library. So don't add -lresolv to the link list unless it's necessary
- # (It will be necessary when using GNU libc6).
- echo $ac_n "checking for res_search""... $ac_c" 1>&6
- echo "configure:4430: checking for res_search" >&5
- if eval "test "`echo '$''{'ac_cv_func_res_search'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4435 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char res_search(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char res_search();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_res_search) || defined (__stub___res_search)
- choke me
- #else
- res_search();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4458: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_res_search=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_res_search=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'res_search`" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo "$ac_t""using libc's resolver functions" 1>&6
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
- echo "configure:4476: checking for res_search in -lresolv" >&5
- ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lresolv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4484 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char res_search();
- int main() {
- res_search()
- ; return 0; }
- EOF
- if { (eval echo configure:4495: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_RES_SEARCH 1
- EOF
- echo "$ac_t""found resolver functions in libresolv" 1>&6; LIBS="$LIBS -lresolv"
- else
- echo "$ac_t""no" 1>&6
- echo "$ac_t""no resolver calls found" 1>&6
- fi
- fi
- echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
- echo "configure:4523: checking for crypt in -lcrypt" >&5
- ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lcrypt $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4531 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char crypt();
- int main() {
- crypt()
- ; return 0; }
- EOF
- if { (eval echo configure:4542: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lcrypt $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking use of void pointer type""... $ac_c" 1>&6
- echo "configure:4572: checking use of void pointer type" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4574 "configure"
- #include "confdefs.h"
- int main() {
- char *p;
- void *xmalloc();
- p = (char *) xmalloc(1);
-
- ; return 0; }
- EOF
- if { (eval echo configure:4584: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_VOIDPOINTER 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for ANSI volatile""... $ac_c" 1>&6
- echo "configure:4599: checking for ANSI volatile" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4601 "configure"
- #include "confdefs.h"
- int main() {
- volatile int n;
- ; return 0; }
- EOF
- if { (eval echo configure:4608: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_VOLATILE 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- for ac_func in waitpid wait3
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4625: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4630 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4653: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- echo $ac_n "checking for union wait""... $ac_c" 1>&6
- echo "configure:4678: checking for union wait" >&5;
- cat > conftest.$ac_ext <<EOF
- #line 4680 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/wait.h>
- int main() {
- union wait status; int pid; pid = wait (&status);
- #ifdef WEXITSTATUS
- /* Some POSIXoid systems have both the new-style macros and the old
- union wait type, and they do not work together. If union wait
- conflicts with WEXITSTATUS et al, we don't want to use it at all. */
- if (WEXITSTATUS (status) != 0) pid = -1;
- #endif
- #ifdef HAVE_WAITPID
- /* Make sure union wait works with waitpid. */
- pid = waitpid (-1, &status, 0);
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4699: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_UNION_WAIT 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
- echo "configure:4714: checking sys_siglist declaration in signal.h or unistd.h" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4716 "configure"
- #include "confdefs.h"
- #include <signal.h>
- /* NetBSD declares sys_siglist in <unistd.h>. */
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- int main() {
- char *msg = *(sys_siglist + 1);
- ; return 0; }
- EOF
- if { (eval echo configure:4727: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define SYS_SIGLIST_DECLARED 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- # Find the right directory to put the root-mode PID file in
- for dir in "/var/run" "/etc"
- do
- if test -d $dir
- then
- break;
- fi
- done
- echo "$ac_t""root-mode pid file will go in $dir" 1>&6
- cat >> confdefs.h <<EOF
- #define PID_DIR "$dir"
- EOF
- echo $ac_n "checking size of short""... $ac_c" 1>&6
- echo "configure:4756: checking size of short" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_short'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4764 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(short));
- exit(0);
- }
- EOF
- if { (eval echo configure:4775: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_short=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_short=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_short" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_SHORT $ac_cv_sizeof_short
- EOF
- echo $ac_n "checking size of int""... $ac_c" 1>&6
- echo "configure:4795: checking size of int" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_int'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4803 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(int));
- exit(0);
- }
- EOF
- if { (eval echo configure:4814: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_int=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_int=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_int" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_INT $ac_cv_sizeof_int
- EOF
- echo $ac_n "checking size of long""... $ac_c" 1>&6
- echo "configure:4834: checking size of long" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_long'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 4842 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(long));
- exit(0);
- }
- EOF
- if { (eval echo configure:4853: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_long=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_long=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_long" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_LONG $ac_cv_sizeof_long
- EOF
- if test "$USE_NLS" = "yes"
- then
- echo 'Enabling internationalization support...'
- POMAKE='$(MAKE) -C po'
- if test "x$prefix" != xNONE; then
- EXTRADEFS="$EXTRADEFS -DLOCALEDIR='"$prefix/share/locale"'"
- else
- EXTRADEFS="$EXTRADEFS -DLOCALEDIR='"$ac_default_prefix/share/locale"'"
- fi
- else
- echo 'Disabling internationalization support...'
- POMAKE="@echo '(NLS support disabled)'; #"
- fi
- ### use option --enable-POP2 to compile in the POP2 support
- # Check whether --enable-POP2 or --disable-POP2 was given.
- if test "${enable_POP2+set}" = set; then
- enableval="$enable_POP2"
- with_POP2=$enableval
- else
- with_POP2=no
- fi
- test "$with_POP2" = "yes" && cat >> confdefs.h <<EOF
- #define POP2_ENABLE 1
- EOF
- ### use option --disable-POP3 to omit the POP3 support
- # Check whether --enable-POP3 or --disable-POP3 was given.
- if test "${enable_POP3+set}" = set; then
- enableval="$enable_POP3"
- with_POP3=$enableval
- else
- with_POP3=yes
- fi
- test "$with_POP3" = "yes" && cat >> confdefs.h <<EOF
- #define POP3_ENABLE 1
- EOF
- ### use option --disable-IMAP to omit the IMAP support
- # Check whether --enable-IMAP or --disable-IMAP was given.
- if test "${enable_IMAP+set}" = set; then
- enableval="$enable_IMAP"
- with_IMAP=$enableval
- else
- with_IMAP=yes
- fi
- test "$with_IMAP" = "yes" && cat >> confdefs.h <<EOF
- #define IMAP_ENABLE 1
- EOF
- ### use option --disable-ETRN to omit the ETRN support
- # Check whether --enable-ETRN or --disable-ETRN was given.
- if test "${enable_ETRN+set}" = set; then
- enableval="$enable_ETRN"
- with_ETRN=$enableval
- else
- with_ETRN=yes
- fi
- test "$with_ETRN" = "yes" && cat >> confdefs.h <<EOF
- #define ETRN_ENABLE 1
- EOF
- ### use option --enable-RPA to compile in the RPA support
- # Check whether --enable-RPA or --disable-RPA was given.
- if test "${enable_RPA+set}" = set; then
- enableval="$enable_RPA"
- with_RPA=$enableval
- else
- with_RPA=no
- fi
- test "$with_RPA" = "yes" && cat >> confdefs.h <<EOF
- #define RPA_ENABLE 1
- EOF
- ### use option --enable-NTLM to compile in the NTLM support
- # Check whether --enable-NTLM or --disable-NTLM was given.
- if test "${enable_NTLM+set}" = set; then
- enableval="$enable_NTLM"
- with_NTLM=$enableval
- else
- with_NTLM=no
- fi
- test "$with_NTLM" = "yes" && cat >> confdefs.h <<EOF
- #define NTLM_ENABLE 1
- EOF
- ### use option --enable-SDPS to compile in the SDPS support
- # Check whether --enable-SDPS or --disable-SDPS was given.
- if test "${enable_SDPS+set}" = set; then
- enableval="$enable_SDPS"
- with_SDPS=$enableval
- else
- with_SDPS=no
- fi
- test "$with_SDPS" = "yes" && cat >> confdefs.h <<EOF
- #define SDPS_ENABLE 1
- EOF
- ### use option --enable-opie to compile in the OPIE support
- # Check whether --enable-opie or --disable-opie was given.
- if test "${enable_opie+set}" = set; then
- enableval="$enable_opie"
- ac_safe=`echo "opie.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for opie.h""... $ac_c" 1>&6
- echo "configure:4991: checking for opie.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4996 "configure"
- #include "confdefs.h"
- #include <opie.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5001: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo 'configure: cannot find <opie.h>, which is required for OPIE support.'; exit 1
- fi
- echo $ac_n "checking for opiegenerator in -lopie""... $ac_c" 1>&6
- echo "configure:5024: checking for opiegenerator in -lopie" >&5
- ac_lib_var=`echo opie'_'opiegenerator | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lopie $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5032 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char opiegenerator();
- int main() {
- opiegenerator()
- ; return 0; }
- EOF
- if { (eval echo configure:5043: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo opie | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lopie $LIBS"
- else
- echo "$ac_t""no" 1>&6
- echo 'configure: cannot find libopie, which is required for OPIE support.'; exit 1
- fi
- with_opie=$enableval
- else
- with_opie=no
- fi
- test "$with_opie" = "yes" && cat >> confdefs.h <<EOF
- #define OPIE_ENABLE 1
- EOF
- # Check whether --enable-inet6 or --disable-inet6 was given.
- if test "${enable_inet6+set}" = set; then
- enableval="$enable_inet6"
- echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
- echo "configure:5085: checking for getaddrinfo" >&5
- if eval "test "`echo '$''{'ac_cv_func_getaddrinfo'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5090 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char getaddrinfo(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char getaddrinfo();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
- choke me
- #else
- getaddrinfo();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5113: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_getaddrinfo=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_getaddrinfo=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'getaddrinfo`" = yes"; then
- echo "$ac_t""yes" 1>&6
- with_inet6=yes
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS="$LDFLAGS -L/usr/inet6/lib";
- echo $ac_n "checking for getaddrinfo in -linet6""... $ac_c" 1>&6
- echo "configure:5132: checking for getaddrinfo in -linet6" >&5
- ac_lib_var=`echo inet6'_'getaddrinfo | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-linet6 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5140 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char getaddrinfo();
- int main() {
- getaddrinfo()
- ; return 0; }
- EOF
- if { (eval echo configure:5151: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- with_inet6=yes
- LIBS="$LIBS -linet6"
- else
- echo "$ac_t""no" 1>&6
- echo 'configure: cannot find proper glibc version or libinet6,';
- echo ' which is required for IPv6 support.';
- exit 1
- fi
-
- fi
- else
- with_inet6=no
- fi
- test "$with_inet6" = "yes" && cat >> confdefs.h <<EOF
- #define INET6_ENABLE 1
- EOF
- for ac_func in inner_connect
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:5189: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5194 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5217: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- # Check whether --enable-netsec or --disable-netsec was given.
- if test "${enable_netsec+set}" = set; then
- enableval="$enable_netsec"
- unset ac_cv_lib_inet6_net_security_strtorequest; echo $ac_n "checking for net_security_strtorequest in -linet6""... $ac_c" 1>&6
- echo "configure:5246: checking for net_security_strtorequest in -linet6" >&5
- ac_lib_var=`echo inet6'_'net_security_strtorequest | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-linet6 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5254 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char net_security_strtorequest();
- int main() {
- net_security_strtorequest()
- ; return 0; }
- EOF
- if { (eval echo configure:5265: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo inet6 | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-linet6 $LIBS"
- else
- echo "$ac_t""no" 1>&6
- unset ac_cv_lib_inet6_net_security_strtorequest;
- LDFLAGS="$LDFLAGS -L/usr/inet6/lib";
- echo $ac_n "checking for net_security_strtorequest in -linet6""... $ac_c" 1>&6
- echo "configure:5293: checking for net_security_strtorequest in -linet6" >&5
- ac_lib_var=`echo inet6'_'net_security_strtorequest | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-linet6 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5301 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char net_security_strtorequest();
- int main() {
- net_security_strtorequest()
- ; return 0; }
- EOF
- if { (eval echo configure:5312: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo inet6 | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-linet6 $LIBS"
- else
- echo "$ac_t""no" 1>&6
- echo 'configure: cannot find net_security_strtorequest in libinet6, which is required';
- echo ' for network security support. Either it does not exist, or it was';
- echo ' not built with network security support enabled.';
- exit 1
- fi
-
- fi
- unset ac_cv_header_net_security_h; ac_safe=`echo "net/security.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for net/security.h""... $ac_c" 1>&6
- echo "configure:5347: checking for net/security.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5352 "configure"
- #include "confdefs.h"
- #include <net/security.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5357: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- unset ac_cv_header_net_security_h;
- CPPFLAGS="$CPPFLAGS -I/usr/inet6/include";
- CFLAGS="$CFLAGS -I/usr/inet6/include"; ac_safe=`echo "net/security.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for net/security.h""... $ac_c" 1>&6
- echo "configure:5380: checking for net/security.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5385 "configure"
- #include "confdefs.h"
- #include <net/security.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5390: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo 'configure: cannot find <net/security.h>, which is required';
- echo ' for network security support.';
- exit 1
- fi
-
- fi
-
- with_netsec=no
- fi
- test "$with_netsec" = "yes" && cat >> confdefs.h <<EOF
- #define NET_SECURITY 1
- EOF
- ### use option --with-kerberos5=DIR to point at a Kerberos 5 directory
- # Check whether --with-kerberos5 or --without-kerberos5 was given.
- if test "${with_kerberos5+set}" = set; then
- withval="$with_kerberos5"
- :
- fi
- # The "then" arm (nonempty $with_kerberos5) is kind of a crock. It works for
- # configuring the BSD/OS Kerberos IV support, though.
- if test -n "$with_kerberos5" -a "$with_kerberos5" != "no"
- then
- # Path given
- CEFLAGS="$CEFLAGS -DKERBEROS_V5 -I$with_kerberos5/include"
- LDEFLAGS="$LDEFLAGS -L$with_kerberos5/lib"
- if test -f "$with_kerberos5/include/roken.h"
- then
- cat >> confdefs.h <<EOF
- #define HEIMDAL 1
- EOF
- LIBS="$LIBS -lkrb5 -lasn1 -ldes -lroken -lcom_err"
- else
- LIBS="$LIBS -lkrb5 -lcrypto -lcom_err"
- fi
- elif test "$with_kerberos" != "no"; then
- for dir in /usr/kerberos /usr/local/krb5 /usr/athena
- do
- if test -f "$dir/include/krb5.h"
- then
- CEFLAGS="$CEFLAGS -DKERBEROS_V5 -I$dir/include"
- LDEFLAGS="$LDEFLAGS -L$dir/lib"
- if test -f "$dir/include/roken.h"
- then
- cat >> confdefs.h <<EOF
- #define HEIMDAL 1
- EOF
- LIBS="$LIBS -lkrb5 -lasn1 -ldes -lcom_err"
- else
- LIBS="$LIBS -lkrb5 -lcrypto -lcom_err"
- fi
- with_kerberos5=$dir
- break
- fi
- done
- fi
- ### use option --with-ssl to compile in the SSL support
- # Check whether --with-ssl or --without-ssl was given.
- if test "${with_ssl+set}" = set; then
- withval="$with_ssl"
- with_ssl=$withval
- else
- with_ssl=no
- fi
- test "$with_ssl" = "yes" && cat >> confdefs.h <<EOF
- #define SSL_ENABLE 1
- EOF
- if test "$with_ssl" = "yes"
- then
- # He didn't specify an SSL location. Let's look at some common
- # directories where SSL has been found in the past and try and auto
- # configure for SSL. OpenSSL determination will be made later.
- # This will screw up if an OpenSSL install is located in a later
- # directory than an older SSLeay install, but the user should fix that
- # anyways and he can override on the configure line.
- for ac_dir in
- /usr/local/ssl
- /usr/ssl
- /local/ssl
- /opt/ssl
- ;
- do
- if test -d "$ac_dir" ; then
- with_ssl=$ac_dir
- break;
- fi
- done
- fi
- if test -n "$with_ssl" -a "$with_ssl" != "no"
- then
- # With the autoconfigure above, the only time this is going to be
- # true is going to be when we could not find the headers. If they
- # are not in system standard locations, we are going to be broken.
- if test "$with_ssl" = "yes"
- then
- # Let's just define the standard location for the SSLeay root
- with_ssl="/usr/local/ssl"
- fi
- if test -r $with_ssl/include/openssl/ssl.h
- then
- ### ssl.h found under openssl. Use openssl configuration preferentially
- echo "Enabling OpenSSL support in $with_ssl"
- CEFLAGS="$CEFLAGS -I$with_ssl/include -I$with_ssl/include/openssl"
- ### OpenBSD comes with ssl headers
- elif test -r /usr/include/ssl/ssl.h
- then
- echo "Enabling SSLeay support in $with_ssl"
- CEFLAGS="$CEFLAGS -I/usr/include/ssl"
- else
- echo "Enabling SSLeay support in $with_ssl"
- CEFLAGS="$CEFLAGS -I$with_ssl/include"
- fi
- LDEFLAGS="$LDEFLAGS -L$with_ssl/lib"
- LIBS="$LIBS -lssl -lcrypto"
- cat >> confdefs.h <<EOF
- #define SSL_ENABLE 1
- EOF
- else
- echo 'Disabling SSL support...'
- fi
- ### use option --with-kerberos=DIR to point at a Kerberos directory
- # Check whether --with-kerberos or --without-kerberos was given.
- if test "${with_kerberos+set}" = set; then
- withval="$with_kerberos"
- :
- fi
- # The "elif" arm (nonempty $with_kerberos) is kind of a crock. It works for
- # configuring the BSD/OS Kerberos IV support, though.
- # Check for a NetBSD/OpenBSD special case
- if test "$with_kerberos" = "yes" && test `uname` = "NetBSD" -o `uname` = "OpenBSD"
- then
- echo "Configuring kerberosIV for `uname`"
- CEFLAGS="$CEFLAGS -DKERBEROS_V4 -I/usr/include/kerberosIV"
- LIBS="$LIBS -lkrb -ldes"
- elif test -n "$with_kerberos" -a -n "$with_kerberos5" -a "$with_kerberos" != "no"
- then
- CEFLAGS="$CEFLAGS -DKERBEROS_V4 -I$with_kerberos/include"
- LDEFLAGS="$LDEFLAGS -L$with_kerberos/lib"
- if test -f "$with_kerberos5/roken.h"
- then
- cat >> confdefs.h <<EOF
- #define HEIMDAL 1
- EOF
- LIBS="-lkrb4 -l45 $LIBS"
- else
- LIBS="-lkrb4 -ldes425 $LIBS"
- fi
- elif test -n "$with_kerberos5" -a "$with_kerberos" != "no"
- then
- for dir in /usr/kerberos /usr/kerberosIV /usr/athena
- do
- if test -f "$dir/include/kerberosIV/krb.h"
- then
- CEFLAGS="$CEFLAGS -DKERBEROS_V4 -I$dir/include"
- LDEFLAGS="$LDEFLAGS -L$dir/lib"
- LIBS="-lkrb4 -ldes425 $LIBS"
- break
- fi
- done
- elif test -n "$with_kerberos" -a "$with_kerberos" != "no"
- then
- CEFLAGS="$CEFLAGS -DKERBEROS_V4 -I$with_kerberos/include"
- LDEFLAGS="$LDEFLAGS -L$with_kerberos/lib"
- LIBS="$LIBS -lkrb -ldes"
- else
- if test "$with_kerberos" != "no"
- then
- for dir in /usr/kerberos /usr/kerberosIV /usr/athena
- do
- if test -f "$dir/include/krb.h"
- then
- CEFLAGS="$CEFLAGS -DKERBEROS_V4 -I$dir/include"
- LDEFLAGS="$LDEFLAGS -L$dir/lib"
- LIBS="$LIBS -lkrb -ldes"
- break
- fi
- done
- fi
- ### use option --with-socks=DIR to point at SOCKS library
- # Check whether --with-socks or --without-socks was given.
- if test "${with_socks+set}" = set; then
- withval="$with_socks"
-
- if test "$with_socks" != no
- then
- if test "$with_socks" != yes
- then
- LDEFLAGS="$LDEFLAGS -L$with_socks"
- else
- echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6
- echo "configure:5618: checking for Rconnect in -lsocks" >&5
- ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lsocks $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5626 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Rconnect();
- int main() {
- Rconnect()
- ; return 0; }
- EOF
- if { (eval echo configure:5637: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lsocks $LIBS"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: could not find libsocks which is needed for built-in SOCKS support" 1>&2; exit 1; }
- fi
- fi
- cat >> confdefs.h <<EOF
- #define HAVE_SOCKS 1
- EOF
- CEFLAGS="$CEFLAGS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dbind=Rbind -Daccept=Raccept -Dlisten=Rlisten -Dselect=Rselect"
- LIBS="-lsocks $LIBS"
- fi
- fi
- ### use option --with-hesiod=DIR to point at a HESIOD directory
- # Check whether --with-hesiod or --without-hesiod was given.
- if test "${with_hesiod+set}" = set; then
- withval="$with_hesiod"
- :
- fi
- if test -n "$with_hesiod"
- then
- # Path given
- CEFLAGS="$CEFLAGS -DHESIOD -I$with_hesiod/include"
- LDEFLAGS="$LDEFLAGS -L$with_hesiod/lib"
- LIBS="$LIBS -lhesiod"
- else
- for dir in /usr/athena /usr /usr/local
- do
- if test -f "$dir/include/hesiod.h"
- then
- CEFLAGS="$CEFLAGS -DHESIOD -I$dir/include"
- LDEFLAGS="$LDEFLAGS -L$dir/lib"
- LIBS="$LIBS -lhesiod"
- with_hesiod=$dir
- break
- fi
- done
- fi
- fi
- ### use option --with-gssapi=DIR to compile in GSSAPI support
- # Check whether --with-gssapi or --without-gssapi was given.
- if test "${with_gssapi+set}" = set; then
- withval="$with_gssapi"
-
- if test "$with_gssapi" != "no"
- then
- if test "$with_gssapi" = "yes" -a -n "$with_kerberos5"
- then
- with_gssapi=$with_kerberos5
- fi
- if test "$with_gssapi" != "yes" -a -n "$with_gssapi"
- then
- CFLAGS="$CFLAGS -I$with_gssapi/include"
- LDFLAGS="$LDFLAGS -L$with_gssapi/lib"
- fi
- if test -f "$with_gssapi/include/roken.h"
- then
- LIBS="$LIBS -lkrb5 -lasn1 -ldes -lroken -ldb -ldl"
- echo $ac_n "checking for gss_init_sec_context in -lgssapi""... $ac_c" 1>&6
- echo "configure:5726: checking for gss_init_sec_context in -lgssapi" >&5
- ac_lib_var=`echo gssapi'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lgssapi $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5734 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gss_init_sec_context();
- int main() {
- gss_init_sec_context()
- ; return 0; }
- EOF
- if { (eval echo configure:5745: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -lgssapi"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: could not find libgssapi which is needed for GSSAPI support" 1>&2; exit 1; }
- fi
- cat >> confdefs.h <<EOF
- #define HEIMDAL 1
- EOF
- else
- echo $ac_n "checking for gss_init_sec_context in -lgssapi_krb5""... $ac_c" 1>&6
- echo "configure:5772: checking for gss_init_sec_context in -lgssapi_krb5" >&5
- ac_lib_var=`echo gssapi_krb5'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lgssapi_krb5 -lkrb5 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5780 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gss_init_sec_context();
- int main() {
- gss_init_sec_context()
- ; return 0; }
- EOF
- if { (eval echo configure:5791: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -lgssapi_krb5"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: could not find libgssapi_krb5 which is needed for GSSAPI support" 1>&2; exit 1; }
- fi
- fi
- cat >> confdefs.h <<EOF
- #define GSSAPI 1
- EOF
- save_CPPFLAGS=$CPPFLAGS
- CPPFLAGS="-I$with_gssapi/include"
- for ac_hdr in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:5823: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5828 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5833: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- if test "$ac_cv_header_gssapi_h" = "yes"; then
- cat > conftest.$ac_ext <<EOF
- #line 5861 "configure"
- #include "confdefs.h"
- #include <gssapi.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1
- EOF
- fi
- rm -f conftest*
- else
- cat > conftest.$ac_ext <<EOF
- #line 5877 "configure"
- #include "confdefs.h"
- #include <gssapi/gssapi.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
- rm -rf conftest*
- cat >> confdefs.h <<EOF
- #define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1
- EOF
- fi
- rm -f conftest*
- fi
- fi
- fi
- trap '' 1 2 15
- cat > confcache <<EOF
- # This file is a shell script that caches the results of configure
- # tests run on this system so they can be shared between configure
- # scripts and configure runs. It is not useful on other systems.
- # If it contains results you don't want to keep, you may remove or edit it.
- #
- # By default, configure uses ./config.cache as the cache file,
- # creating it if it does not exist already. You can give configure
- # the --cache-file=FILE option to use a different cache file; that is
- # what configure does when it calls configure scripts in
- # subdirectories, so they share the cache.
- # Giving --cache-file=/dev/null disables caching, for debugging configure.
- # config.status only pays attention to the cache file if you give it the
- # --recheck option to rerun configure.
- #
- EOF
- # The following way of writing the cache mishandles newlines in values,
- # but we know of no workaround that is simple, portable, and efficient.
- # So, don't put newlines in cache variables' values.
- # Ultrix sh set writes to stderr and can't be redirected directly,
- # and sets the high bit in the cache file unless we assign to the vars.
- (set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space= *)
- # `set' does not quote correctly, so add quotes (double-quote substitution
- # turns \\ into \, and sed turns \ into ).
- sed -n
- -e "s/'/'\\''/g"
- -e "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1='\2'}/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*)=(.*)/1=${1=2}/p'
- ;;
- esac >> confcache
- if cmp -s $cache_file confcache; then
- :
- else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
- fi
- rm -f confcache
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- # Any assignment to VPATH causes Sun make to only execute
- # the first set of double-colon rules, so remove it if not needed.
- # If there is a colon in the path, we need to keep it.
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- fi
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- DEFS=-DHAVE_CONFIG_H
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
- echo creating $CONFIG_STATUS
- rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #! /bin/sh
- # Generated automatically by configure.
- # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
- case "$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.13"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "$ac_cs_usage"; exit 0 ;;
- *) echo "$ac_cs_usage"; exit 1 ;;
- esac
- done
- ac_given_srcdir=$srcdir
- ac_given_INSTALL="$INSTALL"
- trap 'rm -fr `echo "Makefile intl/Makefile po/Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
- $ac_vpsub
- $extrasub
- s%@SHELL@%$SHELL%g
- s%@CFLAGS@%$CFLAGS%g
- s%@CPPFLAGS@%$CPPFLAGS%g
- s%@CXXFLAGS@%$CXXFLAGS%g
- s%@FFLAGS@%$FFLAGS%g
- s%@DEFS@%$DEFS%g
- s%@LDFLAGS@%$LDFLAGS%g
- s%@LIBS@%$LIBS%g
- s%@exec_prefix@%$exec_prefix%g
- s%@prefix@%$prefix%g
- s%@program_transform_name@%$program_transform_name%g
- s%@bindir@%$bindir%g
- s%@sbindir@%$sbindir%g
- s%@libexecdir@%$libexecdir%g
- s%@datadir@%$datadir%g
- s%@sysconfdir@%$sysconfdir%g
- s%@sharedstatedir@%$sharedstatedir%g
- s%@localstatedir@%$localstatedir%g
- s%@libdir@%$libdir%g
- s%@includedir@%$includedir%g
- s%@oldincludedir@%$oldincludedir%g
- s%@infodir@%$infodir%g
- s%@mandir@%$mandir%g
- s%@host@%$host%g
- s%@host_alias@%$host_alias%g
- s%@host_cpu@%$host_cpu%g
- s%@host_vendor@%$host_vendor%g
- s%@host_os@%$host_os%g
- s%@CC@%$CC%g
- s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
- s%@INSTALL_DATA@%$INSTALL_DATA%g
- s%@CPP@%$CPP%g
- s%@LEX@%$LEX%g
- s%@LEXLIB@%$LEXLIB%g
- s%@YACC@%$YACC%g
- s%@CPFLAGS@%$CPFLAGS%g
- s%@CEFLAGS@%$CEFLAGS%g
- s%@LDEFLAGS@%$LDEFLAGS%g
- s%@LIBOBJS@%$LIBOBJS%g
- s%@POMAKE@%$POMAKE%g
- s%@PACKAGE@%$PACKAGE%g
- s%@VERSION@%$VERSION%g
- s%@SET_MAKE@%$SET_MAKE%g
- s%@RANLIB@%$RANLIB%g
- s%@ALLOCA@%$ALLOCA%g
- s%@USE_NLS@%$USE_NLS%g
- s%@MSGFMT@%$MSGFMT%g
- s%@GMSGFMT@%$GMSGFMT%g
- s%@XGETTEXT@%$XGETTEXT%g
- s%@GENCAT@%$GENCAT%g
- s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
- s%@CATALOGS@%$CATALOGS%g
- s%@CATOBJEXT@%$CATOBJEXT%g
- s%@DATADIRNAME@%$DATADIRNAME%g
- s%@GMOFILES@%$GMOFILES%g
- s%@INSTOBJEXT@%$INSTOBJEXT%g
- s%@INTLDEPS@%$INTLDEPS%g
- s%@INTLLIBS@%$INTLLIBS%g
- s%@INTLOBJS@%$INTLOBJS%g
- s%@POFILES@%$POFILES%g
- s%@POSUB@%$POSUB%g
- s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
- s%@GT_NO@%$GT_NO%g
- s%@GT_YES@%$GT_YES%g
- s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
- s%@l@%$l%g
- s%@EXTRADEFS@%$EXTRADEFS%g
- s%@EXTRASRC@%$EXTRASRC%g
- s%@EXTRAOBJ@%$EXTRAOBJ%g
- CEOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
- ac_file=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_cmds # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=""
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_FILES=${CONFIG_FILES-"Makefile intl/Makefile po/Makefile.in"}
- EOF
- cat >> $CONFIG_STATUS <<EOF
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\
- # $configure_input" ;;
- *) ac_comsub= ;;
- esac
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
- s%@configure_input@%$configure_input%g
- s%@srcdir@%$srcdir%g
- s%@top_srcdir@%$top_srcdir%g
- s%@INSTALL@%$INSTALL%g
- " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
- fi; done
- rm -f conftest.s*
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
- #
- # ac_d sets the value in "#define NAME VALUE" lines.
- ac_dA='s%^([ ]*)#([ ]*define[ ][ ]*)'
- ac_dB='([ ][ ]*)[^ ]*%1#2'
- ac_dC='3'
- ac_dD='%g'
- # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
- ac_uA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_uB='([ ])%1#2define3'
- ac_uC=' '
- ac_uD='4%g'
- # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
- ac_eA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_eB='$%1#2define3'
- ac_eC=' '
- ac_eD='%g'
- if test "${CONFIG_HEADERS+set}" != set; then
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="config.h"
- EOF
- cat >> $CONFIG_STATUS <<EOF
- fi
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- echo creating $ac_file
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
- EOF
- # Transform confdefs.h into a sed script conftest.vals that substitutes
- # the proper values into config.h.in to produce config.h. And first:
- # Protect against being on the right side of a sed subst in config.status.
- # Protect against being in an unquoted here document in config.status.
- rm -f conftest.vals
- cat > conftest.hdr <<EOF
- s/[\&%]/\&/g
- s%[\$`]%\&%g
- s%#define ([A-Za-z_][A-Za-z0-9_]*) *(.*)%${ac_dA}1${ac_dB}1${ac_dC}2${ac_dD}%gp
- s%ac_d%ac_u%gp
- s%ac_u%ac_e%gp
- EOF
- sed -n -f conftest.hdr confdefs.h > conftest.vals
- rm -f conftest.hdr
- # This sed command replaces #undef with comments. This is necessary, for
- # example, in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- cat >> conftest.vals <<EOF
- s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
- EOF
- # Break up conftest.vals because some shells have a limit on
- # the size of here documents, and old seds have small limits too.
- rm -f conftest.tail
- while :
- do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
- ' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
- done
- rm -f conftest.vals
- cat >> $CONFIG_STATUS <<EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
- fi; done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- ac_sources="$nls_cv_header_libgt"
- ac_dests="$nls_cv_header_intl"
- EOF
- cat >> $CONFIG_STATUS <<EOF
- srcdir=$ac_given_srcdir
- while test -n "$ac_sources"; do
- set $ac_dests; ac_dest=$1; shift; ac_dests=$*
- set $ac_sources; ac_source=$1; shift; ac_sources=$*
- echo "linking $srcdir/$ac_source to $ac_dest"
- if test ! -r $srcdir/$ac_source; then
- { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
- fi
- rm -f $ac_dest
- # Make relative symlinks.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
- # The dest file is in a subdirectory.
- test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
- ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^./%%'`"
- # A "../" for each directory in $ac_dest_dir_suffix.
- ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dest_dir_suffix= ac_dots=
- fi
- case "$srcdir" in
- [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
- *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
- esac
- # Make a symlink if possible; otherwise try a hard link.
- if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
- ln $srcdir/$ac_source $ac_dest; then :
- else
- { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
- fi
- done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- case "$CONFIG_FILES" in *po/Makefile.in*)
- sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
- esac
- # The reason for this odd makedepend line is that we want
- # to have all dependencies evaluated relative to the source directory
- # and let VPATH do all the dirty work when we build remotely
- echo "You can ignore any makedepend error messages:";
- echo timestamp > stamp-h;
- (cd $srcdir; makedepend -f - *.c) >>Makefile
- exit 0
- EOF
- chmod +x $CONFIG_STATUS
- rm -fr confdefs* $ac_clean_files
- test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1