diff -Nru milter-greylist-4.6.2/acl.c milter-greylist-4.6.4/acl.c --- milter-greylist-4.6.2/acl.c 2016-11-24 03:59:40.000000000 +0000 +++ milter-greylist-4.6.4/acl.c 2020-08-28 00:06:44.000000000 +0000 @@ -83,6 +83,9 @@ #ifdef USE_GEOIP #include "geoip.h" #endif +#ifdef USE_GEOIP2 +#include "geoip2.h" +#endif #ifdef USE_P0F #include "p0f.h" #endif @@ -427,6 +430,16 @@ acl_print_list, acl_add_list, NULL, acl_list_filter }, #endif +#ifdef USE_GEOIP2 + { AC_GEOIP, MULTIPLE_OK, AS_ANY, "geoip", + AT_STRING, AC_GEOIP_LIST, AC_STRING, EXF_GEOIP, + acl_print_string, acl_add_string, + acl_free_string, geoip2_filter }, + { AC_GEOIP_LIST, MULTIPLE_OK, AS_ANY, "geoip_list", + AT_LIST, AC_NONE, AC_NONE, EXF_GEOIP, + acl_print_list, acl_add_list, + NULL, acl_list_filter }, +#endif #ifdef USE_P0F { AC_P0F, MULTIPLE_OK, AS_ANY, "p0f", AT_STRING, AC_P0F_LIST, AC_STRING, EXF_P0F, @@ -1938,7 +1951,7 @@ char *buf; size_t len; { - (void)snprintf(buf, len, "$%s ", ad->nsupdate->nse_name); + (void)snprintf(buf, len, "$%s ", nsupdate_get_name(ad->nsupdate)); return buf; } diff -Nru milter-greylist-4.6.2/autom4te.cache/output.0 milter-greylist-4.6.4/autom4te.cache/output.0 --- milter-greylist-4.6.2/autom4te.cache/output.0 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/autom4te.cache/output.0 2020-08-28 00:06:44.000000000 +0000 @@ -0,0 +1,9844 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.65 for milter-greylist 4.6.4. +@%:@ +@%:@ Report bugs to . +@%:@ +@%:@ +@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +@%:@ Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and manu@netbsd.org +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error ERROR [LINENO LOG_FD] +@%:@ --------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with status @S|@?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in @%:@( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='milter-greylist' +PACKAGE_TARNAME='milter-greylist' +PACKAGE_VERSION='4.6.4' +PACKAGE_STRING='milter-greylist 4.6.4' +PACKAGE_BUGREPORT='manu@netbsd.org' +PACKAGE_URL='' + +ac_unique_file="milter-greylist.c" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='LTLIBOBJS +DUMPFILE +CONFFILE +USER +MAKE_J1 +LIB@&t@OBJS +EGREP +GREP +CPP +TOUCH +TRUE +SED +TEST +MV +RM +MKDEP +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +YFLAGS +YACC +LEXLIB +LEX_OUTPUT_ROOT +LEX +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +with_package_name +with_package_version +with_package_version_suffix +with_package_string +with_package_bugreport +with_package_url +with_db +with_libmilter +with_libpthread +with_libbind +with_openssl +with_openssl_static +with_openldap +with_openldap_static +with_libcurl +with_libcurl_static +with_libGeoIP +with_libmaxminddb +with_libdmalloc +with_libspf2 +with_libspf2_static +with_libspf2_10 +with_libspf_alt +with_libspf +with_libdkim +with_libopendkim +enable_parallel_make +enable_rpath +enable_stdio_hack +enable_drac +enable_p0f +enable_p0f3 +enable_p0f306 +with_p0f_src +enable_spamassassin +with_thread_safe_resolver +enable_dnsrbl +enable_mx +enable_postfix +with_user +with_conffile +with_dumpfile +with_delay +with_timeout +with_autowhite +with_drac_db +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +YACC +YFLAGS +CPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information." + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures milter-greylist 4.6.4 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/milter-greylist@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of milter-greylist 4.6.4:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-parallel-make use if your make does not support -j + --disable-rpath do not hardcode runtime library paths + --enable-stdio-hack Use workaround for Solaris stdio limitation + --enable-drac Enable DRAC support + --enable-p0f Enable p0f support, v2 + --enable-p0f3 Enable p0f support, v3.00 to v3.05 + --enable-p0f306 Enable p0f support, v3.06 and up + --enable-spamassassin Enable SpamAssassin support + --enable-dnsrbl Enable DNSRBL support + --enable-mx Enable MX support + --enable-postfix Enable Postfix support + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-package-name=STRING Redefine packaging metadata (name) + --with-package-version=STRING Redefine packaging metadata (version) + --with-package-version-suffix=STRING Vendor-specific suffix to version or release + --with-package-string=STRING Redefine packaging metadata (name and version+suffix) + --with-package-bugreport=STRING Redefine packaging metadata (email) + --with-package-url=STRING Redefine packaging metadata (distro URL) + --with-db=DIR Find Berkeley DB in DIR + --with-libmilter=DIR Find libmilter in DIR + --with-libpthread=DIR Find libpthread in DIR + --with-libbind=DIR Find libbind in DIR + --with-openssl(=DIR) Find OpenSSL in DIR + --with-openssl-static(=DIR) Find OpenSSL in DIR and link statically + --with-openldap(=DIR) Find OpenLDAP in DIR + --with-openldap-static(=DIR) Find OpenLDAP in DIR and link statically + --with-libcurl=DIR Find libcurl in DIR + --with-libcurl-static=DIR Find libcurl in DIR and link statically + --with-libGeoIP=DIR Find libGeoIP in DIR + --with-libmaxminddb=DIR Find GeoIP2 libmaxminddb in DIR + --with-libdmalloc=DIR Find libdmalloc in DIR + --with-libspf2=DIR Find libspf2 in DIR + --with-libspf2-static=DIR Find libspf2 in DIR and link statically + --with-libspf2_10=DIR Find libspf2 1.0 in DIR + --with-libspf_alt=DIR Find libspf_alt in DIR + --with-libspf=DIR Find libspf in DIR + --with-libdkim=DIR Find Sendmail's libdkim in DIR + --with-libopendkim=DIR Find The Trusted Domain Project's libopendkim in DIR + --with-p0f-src=path p0f sources path + --with-thread-safe-resolver Resolver is thread-safe + --with-user=USERNAME The user that will run milter-greylist + --with-conffile=PATH Location of config file + --with-dumpfile=PATH Location of dump file + --with-delay=VALUE Delay before accepting mail + --with-timeout=VALUE Timeout before we forget about a send + --with-autowhite=VALUE How long auto-whitelisting lasts + --with-drac-db=PATH Where is the DRAC database + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + YACC The `Yet Another C Compiler' implementation to use. Defaults to + the first program found out of: `bison -y', `byacc', `yacc'. + YFLAGS The list of arguments that will be passed by default to @S|@YACC. + This script will default YFLAGS to the empty string to avoid a + default value of `-d' given by some make applications. + CPP C preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +milter-greylist configure 4.6.4 +generated by GNU Autoconf 2.65 + +Copyright (C) 2009 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_c_try_compile LINENO +@%:@ -------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_compile + +@%:@ ac_fn_c_try_link LINENO +@%:@ ----------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_link + +@%:@ ac_fn_c_try_cpp LINENO +@%:@ ---------------------- +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_cpp + +@%:@ ac_fn_c_try_run LINENO +@%:@ ---------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_run + +@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( cat <<\_ASBOX +## ------------------------------ ## +## Report this to manu@netbsd.org ## +## ------------------------------ ## +_ASBOX + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} @%:@ ac_fn_c_check_header_mongrel + +@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} @%:@ ac_fn_c_check_header_compile + +@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES +@%:@ ------------------------------------------- +@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache +@%:@ variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} @%:@ ac_fn_c_check_type + +@%:@ ac_fn_c_check_func LINENO FUNC VAR +@%:@ ---------------------------------- +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* 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_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} @%:@ ac_fn_c_check_func + +@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES +@%:@ ---------------------------------------------------- +@%:@ Tries to find if the field MEMBER exists in type AGGR, after including +@%:@ INCLUDES, setting cache variable VAR accordingly. +ac_fn_c_check_member () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (sizeof ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + eval "$4=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$4 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} @%:@ ac_fn_c_check_member +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by milter-greylist $as_me 4.6.4, which was +generated by GNU Autoconf 2.65. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------------- ## +## File substitutions. ## +## ------------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + ac_site_file1=$CONFIG_SITE +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_config_headers="$ac_config_headers config.h" + + +# Checks for programs. +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "no acceptable C compiler found in \$PATH +See \`config.log' for more details." "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "C compiler cannot create executables +See \`config.log' for more details." "$LINENO" 5; }; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if test "${ac_cv_objext+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of object files: cannot compile +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +for ac_prog in flex lex +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_LEX+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LEX"; then + ac_cv_prog_LEX="$LEX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_LEX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LEX=$ac_cv_prog_LEX +if test -n "$LEX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 +$as_echo "$LEX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$LEX" && break +done +test -n "$LEX" || LEX=":" + +if test "x$LEX" != "x:"; then + cat >conftest.l <<_ACEOF +%% +a { ECHO; } +b { REJECT; } +c { yymore (); } +d { yyless (1); } +e { yyless (input () != 0); } +f { unput (yytext[0]); } +. { BEGIN INITIAL; } +%% +#ifdef YYTEXT_POINTER +extern char *yytext; +#endif +int +main (void) +{ + return ! yylex () + ! yywrap (); +} +_ACEOF +{ { ac_try="$LEX conftest.l" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$LEX conftest.l") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 +$as_echo_n "checking lex output file root... " >&6; } +if test "${ac_cv_prog_lex_root+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + +if test -f lex.yy.c; then + ac_cv_prog_lex_root=lex.yy +elif test -f lexyy.c; then + ac_cv_prog_lex_root=lexyy +else + as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 +$as_echo "$ac_cv_prog_lex_root" >&6; } +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root + +if test -z "${LEXLIB+set}"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 +$as_echo_n "checking lex library... " >&6; } +if test "${ac_cv_lib_lex+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + ac_save_LIBS=$LIBS + ac_cv_lib_lex='none needed' + for ac_lib in '' -lfl -ll; do + LIBS="$ac_lib $ac_save_LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +`cat $LEX_OUTPUT_ROOT.c` +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_lex=$ac_lib +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + test "$ac_cv_lib_lex" != 'none needed' && break + done + LIBS=$ac_save_LIBS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 +$as_echo "$ac_cv_lib_lex" >&6; } + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 +$as_echo_n "checking whether yytext is a pointer... " >&6; } +if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # POSIX says lex can declare yytext either as a pointer or an array; the +# default is implementation-dependent. Figure out which it is, since +# not all implementations provide the %pointer and %array declarations. +ac_cv_prog_lex_yytext_pointer=no +ac_save_LIBS=$LIBS +LIBS="$LEXLIB $ac_save_LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define YYTEXT_POINTER 1 +`cat $LEX_OUTPUT_ROOT.c` +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_prog_lex_yytext_pointer=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_save_LIBS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 +$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } +if test $ac_cv_prog_lex_yytext_pointer = yes; then + +$as_echo "@%:@define YYTEXT_POINTER 1" >>confdefs.h + +fi +rm -f conftest.l $LEX_OUTPUT_ROOT.c + +fi +for ac_prog in 'bison -y' byacc +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_YACC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$YACC"; then + ac_cv_prog_YACC="$YACC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_YACC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +YACC=$ac_cv_prog_YACC +if test -n "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 +$as_echo "$YACC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$YACC" && break +done +test -n "$YACC" || YACC="yacc" + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 + fi + done +done +if test -z "$ac_aux_dir"; then + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +for ac_prog in mkdep +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_MKDEP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MKDEP"; then + ac_cv_prog_MKDEP="$MKDEP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_MKDEP="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MKDEP=$ac_cv_prog_MKDEP +if test -n "$MKDEP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5 +$as_echo "$MKDEP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$MKDEP" && break +done + +for ac_prog in rm +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RM+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RM"; then + ac_cv_prog_RM="$RM" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RM="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RM=$ac_cv_prog_RM +if test -n "$RM"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 +$as_echo "$RM" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$RM" && break +done + +for ac_prog in mv +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_MV+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MV"; then + ac_cv_prog_MV="$MV" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_MV="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MV=$ac_cv_prog_MV +if test -n "$MV"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 +$as_echo "$MV" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$MV" && break +done + +for ac_prog in test +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_TEST+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$TEST"; then + ac_cv_prog_TEST="$TEST" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_TEST="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +TEST=$ac_cv_prog_TEST +if test -n "$TEST"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST" >&5 +$as_echo "$TEST" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$TEST" && break +done + +for ac_prog in sed +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_SED+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$SED"; then + ac_cv_prog_SED="$SED" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_SED="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +SED=$ac_cv_prog_SED +if test -n "$SED"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$SED" && break +done + +for ac_prog in true +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_TRUE+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$TRUE"; then + ac_cv_prog_TRUE="$TRUE" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_TRUE="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +TRUE=$ac_cv_prog_TRUE +if test -n "$TRUE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 +$as_echo "$TRUE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$TRUE" && break +done + +for ac_prog in touch +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_TOUCH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$TOUCH"; then + ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_TOUCH="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +TOUCH=$ac_cv_prog_TOUCH +if test -n "$TOUCH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 +$as_echo "$TOUCH" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$TOUCH" && break +done + + + +# Try to configure for override of packaging metadata +_FIX_PACKAGE_NAME="" +_FIX_PACKAGE_VERSION="" +_FIX_PACKAGE_STRING="" +_FIX_PACKAGE_URL="" +_FIX_PACKAGE_BUGREPORT="" + + +@%:@ Check whether --with-package-name was given. +if test "${with_package_name+set}" = set; then : + withval=$with_package_name; if test x"$withval" = x; then + echo "ERROR: No PACKAGE_NAME provided, using default" >&2 + else + PACKAGE_NAME="$withval" + PACKAGE_STRING="$PACKAGE_NAME $PACKAGE_VERSION" + _FIX_PACKAGE_NAME=y + _FIX_PACKAGE_STRING=y + fi +fi + + + +@%:@ Check whether --with-package-version was given. +if test "${with_package_version+set}" = set; then : + withval=$with_package_version; if test x"$withval" = x; then + echo "ERROR: No PACKAGE_VERSION provided, using default" >&2 + else + PACKAGE_VERSION="$withval" + PACKAGE_STRING="$PACKAGE_NAME $PACKAGE_VERSION" + _FIX_PACKAGE_VERSION=y + _FIX_PACKAGE_STRING=y + fi +fi + + +PACKAGE_VERSION_UPSTREAM="$PACKAGE_VERSION" + +@%:@ Check whether --with-package-version-suffix was given. +if test "${with_package_version_suffix+set}" = set; then : + withval=$with_package_version_suffix; if test x"$withval" = x; then + echo "ERROR: No PACKAGE_VERSION_SUFFIX provided, not appending" >&2 + PACKAGE_VERSION_SUFFIX="" + else + PACKAGE_VERSION_SUFFIX="$withval" + PACKAGE_VERSION="$PACKAGE_VERSION_UPSTREAM$PACKAGE_VERSION_SUFFIX" + PACKAGE_STRING="$PACKAGE_NAME $PACKAGE_VERSION" + _FIX_PACKAGE_VERSION=y + _FIX_PACKAGE_STRING=y + fi +fi + + + +@%:@ Check whether --with-package-string was given. +if test "${with_package_string+set}" = set; then : + withval=$with_package_string; if test x"$withval" = x; then + echo "ERROR: No PACKAGE_STRING provided, using default" >&2 + else + PACKAGE_STRING="$withval" + _FIX_PACKAGE_STRING=y + fi +fi + + + +@%:@ Check whether --with-package-bugreport was given. +if test "${with_package_bugreport+set}" = set; then : + withval=$with_package_bugreport; if test x"$withval" = x; then + echo "ERROR: No PACKAGE_BUGREPORT provided, using default" >&2 + else + PACKAGE_BUGREPORT="$withval" + _FIX_PACKAGE_BUGREPORT=y + fi +fi + + + +@%:@ Check whether --with-package-url was given. +if test "${with_package_url+set}" = set; then : + withval=$with_package_url; if test x"$withval" = x; then + echo "ERROR: No PACKAGE_URL provided, using default" >&2 + else + PACKAGE_URL="$withval" + _FIX_PACKAGE_URL=y + fi +fi + + + + +if test x"$_FIX_PACKAGE_NAME" = xy; then + $as_echo "#ifdef PACKAGE_NAME + #undef PACKAGE_NAME +#endif" >>confdefs.h + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +fi + +if test x"$_FIX_PACKAGE_VERSION" = xy; then + $as_echo "#ifdef PACKAGE_VERSION + #undef PACKAGE_VERSION +#endif" >>confdefs.h + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +fi +if test x"$_FIX_PACKAGE_STRING" = xy; then + $as_echo "#ifdef PACKAGE_STRING + #undef PACKAGE_STRING +#endif" >>confdefs.h + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +fi +if test x"$_FIX_PACKAGE_URL" = xy; then + $as_echo "#ifdef PACKAGE_URL + #undef PACKAGE_URL +#endif" >>confdefs.h + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + +fi +if test x"$_FIX_PACKAGE_BUGREPORT" = xy; then + $as_echo "#ifdef PACKAGE_BUGREPORT + #undef PACKAGE_BUGREPORT +#endif" >>confdefs.h + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +fi + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION_UPSTREAM "$PACKAGE_VERSION_UPSTREAM" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION_SUFFIX "$PACKAGE_VERSION_SUFFIX" +_ACEOF + + + + +# Check that the compiler won't bug us for -Wall +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -Wall" >&5 +$as_echo_n "checking if compiler accepts -Wall... " >&6; } +SAVEDCFLAGS=$CFLAGS +CFLAGS=$CFLAGS" -Wall" +wall="no" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + wall="yes"; SAVEDCFLAGS=$CFLAGS; efl=$efl" -Wall" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wall" >&5 +$as_echo "$wall" >&6; } +CFLAGS=$SAVEDCFLAGS + +# Check that the compiler won't bug us for -Werror +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -Werror" >&5 +$as_echo_n "checking if compiler accepts -Werror... " >&6; } +SAVEDCFLAGS=$CFLAGS +CFLAGS=$CFLAGS" -Werror" +werror="no" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + Werror="yes"; efl=$efl" -Werror" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $werror" >&5 +$as_echo "$werror" >&6; } +CFLAGS=$SAVEDCFLAGS + +NORPSAVEDLDFLAGS=$LDFLAGS + +# Any linker will probably accept -L +rpath="-L" + +# Check if the linker accepts -R +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -R" >&5 +$as_echo_n "checking if ld accepts -R... " >&6; } +SAVEDLDFLAGS=$LDFLAGS +LDFLAGS=$LDFLAGS" -Wl,-R=/" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + rpath="-R"; ldrpath=yes +else + ldrpath=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LDFLAGS=$SAVEDLDFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ldrpath" >&5 +$as_echo "$ldrpath" >&6; } + +# Check if the linker accepts --rpath +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts --rpath" >&5 +$as_echo_n "checking if ld accepts --rpath... " >&6; } +SAVEDLDFLAGS=$LDFLAGS +LDFLAGS=$LDFLAGS" -Wl,--rpath=/" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + rpath="--rpath="; ldrpath=yes +else + ldrpath=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LDFLAGS=$SAVEDLDFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ldrpath" >&5 +$as_echo "$ldrpath" >&6; } + +# Path to required packages + +@%:@ Check whether --with-db was given. +if test "${with_db+set}" = set; then : + withval=$with_db; CFLAGS=$CFLAGS" -I$withval/include" + LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" +fi + + +@%:@ Check whether --with-libmilter was given. +if test "${with_libmilter+set}" = set; then : + withval=$with_libmilter; CFLAGS=$CFLAGS" -I$withval/include" + LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" +fi + + +@%:@ Check whether --with-libpthread was given. +if test "${with_libpthread+set}" = set; then : + withval=$with_libpthread; CFLAGS=$CFLAGS" -I$withval/include" + LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" +fi + + +# Which BIND resolver to use?.. +use_libbind=no +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS +SAVEDLIBS=$LIBS + +@%:@ Check whether --with-libbind was given. +if test "${with_libbind+set}" = set; then : + withval=$with_libbind; CFLAGS=$CFLAGS" -I$withval/include/bind -I$withval/include" + LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind9_getaddresses in -lbind" >&5 +$as_echo_n "checking for bind9_getaddresses in -lbind... " >&6; } +if test "${ac_cv_lib_bind_bind9_getaddresses+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bind9_getaddresses (); +int +main () +{ +return bind9_getaddresses (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind_bind9_getaddresses=yes +else + ac_cv_lib_bind_bind9_getaddresses=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_bind9_getaddresses" >&5 +$as_echo "$ac_cv_lib_bind_bind9_getaddresses" >&6; } +if test "x$ac_cv_lib_bind_bind9_getaddresses" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + SAVEDLIBS="-lbind $LIBS" + use_libbind=yes + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind9_getaddresses in -lbind9" >&5 +$as_echo_n "checking for bind9_getaddresses in -lbind9... " >&6; } +if test "${ac_cv_lib_bind9_bind9_getaddresses+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind9 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char bind9_getaddresses (); +int +main () +{ +return bind9_getaddresses (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_bind9_bind9_getaddresses=yes +else + ac_cv_lib_bind9_bind9_getaddresses=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind9_bind9_getaddresses" >&5 +$as_echo "$ac_cv_lib_bind9_bind9_getaddresses" >&6; } +if test "x$ac_cv_lib_bind9_bind9_getaddresses" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + SAVEDLIBS="-lbind9 $LIBS" + use_libbind=yes + +else + echo "neither -lbind nor -lbind9 worked. check config.log for details" + exit 1; +fi + + +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS +LIBS=$SAVEDLIBS + +# OpenSSL, may be needed by itself and for curl, ldap, dkim/opendkim, ... +dir_openssl="" +LDFLAGS_openssl="" +LIBS_openssl_ssl="" +LIBS_openssl_crypto="" +LIBS_openssl_ssh2="" +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS +SAVEDLIBS=$LIBS + +@%:@ Check whether --with-openssl was given. +if test "${with_openssl+set}" = set; then : + withval=$with_openssl; if test x"$withval" = xyes; then withval=""; fi + if test -z "$withval"; then + for _DIR in "/usr/local/ssl" "/usr/local" "/usr" "/usr/sfw" "/opt/sfw" "/"; do + if test -z "$withval" -a -e "$_DIR/lib/libssl.so"; then + withval="$_DIR"; + echo "autodetected OpenSSL library directory: $_DIR" + fi + done + fi + if test -z "$withval"; then + echo "Error: path for OpenSSL libraries not provided and not autodetected!" + exit 1 + fi + LDFLAGS_openssl="-L$withval/lib -Wl,$rpath$withval/lib" + SAVEDLDFLAGS=$LDFLAGS" $LDFLAGS_openssl" + SAVEDCFLAGS=$CFLAGS" -I$withval/include" + dir_openssl="$withval" + LIBS_openssl_ssl="-lssl" + LIBS_openssl_crypto="-lcrypto" + SAVEDLIBS="$LIBS_openssl_ssl $LIBS_openssl_crypto $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc -lssh2" >&5 +$as_echo_n "checking for main in -lc -lssh2... " >&6; } +if test "${ac_cv_lib_c__lssh2_main+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc -lssh2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c__lssh2_main=yes +else + ac_cv_lib_c__lssh2_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c__lssh2_main" >&5 +$as_echo "$ac_cv_lib_c__lssh2_main" >&6; } +if test "x$ac_cv_lib_c__lssh2_main" = x""yes; then : + + LIBS_openssl_ssh2="-lssh2 -lz" + echo "autodetected libssh2: $LIBS_openssl_ssh2" + SAVEDLIBS="$LIBS_openssl_ssh2 $SAVEDLIBS" +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS +LIBS=$SAVEDLIBS + +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS +SAVEDLIBS=$LIBS + +@%:@ Check whether --with-openssl-static was given. +if test "${with_openssl_static+set}" = set; then : + withval=$with_openssl_static; if test x"$withval" = xyes; then withval=""; fi + if test -z "$withval"; then + for _DIR in "/usr/local/ssl" "/usr/local" "/usr" "/usr/sfw" "/opt/sfw" "/"; do + if test -z "$withval" -a -e "$_DIR/lib/libssl.a"; then + withval="$_DIR"; + echo "autodetected OpenSSL-static library directory: $_DIR" + fi + done + fi + if test -z "$withval"; then + echo "Error: path for OpenSSL static libraries not provided and not autodetected!" + exit 1 + fi + LDFLAGS_openssl="" + SAVEDLDFLAGS=$LDFLAGS" $LDFLAGS_openssl" + SAVEDCFLAGS=$CFLAGS" -I$withval/include" + dir_openssl="$withval" + LIBS_openssl_ssl="$withval/lib/libssl.a" + LIBS_openssl_crypto="$withval/lib/libcrypto.a" + SAVEDLIBS="$LIBS_openssl_ssl $LIBS_openssl_crypto $LIBS" + _lib_ssh2="" + for _DIR in "/usr/local/ssl" "/usr/local" "/usr" "/usr/sfw" "/opt/sfw" "/"; do + if test -z "$_lib_ssh2" -a -e "$_DIR/lib/libssh2.a"; then + _lib_ssh2="$_DIR/lib/libssh2.a" + fi + done + if test -z "$_lib_ssh2"; then + _lib_ssh2="-lssh2" + fi + as_ac_Lib=`$as_echo "ac_cv_lib_c $_lib_ssh2''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc $_lib_ssh2" >&5 +$as_echo_n "checking for main in -lc $_lib_ssh2... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $_lib_ssh2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + LIBS_openssl_ssh2="$_lib_ssh2 -lz" + echo "autodetected libssh2: $LIBS_openssl_ssh2" + SAVEDLIBS="$LIBS_openssl_ssh2 $SAVEDLIBS" +fi + + unset _lib_ssh2 + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS +LIBS=$SAVEDLIBS + +# OpenLDAP may be used instead of curl to access multiple +# (failover) LDAP catalog servers +dir_openldap="" +LDFLAGS_openldap="" +LIBS_openldap="" +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS +SAVEDLIBS=$LIBS + +@%:@ Check whether --with-openldap was given. +if test "${with_openldap+set}" = set; then : + withval=$with_openldap; if test x"$withval" = xyes; then withval=""; fi + if test -z "$withval"; then + for _DIR in "/usr/local" "/usr" "/usr/sfw" "/opt/sfw" "/"; do + if test -z "$withval" -a -e "$_DIR/lib/libldap_r-2.4.so" || \ + test -z "$withval" -a -e "$_DIR/lib/libldap_r.so"; then + withval="$_DIR"; + echo "autodetected OpenLDAP library directory: $_DIR" + fi + done + fi + if test -z "$withval"; then + echo "Error: path for OpenLDAP libraries not provided and not autodetected!" + exit 1 + fi + SAVEDCFLAGS=$CFLAGS" -I$withval/include -DUSE_LDAP -DLDAP_DEPRECATED" + LDFLAGS_openldap="-L$withval/lib -Wl,$rpath$withval/lib" + SAVEDLDFLAGS=$LDFLAGS" $LDFLAGS_openldap" + dir_openldap="$withval" + if test -d "$dir_openldap/include/openldap"; then + ### Promote this include path + SAVEDCFLAGS="-I$dir_openldap/include/openldap $SAVEDCFLAGS" + fi + ### Pick variants of more important libs that may be needed by LDAP + _ldap_LIBS="-lldap_r-2.4 -llber-2.4" + as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5 +$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $_ldap_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ldap_search (); +int +main () +{ +return ldap_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + SAVEDLIBS="$_ldap_LIBS $LIBS" + LIBS_openldap="$_ldap_LIBS" + +else + _ldap_LIBS="-lldap_r -llber" + as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5 +$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $_ldap_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ldap_search (); +int +main () +{ +return ldap_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + SAVEDLIBS="$_ldap_LIBS $LIBS" + LIBS_openldap="$_ldap_LIBS" + +else + echo "Error: no OpenLDAP library names located!"; exit 1; +fi + + +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS +LIBS=$SAVEDLIBS + +# Try to configure for openldap-static +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS +SAVEDLIBS=$LIBS + +@%:@ Check whether --with-openldap-static was given. +if test "${with_openldap_static+set}" = set; then : + withval=$with_openldap_static; if test x"$withval" = xyes; then withval=""; fi + if test -z "$withval"; then + for _DIR in "/usr/local" "/usr" "/usr/sfw" "/opt/sfw" "/"; do + if test -z "$withval" -a -e "$_DIR/lib/libldap_r-2.4.a" || \ + test -z "$withval" -a -e "$_DIR/lib/libldap_r.a"; then + withval="$_DIR"; + echo "autodetected OpenLDAP library directory: $_DIR" + fi + done + fi + if test -z "$withval"; then + echo "Error: path for OpenLDAP static libraries not provided and not autodetected!" + exit 1 + fi + dir_openldap="$withval" + LDFLAGS_openldap="" + SAVEDLDFLAGS=$LDFLAGS" $LDFLAGS_openldap" + SAVEDCFLAGS=$CFLAGS" -I$withval/include -DUSE_LDAP -DLDAP_DEPRECATED" + SAVEDLIBS="$LIBS" + if test -d "$dir_openldap/include/openldap"; then + ### Promote this include path + SAVEDCFLAGS="-I$dir_openldap/include/openldap $SAVEDCFLAGS" + fi + ### Lower-priority variants first; in case of conflicts use the later one + if test -e "$withval/lib/libldap_r.a"; then + LIBS_openldap="$withval/lib/libldap_r.a $withval/lib/liblber.a" + fi + if test -e "$withval/lib/libldap_r-2.4.a"; then + LIBS_openldap="$withval/lib/libldap_r-2.4.a $withval/lib/liblber-2.4.a" + fi + if test -z "$LIBS_openldap"; then + echo "Error: searched for OpenLDAP static libraries in dir '$withval/lib', not found" + exit 1 + fi + LIBS_openldap_add="" + ### More generic libs + for L in nsl socket gss dl resolv; do + as_ac_Lib=`$as_echo "ac_cv_lib_c -l$L''_main" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc -l$L" >&5 +$as_echo_n "checking for main in -lc -l$L... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc -l$L $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + LIBS_openldap_add="-l$L $LIBS_openldap_add" +fi + + done + ### Pick variants of more important libs that may be needed by LDAP + _ldap_LIBS="$LIBS_openldap" + as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5 +$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $_ldap_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ldap_search (); +int +main () +{ +return ldap_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + SAVEDLIBS="$_ldap_LIBS $LIBS" + +else + _ldap_LIBS="$LIBS_openldap $LIBS_openldap_add -lsasl" + as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5 +$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $_ldap_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ldap_search (); +int +main () +{ +return ldap_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + SAVEDLIBS="$_ldap_LIBS $LIBS" + +else + _ldap_LIBS="$LIBS_openldap $LIBS_openldap_add -lsasl2" + as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5 +$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $_ldap_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ldap_search (); +int +main () +{ +return ldap_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + SAVEDLIBS="$_ldap_LIBS $LIBS" + +else + _ldap_LIBS="$LIBS_openldap $LIBS_openldap_add -lsasl $LDFLAGS_openssl $LIBS_openssl_crypto $LIBS_openssl_ssl" + as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5 +$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $_ldap_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ldap_search (); +int +main () +{ +return ldap_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + SAVEDLIBS="$_ldap_LIBS $LIBS" + +else + _ldap_LIBS="$LIBS_openldap $LIBS_openldap_add -lsasl2 $LDFLAGS_openssl $LIBS_openssl_crypto $LIBS_openssl_ssl" + as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5 +$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $_ldap_LIBS $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ldap_search (); +int +main () +{ +return ldap_search (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + SAVEDLIBS="$_ldap_LIBS $LIBS" + +else + echo "OpenLDAP static libraries libldap_r.a and/or liblber.a, or their shared"; + echo " dependencies (SASL, OpenSSL, GSS) were not found, check config.log for details"; + echo "Remove --with-openldap-static to build without LDAP support, or"; + echo " try --with-openldap for the shared library, or"; + echo " try --with-curl for an alternate solution"; + exit 1; +fi + + +fi + + +fi + + +fi + + +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS +LIBS=$SAVEDLIBS + +use_libcurl=no + +@%:@ Check whether --with-libcurl was given. +if test "${with_libcurl+set}" = set; then : + withval=$with_libcurl; CFLAGS=$CFLAGS" -I$withval/include -DUSE_CURL" + LIBS="-lcurl $LIBS" + LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + use_libcurl=yes +fi + + +# Try to configure for libcurl-static +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS +SAVEDLIBS=$LIBS + +@%:@ Check whether --with-libcurl-static was given. +if test "${with_libcurl_static+set}" = set; then : + withval=$with_libcurl_static; SAVEDLDFLAGS=$LDFLAGS" -L$withval/lib" + SAVEDCFLAGS=$CFLAGS" -I$withval/include -DUSE_CURL" + _lib_idn="" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lidn" >&5 +$as_echo_n "checking for main in -lidn... " >&6; } +if test "${ac_cv_lib_idn_main+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lidn $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_idn_main=yes +else + ac_cv_lib_idn_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_main" >&5 +$as_echo "$ac_cv_lib_idn_main" >&6; } +if test "x$ac_cv_lib_idn_main" = x""yes; then : + echo "autodetected libidn, will use with libcurl" + _lib_idn="-lidn" + SAVEDLIBS=" $_lib_idn $LIBS" +fi + + LIBS=$SAVEDLIBS + as_ac_Lib=`$as_echo "ac_cv_lib_curl $_lib_idn''_Curl_connect" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Curl_connect in -lcurl $_lib_idn" >&5 +$as_echo_n "checking for Curl_connect in -lcurl $_lib_idn... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $_lib_idn $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char Curl_connect (); +int +main () +{ +return Curl_connect (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + SAVEDLIBS="$withval/lib/libcurl.a $LIBS" + use_libcurl=yes + +else + as_ac_Lib=`$as_echo "ac_cv_lib_curl $_lib_idn $LIBS_openssl_ssh2''_Curl_connect" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Curl_connect in -lcurl $_lib_idn $LIBS_openssl_ssh2" >&5 +$as_echo_n "checking for Curl_connect in -lcurl $_lib_idn $LIBS_openssl_ssh2... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurl $_lib_idn $LIBS_openssl_ssh2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char Curl_connect (); +int +main () +{ +return Curl_connect (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + SAVEDLIBS="$withval/lib/libcurl.a $LIBS_openssl_ssh2 $LIBS" + use_libcurl=yes + +else + echo "static library libcurl.a and/or libssh2.a not found, check config.log for details"; + echo "Remove --with-libcurl-static to build without CURL support "; + echo " or try --with-libcurl for the shared library"; + exit 1; +fi + + +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS +LIBS=$SAVEDLIBS + + +@%:@ Check whether --with-libGeoIP was given. +if test "${with_libGeoIP+set}" = set; then : + withval=$with_libGeoIP; CFLAGS=$CFLAGS" -I$withval/include -DUSE_GEOIP" + LIBS="-lGeoIP $LIBS" + USE_GEOIP="true" + LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" +fi + + +@%:@ Check whether --with-libmaxminddb was given. +if test "${with_libmaxminddb+set}" = set; then : + withval=$with_libmaxminddb; if test -z "$USE_GEOIP"; then + CFLAGS=$CFLAGS" -I$withval/include -DUSE_GEOIP2" + LIBS="-lmaxminddb $LIBS" + LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + else + echo "--with-libGeoIP and -with-libmaxminddb are mutually exclusive"; + exit 1; + fi +fi + + +@%:@ Check whether --with-libdmalloc was given. +if test "${with_libdmalloc+set}" = set; then : + withval=$with_libdmalloc; CFLAGS=$CFLAGS" -I$withval/include -DUSE_DMALLOC" + LIBS="-ldmalloc $LIBS" + LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" +fi + + +# Checks for header files. +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if test "${ac_cv_path_GREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if test "${ac_cv_path_EGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if test "${ac_cv_header_stdc+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h sys/param.h netdb.h getopt.h sys/cdefs.h arpa/nameser.h stdbool.h sys/queue.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +# Checks for typedefs, structures, and compiler characteristics. +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" +if test "x$ac_cv_type_pid_t" = x""yes; then : + +else + +cat >>confdefs.h <<_ACEOF +@%:@define pid_t int +_ACEOF + +fi + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = x""yes; then : + +else + +cat >>confdefs.h <<_ACEOF +@%:@define size_t unsigned int +_ACEOF + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +if test "${ac_cv_header_time+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include + +int +main () +{ +if ((struct tm *) 0) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_time=yes +else + ac_cv_header_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +$as_echo "$ac_cv_header_time" >&6; } +if test $ac_cv_header_time = yes; then + +$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h + +fi + + +# Do we have res_state type? Tru64 UNIX doesn't have... +ac_fn_c_check_type "$LINENO" "res_state" "ac_cv_type_res_state" " + #include + #include + #include + #include + +" +if test "x$ac_cv_type_res_state" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_RES_STATE 1 +_ACEOF + + +fi + + +# Do we need -lpthread with -lbind? +if test $use_libbind = yes ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lbind needs -lpthread to link" >&5 +$as_echo_n "checking if -lbind needs -lpthread to link... " >&6; } + lbind_needs_lpthread=no + SAVEDLIBS=$LIBS + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + +else + + LIBS="-lpthread $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lbind_needs_lpthread=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext; + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext; + if test $lbind_needs_lpthread = yes ; then + SAVEDLIBS=$LIBS + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lbind_needs_lpthread" >&5 +$as_echo "$lbind_needs_lpthread" >&6; } + LIBS=$SAVEDLIBS +fi + +# Do we need -lcrypto with -lcurl? +if test $use_libcurl = yes ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcurl needs -lcrypto to link and run" >&5 +$as_echo_n "checking if -lcurl needs -lcrypto to link and run... " >&6; } + lcurl_needs_lcrypto=no + SAVEDLIBS=$LIBS + SAVEDLDFLAGS=$LDFLAGS + if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run test program while cross compiling +See \`config.log' for more details." "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + LDFLAGS="$LDFLAGS $LDFLAGS_openssl" + LIBS="$LIBS_openssl_crypto $LIBS" + if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run test program while cross compiling +See \`config.log' for more details." "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + lcurl_needs_lcrypto=yes + SAVEDLIBS=$LIBS +else + echo "Required libcrypto not found for libcurl."; + echo " Use --with-openssl=DIR to provide the OpenSSL installation root."; + exit 1; +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + if test $lcurl_needs_lcrypto = yes ; then + SAVEDLIBS=$LIBS + SAVEDLDFLAGS=$LDFLAGS + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lcurl_needs_lcrypto" >&5 +$as_echo "$lcurl_needs_lcrypto" >&6; } + LIBS=$SAVEDLIBS + LDFLAGS=$SAVEDLDFLAGS +fi + +# Checks for library functions. +for ac_header in vfork.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" +if test "x$ac_cv_header_vfork_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_VFORK_H 1 +_ACEOF + +fi + +done + +for ac_func in fork vfork +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +if test "x$ac_cv_func_fork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 +$as_echo_n "checking for working fork... " >&6; } +if test "${ac_cv_func_fork_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_fork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* By Ruediger Kuhlmann. */ + return fork () < 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_fork_works=yes +else + ac_cv_func_fork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 +$as_echo "$ac_cv_func_fork_works" >&6; } + +else + ac_cv_func_fork_works=$ac_cv_func_fork +fi +if test "x$ac_cv_func_fork_works" = xcross; then + case $host in + *-*-amigaos* | *-*-msdosdjgpp*) + # Override, as these systems have only a dummy fork() stub + ac_cv_func_fork_works=no + ;; + *) + ac_cv_func_fork_works=yes + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} +fi +ac_cv_func_vfork_works=$ac_cv_func_vfork +if test "x$ac_cv_func_vfork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 +$as_echo_n "checking for working vfork... " >&6; } +if test "${ac_cv_func_vfork_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_vfork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Thanks to Paul Eggert for this test. */ +$ac_includes_default +#include +#ifdef HAVE_VFORK_H +# include +#endif +/* On some sparc systems, changes by the child to local and incoming + argument registers are propagated back to the parent. The compiler + is told about this with #include , but some compilers + (e.g. gcc -O) don't grok . Test for this by using a + static variable whose address is put into a register that is + clobbered by the vfork. */ +static void +#ifdef __cplusplus +sparc_address_test (int arg) +# else +sparc_address_test (arg) int arg; +#endif +{ + static pid_t child; + if (!child) { + child = vfork (); + if (child < 0) { + perror ("vfork"); + _exit(2); + } + if (!child) { + arg = getpid(); + write(-1, "", 0); + _exit (arg); + } + } +} + +int +main () +{ + pid_t parent = getpid (); + pid_t child; + + sparc_address_test (0); + + child = vfork (); + + if (child == 0) { + /* Here is another test for sparc vfork register problems. This + test uses lots of local variables, at least as many local + variables as main has allocated so far including compiler + temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris + 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should + reuse the register of parent for one of the local variables, + since it will think that parent can't possibly be used any more + in this routine. Assigning to the local variable will thus + munge parent in the parent process. */ + pid_t + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); + /* Convince the compiler that p..p7 are live; otherwise, it might + use the same hardware register for all 8 local variables. */ + if (p != p1 || p != p2 || p != p3 || p != p4 + || p != p5 || p != p6 || p != p7) + _exit(1); + + /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent + from child file descriptors. If the child closes a descriptor + before it execs or exits, this munges the parent's descriptor + as well. Test for this by closing stdout in the child. */ + _exit(close(fileno(stdout)) != 0); + } else { + int status; + struct stat st; + + while (wait(&status) != child) + ; + return ( + /* Was there some problem with vforking? */ + child < 0 + + /* Did the child fail? (This shouldn't happen.) */ + || status + + /* Did the vfork/compiler bug occur? */ + || parent != getpid() + + /* Did the file descriptor bug occur? */ + || fstat(fileno(stdout), &st) != 0 + ); + } +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_vfork_works=yes +else + ac_cv_func_vfork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 +$as_echo "$ac_cv_func_vfork_works" >&6; } + +fi; +if test "x$ac_cv_func_fork_works" = xcross; then + ac_cv_func_vfork_works=$ac_cv_func_vfork + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} +fi + +if test "x$ac_cv_func_vfork_works" = xyes; then + +$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h + +else + +$as_echo "@%:@define vfork fork" >>confdefs.h + +fi +if test "x$ac_cv_func_fork_works" = xyes; then + +$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h + +fi + +for ac_func in strftime +do : + ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" +if test "x$ac_cv_func_strftime" = x""yes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_STRFTIME 1 +_ACEOF + +else + # strftime is in -lintl on SCO UNIX. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 +$as_echo_n "checking for strftime in -lintl... " >&6; } +if test "${ac_cv_lib_intl_strftime+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lintl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char strftime (); +int +main () +{ +return strftime (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_intl_strftime=yes +else + ac_cv_lib_intl_strftime=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 +$as_echo "$ac_cv_lib_intl_strftime" >&6; } +if test "x$ac_cv_lib_intl_strftime" = x""yes; then : + $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h + +LIBS="-lintl $LIBS" +fi + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 +$as_echo_n "checking for working memcmp... " >&6; } +if test "${ac_cv_func_memcmp_working+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_memcmp_working=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Some versions of memcmp are not 8-bit clean. */ + char c0 = '\100', c1 = '\200', c2 = '\201'; + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) + return 1; + + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes + or more and with at least one buffer not starting on a 4-byte boundary. + William Lewis provided this test program. */ + { + char foo[21]; + char bar[21]; + int i; + for (i = 0; i < 4; i++) + { + char *a = foo + i; + char *b = bar + i; + strcpy (a, "--------01111111"); + strcpy (b, "--------10000000"); + if (memcmp (a, b, 16) >= 0) + return 1; + } + return 0; + } + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_memcmp_working=yes +else + ac_cv_func_memcmp_working=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 +$as_echo "$ac_cv_func_memcmp_working" >&6; } +test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in + *" memcmp.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext" + ;; +esac + + +for ac_header in sys/select.h sys/socket.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 +$as_echo_n "checking types of arguments for select... " >&6; } +if test "${ac_cv_func_select_args+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + for ac_arg234 in 'fd_set *' 'int *' 'void *'; do + for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do + for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +#ifdef HAVE_SYS_SELECT_H +# include +#endif +#ifdef HAVE_SYS_SOCKET_H +# include +#endif + +int +main () +{ +extern int select ($ac_arg1, + $ac_arg234, $ac_arg234, $ac_arg234, + $ac_arg5); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done + done +done +# Provide a safe default value. +: ${ac_cv_func_select_args='int,int *,struct timeval *'} + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 +$as_echo "$ac_cv_func_select_args" >&6; } +ac_save_IFS=$IFS; IFS=',' +set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` +IFS=$ac_save_IFS +shift + +cat >>confdefs.h <<_ACEOF +@%:@define SELECT_TYPE_ARG1 $1 +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define SELECT_TYPE_ARG234 ($2) +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define SELECT_TYPE_ARG5 ($3) +_ACEOF + +rm -f conftest* + +if test "${ac_cv_func_setvbuf_reversed+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_func_setvbuf_reversed=no +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 +$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } +if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + rm -f conftest.sym conftest.file +echo >conftest.file +if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then + if test "$cross_compiling" = yes; then : + ac_cv_func_lstat_dereferences_slashed_symlink=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +struct stat sbuf; + /* Linux will dereference the symlink and fail, as required by POSIX. + That is better in the sense that it means we will not + have to compile and use the lstat wrapper. */ + return lstat ("conftest.sym/", &sbuf) == 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_lstat_dereferences_slashed_symlink=yes +else + ac_cv_func_lstat_dereferences_slashed_symlink=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +else + # If the `ln -s' command failed, then we probably don't even + # have an lstat function. + ac_cv_func_lstat_dereferences_slashed_symlink=no +fi +rm -f conftest.sym conftest.file + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 +$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } + +test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && + +cat >>confdefs.h <<_ACEOF +@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +_ACEOF + + +if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then + case " $LIB@&t@OBJS " in + *" lstat.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" + ;; +esac + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 +$as_echo_n "checking whether stat accepts an empty string... " >&6; } +if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_stat_empty_string_bug=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +struct stat sbuf; + return stat ("", &sbuf) == 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_stat_empty_string_bug=no +else + ac_cv_func_stat_empty_string_bug=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 +$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } +if test $ac_cv_func_stat_empty_string_bug = yes; then + case " $LIB@&t@OBJS " in + *" stat.$ac_objext "* ) ;; + *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext" + ;; +esac + + +cat >>confdefs.h <<_ACEOF +@%:@define HAVE_STAT_EMPTY_STRING_BUG 1 +_ACEOF + +fi + +for ac_func in bzero gettimeofday malloc inet_ntoa strerror select socket initgroups strlcat vsyslog strcasestr getaddrinfo getnameinfo +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + +# Check for libpthread. On FreeBSD, the libc_r does the job. +# On digitalUNIX, libpthreads (with a trailing s) is the library to use +# FIXME: FreeBSD 4.x wants -pthread +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 +$as_echo_n "checking for pthread_create in -lpthread... " >&6; } +if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_create (); +int +main () +{ +return pthread_create (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pthread_pthread_create=yes +else + ac_cv_lib_pthread_pthread_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } +if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : + LIBS="$LIBS -lpthread" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 +$as_echo_n "checking for pthread_create in -lc_r... " >&6; } +if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc_r $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_create (); +int +main () +{ +return pthread_create (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_r_pthread_create=yes +else + ac_cv_lib_c_r_pthread_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 +$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } +if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then : + LIBS="$LIBS -lc_r" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads -lpthread" >&5 +$as_echo_n "checking for pthread_create in -lpthreads -lpthread... " >&6; } +if test "${ac_cv_lib_pthreads__lpthread_pthread_create+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthreads -lpthread $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_create (); +int +main () +{ +return pthread_create (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pthreads__lpthread_pthread_create=yes +else + ac_cv_lib_pthreads__lpthread_pthread_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads__lpthread_pthread_create" >&5 +$as_echo "$ac_cv_lib_pthreads__lpthread_pthread_create" >&6; } +if test "x$ac_cv_lib_pthreads__lpthread_pthread_create" = x""yes; then : + LIBS="$LIBS -lpthreads -lpthread" +else + echo "Required libpthread not found. Use --with-libpthread"; + exit 1; +fi + + +fi + + +fi + + +# Try to configure for libspf2 +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS + +@%:@ Check whether --with-libspf2 was given. +if test "${with_libspf2+set}" = set; then : + withval=$with_libspf2; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + CFLAGS=$CFLAGS" -I$withval/include" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_server_new in -lspf2" >&5 +$as_echo_n "checking for SPF_server_new in -lspf2... " >&6; } +if test "${ac_cv_lib_spf2_SPF_server_new+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspf2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SPF_server_new (); +int +main () +{ +return SPF_server_new (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_spf2_SPF_server_new=yes +else + ac_cv_lib_spf2_SPF_server_new=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2_SPF_server_new" >&5 +$as_echo "$ac_cv_lib_spf2_SPF_server_new" >&6; } +if test "x$ac_cv_lib_spf2_SPF_server_new" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" -lspf2" + +$as_echo "@%:@define HAVE_SPF2 /**/" >>confdefs.h + + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_server_new in -lspf2 -lintl" >&5 +$as_echo_n "checking for SPF_server_new in -lspf2 -lintl... " >&6; } +if test "${ac_cv_lib_spf2__lintl_SPF_server_new+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspf2 -lintl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SPF_server_new (); +int +main () +{ +return SPF_server_new (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_spf2__lintl_SPF_server_new=yes +else + ac_cv_lib_spf2__lintl_SPF_server_new=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2__lintl_SPF_server_new" >&5 +$as_echo "$ac_cv_lib_spf2__lintl_SPF_server_new" >&6; } +if test "x$ac_cv_lib_spf2__lintl_SPF_server_new" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" -lspf2 -lintl" + +$as_echo "@%:@define HAVE_SPF2 /**/" >>confdefs.h + + +else + echo "libspf2 not found, check config.log for details" + echo "Remove --with-libspf2 to build without SPF support" + exit 1; +fi + + +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS + +# Try to configure for libspf2-static +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS + +@%:@ Check whether --with-libspf2-static was given. +if test "${with_libspf2_static+set}" = set; then : + withval=$with_libspf2_static; LDFLAGS=$LDFLAGS" -L$withval/lib" + CFLAGS=$CFLAGS" -I$withval/include" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_server_new in -lspf2" >&5 +$as_echo_n "checking for SPF_server_new in -lspf2... " >&6; } +if test "${ac_cv_lib_spf2_SPF_server_new+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspf2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SPF_server_new (); +int +main () +{ +return SPF_server_new (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_spf2_SPF_server_new=yes +else + ac_cv_lib_spf2_SPF_server_new=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2_SPF_server_new" >&5 +$as_echo "$ac_cv_lib_spf2_SPF_server_new" >&6; } +if test "x$ac_cv_lib_spf2_SPF_server_new" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" $withval/lib/libspf2.a" + +$as_echo "@%:@define HAVE_SPF2 /**/" >>confdefs.h + + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_server_new in -lspf2 -lintl" >&5 +$as_echo_n "checking for SPF_server_new in -lspf2 -lintl... " >&6; } +if test "${ac_cv_lib_spf2__lintl_SPF_server_new+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspf2 -lintl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SPF_server_new (); +int +main () +{ +return SPF_server_new (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_spf2__lintl_SPF_server_new=yes +else + ac_cv_lib_spf2__lintl_SPF_server_new=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2__lintl_SPF_server_new" >&5 +$as_echo "$ac_cv_lib_spf2__lintl_SPF_server_new" >&6; } +if test "x$ac_cv_lib_spf2__lintl_SPF_server_new" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" $withval/lib/libspf2.a -lintl" + +$as_echo "@%:@define HAVE_SPF2 /**/" >>confdefs.h + + +else + echo "static library libspf2.a not found, check config.log for details" + echo "Remove --with-libspf2-static to build without SPF support " + echo " or try --with-libspf2 for the shared library" + exit 1; +fi + + +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS + +# Try to configure for libspf2 1.0 +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS + +@%:@ Check whether --with-libspf2_10 was given. +if test "${with_libspf2_10+set}" = set; then : + withval=$with_libspf2_10; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + CFLAGS=$CFLAGS" -I$withval/include" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_create_config in -lspf2" >&5 +$as_echo_n "checking for SPF_create_config in -lspf2... " >&6; } +if test "${ac_cv_lib_spf2_SPF_create_config+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspf2 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SPF_create_config (); +int +main () +{ +return SPF_create_config (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_spf2_SPF_create_config=yes +else + ac_cv_lib_spf2_SPF_create_config=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2_SPF_create_config" >&5 +$as_echo "$ac_cv_lib_spf2_SPF_create_config" >&6; } +if test "x$ac_cv_lib_spf2_SPF_create_config" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" -lspf2" + +$as_echo "@%:@define HAVE_SPF2_10 /**/" >>confdefs.h + + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_create_config in -lspf2 -lintl" >&5 +$as_echo_n "checking for SPF_create_config in -lspf2 -lintl... " >&6; } +if test "${ac_cv_lib_spf2__lintl_SPF_create_config+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspf2 -lintl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SPF_create_config (); +int +main () +{ +return SPF_create_config (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_spf2__lintl_SPF_create_config=yes +else + ac_cv_lib_spf2__lintl_SPF_create_config=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2__lintl_SPF_create_config" >&5 +$as_echo "$ac_cv_lib_spf2__lintl_SPF_create_config" >&6; } +if test "x$ac_cv_lib_spf2__lintl_SPF_create_config" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" -lspf2 -lintl" + +$as_echo "@%:@define HAVE_SPF2_10 /**/" >>confdefs.h + + +else + echo "libspf2 1.0 not found, check config.log for details" + echo "Remove --with-libspf2_10 to build without SPF support" + exit 1; +fi + + +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS + +# Try to configure for libspf_alt +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS + +@%:@ Check whether --with-libspf_alt was given. +if test "${with_libspf_alt+set}" = set; then : + withval=$with_libspf_alt; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + CFLAGS=$CFLAGS" -I$withval/include" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_create_config in -lspf_alt" >&5 +$as_echo_n "checking for SPF_create_config in -lspf_alt... " >&6; } +if test "${ac_cv_lib_spf_alt_SPF_create_config+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspf_alt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SPF_create_config (); +int +main () +{ +return SPF_create_config (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_spf_alt_SPF_create_config=yes +else + ac_cv_lib_spf_alt_SPF_create_config=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf_alt_SPF_create_config" >&5 +$as_echo "$ac_cv_lib_spf_alt_SPF_create_config" >&6; } +if test "x$ac_cv_lib_spf_alt_SPF_create_config" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" -lspf_alt" + +$as_echo "@%:@define HAVE_SPF_ALT /**/" >>confdefs.h + + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_create_config in -lspf_alt -lintl" >&5 +$as_echo_n "checking for SPF_create_config in -lspf_alt -lintl... " >&6; } +if test "${ac_cv_lib_spf_alt__lintl_SPF_create_config+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspf_alt -lintl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SPF_create_config (); +int +main () +{ +return SPF_create_config (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_spf_alt__lintl_SPF_create_config=yes +else + ac_cv_lib_spf_alt__lintl_SPF_create_config=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf_alt__lintl_SPF_create_config" >&5 +$as_echo "$ac_cv_lib_spf_alt__lintl_SPF_create_config" >&6; } +if test "x$ac_cv_lib_spf_alt__lintl_SPF_create_config" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" -lspf_alt -lintl" + +$as_echo "@%:@define HAVE_SPF_ALT /**/" >>confdefs.h + + +else + echo "libspf_alt not found, check config.log for details" + echo "Remove --with-libspf_alt to build without SPF support" + exit 1; +fi + + +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS + +# Try to configure for libspf +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS + +@%:@ Check whether --with-libspf was given. +if test "${with_libspf+set}" = set; then : + withval=$with_libspf; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + CFLAGS=$CFLAGS" -I$withval/include" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_init in -lspf" >&5 +$as_echo_n "checking for SPF_init in -lspf... " >&6; } +if test "${ac_cv_lib_spf_SPF_init+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lspf $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SPF_init (); +int +main () +{ +return SPF_init (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_spf_SPF_init=yes +else + ac_cv_lib_spf_SPF_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf_SPF_init" >&5 +$as_echo "$ac_cv_lib_spf_SPF_init" >&6; } +if test "x$ac_cv_lib_spf_SPF_init" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" -lspf" + +$as_echo "@%:@define HAVE_SPF /**/" >>confdefs.h + + +else + echo "libspf not found, check config.log for details" + echo "Remove --with-libspf to build without SPF support" + exit 1; +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS + +# Try to configure for libdkim +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS + +@%:@ Check whether --with-libdkim was given. +if test "${with_libdkim+set}" = set; then : + withval=$with_libdkim; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + CFLAGS=$CFLAGS" -I$withval/include" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkim_init in -ldkim -lcrypto" >&5 +$as_echo_n "checking for dkim_init in -ldkim -lcrypto... " >&6; } +if test "${ac_cv_lib_dkim__lcrypto_dkim_init+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldkim -lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dkim_init (); +int +main () +{ +return dkim_init (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dkim__lcrypto_dkim_init=yes +else + ac_cv_lib_dkim__lcrypto_dkim_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dkim__lcrypto_dkim_init" >&5 +$as_echo "$ac_cv_lib_dkim__lcrypto_dkim_init" >&6; } +if test "x$ac_cv_lib_dkim__lcrypto_dkim_init" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" -ldkim -lcrypto" + +$as_echo "@%:@define USE_DKIM /**/" >>confdefs.h + + +else + echo "libdkim not found, check config.log for details" + echo "Remove --with-dkim to build without DKIM support" + exit 1; +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS + +# Try to configure for libopendkim +SAVEDLDFLAGS=$LDFLAGS +SAVEDCFLAGS=$CFLAGS + +@%:@ Check whether --with-libopendkim was given. +if test "${with_libopendkim+set}" = set; then : + withval=$with_libopendkim; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + dkim_include="" + for dir in include include/dkim include/opendkim ; do + test -f $withval/$dir/dkim.h && dkim_include=$dir + done + CFLAGS=$CFLAGS" -I$withval/$dkim_include" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkim_init in -lopendkim -lcrypto" >&5 +$as_echo_n "checking for dkim_init in -lopendkim -lcrypto... " >&6; } +if test "${ac_cv_lib_opendkim__lcrypto_dkim_init+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lopendkim -lcrypto $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dkim_init (); +int +main () +{ +return dkim_init (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_opendkim__lcrypto_dkim_init=yes +else + ac_cv_lib_opendkim__lcrypto_dkim_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opendkim__lcrypto_dkim_init" >&5 +$as_echo "$ac_cv_lib_opendkim__lcrypto_dkim_init" >&6; } +if test "x$ac_cv_lib_opendkim__lcrypto_dkim_init" = x""yes; then : + + SAVEDLDFLAGS=$LDFLAGS + SAVEDCFLAGS=$CFLAGS + LIBS=$LIBS" -lopendkim -lcrypto" + +$as_echo "@%:@define USE_DKIM /**/" >>confdefs.h + + +else + echo "libopendkim not found, check config.log for details" + echo "Remove --with-opendkim to build without DKIM support" + exit 1; +fi + + +fi + +LDFLAGS=$SAVEDLDFLAGS +CFLAGS=$SAVEDCFLAGS + +# NOTE: Sun CCS make insists on a space "-j 1" instead of "-j1" ok for gmake. +@%:@ Check whether --enable-parallel-make was given. +if test "${enable_parallel_make+set}" = set; then : + enableval=$enable_parallel_make; if test "x${enable_parallel_make}" = "xyes" ; then + MAKE_J1="-j 1" + + else + MAKE_J1="" + + fi + +else + MAKE_J1="-j 1" + +fi + + +@%:@ Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : + enableval=$enable_rpath; if test x$enableval = xno; then + LDFLAGS=$NORPSAVEDLDFLAGS + fi +fi + + +# Check for socket functions linking. On Solaris, -lsocket -lnsl is required +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 +$as_echo_n "checking for socket in -lsocket... " >&6; } +if test "${ac_cv_lib_socket_socket+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_socket=yes +else + ac_cv_lib_socket_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 +$as_echo "$ac_cv_lib_socket_socket" >&6; } +if test "x$ac_cv_lib_socket_socket" = x""yes; then : + LIBS="$LIBS -lsocket" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket -lnsl" >&5 +$as_echo_n "checking for socket in -lsocket -lnsl... " >&6; } +if test "${ac_cv_lib_socket__lnsl_socket+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket -lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket__lnsl_socket=yes +else + ac_cv_lib_socket__lnsl_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket__lnsl_socket" >&5 +$as_echo "$ac_cv_lib_socket__lnsl_socket" >&6; } +if test "x$ac_cv_lib_socket__lnsl_socket" = x""yes; then : + LIBS="$LIBS -lsocket -lnsl" +fi + + +fi + + +# Check for inet_aton (libmilter uses it). On solaris, -lresolv is required +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 +$as_echo_n "checking for inet_aton in -lresolv... " >&6; } +if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_aton (); +int +main () +{ +return inet_aton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_inet_aton=yes +else + ac_cv_lib_resolv_inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 +$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } +if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then : + LIBS="$LIBS -lresolv" +fi + + +# Check for inet_pton (libmilter uses it). On solaris, -lnsl is required +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lnsl" >&5 +$as_echo_n "checking for inet_pton in -lnsl... " >&6; } +if test "${ac_cv_lib_nsl_inet_pton+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char inet_pton (); +int +main () +{ +return inet_pton (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_inet_pton=yes +else + ac_cv_lib_nsl_inet_pton=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_pton" >&5 +$as_echo "$ac_cv_lib_nsl_inet_pton" >&6; } +if test "x$ac_cv_lib_nsl_inet_pton" = x""yes; then : + LIBS="$LIBS -lnsl" +fi + + +# Check if we have res_ninit() +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ninit" >&5 +$as_echo_n "checking for res_ninit... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + #include + +int +main () +{ + + struct __res_state res; + res_ninit(&res); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + +$as_echo "@%:@define HAVE_RES_NINIT 1" >>confdefs.h + res_ninit=yes +else + res_ninit=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_ninit" >&5 +$as_echo "$res_ninit" >&6; } + +# Check if we have res_ndestroy() +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5 +$as_echo_n "checking for res_ndestroy... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + #include + +int +main () +{ + + struct __res_state res; + res_ndestroy(&res); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + +$as_echo "@%:@define HAVE_RES_NDESTROY 1" >>confdefs.h + res_ndestroy=yes +else + res_ndestroy=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_ndestroy" >&5 +$as_echo "$res_ndestroy" >&6; } + +# Check if we have res_nupdate() +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nupdate" >&5 +$as_echo_n "checking for res_nupdate... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + #include + #include + +int +main () +{ + + struct __res_state res; + ns_updrec updrec; + res_nupdate(&res, &updrec, NULL); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + +$as_echo "@%:@define HAVE_RES_NUPDATE 1" >>confdefs.h + + +$as_echo "@%:@define USE_NSUPDATE 1" >>confdefs.h + + res_nupdate=yes +else + res_nupdate=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_nupdate" >&5 +$as_echo "$res_nupdate" >&6; } + +# Check for getaddrinfo and getnameinfo + + + + +ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" +if test "x$ac_cv_func_getaddrinfo" = x""yes; then : + ac_cv_lib_socket_getaddrinfo=no + ac_cv_lib_inet6_getaddrinfo=no + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5 +$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; } +if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char getaddrinfo (); +int +main () +{ +return getaddrinfo (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_getaddrinfo=yes +else + ac_cv_lib_socket_getaddrinfo=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5 +$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; } +if test "x$ac_cv_lib_socket_getaddrinfo" = x""yes; then : + LIBS="$LIBS -lsocket" + ac_cv_lib_inet6_getaddrinfo=no + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5 +$as_echo_n "checking whether your system has IPv6 directory... " >&6; } + if test "${ipv6_cv_dir+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do + if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then + break + fi + done +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5 +$as_echo "$ipv6_cv_dir" >&6; } + if test $ipv6_cv_dir = no; then + ac_cv_lib_inet6_getaddrinfo=no + else + if test x$ipv6_libinet6 = x; then + ipv6_libinet6=no + SAVELDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5 +$as_echo_n "checking for getaddrinfo in -linet6... " >&6; } +if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linet6 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char getaddrinfo (); +int +main () +{ +return getaddrinfo (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_inet6_getaddrinfo=yes +else + ac_cv_lib_inet6_getaddrinfo=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5 +$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; } +if test "x$ac_cv_lib_inet6_getaddrinfo" = x""yes; then : + if test $ipv6_libinet6 = no; then + ipv6_libinet6=yes + LIBS="$LIBS -linet6" + fi +fi + if test $ipv6_libinet6 = no; then + LDFLAGS="$SAVELDFLAGS" + fi + fi +fi + +fi +ipv6_cv_getaddrinfo=no +if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \ + -o $ac_cv_lib_inet6_getaddrinfo = yes +then + ipv6_cv_getaddrinfo=yes +fi +if test $ipv6_cv_getaddrinfo = no; then + if test getaddrinfo = getaddrinfo; then + for ipv6_cv_pfx in o n; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then : + as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + +fi + +fi +rm -f conftest* + + if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then + ipv6_cv_getaddrinfo=yes + break + fi + done + fi +fi +if test $ipv6_cv_getaddrinfo = yes; then + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GETADDRINFO 1 +_ACEOF + + : +else + : +fi + + +ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" +if test "x$ac_cv_func_getnameinfo" = x""yes; then : + ac_cv_lib_socket_getnameinfo=no + ac_cv_lib_inet6_getnameinfo=no + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5 +$as_echo_n "checking for getnameinfo in -lsocket... " >&6; } +if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char getnameinfo (); +int +main () +{ +return getnameinfo (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_getnameinfo=yes +else + ac_cv_lib_socket_getnameinfo=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5 +$as_echo "$ac_cv_lib_socket_getnameinfo" >&6; } +if test "x$ac_cv_lib_socket_getnameinfo" = x""yes; then : + LIBS="$LIBS -lsocket" + ac_cv_lib_inet6_getnameinfo=no + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5 +$as_echo_n "checking whether your system has IPv6 directory... " >&6; } + if test "${ipv6_cv_dir+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do + if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then + break + fi + done +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5 +$as_echo "$ipv6_cv_dir" >&6; } + if test $ipv6_cv_dir = no; then + ac_cv_lib_inet6_getnameinfo=no + else + if test x$ipv6_libinet6 = x; then + ipv6_libinet6=no + SAVELDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5 +$as_echo_n "checking for getnameinfo in -linet6... " >&6; } +if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linet6 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char getnameinfo (); +int +main () +{ +return getnameinfo (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_inet6_getnameinfo=yes +else + ac_cv_lib_inet6_getnameinfo=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5 +$as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; } +if test "x$ac_cv_lib_inet6_getnameinfo" = x""yes; then : + if test $ipv6_libinet6 = no; then + ipv6_libinet6=yes + LIBS="$LIBS -linet6" + fi +fi + if test $ipv6_libinet6 = no; then + LDFLAGS="$SAVELDFLAGS" + fi + fi +fi + +fi +ipv6_cv_getnameinfo=no +if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \ + -o $ac_cv_lib_inet6_getnameinfo = yes +then + ipv6_cv_getnameinfo=yes +fi +if test $ipv6_cv_getnameinfo = no; then + if test getnameinfo = getaddrinfo; then + for ipv6_cv_pfx in o n; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then : + as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + +fi + +fi +rm -f conftest* + + if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then + ipv6_cv_getnameinfo=yes + break + fi + done + fi +fi +if test $ipv6_cv_getnameinfo = yes; then + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_GETNAMEINFO 1 +_ACEOF + + : +else + : +fi + +# Check if defines timeradd (and timersub) +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if defines timeradd" >&5 +$as_echo_n "checking if defines timeradd... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #if HAVE_TIME_H + #include + #endif + #ifdef HAVE_SYS_TIME_H + #include + #endif + +int +main () +{ + + #ifndef timeradd + error timeradd undefined + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + timeradd=yes +else + +$as_echo "@%:@define HAVE_MISSING_TIMERADD /**/" >>confdefs.h + timeradd=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeradd" >&5 +$as_echo "$timeradd" >&6; } + +# Check if -D_REENTRANT is needed for localtime_r, gmtime_r, strtok_r +SAVEDCFLAGS=$CFLAGS +CFLAGS=$CFLAGS$efl +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -D_REENTRANT is needed to use localtime_r and strtok_r" >&5 +$as_echo_n "checking if -D_REENTRANT is needed to use localtime_r and strtok_r... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + +int +main () +{ + + + (void)localtime_r(NULL, NULL); + (void)strtok_r(NULL, NULL, NULL); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + dreentrant=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _REENTRANT + #include + #include + #include + +int +main () +{ + + (void)localtime_r(NULL, NULL); + (void)strtok_r(NULL, NULL, NULL); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + SAVEDCFLAGS=$SAVEDCFLAGS" -D_REENTRANT"; + dreentrant=yes +else + dreentrant=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dreentrant" >&5 +$as_echo "$dreentrant" >&6; } +CFLAGS=$SAVEDCFLAGS + +# Check if -D__EXTENSIONS__ is needed for snprintf, getopt, seteuid... +SAVEDCFLAGS=$CFLAGS +CFLAGS=$CFLAGS$efl +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -D__EXTENSIONS__ is needed to use snprintf" >&5 +$as_echo_n "checking if -D__EXTENSIONS__ is needed to use snprintf... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + char dst[16 + 1]; + + snprintf(dst, 16, "test"); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + dextensions=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define __EXTENSIONS__ + #include + +int +main () +{ + + char dst[16 + 1]; + + snprintf(dst, 16, "test"); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + SAVEDCFLAGS=$SAVEDCFLAGS" -D__EXTENSIONS__"; + dextensions=yes +else + dextensions=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dextensions" >&5 +$as_echo "$dextensions" >&6; } +CFLAGS=$SAVEDCFLAGS + +# Solaris 256 streams limitation workaround +@%:@ Check whether --enable-stdio-hack was given. +if test "${enable_stdio_hack+set}" = set; then : + enableval=$enable_stdio_hack; CFLAGS=$CFLAGS" -DUSE_FD_POOL" +fi + + +# Check for DRAC +@%:@ Check whether --enable-drac was given. +if test "${enable_drac+set}" = set; then : + enableval=$enable_drac; if test x$enableval = xyes; then CFLAGS=$CFLAGS" -DUSE_DRAC"; fi +fi + +@%:@ Check whether --enable-p0f was given. +if test "${enable_p0f+set}" = set; then : + enableval=$enable_p0f; if test x$enableval = xyes; then CFLAGS=$CFLAGS" -DUSE_P0F"; fi +fi + +@%:@ Check whether --enable-p0f3 was given. +if test "${enable_p0f3+set}" = set; then : + enableval=$enable_p0f3; if test x$enableval = xyes; then + CFLAGS=$CFLAGS" -DUSE_P0F -DHAVE_P0F3"; fi +fi + +@%:@ Check whether --enable-p0f306 was given. +if test "${enable_p0f306+set}" = set; then : + enableval=$enable_p0f306; if test x$enableval = xyes; then + CFLAGS=$CFLAGS" -DUSE_P0F -DHAVE_P0F3 -DHAVE_P0F306"; fi +fi + + +@%:@ Check whether --with-p0f-src was given. +if test "${with_p0f_src+set}" = set; then : + withval=$with_p0f_src; CFLAGS=$CFLAGS" -I$withval -DP0F_QUERY_FROM_P0F_DIST" +fi + + +# Check for SpamAssassin +@%:@ Check whether --enable-spamassassin was given. +if test "${enable_spamassassin+set}" = set; then : + enableval=$enable_spamassassin; if test x$enableval = xyes; then CFLAGS=$CFLAGS" -DUSE_SPAMD"; fi +fi + + +# Check for libmilter. For sendmail-8.12.1, -lsm is required too. +# This uses a gross hack on the second AC_CHECK_LIB first argument, but using +# [-lsm] in the optionnal 5th argument does not seems to help at all. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smfi_register in -lmilter" >&5 +$as_echo_n "checking for smfi_register in -lmilter... " >&6; } +if test "${ac_cv_lib_milter_smfi_register+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmilter $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char smfi_register (); +int +main () +{ +return smfi_register (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_milter_smfi_register=yes +else + ac_cv_lib_milter_smfi_register=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter_smfi_register" >&5 +$as_echo "$ac_cv_lib_milter_smfi_register" >&6; } +if test "x$ac_cv_lib_milter_smfi_register" = x""yes; then : + LIBS="$LIBS -lmilter" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smfi_register in -lmilter -lsm" >&5 +$as_echo_n "checking for smfi_register in -lmilter -lsm... " >&6; } +if test "${ac_cv_lib_milter__lsm_smfi_register+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmilter -lsm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char smfi_register (); +int +main () +{ +return smfi_register (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_milter__lsm_smfi_register=yes +else + ac_cv_lib_milter__lsm_smfi_register=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter__lsm_smfi_register" >&5 +$as_echo "$ac_cv_lib_milter__lsm_smfi_register" >&6; } +if test "x$ac_cv_lib_milter__lsm_smfi_register" = x""yes; then : + LIBS="$LIBS -lmilter -lsm" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smfi_register in -lmilter -lsmutil" >&5 +$as_echo_n "checking for smfi_register in -lmilter -lsmutil... " >&6; } +if test "${ac_cv_lib_milter__lsmutil_smfi_register+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmilter -lsmutil $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char smfi_register (); +int +main () +{ +return smfi_register (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_milter__lsmutil_smfi_register=yes +else + ac_cv_lib_milter__lsmutil_smfi_register=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter__lsmutil_smfi_register" >&5 +$as_echo "$ac_cv_lib_milter__lsmutil_smfi_register" >&6; } +if test "x$ac_cv_lib_milter__lsmutil_smfi_register" = x""yes; then : + LIBS="$LIBS -lmilter -lsmutil" +else + echo "Required libmilter not found. Use --with-libmilter"; + exit 1; +fi + + +fi + + +fi + + +ac_fn_c_check_member "$LINENO" "struct smfiDesc" "xxfi_data" "ac_cv_member_struct_smfiDesc_xxfi_data" "#include +" +if test "x$ac_cv_member_struct_smfiDesc_xxfi_data" = x""yes; then : + CFLAGS=$CFLAGS" -DHAVE_DATA_CALLBACK" +fi + + +# Check if -lpthreads is needed after -lmilter +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lpthread is needed after -lmilter" >&5 +$as_echo_n "checking if -lpthread is needed after -lmilter... " >&6; } +SAVEDLIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + +int +main () +{ + + pthread_self(); + smfi_main(); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + pthend=no +else + LIBS=$LIBS" -lpthread"; + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + +int +main () +{ + + pthread_self(); + smfi_main(); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + pthend=yes; SAVEDLIBS=$LIBS +else + pthend=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +LIBS=$SAVEDLIBS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthend" >&5 +$as_echo "$pthend" >&6; } + +# Solaris 8 has no at all - headers checked above +# Some Linux flavors have an outdated +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if is outdated" >&5 +$as_echo_n "checking if is outdated... " >&6; } +oldqueue=no +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + #ifndef TAILQ_FIRST + error Your is outdated + #endif + #ifndef SIMPLEQ_REMOVE + error Your is outdated + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + oldqueue=no +else + +$as_echo "@%:@define HAVE_OLD_QUEUE_H /**/" >>confdefs.h + oldqueue=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $oldqueue" >&5 +$as_echo "$oldqueue" >&6; } + +# Darwin is unable to define two __RCSID in the same file +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __RCSID can be used twice in the same source" >&5 +$as_echo_n "checking if __RCSID can be used twice in the same source... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifdef __RCSID + __RCSID("Id1"); + __RCSID("Id2"); + #endif + +int +main () +{ + + /* nothing */ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rcsidtwice=yes +else + +$as_echo "@%:@define HAVE_BROKEN_RCSID /**/" >>confdefs.h + rcsidtwice=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rcsidtwice" >&5 +$as_echo "$rcsidtwice" >&6; } + +# Digital UNIX's native compiler require -pthread when using libpthread +# It also require -D_XOPEN_SOURCE=500 for various reasons I have not +# been abe to isolate. Let's define both there. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wants -pthread" >&5 +$as_echo_n "checking whether wants -pthread... " >&6; } +SAVEDCFLAGS=$CFLAGS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + pthreadfl=no +else + CFLAGS=$CFLAGS" -pthread -D_XOPEN_SOURCE=500"; + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + pthreadfl=yes; SAVEDCFLAGS=$CFLAGS +else + pthreadfl=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +CFLAGS=$SAVEDCFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthreadfl" >&5 +$as_echo "$pthreadfl" >&6; } + +# Linux requires -D_XOPEN_SOURCE=500 to build with libpthread and -Wall +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you need -D_XOPEN_SOURCE to use libpthread" >&5 +$as_echo_n "checking whether you need -D_XOPEN_SOURCE to use libpthread... " >&6; } +xopen=no +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + +int +main () +{ + + pthread_rwlock_t lock; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + xopen=no +else + CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"; xopen=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xopen" >&5 +$as_echo "$xopen" >&6; } + +# Tru64 Unix needs -D_OSF_SOURCE for IPV6 support +SAVEDCFLAGS=$CFLAGS +CFLAGS=$CFLAGS" -D_XOPEN_SOURCE=500 -D_BSD_SOURCE" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -D_OSF_SOURCE is needed for IPV6 support" >&5 +$as_echo_n "checking if -D_OSF_SOURCE is needed for IPV6 support... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + +int +main () +{ + + #ifdef AF_INET6 + struct in6_addr s; + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + dosfsource=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _OSF_SOURCE + #include + #include + +int +main () +{ + + #ifdef AF_INET6 + struct in6_addr s; + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + SAVEDCFLAGS=$SAVEDCFLAGS" -D_OSF_SOURCE"; + dosfsource=yes +else + dosfsource=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dosfsource" >&5 +$as_echo "$dosfsource" >&6; } +CFLAGS=$SAVEDCFLAGS + +# Linux does not have a sa_len field in sockaddr +ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " + #include + #include + +" +if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : + +$as_echo "@%:@define HAVE_SA_LEN /**/" >>confdefs.h + +fi + + +# Pre-RFC2553 system does not have a sin6_scope_id field in sockaddr_in6 +ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " + #include + #include + #include + +" +if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then : + +$as_echo "@%:@define HAVE_SIN6_SCOPE_ID 1" >>confdefs.h + +fi + + +# Darwin seems to have no definition for socklen_t beyond _BSD_SOCKLEN_T_ +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is missing" >&5 +$as_echo_n "checking if socklen_t is missing... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + +int +main () +{ + + socklen_t slen; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + socklen=no +else + +$as_echo "@%:@define HAVE_MISSING_SOCKLEN_T /**/" >>confdefs.h + socklen=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $socklen" >&5 +$as_echo "$socklen" >&6; } + +# GNU pth-2.0.0 has a bug with rwlock. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken rwlock in libpthread" >&5 +$as_echo_n "checking for broken rwlock in libpthread... " >&6; } +brokenpth=yes +if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run test program while cross compiling +See \`config.log' for more details." "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #if STDC_HEADERS + # include + #else + # ifdef __cplusplus + extern "C" void exit (int); + # else + void exit (int); + # endif + #endif + + #if HAVE_SYS_TIME_H + # include + #else + struct timeval { + long tv_sec; + long tv_usec; + }; + #endif + + #if HAVE_SYS_TYPES_H + # include + #else + #endif + + #if HAVE_UNISTD_H + # include + #else + # ifdef __cplusplus + extern "C" unsigned int exit (unsigned int); + extern "C" int + select(int, void *, void *, void *, struct timeval *); + # else + unsigned int exit (unsigned int); + int select(int, void *, void *, void *, struct timeval *); + # endif + #endif + + #include + pthread_rwlock_t lock; + + #ifdef __cplusplus + extern "C" void testfunc (void *); + extern "C" void yield(void); + #else + void testfunc(); + void yeild(void); + #endif + + /* + * On some Linux flavors, using sleep(3) instead + * of select causes an infinite hang. + */ + void yield (void) + { + struct timeval tv; + + tv.tv_sec = 1; + tv.tv_usec = 0; + if (select(0, NULL, NULL, NULL, &tv) != 0) + exit(EXIT_FAILURE); + return; + } + + #ifdef __cplusplus + void testfunc (void *dontcare) + #else + void testfunc (dontcare) void *dontcare; + #endif + { + if (pthread_rwlock_rdlock(&lock) != 0) + exit(EXIT_FAILURE); + yield(); + if (pthread_rwlock_unlock(&lock) != 0) + exit(EXIT_FAILURE); + return; + } + +int +main () +{ + + pthread_t tid; + + if (pthread_rwlock_init(&lock, NULL) != 0) + exit(EXIT_FAILURE); + if (pthread_create(&tid, NULL, (void *)testfunc, NULL) != 0) + exit(EXIT_FAILURE); + if (pthread_rwlock_rdlock(&lock) != 0) + exit(EXIT_FAILURE); + yield(); + if (pthread_rwlock_unlock(&lock) != 0) + exit(EXIT_FAILURE); + if (pthread_join(tid, NULL) != 0) + exit(EXIT_FAILURE); + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + brokenpth=no +else + +$as_echo "@%:@define HAVE_BROKEN_RWLOCK /**/" >>confdefs.h + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $brokenpth" >&5 +$as_echo "$brokenpth" >&6; } + +# Check is DNS resolver is re-entrant + +@%:@ Check whether --with-thread-safe-resolver was given. +if test "${with_thread_safe_resolver+set}" = set; then : + withval=$with_thread_safe_resolver; rdns=yes +else + + SAVEDCFLAGS=$CFLAGS + CFLAGS=$CFLAGS$efl + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DNS resolver is re-entrant" >&5 +$as_echo_n "checking if DNS resolver is re-entrant... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _BSD_SOURCE + + #include + #include + #include + #include + #include + +int +main () +{ + + struct __res_state res; + + res_ninit(&res); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + rdns=yes +else + rdns=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rdns" >&5 +$as_echo "$rdns" >&6; } + CFLAGS=$SAVEDCFLAGS + +fi + + +# Check for DNSRBL +@%:@ Check whether --enable-dnsrbl was given. +if test "${enable_dnsrbl+set}" = set; then : + enableval=$enable_dnsrbl; if test x$rdns = xyes; then + SAVEDCFLAGS=$CFLAGS" -DUSE_DNSRBL" + # For Debian + CFLAGS= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + int result = ns_initparse(NULL, 0, NULL); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ns_initparse in -lresolv" >&5 +$as_echo_n "checking for ns_initparse in -lresolv... " >&6; } +if test "${ac_cv_lib_resolv_ns_initparse+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ns_initparse (); +int +main () +{ +return ns_initparse (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_ns_initparse=yes +else + ac_cv_lib_resolv_ns_initparse=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_ns_initparse" >&5 +$as_echo "$ac_cv_lib_resolv_ns_initparse" >&6; } +if test "x$ac_cv_lib_resolv_ns_initparse" = x""yes; then : + LIBS="$LIBS -lresolv" +else + + if test -r ${libdir}/libresolv.a; then + LIBS="$LIBS ${libdir}/libresolv.a" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ns_initparse not found" >&5 +$as_echo "$as_me: WARNING: ns_initparse not found" >&2;} + fi + +fi + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS=$SAVEDCFLAGS + else + echo "--enable-dnsrbl used but DNS resolver is not thread safe"; + echo "Try installing BIND9 and using --with-libbind, or if you"; + echo "know what you are doing, use --with-thread-safe-resolver"; + exit 1; + fi + +fi + + +# Check for MX +@%:@ Check whether --enable-mx was given. +if test "${enable_mx+set}" = set; then : + enableval=$enable_mx; if test x$rdns = xyes; then + SAVEDCFLAGS=$CFLAGS" -DUSE_MX" + # For Debian + CFLAGS= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + int result = ns_initparse(NULL, 0, NULL); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ns_initparse in -lresolv" >&5 +$as_echo_n "checking for ns_initparse in -lresolv... " >&6; } +if test "${ac_cv_lib_resolv_ns_initparse+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char ns_initparse (); +int +main () +{ +return ns_initparse (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_resolv_ns_initparse=yes +else + ac_cv_lib_resolv_ns_initparse=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_ns_initparse" >&5 +$as_echo "$ac_cv_lib_resolv_ns_initparse" >&6; } +if test "x$ac_cv_lib_resolv_ns_initparse" = x""yes; then : + LIBS="$LIBS -lresolv" +else + + if test -r ${libdir}/libresolv.a; then + LIBS="$LIBS ${libdir}/libresolv.a" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ns_initparse not found" >&5 +$as_echo "$as_me: WARNING: ns_initparse not found" >&2;} + fi + +fi + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS=$SAVEDCFLAGS + else + echo "--enable-mx defined, but DNS resolver is not thread safe"; + echo "Try installing BIND9 and using --with-libbind, or if you"; + echo "know what you are doing, use --with-thread-safe-resolver"; + exit 1; + fi + +fi + + +# We enable some features for Postfix +@%:@ Check whether --enable-postfix was given. +if test "${enable_postfix+set}" = set; then : + enableval=$enable_postfix; if test x$enableval = xyes; then + CFLAGS=$CFLAGS" -DUSE_POSTFIX" + fi + +fi + + +# Record the build environnement for milter-greylist -r + +cat >>confdefs.h <<_ACEOF +@%:@define BUILD_ENV "`logname`@`uname -n`:`pwd` `date`" +_ACEOF + + +# Options + +@%:@ Check whether --with-user was given. +if test "${with_user+set}" = set; then : + withval=$with_user; USER=$withval + +else + USER=root + +fi + + +CONFFILE="\${SYSCONFDIR}/mail/greylist.conf" + +@%:@ Check whether --with-conffile was given. +if test "${with_conffile+set}" = set; then : + withval=$with_conffile; CONFFILE="$withval" +fi + + +CFLAGS=$CFLAGS" -DCONFFILE=\\\"\${CONFFILE}\\\"" + +DUMPFILE="\${LOCALSTATEDIR}/milter-greylist/greylist.db" + +@%:@ Check whether --with-dumpfile was given. +if test "${with_dumpfile+set}" = set; then : + withval=$with_dumpfile; DUMPFILE="$withval" +fi + + +CFLAGS=$CFLAGS" -DDUMPFILE=\\\"\${DUMPFILE}\\\"" + + +@%:@ Check whether --with-delay was given. +if test "${with_delay+set}" = set; then : + withval=$with_delay; CFLAGS=$CFLAGS" -DGLDELAY=$withval" +fi + + +@%:@ Check whether --with-timeout was given. +if test "${with_timeout+set}" = set; then : + withval=$with_timeout; CFLAGS=$CFLAGS" -DTIMEOUT=$withval" +fi + + +@%:@ Check whether --with-autowhite was given. +if test "${with_autowhite+set}" = set; then : + withval=$with_autowhite; CFLAGS=$CFLAGS" -DAUTOWHITE_DELAY=$withval" +fi + + +@%:@ Check whether --with-drac-db was given. +if test "${with_drac_db+set}" = set; then : + withval=$with_drac_db; CFLAGS=$CFLAGS" -DDRACDB=\\\"$withval\\\"" +fi + + +ac_config_files="$ac_config_files Makefile milter-greylist.spec" + +cat >confcache <<\_ACEOF +# 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, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# 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. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + test "x$cache_file" != "x/dev/null" && + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + +: ${CONFIG_STATUS=./config.status} +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error ERROR [LINENO LOG_FD] +@%:@ --------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with status @S|@?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in @%:@( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by milter-greylist $as_me 4.6.4, which was +generated by GNU Autoconf 2.65. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +milter-greylist config.status 4.6.4 +configured by $0, generated by GNU Autoconf 2.65, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2009 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "milter-greylist.spec") CONFIG_FILES="$CONFIG_FILES milter-greylist.spec" ;; + + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || as_fn_error "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_t=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_t"; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #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. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&2;} + + rm -f "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" + } >"$tmp/config.h" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$tmp/config.h" "$ac_file" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error "could not create -" "$LINENO" 5 + fi + ;; + + + esac + +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit $? +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + diff -Nru milter-greylist-4.6.2/autom4te.cache/requests milter-greylist-4.6.4/autom4te.cache/requests --- milter-greylist-4.6.2/autom4te.cache/requests 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/autom4te.cache/requests 2020-08-28 00:06:44.000000000 +0000 @@ -0,0 +1,67 @@ +# This file was generated. +# It contains the lists of macros which have been traced. +# It can be safely removed. + +@request = ( + bless( [ + '0', + 1, + [ + '/usr/pkg/share/autoconf' + ], + [ + '/usr/pkg/share/autoconf/autoconf/autoconf.m4f', + 'configure.ac' + ], + { + '_LT_AC_TAGCONFIG' => 1, + 'AM_PROG_F77_C_O' => 1, + 'AC_INIT' => 1, + 'm4_pattern_forbid' => 1, + '_AM_COND_IF' => 1, + 'AC_CANONICAL_TARGET' => 1, + 'AC_SUBST' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'AC_FC_SRCEXT' => 1, + 'AC_CANONICAL_HOST' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AC_CONFIG_SUBDIRS' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, + 'AC_CONFIG_LINKS' => 1, + 'm4_sinclude' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + '_m4_warn' => 1, + 'AM_PROG_CXX_C_O' => 1, + '_AM_COND_ENDIF' => 1, + 'AM_ENABLE_MULTILIB' => 1, + 'AM_SILENT_RULES' => 1, + 'AC_CONFIG_FILES' => 1, + 'include' => 1, + 'LT_INIT' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AC_LIBSOURCE' => 1, + 'AM_PROG_FC_C_O' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AC_FC_FREEFORM' => 1, + 'AH_OUTPUT' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'AC_CONFIG_AUX_DIR' => 1, + 'sinclude' => 1, + 'm4_pattern_allow' => 1, + 'AM_PROG_CC_C_O' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + 'AM_CONDITIONAL' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'm4_include' => 1, + '_AM_COND_ELSE' => 1, + 'AC_SUBST_TRACE' => 1 + } + ], 'Autom4te::Request' ) + ); + diff -Nru milter-greylist-4.6.2/autom4te.cache/traces.0 milter-greylist-4.6.4/autom4te.cache/traces.0 --- milter-greylist-4.6.2/autom4te.cache/traces.0 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/autom4te.cache/traces.0 2020-08-28 00:06:44.000000000 +0000 @@ -0,0 +1,604 @@ +m4trace:configure.ac:6: -1- AC_INIT([milter-greylist], [4.6.4], [manu@netbsd.org]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:6: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:6: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:6: -1- AC_SUBST([SHELL]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([SHELL]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:6: -1- AC_SUBST([PATH_SEPARATOR]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_NAME]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_STRING]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([PACKAGE_URL]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:6: -1- AC_SUBST([exec_prefix], [NONE]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([exec_prefix]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:6: -1- AC_SUBST([prefix], [NONE]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([prefix]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:6: -1- AC_SUBST([program_transform_name], [s,x,x,]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([program_transform_name]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:6: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([bindir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:6: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([sbindir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:6: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([libexecdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([datarootdir], ['${prefix}/share']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([datarootdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([datadir], ['${datarootdir}']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([datadir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:6: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([sysconfdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([sharedstatedir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:6: -1- AC_SUBST([localstatedir], ['${prefix}/var']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([localstatedir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:6: -1- AC_SUBST([includedir], ['${prefix}/include']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([includedir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:6: -1- AC_SUBST([oldincludedir], ['/usr/include']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([oldincludedir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:6: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], + ['${datarootdir}/doc/${PACKAGE_TARNAME}'], + ['${datarootdir}/doc/${PACKAGE}'])]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([docdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([infodir], ['${datarootdir}/info']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([infodir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:6: -1- AC_SUBST([htmldir], ['${docdir}']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([htmldir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:6: -1- AC_SUBST([dvidir], ['${docdir}']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([dvidir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:6: -1- AC_SUBST([pdfdir], ['${docdir}']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([pdfdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([psdir], ['${docdir}']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([psdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([libdir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:6: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([localedir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:6: -1- AC_SUBST([mandir], ['${datarootdir}/man']) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([mandir]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ +@%:@undef PACKAGE_NAME]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ +@%:@undef PACKAGE_TARNAME]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ +@%:@undef PACKAGE_VERSION]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ +@%:@undef PACKAGE_STRING]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ +@%:@undef PACKAGE_BUGREPORT]) +m4trace:configure.ac:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:6: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */ +@%:@undef PACKAGE_URL]) +m4trace:configure.ac:6: -1- AC_SUBST([DEFS]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([DEFS]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:6: -1- AC_SUBST([ECHO_C]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([ECHO_C]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:6: -1- AC_SUBST([ECHO_N]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([ECHO_N]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:6: -1- AC_SUBST([ECHO_T]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([ECHO_T]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:6: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:6: -1- AC_SUBST([build_alias]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([build_alias]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:6: -1- AC_SUBST([host_alias]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([host_alias]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:6: -1- AC_SUBST([target_alias]) +m4trace:configure.ac:6: -1- AC_SUBST_TRACE([target_alias]) +m4trace:configure.ac:6: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:8: -1- AC_CONFIG_HEADERS([config.h]) +m4trace:configure.ac:11: -1- AC_SUBST([CC]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:11: -1- AC_SUBST([CFLAGS]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CFLAGS]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:11: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:11: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:11: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:11: -1- AC_SUBST([CC]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:11: -1- AC_SUBST([CC]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:11: -1- AC_SUBST([CC]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:11: -1- AC_SUBST([CC]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:11: -1- AC_SUBST([ac_ct_CC]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([ac_ct_CC]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:11: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([EXEEXT]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:11: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) +m4trace:configure.ac:11: -1- AC_SUBST_TRACE([OBJEXT]) +m4trace:configure.ac:11: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:12: -1- AC_SUBST([LEX]) +m4trace:configure.ac:12: -1- AC_SUBST_TRACE([LEX]) +m4trace:configure.ac:12: -1- m4_pattern_allow([^LEX$]) +m4trace:configure.ac:12: -1- AC_SUBST([LEX_OUTPUT_ROOT], [$ac_cv_prog_lex_root]) +m4trace:configure.ac:12: -1- AC_SUBST_TRACE([LEX_OUTPUT_ROOT]) +m4trace:configure.ac:12: -1- m4_pattern_allow([^LEX_OUTPUT_ROOT$]) +m4trace:configure.ac:12: -1- AC_SUBST([LEXLIB]) +m4trace:configure.ac:12: -1- AC_SUBST_TRACE([LEXLIB]) +m4trace:configure.ac:12: -1- m4_pattern_allow([^LEXLIB$]) +m4trace:configure.ac:12: -1- AC_DEFINE_TRACE_LITERAL([YYTEXT_POINTER]) +m4trace:configure.ac:12: -1- m4_pattern_allow([^YYTEXT_POINTER$]) +m4trace:configure.ac:12: -1- AH_OUTPUT([YYTEXT_POINTER], [/* Define to 1 if `lex\' declares `yytext\' as a `char *\' by default, not a + `char@<:@@:>@\'. */ +@%:@undef YYTEXT_POINTER]) +m4trace:configure.ac:13: -1- AC_SUBST([YACC]) +m4trace:configure.ac:13: -1- AC_SUBST_TRACE([YACC]) +m4trace:configure.ac:13: -1- m4_pattern_allow([^YACC$]) +m4trace:configure.ac:13: -1- AC_SUBST([YACC]) +m4trace:configure.ac:13: -1- AC_SUBST_TRACE([YACC]) +m4trace:configure.ac:13: -1- m4_pattern_allow([^YACC$]) +m4trace:configure.ac:13: -1- AC_SUBST([YFLAGS]) +m4trace:configure.ac:13: -1- AC_SUBST_TRACE([YFLAGS]) +m4trace:configure.ac:13: -1- m4_pattern_allow([^YFLAGS$]) +m4trace:configure.ac:14: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_PROGRAM]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_SCRIPT]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_DATA]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([INSTALL_DATA]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:15: -1- AC_SUBST([MKDEP]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([MKDEP]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^MKDEP$]) +m4trace:configure.ac:16: -1- AC_SUBST([RM]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([RM]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^RM$]) +m4trace:configure.ac:17: -1- AC_SUBST([MV]) +m4trace:configure.ac:17: -1- AC_SUBST_TRACE([MV]) +m4trace:configure.ac:17: -1- m4_pattern_allow([^MV$]) +m4trace:configure.ac:18: -1- AC_SUBST([TEST]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([TEST]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^TEST$]) +m4trace:configure.ac:19: -1- AC_SUBST([SED]) +m4trace:configure.ac:19: -1- AC_SUBST_TRACE([SED]) +m4trace:configure.ac:19: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:20: -1- AC_SUBST([TRUE]) +m4trace:configure.ac:20: -1- AC_SUBST_TRACE([TRUE]) +m4trace:configure.ac:20: -1- m4_pattern_allow([^TRUE$]) +m4trace:configure.ac:21: -1- AC_SUBST([TOUCH]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([TOUCH]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^TOUCH$]) +m4trace:configure.ac:100: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) +m4trace:configure.ac:100: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:100: -1- AH_OUTPUT([PACKAGE_NAME], [/* Packaging metadata: distro source code name */ +@%:@undef PACKAGE_NAME]) +m4trace:configure.ac:105: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) +m4trace:configure.ac:105: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:105: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Packaging metadata: distro source code version */ +@%:@undef PACKAGE_VERSION]) +m4trace:configure.ac:109: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) +m4trace:configure.ac:109: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:109: -1- AH_OUTPUT([PACKAGE_STRING], [/* Packaging metadata: distro source code name+version */ +@%:@undef PACKAGE_STRING]) +m4trace:configure.ac:113: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL]) +m4trace:configure.ac:113: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:113: -1- AH_OUTPUT([PACKAGE_URL], [/* Packaging metadata: distro contact */ +@%:@undef PACKAGE_URL]) +m4trace:configure.ac:117: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) +m4trace:configure.ac:117: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:117: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Packaging metadata: distro contact */ +@%:@undef PACKAGE_BUGREPORT]) +m4trace:configure.ac:120: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION_UPSTREAM]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^PACKAGE_VERSION_UPSTREAM$]) +m4trace:configure.ac:120: -1- AH_OUTPUT([PACKAGE_VERSION_UPSTREAM], [/* Packaging metadata: upstream source code version */ +@%:@undef PACKAGE_VERSION_UPSTREAM]) +m4trace:configure.ac:121: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION_SUFFIX]) +m4trace:configure.ac:121: -1- m4_pattern_allow([^PACKAGE_VERSION_SUFFIX$]) +m4trace:configure.ac:121: -1- AH_OUTPUT([PACKAGE_VERSION_SUFFIX], [/* Packaging metadata: Vendor-specific suffix to version or release */ +@%:@undef PACKAGE_VERSION_SUFFIX]) +m4trace:configure.ac:481: -1- AC_SUBST([CPP]) +m4trace:configure.ac:481: -1- AC_SUBST_TRACE([CPP]) +m4trace:configure.ac:481: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:481: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:481: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:481: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:481: -1- AC_SUBST([CPP]) +m4trace:configure.ac:481: -1- AC_SUBST_TRACE([CPP]) +m4trace:configure.ac:481: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:481: -1- AC_SUBST([GREP]) +m4trace:configure.ac:481: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:481: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:481: -1- AC_SUBST([EGREP]) +m4trace:configure.ac:481: -1- AC_SUBST_TRACE([EGREP]) +m4trace:configure.ac:481: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:481: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) +m4trace:configure.ac:481: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:481: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ +@%:@undef STDC_HEADERS]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_ARPA_INET_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_ARPA_INET_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_FCNTL_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_NETINET_IN_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_NETINET_IN_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDLIB_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRING_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRINGS_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_SYS_SOCKET_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_SOCKET_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_SYS_TIME_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_TIME_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_SYSLOG_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYSLOG_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNISTD_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_SYS_PARAM_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_PARAM_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_NETDB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_NETDB_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_GETOPT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_GETOPT_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_SYS_CDEFS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_CDEFS_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_ARPA_NAMESER_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_ARPA_NAMESER_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_STDBOOL_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDBOOL_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_SYS_QUEUE_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_QUEUE_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_TYPES_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_STAT_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDLIB_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRING_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_MEMORY_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRINGS_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_INTTYPES_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDINT_H]) +m4trace:configure.ac:482: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNISTD_H]) +m4trace:configure.ac:485: -1- AC_DEFINE_TRACE_LITERAL([pid_t]) +m4trace:configure.ac:485: -1- m4_pattern_allow([^pid_t$]) +m4trace:configure.ac:485: -1- AH_OUTPUT([pid_t], [/* Define to `int\' if does not define. */ +@%:@undef pid_t]) +m4trace:configure.ac:486: -1- AC_DEFINE_TRACE_LITERAL([size_t]) +m4trace:configure.ac:486: -1- m4_pattern_allow([^size_t$]) +m4trace:configure.ac:486: -1- AH_OUTPUT([size_t], [/* Define to `unsigned int\' if does not define. */ +@%:@undef size_t]) +m4trace:configure.ac:487: -1- AC_DEFINE_TRACE_LITERAL([TIME_WITH_SYS_TIME]) +m4trace:configure.ac:487: -1- m4_pattern_allow([^TIME_WITH_SYS_TIME$]) +m4trace:configure.ac:487: -1- AH_OUTPUT([TIME_WITH_SYS_TIME], [/* Define to 1 if you can safely include both and . */ +@%:@undef TIME_WITH_SYS_TIME]) +m4trace:configure.ac:490: -1- AC_DEFINE_TRACE_LITERAL([HAVE_RES_STATE]) +m4trace:configure.ac:490: -1- m4_pattern_allow([^HAVE_RES_STATE$]) +m4trace:configure.ac:490: -1- AH_OUTPUT([HAVE_RES_STATE], [/* Define to 1 if the system has the type `res_state\'. */ +@%:@undef HAVE_RES_STATE]) +m4trace:configure.ac:522: -1- _m4_warn([cross], [AC_RUN_IFELSE called without default to allow cross compiling], [../../lib/autoconf/general.m4:2715: AC_RUN_IFELSE is expanded from... +configure.ac:522: the top level]) +m4trace:configure.ac:522: -1- _m4_warn([cross], [AC_RUN_IFELSE called without default to allow cross compiling], [../../lib/autoconf/general.m4:2715: AC_RUN_IFELSE is expanded from... +../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from... +../../lib/autoconf/general.m4:2696: _AC_RUN_IFELSE is expanded from... +../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from... +../../lib/autoconf/general.m4:2715: AC_RUN_IFELSE is expanded from... +configure.ac:522: the top level]) +m4trace:configure.ac:543: -1- AH_OUTPUT([HAVE_VFORK_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_VFORK_H]) +m4trace:configure.ac:543: -1- AC_DEFINE_TRACE_LITERAL([HAVE_VFORK_H]) +m4trace:configure.ac:543: -1- m4_pattern_allow([^HAVE_VFORK_H$]) +m4trace:configure.ac:543: -1- AH_OUTPUT([HAVE_FORK], [/* Define to 1 if you have the `fork\' function. */ +@%:@undef HAVE_FORK]) +m4trace:configure.ac:543: -1- AH_OUTPUT([HAVE_VFORK], [/* Define to 1 if you have the `vfork\' function. */ +@%:@undef HAVE_VFORK]) +m4trace:configure.ac:543: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_VFORK]) +m4trace:configure.ac:543: -1- m4_pattern_allow([^HAVE_WORKING_VFORK$]) +m4trace:configure.ac:543: -1- AH_OUTPUT([HAVE_WORKING_VFORK], [/* Define to 1 if `vfork\' works. */ +@%:@undef HAVE_WORKING_VFORK]) +m4trace:configure.ac:543: -1- AC_DEFINE_TRACE_LITERAL([vfork]) +m4trace:configure.ac:543: -1- m4_pattern_allow([^vfork$]) +m4trace:configure.ac:543: -1- AH_OUTPUT([vfork], [/* Define as `fork\' if `vfork\' does not work. */ +@%:@undef vfork]) +m4trace:configure.ac:543: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_FORK]) +m4trace:configure.ac:543: -1- m4_pattern_allow([^HAVE_WORKING_FORK$]) +m4trace:configure.ac:543: -1- AH_OUTPUT([HAVE_WORKING_FORK], [/* Define to 1 if `fork\' works. */ +@%:@undef HAVE_WORKING_FORK]) +m4trace:configure.ac:544: -1- AH_OUTPUT([HAVE_STRFTIME], [/* Define to 1 if you have the `strftime\' function. */ +@%:@undef HAVE_STRFTIME]) +m4trace:configure.ac:544: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRFTIME]) +m4trace:configure.ac:544: -1- m4_pattern_allow([^HAVE_STRFTIME$]) +m4trace:configure.ac:544: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRFTIME]) +m4trace:configure.ac:544: -1- m4_pattern_allow([^HAVE_STRFTIME$]) +m4trace:configure.ac:545: -1- AC_LIBSOURCE([memcmp.c]) +m4trace:configure.ac:545: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS memcmp.$ac_objext"]) +m4trace:configure.ac:545: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:545: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:546: -1- AH_OUTPUT([HAVE_SYS_SELECT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_SELECT_H]) +m4trace:configure.ac:546: -1- AH_OUTPUT([HAVE_SYS_SOCKET_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_SOCKET_H]) +m4trace:configure.ac:546: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG1]) +m4trace:configure.ac:546: -1- m4_pattern_allow([^SELECT_TYPE_ARG1$]) +m4trace:configure.ac:546: -1- AH_OUTPUT([SELECT_TYPE_ARG1], [/* Define to the type of arg 1 for `select\'. */ +@%:@undef SELECT_TYPE_ARG1]) +m4trace:configure.ac:546: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG234]) +m4trace:configure.ac:546: -1- m4_pattern_allow([^SELECT_TYPE_ARG234$]) +m4trace:configure.ac:546: -1- AH_OUTPUT([SELECT_TYPE_ARG234], [/* Define to the type of args 2, 3 and 4 for `select\'. */ +@%:@undef SELECT_TYPE_ARG234]) +m4trace:configure.ac:546: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG5]) +m4trace:configure.ac:546: -1- m4_pattern_allow([^SELECT_TYPE_ARG5$]) +m4trace:configure.ac:546: -1- AH_OUTPUT([SELECT_TYPE_ARG5], [/* Define to the type of arg 5 for `select\'. */ +@%:@undef SELECT_TYPE_ARG5]) +m4trace:configure.ac:547: -1- _m4_warn([obsolete], [The macro `AC_FUNC_SETVBUF_REVERSED' is obsolete. Remove it and all references to SETVBUF_REVERSED.], [../../lib/autoconf/functions.m4:1691: AC_FUNC_SETVBUF_REVERSED is expanded from... +configure.ac:547: the top level]) +m4trace:configure.ac:548: -1- AC_DEFINE_TRACE_LITERAL([LSTAT_FOLLOWS_SLASHED_SYMLINK]) +m4trace:configure.ac:548: -1- m4_pattern_allow([^LSTAT_FOLLOWS_SLASHED_SYMLINK$]) +m4trace:configure.ac:548: -1- AH_OUTPUT([LSTAT_FOLLOWS_SLASHED_SYMLINK], [/* Define to 1 if `lstat\' dereferences a symlink specified with a trailing + slash. */ +@%:@undef LSTAT_FOLLOWS_SLASHED_SYMLINK]) +m4trace:configure.ac:548: -1- AC_LIBSOURCE([lstat.c]) +m4trace:configure.ac:548: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS lstat.$ac_objext"]) +m4trace:configure.ac:548: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:548: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:548: -1- AC_LIBSOURCE([stat.c]) +m4trace:configure.ac:548: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS stat.$ac_objext"]) +m4trace:configure.ac:548: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:548: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:548: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STAT_EMPTY_STRING_BUG]) +m4trace:configure.ac:548: -1- m4_pattern_allow([^HAVE_STAT_EMPTY_STRING_BUG$]) +m4trace:configure.ac:548: -1- AH_OUTPUT([HAVE_STAT_EMPTY_STRING_BUG], [/* Define to 1 if `stat\' has the bug that it succeeds when given the + zero-length file name argument. */ +@%:@undef HAVE_STAT_EMPTY_STRING_BUG]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_BZERO], [/* Define to 1 if you have the `bzero\' function. */ +@%:@undef HAVE_BZERO]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_GETTIMEOFDAY], [/* Define to 1 if you have the `gettimeofday\' function. */ +@%:@undef HAVE_GETTIMEOFDAY]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_MALLOC], [/* Define to 1 if you have the `malloc\' function. */ +@%:@undef HAVE_MALLOC]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_INET_NTOA], [/* Define to 1 if you have the `inet_ntoa\' function. */ +@%:@undef HAVE_INET_NTOA]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_STRERROR], [/* Define to 1 if you have the `strerror\' function. */ +@%:@undef HAVE_STRERROR]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_SELECT], [/* Define to 1 if you have the `select\' function. */ +@%:@undef HAVE_SELECT]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_SOCKET], [/* Define to 1 if you have the `socket\' function. */ +@%:@undef HAVE_SOCKET]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_INITGROUPS], [/* Define to 1 if you have the `initgroups\' function. */ +@%:@undef HAVE_INITGROUPS]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_STRLCAT], [/* Define to 1 if you have the `strlcat\' function. */ +@%:@undef HAVE_STRLCAT]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_VSYSLOG], [/* Define to 1 if you have the `vsyslog\' function. */ +@%:@undef HAVE_VSYSLOG]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_STRCASESTR], [/* Define to 1 if you have the `strcasestr\' function. */ +@%:@undef HAVE_STRCASESTR]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_GETADDRINFO], [/* Define to 1 if you have the `getaddrinfo\' function. */ +@%:@undef HAVE_GETADDRINFO]) +m4trace:configure.ac:549: -1- AH_OUTPUT([HAVE_GETNAMEINFO], [/* Define to 1 if you have the `getnameinfo\' function. */ +@%:@undef HAVE_GETNAMEINFO]) +m4trace:configure.ac:569: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPF2]) +m4trace:configure.ac:569: -1- m4_pattern_allow([^HAVE_SPF2$]) +m4trace:configure.ac:569: -1- AH_OUTPUT([HAVE_SPF2], [/* we use libspf2 */ +@%:@undef HAVE_SPF2]) +m4trace:configure.ac:569: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPF2]) +m4trace:configure.ac:569: -1- m4_pattern_allow([^HAVE_SPF2$]) +m4trace:configure.ac:569: -1- AH_OUTPUT([HAVE_SPF2], [/* we use libspf2 */ +@%:@undef HAVE_SPF2]) +m4trace:configure.ac:594: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPF2]) +m4trace:configure.ac:594: -1- m4_pattern_allow([^HAVE_SPF2$]) +m4trace:configure.ac:594: -1- AH_OUTPUT([HAVE_SPF2], [/* we use libspf2 */ +@%:@undef HAVE_SPF2]) +m4trace:configure.ac:594: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPF2]) +m4trace:configure.ac:594: -1- m4_pattern_allow([^HAVE_SPF2$]) +m4trace:configure.ac:594: -1- AH_OUTPUT([HAVE_SPF2], [/* we use libspf2 */ +@%:@undef HAVE_SPF2]) +m4trace:configure.ac:620: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPF2_10]) +m4trace:configure.ac:620: -1- m4_pattern_allow([^HAVE_SPF2_10$]) +m4trace:configure.ac:620: -1- AH_OUTPUT([HAVE_SPF2_10], [/* we use libspf2 1.0 */ +@%:@undef HAVE_SPF2_10]) +m4trace:configure.ac:620: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPF2_10]) +m4trace:configure.ac:620: -1- m4_pattern_allow([^HAVE_SPF2_10$]) +m4trace:configure.ac:620: -1- AH_OUTPUT([HAVE_SPF2_10], [/* we use libspf2 1.0 */ +@%:@undef HAVE_SPF2_10]) +m4trace:configure.ac:645: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPF_ALT]) +m4trace:configure.ac:645: -1- m4_pattern_allow([^HAVE_SPF_ALT$]) +m4trace:configure.ac:645: -1- AH_OUTPUT([HAVE_SPF_ALT], [/* we use libspf_alt */ +@%:@undef HAVE_SPF_ALT]) +m4trace:configure.ac:645: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPF_ALT]) +m4trace:configure.ac:645: -1- m4_pattern_allow([^HAVE_SPF_ALT$]) +m4trace:configure.ac:645: -1- AH_OUTPUT([HAVE_SPF_ALT], [/* we use libspf_alt */ +@%:@undef HAVE_SPF_ALT]) +m4trace:configure.ac:670: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPF]) +m4trace:configure.ac:670: -1- m4_pattern_allow([^HAVE_SPF$]) +m4trace:configure.ac:670: -1- AH_OUTPUT([HAVE_SPF], [/* we use libspf */ +@%:@undef HAVE_SPF]) +m4trace:configure.ac:689: -1- AC_DEFINE_TRACE_LITERAL([USE_DKIM]) +m4trace:configure.ac:689: -1- m4_pattern_allow([^USE_DKIM$]) +m4trace:configure.ac:689: -1- AH_OUTPUT([USE_DKIM], [/* we use libdkim */ +@%:@undef USE_DKIM]) +m4trace:configure.ac:708: -1- AC_DEFINE_TRACE_LITERAL([USE_DKIM]) +m4trace:configure.ac:708: -1- m4_pattern_allow([^USE_DKIM$]) +m4trace:configure.ac:708: -1- AH_OUTPUT([USE_DKIM], [/* we use libopendkim */ +@%:@undef USE_DKIM]) +m4trace:configure.ac:729: -1- AC_SUBST([MAKE_J1], ["-j 1"]) +m4trace:configure.ac:729: -1- AC_SUBST_TRACE([MAKE_J1]) +m4trace:configure.ac:729: -1- m4_pattern_allow([^MAKE_J1$]) +m4trace:configure.ac:729: -1- AC_SUBST([MAKE_J1], [""]) +m4trace:configure.ac:729: -1- AC_SUBST_TRACE([MAKE_J1]) +m4trace:configure.ac:729: -1- m4_pattern_allow([^MAKE_J1$]) +m4trace:configure.ac:729: -1- AC_SUBST([MAKE_J1], ["-j 1"]) +m4trace:configure.ac:729: -1- AC_SUBST_TRACE([MAKE_J1]) +m4trace:configure.ac:729: -1- m4_pattern_allow([^MAKE_J1$]) +m4trace:configure.ac:759: -1- AC_DEFINE_TRACE_LITERAL([HAVE_RES_NINIT]) +m4trace:configure.ac:759: -1- m4_pattern_allow([^HAVE_RES_NINIT$]) +m4trace:configure.ac:759: -1- AH_OUTPUT([HAVE_RES_NINIT], [/* we have res_ninit */ +@%:@undef HAVE_RES_NINIT]) +m4trace:configure.ac:774: -1- AC_DEFINE_TRACE_LITERAL([HAVE_RES_NDESTROY]) +m4trace:configure.ac:774: -1- m4_pattern_allow([^HAVE_RES_NDESTROY$]) +m4trace:configure.ac:774: -1- AH_OUTPUT([HAVE_RES_NDESTROY], [/* we have res_ndestroy */ +@%:@undef HAVE_RES_NDESTROY]) +m4trace:configure.ac:789: -1- AC_DEFINE_TRACE_LITERAL([HAVE_RES_NUPDATE]) +m4trace:configure.ac:789: -1- m4_pattern_allow([^HAVE_RES_NUPDATE$]) +m4trace:configure.ac:789: -1- AH_OUTPUT([HAVE_RES_NUPDATE], [/* we have res_nupdate */ +@%:@undef HAVE_RES_NUPDATE]) +m4trace:configure.ac:789: -1- AC_DEFINE_TRACE_LITERAL([USE_NSUPDATE]) +m4trace:configure.ac:789: -1- m4_pattern_allow([^USE_NSUPDATE$]) +m4trace:configure.ac:789: -1- AH_OUTPUT([USE_NSUPDATE], [/* use nsupdate */ +@%:@undef USE_NSUPDATE]) +m4trace:configure.ac:867: -1- AH_OUTPUT([HAVE_GETADDRINFO], [/* Define to 1 if you have the `getaddrinfo\' function. */ +@%:@undef HAVE_GETADDRINFO]) +m4trace:configure.ac:867: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETADDRINFO]) +m4trace:configure.ac:867: -1- m4_pattern_allow([^HAVE_GETADDRINFO$]) +m4trace:configure.ac:868: -1- AH_OUTPUT([HAVE_GETNAMEINFO], [/* Define to 1 if you have the `getnameinfo\' function. */ +@%:@undef HAVE_GETNAMEINFO]) +m4trace:configure.ac:868: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETNAMEINFO]) +m4trace:configure.ac:868: -1- m4_pattern_allow([^HAVE_GETNAMEINFO$]) +m4trace:configure.ac:872: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MISSING_TIMERADD]) +m4trace:configure.ac:872: -1- m4_pattern_allow([^HAVE_MISSING_TIMERADD$]) +m4trace:configure.ac:872: -1- AH_OUTPUT([HAVE_MISSING_TIMERADD], [/* defines timeradd */ +@%:@undef HAVE_MISSING_TIMERADD]) +m4trace:configure.ac:1015: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OLD_QUEUE_H]) +m4trace:configure.ac:1015: -1- m4_pattern_allow([^HAVE_OLD_QUEUE_H$]) +m4trace:configure.ac:1015: -1- AH_OUTPUT([HAVE_OLD_QUEUE_H], [/* old */ +@%:@undef HAVE_OLD_QUEUE_H]) +m4trace:configure.ac:1030: -1- AC_DEFINE_TRACE_LITERAL([HAVE_BROKEN_RCSID]) +m4trace:configure.ac:1030: -1- m4_pattern_allow([^HAVE_BROKEN_RCSID$]) +m4trace:configure.ac:1030: -1- AH_OUTPUT([HAVE_BROKEN_RCSID], [/* __RCSID cannot be used twice */ +@%:@undef HAVE_BROKEN_RCSID]) +m4trace:configure.ac:1097: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SA_LEN]) +m4trace:configure.ac:1097: -1- m4_pattern_allow([^HAVE_SA_LEN$]) +m4trace:configure.ac:1097: -1- AH_OUTPUT([HAVE_SA_LEN], [/* sa_len field in struct sockaddr */ +@%:@undef HAVE_SA_LEN]) +m4trace:configure.ac:1104: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIN6_SCOPE_ID]) +m4trace:configure.ac:1104: -1- m4_pattern_allow([^HAVE_SIN6_SCOPE_ID$]) +m4trace:configure.ac:1104: -1- AH_OUTPUT([HAVE_SIN6_SCOPE_ID], [/* sin6_scope_id field in struct sockaddr_in6 */ +@%:@undef HAVE_SIN6_SCOPE_ID]) +m4trace:configure.ac:1114: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MISSING_SOCKLEN_T]) +m4trace:configure.ac:1114: -1- m4_pattern_allow([^HAVE_MISSING_SOCKLEN_T$]) +m4trace:configure.ac:1114: -1- AH_OUTPUT([HAVE_MISSING_SOCKLEN_T], [/* missing socklen_t definition */ +@%:@undef HAVE_MISSING_SOCKLEN_T]) +m4trace:configure.ac:1220: -2- AC_DEFINE_TRACE_LITERAL([HAVE_BROKEN_RWLOCK]) +m4trace:configure.ac:1220: -2- m4_pattern_allow([^HAVE_BROKEN_RWLOCK$]) +m4trace:configure.ac:1220: -2- AH_OUTPUT([HAVE_BROKEN_RWLOCK], [/* broken rwlock in libpthread */ +@%:@undef HAVE_BROKEN_RWLOCK]) +m4trace:configure.ac:1127: -1- _m4_warn([cross], [AC_RUN_IFELSE called without default to allow cross compiling], [../../lib/autoconf/general.m4:2715: AC_RUN_IFELSE is expanded from... +configure.ac:1127: the top level]) +m4trace:configure.ac:1248: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2654: AC_TRY_LINK is expanded from... +../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from... +../../lib/autoconf/general.m4:1454: AC_ARG_ENABLE is expanded from... +configure.ac:1248: the top level]) +m4trace:configure.ac:1276: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. +You should run autoupdate.], [../../lib/autoconf/general.m4:2654: AC_TRY_LINK is expanded from... +../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from... +../../lib/autoconf/general.m4:1454: AC_ARG_ENABLE is expanded from... +configure.ac:1276: the top level]) +m4trace:configure.ac:1312: -1- AC_DEFINE_TRACE_LITERAL([BUILD_ENV]) +m4trace:configure.ac:1312: -1- m4_pattern_allow([^BUILD_ENV$]) +m4trace:configure.ac:1312: -1- AH_OUTPUT([BUILD_ENV], [/* Build environnement */ +@%:@undef BUILD_ENV]) +m4trace:configure.ac:1316: -1- AC_SUBST([USER], [$withval]) +m4trace:configure.ac:1316: -1- AC_SUBST_TRACE([USER]) +m4trace:configure.ac:1316: -1- m4_pattern_allow([^USER$]) +m4trace:configure.ac:1316: -1- AC_SUBST([USER], [root]) +m4trace:configure.ac:1316: -1- AC_SUBST_TRACE([USER]) +m4trace:configure.ac:1316: -1- m4_pattern_allow([^USER$]) +m4trace:configure.ac:1324: -1- AC_SUBST([CONFFILE]) +m4trace:configure.ac:1324: -1- AC_SUBST_TRACE([CONFFILE]) +m4trace:configure.ac:1324: -1- m4_pattern_allow([^CONFFILE$]) +m4trace:configure.ac:1331: -1- AC_SUBST([DUMPFILE]) +m4trace:configure.ac:1331: -1- AC_SUBST_TRACE([DUMPFILE]) +m4trace:configure.ac:1331: -1- m4_pattern_allow([^DUMPFILE$]) +m4trace:configure.ac:1347: -1- AC_CONFIG_FILES([Makefile milter-greylist.spec]) +m4trace:configure.ac:1348: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:1348: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:1348: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([LTLIBOBJS]) +m4trace:configure.ac:1348: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([top_builddir]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([top_build_prefix]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([srcdir]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([abs_srcdir]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([top_srcdir]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([abs_top_srcdir]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([builddir]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([abs_builddir]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([abs_top_builddir]) +m4trace:configure.ac:1348: -1- AC_SUBST_TRACE([INSTALL]) diff -Nru milter-greylist-4.6.2/ChangeLog milter-greylist-4.6.4/ChangeLog --- milter-greylist-4.6.2/ChangeLog 2016-11-24 04:11:37.000000000 +0000 +++ milter-greylist-4.6.4/ChangeLog 2020-08-28 00:06:45.000000000 +0000 @@ -1,3 +1,14 @@ +4.6.4 + Fix crash when GeoIP2 for IPv6 is not configured (Paul Howarth) + MacOSX build fix for --enable-dnsrbl (Daniel J. Luke) +4.6.3 + Add support for GeoIP2 (Markus Wennrich) + Build fixes for conflicting ns_type in SPF and NSupdate code + Quiet build warnings + Missing bits to make rawfrom usable (Marcus Schopen) + Fix crash when GeoIP for IPv6 is not configured (Paul Howarth) + Report queueId for maxpeek overflow warnings (Attila Bruncsak) + Sendmail access.db usage documentation (Johann Klasek) 4.6.2 Add rawfrom ACL clause to match unprocessed FROM command Fix helo ACL clause string match (Attila Bruncsak) diff -Nru milter-greylist-4.6.2/config.h milter-greylist-4.6.4/config.h --- milter-greylist-4.6.2/config.h 2016-11-24 04:14:01.000000000 +0000 +++ milter-greylist-4.6.4/config.h 2020-08-28 00:06:44.000000000 +0000 @@ -2,7 +2,7 @@ /* config.h.in. Generated from configure.ac by autoheader. */ /* Build environnement */ -#define BUILD_ENV "manu@adipocyte.hcpnet.net:/home/manu/milter-greylist-current Thu Nov 24 04:37:43 CET 2016" +#define BUILD_ENV "manu@adipocyte.hcpnet.net:/home/manu/milter-greylist-current Fri Aug 28 02:05:59 CEST 2020" /* Define to 1 if you have the header file. */ #define HAVE_ARPA_INET_H 1 @@ -190,7 +190,7 @@ #define PACKAGE_NAME "milter-greylist" /* Packaging metadata: distro source code name+version */ -#define PACKAGE_STRING "milter-greylist 4.6.2" +#define PACKAGE_STRING "milter-greylist 4.6.4" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "milter-greylist" @@ -199,13 +199,13 @@ #define PACKAGE_URL "" /* Packaging metadata: distro source code version */ -#define PACKAGE_VERSION "4.6.2" +#define PACKAGE_VERSION "4.6.4" /* Packaging metadata: Vendor-specific suffix to version or release */ #define PACKAGE_VERSION_SUFFIX "" /* Packaging metadata: upstream source code version */ -#define PACKAGE_VERSION_UPSTREAM "4.6.2" +#define PACKAGE_VERSION_UPSTREAM "4.6.4" /* Define to the type of arg 1 for `select'. */ #define SELECT_TYPE_ARG1 int diff -Nru milter-greylist-4.6.2/.#config.h.1.155 milter-greylist-4.6.4/.#config.h.1.155 --- milter-greylist-4.6.2/.#config.h.1.155 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/.#config.h.1.155 2020-08-28 00:06:45.000000000 +0000 @@ -0,0 +1,242 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Build environnement */ +#define BUILD_ENV "manu@adipocyte.hcpnet.net:/home/manu/milter-greylist-current Mon Jun 8 20:39:29 CEST 2015" + +/* Define to 1 if you have the header file. */ +#define HAVE_ARPA_INET_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ARPA_NAMESER_H 1 + +/* __RCSID cannot be used twice */ +/* #undef HAVE_BROKEN_RCSID */ + +/* broken rwlock in libpthread */ +/* #undef HAVE_BROKEN_RWLOCK */ + +/* Define to 1 if you have the `bzero' function. */ +#define HAVE_BZERO 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `fork' function. */ +#define HAVE_FORK 1 + +/* Define to 1 if you have the `getaddrinfo' function. */ +#define HAVE_GETADDRINFO 1 + +/* Define to 1 if you have the `getnameinfo' function. */ +#define HAVE_GETNAMEINFO 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_GETOPT_H 1 + +/* Define to 1 if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define to 1 if you have the `inet_ntoa' function. */ +#define HAVE_INET_NTOA 1 + +/* Define to 1 if you have the `initgroups' function. */ +#define HAVE_INITGROUPS 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `malloc' function. */ +#define HAVE_MALLOC 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* missing socklen_t definition */ +/* #undef HAVE_MISSING_SOCKLEN_T */ + +/* defines timeradd */ +/* #undef HAVE_MISSING_TIMERADD */ + +/* Define to 1 if you have the header file. */ +#define HAVE_NETDB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_NETINET_IN_H 1 + +/* old */ +/* #undef HAVE_OLD_QUEUE_H */ + +/* we have res_ndestroy */ +#define HAVE_RES_NDESTROY 1 + +/* we have res_ninit */ +#define HAVE_RES_NINIT 1 + +/* we have res_nupdate */ +/* #undef HAVE_RES_NUPDATE */ + +/* Define to 1 if the system has the type `res_state'. */ +#define HAVE_RES_STATE 1 + +/* sa_len field in struct sockaddr */ +#define HAVE_SA_LEN /**/ + +/* Define to 1 if you have the `select' function. */ +#define HAVE_SELECT 1 + +/* sin6_scope_id field in struct sockaddr_in6 */ +#define HAVE_SIN6_SCOPE_ID 1 + +/* Define to 1 if you have the `socket' function. */ +#define HAVE_SOCKET 1 + +/* we use libspf */ +/* #undef HAVE_SPF */ + +/* we use libspf2 */ +/* #undef HAVE_SPF2 */ + +/* we use libspf2 1.0 */ +/* #undef HAVE_SPF2_10 */ + +/* we use libspf_alt */ +/* #undef HAVE_SPF_ALT */ + +/* Define to 1 if `stat' has the bug that it succeeds when given the + zero-length file name argument. */ +/* #undef HAVE_STAT_EMPTY_STRING_BUG */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDBOOL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strcasestr' function. */ +#define HAVE_STRCASESTR 1 + +/* Define to 1 if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define to 1 if you have the `strftime' function. */ +#define HAVE_STRFTIME 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strlcat' function. */ +#define HAVE_STRLCAT 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYSLOG_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_CDEFS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_QUEUE_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SELECT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SOCKET_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `vfork' function. */ +#define HAVE_VFORK 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_VFORK_H */ + +/* Define to 1 if you have the `vsyslog' function. */ +#define HAVE_VSYSLOG 1 + +/* Define to 1 if `fork' works. */ +#define HAVE_WORKING_FORK 1 + +/* Define to 1 if `vfork' works. */ +#define HAVE_WORKING_VFORK 1 + +/* Define to 1 if `lstat' dereferences a symlink specified with a trailing + slash. */ +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 + +/* Packaging metadata: distro contact */ +#define PACKAGE_BUGREPORT "manu@netbsd.org" + +/* Packaging metadata: distro source code name */ +#define PACKAGE_NAME "milter-greylist" + +/* Packaging metadata: distro source code name+version */ +#define PACKAGE_STRING "milter-greylist 4.5.12" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "milter-greylist" + +/* Packaging metadata: distro contact */ +#define PACKAGE_URL "" + +/* Packaging metadata: distro source code version */ +#define PACKAGE_VERSION "4.5.12" + +/* Packaging metadata: Vendor-specific suffix to version or release */ +#define PACKAGE_VERSION_SUFFIX "" + +/* Packaging metadata: upstream source code version */ +#define PACKAGE_VERSION_UPSTREAM "4.5.12" + +/* Define to the type of arg 1 for `select'. */ +#define SELECT_TYPE_ARG1 int + +/* Define to the type of args 2, 3 and 4 for `select'. */ +#define SELECT_TYPE_ARG234 (fd_set *) + +/* Define to the type of arg 5 for `select'. */ +#define SELECT_TYPE_ARG5 (struct timeval *) + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if you can safely include both and . */ +#define TIME_WITH_SYS_TIME 1 + +/* we use libopendkim */ +/* #undef USE_DKIM */ + +/* use nsupdate */ +/* #undef USE_NSUPDATE */ + +/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a + `char[]'. */ +#define YYTEXT_POINTER 1 + +/* Define to `int' if does not define. */ +/* #undef pid_t */ + +/* Define to `unsigned int' if does not define. */ +/* #undef size_t */ + +/* Define as `fork' if `vfork' does not work. */ +/* #undef vfork */ diff -Nru milter-greylist-4.6.2/config.log milter-greylist-4.6.4/config.log --- milter-greylist-4.6.2/config.log 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/config.log 2020-08-28 00:06:45.000000000 +0000 @@ -0,0 +1,3207 @@ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by milter-greylist configure 4.6.4, which was +generated by GNU Autoconf 2.65. Invocation command line was + + $ ./configure --with-libmilter=/usr/pkg + +## --------- ## +## Platform. ## +## --------- ## + +hostname = adipocyte.hcpnet.net +uname -m = i386 +uname -r = 5.0.2 +uname -s = NetBSD +uname -v = NetBSD 5.0.2 (GENERIC) #0: Sat Feb 6 17:53:27 UTC 2010 builds@b7.netbsd.org:/home/builds/ab/netbsd-5-0-2-RELEASE/i386/201002061851Z-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC + +/usr/bin/uname -p = i386 +/bin/uname -X = unknown + +/bin/arch = unknown +/usr/bin/arch -k = unknown +/usr/convex/getsysinfo = unknown +/usr/bin/hostinfo = unknown +/bin/machine = unknown +/usr/bin/oslevel = unknown +/bin/universe = unknown + +PATH: /bin +PATH: /usr/bin +PATH: /usr/pkg/bin +PATH: /usr/local/bin +PATH: /usr/X11R6/bin +PATH: /sbin +PATH: /usr/sbin +PATH: /usr/pkg/sbin +PATH: /usr/local/sbin + + +## ----------- ## +## Core tests. ## +## ----------- ## + +configure:2351: checking for gcc +configure:2367: found /usr/bin/gcc +configure:2378: result: gcc +configure:2607: checking for C compiler version +configure:2616: gcc --version >&5 +gcc (GCC) 4.1.3 20080704 prerelease (NetBSD nb2 20081120) +Copyright (C) 2006 Free Software Foundation, Inc. +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +configure:2627: $? = 0 +configure:2616: gcc -v >&5 +Using built-in specs. +Target: i386--netbsdelf +Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=x86_64-unknown-netbsd4.99.72 --host=i386--netbsdelf --target=i386--netbsdelf --enable-__cxa_atexit +Thread model: posix +gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120) +configure:2627: $? = 0 +configure:2616: gcc -V >&5 +gcc: '-V' option must have argument +configure:2627: $? = 1 +configure:2616: gcc -qversion >&5 +gcc: unrecognized option '-qversion' +gcc: no input files +configure:2627: $? = 1 +configure:2647: checking whether the C compiler works +configure:2669: gcc conftest.c >&5 +configure:2673: $? = 0 +configure:2722: result: yes +configure:2725: checking for C compiler default output file name +configure:2727: result: a.out +configure:2733: checking for suffix of executables +configure:2740: gcc -o conftest conftest.c >&5 +configure:2744: $? = 0 +configure:2766: result: +configure:2788: checking whether we are cross compiling +configure:2796: gcc -o conftest conftest.c >&5 +configure:2800: $? = 0 +configure:2807: ./conftest +configure:2811: $? = 0 +configure:2826: result: no +configure:2831: checking for suffix of object files +configure:2853: gcc -c conftest.c >&5 +configure:2857: $? = 0 +configure:2878: result: o +configure:2882: checking whether we are using the GNU C compiler +configure:2901: gcc -c conftest.c >&5 +configure:2901: $? = 0 +configure:2910: result: yes +configure:2919: checking whether gcc accepts -g +configure:2939: gcc -c -g conftest.c >&5 +configure:2939: $? = 0 +configure:2980: result: yes +configure:2997: checking for gcc option to accept ISO C89 +configure:3061: gcc -c -g -O2 conftest.c >&5 +configure:3061: $? = 0 +configure:3074: result: none needed +configure:3099: checking for flex +configure:3115: found /usr/bin/flex +configure:3126: result: flex +configure:3163: flex conftest.l +configure:3167: $? = 0 +configure:3169: checking lex output file root +configure:3183: result: lex.yy +configure:3188: checking lex library +configure:3202: gcc -o conftest -g -O2 conftest.c >&5 +conftest.l: In function 'yylex': +conftest.l:6: warning: comparison between pointer and integer +conftest.l:6: warning: assignment makes pointer from integer without a cast +/var/tmp//ccMekXlW.o: In function `input': +/home/manu/milter-greylist-current/lex.yy.c:1103: undefined reference to `yywrap' +/var/tmp//ccMekXlW.o: In function `yylex': +/home/manu/milter-greylist-current/lex.yy.c:760: undefined reference to `yywrap' +/var/tmp//ccMekXlW.o: In function `main': +/home/manu/milter-greylist-current/conftest.l:16: undefined reference to `yywrap' +configure:3202: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| /* end confdefs.h. */ +| /* A lexical scanner generated by flex */ +| +| /* Scanner skeleton version: +| * $NetBSD: flex.skl,v 1.22 2005/08/08 01:28:08 christos Exp $ +| */ +| +| #define FLEX_SCANNER +| #define YY_FLEX_MAJOR_VERSION 2 +| #define YY_FLEX_MINOR_VERSION 5 +| +| #include +| +| +| /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ +| #ifdef c_plusplus +| #ifndef __cplusplus +| #define __cplusplus +| #endif +| #endif +| +| +| #ifdef __cplusplus +| +| #include +| #include +| +| /* Use prototypes in function declarations. */ +| #define YY_USE_PROTOS +| +| /* The "const" storage-class-modifier is valid. */ +| #define YY_USE_CONST +| +| #else /* ! __cplusplus */ +| +| #if __STDC__ +| +| #define YY_USE_PROTOS +| #define YY_USE_CONST +| +| #endif /* __STDC__ */ +| #endif /* ! __cplusplus */ +| +| #ifdef __TURBOC__ +| #pragma warn -rch +| #pragma warn -use +| #include +| #include +| #define YY_USE_CONST +| #define YY_USE_PROTOS +| #endif +| +| #ifdef YY_USE_CONST +| #define yyconst const +| #else +| #define yyconst +| #endif +| +| +| #ifdef YY_USE_PROTOS +| #define YY_PROTO(proto) proto +| #else +| #define YY_PROTO(proto) () +| #endif +| +| /* Returned upon end-of-file. */ +| #define YY_NULL 0 +| +| /* Promotes a possibly negative, possibly signed char to an unsigned +| * integer for use as an array index. If the signed char is negative, +| * we want to instead treat it as an 8-bit unsigned char, hence the +| * double cast. +| */ +| #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) +| +| /* Enter a start condition. This macro really ought to take a parameter, +| * but we do it the disgusting crufty way forced on us by the ()-less +| * definition of BEGIN. +| */ +| #define BEGIN yy_start = 1 + 2 * +| +| /* Translate the current start state into a value that can be later handed +| * to BEGIN to return to the state. The YYSTATE alias is for lex +| * compatibility. +| */ +| #define YY_START ((yy_start - 1) / 2) +| #define YYSTATE YY_START +| +| /* Action number for EOF rule of a given start state. */ +| #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) +| +| /* Special action meaning "start processing a new file". */ +| #define YY_NEW_FILE yyrestart( yyin ) +| +| #define YY_END_OF_BUFFER_CHAR 0 +| +| /* Size of default input buffer. */ +| #define YY_BUF_SIZE 16384 +| +| typedef struct yy_buffer_state *YY_BUFFER_STATE; +| +| extern int yyleng; +| extern FILE *yyin, *yyout; +| +| #define EOB_ACT_CONTINUE_SCAN 0 +| #define EOB_ACT_END_OF_FILE 1 +| #define EOB_ACT_LAST_MATCH 2 +| +| /* The funky do-while in the following #define is used to turn the definition +| * int a single C statement (which needs a semi-colon terminator). This +| * avoids problems with code like: +| * +| * if ( condition_holds ) +| * yyless( 5 ); +| * else +| * do_something_else(); +| * +| * Prior to using the do-while the compiler would get upset at the +| * "else" because it interpreted the "if" statement as being all +| * done when it reached the ';' after the yyless() call. +| */ +| +| /* Return all but the first 'n' matched characters back to the input stream. */ +| +| #define yyless(n) \ +| do \ +| { \ +| /* Undo effects of setting up yytext. */ \ +| *yy_cp = yy_hold_char; \ +| YY_RESTORE_YY_MORE_OFFSET \ +| yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ +| YY_DO_BEFORE_ACTION; /* set up yytext again */ \ +| } \ +| while ( 0 ) +| +| #define unput(c) yyunput( c, yytext_ptr ) +| +| /* The following is because we cannot portably get our hands on size_t +| * (without autoconf's help, which isn't available because we want +| * flex-generated scanners to compile on their own). +| */ +| typedef unsigned int yy_size_t; +| +| +| struct yy_buffer_state +| { +| FILE *yy_input_file; +| +| char *yy_ch_buf; /* input buffer */ +| char *yy_buf_pos; /* current position in input buffer */ +| +| /* Size of input buffer in bytes, not including room for EOB +| * characters. +| */ +| yy_size_t yy_buf_size; +| +| /* Number of characters read into yy_ch_buf, not including EOB +| * characters. +| */ +| int yy_n_chars; +| +| /* Whether we "own" the buffer - i.e., we know we created it, +| * and can realloc() it to grow it, and should free() it to +| * delete it. +| */ +| int yy_is_our_buffer; +| +| /* Whether this is an "interactive" input source; if so, and +| * if we're using stdio for input, then we want to use getc() +| * instead of fread(), to make sure we stop fetching input after +| * each newline. +| */ +| int yy_is_interactive; +| +| /* Whether we're considered to be at the beginning of a line. +| * If so, '^' rules will be active on the next match, otherwise +| * not. +| */ +| int yy_at_bol; +| +| /* Whether to try to fill the input buffer when we reach the +| * end of it. +| */ +| int yy_fill_buffer; +| +| int yy_buffer_status; +| #define YY_BUFFER_NEW 0 +| #define YY_BUFFER_NORMAL 1 +| /* When an EOF's been seen but there's still some text to process +| * then we mark the buffer as YY_EOF_PENDING, to indicate that we +| * shouldn't try reading from the input source any more. We might +| * still have a bunch of tokens to match, though, because of +| * possible backing-up. +| * +| * When we actually see the EOF, we change the status to "new" +| * (via yyrestart()), so that the user can continue scanning by +| * just pointing yyin at a new input file. +| */ +| #define YY_BUFFER_EOF_PENDING 2 +| }; +| +| static YY_BUFFER_STATE yy_current_buffer = 0; +| +| /* We provide macros for accessing buffer states in case in the +| * future we want to put the buffer states in a more general +| * "scanner state". +| */ +| #define YY_CURRENT_BUFFER yy_current_buffer +| +| +| /* yy_hold_char holds the character lost when yytext is formed. */ +| static char yy_hold_char; +| +| static int yy_n_chars; /* number of characters read into yy_ch_buf */ +| +| +| int yyleng; +| +| /* Points to current character in buffer. */ +| static char *yy_c_buf_p = (char *) 0; +| static int yy_init = 1; /* whether we need to initialize */ +| static int yy_start = 0; /* start state number */ +| +| /* Flag which is used to allow yywrap()'s to do buffer switches +| * instead of setting up a fresh yyin. A bit of a hack ... +| */ +| static int yy_did_buffer_switch_on_eof; +| +| void yyrestart YY_PROTO(( FILE *input_file )); +| +| void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); +| void yy_load_buffer_state YY_PROTO(( void )); +| YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); +| void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); +| void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); +| void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); +| #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) +| +| YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); +| YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); +| YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, yy_size_t len )); +| #ifdef __cplusplus +| YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, int size )); +| YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); +| #endif +| +| #define yy_new_buffer yy_create_buffer +| +| #define yy_set_interactive(is_interactive) \ +| { \ +| if ( ! yy_current_buffer ) \ +| yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ +| yy_current_buffer->yy_is_interactive = is_interactive; \ +| } +| +| #define yy_set_bol(at_bol) \ +| { \ +| if ( ! yy_current_buffer ) \ +| yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ +| yy_current_buffer->yy_at_bol = at_bol; \ +| } +| +| #define YY_AT_BOL() (yy_current_buffer->yy_at_bol) +| +| +| #define YY_USES_REJECT +| typedef unsigned char YY_CHAR; +| FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; +| typedef int yy_state_type; +| extern char *yytext; +| #define yytext_ptr yytext +| +| static void *yy_flex_alloc YY_PROTO(( yy_size_t )); +| static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) +| #ifdef __GNUC__ +| __attribute__((__unused__)) +| #endif +| ; +| static void yy_flex_free YY_PROTO(( void * )); +| +| static yy_state_type yy_get_previous_state YY_PROTO(( void )); +| static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); +| static int yy_get_next_buffer YY_PROTO(( void )); +| static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); +| +| /* Done after the current pattern has been matched and before the +| * corresponding action - sets up yytext. +| */ +| #define YY_DO_BEFORE_ACTION \ +| yytext_ptr = yy_bp; \ +| yytext_ptr -= yy_more_len; \ +| yyleng = (int) (yy_cp - yytext_ptr); \ +| yy_hold_char = *yy_cp; \ +| *yy_cp = '\0'; \ +| yy_c_buf_p = yy_cp; +| +| #define YY_NUM_RULES 8 +| #define YY_END_OF_BUFFER 9 +| static yyconst short int yy_acclist[23] = +| { 0, +| 9, 7, 8, 8, 1, 7, 8, 2, 7, 8, +| 3, 7, 8, 4, 7, 8, 5, 7, 8, 6, +| 7, 8 +| } ; +| +| static yyconst short int yy_accept[14] = +| { 0, +| 1, 1, 1, 2, 4, 5, 8, 11, 14, 17, +| 20, 23, 23 +| } ; +| +| static yyconst int yy_ec[256] = +| { 0, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 3, 4, 5, 6, +| +| 7, 8, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +| 1, 1, 1, 1, 1 +| } ; +| +| static yyconst int yy_meta[9] = +| { 0, +| 1, 1, 1, 1, 1, 1, 1, 1 +| } ; +| +| static yyconst short int yy_base[13] = +| { 0, +| 0, 0, 9, 10, 10, 10, 10, 10, 10, 10, +| 10, 10 +| } ; +| +| static yyconst short int yy_def[13] = +| { 0, +| 12, 1, 12, 12, 12, 12, 12, 12, 12, 12, +| 12, 0 +| } ; +| +| static yyconst short int yy_nxt[19] = +| { 0, +| 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, +| 12, 12, 12, 12, 12, 12, 12, 12 +| } ; +| +| static yyconst short int yy_chk[19] = +| { 0, +| 1, 1, 1, 1, 1, 1, 1, 1, 3, 12, +| 12, 12, 12, 12, 12, 12, 12, 12 +| } ; +| +| static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr; +| static char *yy_full_match; +| static int yy_lp; +| #define REJECT \ +| { \ +| *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \ +| yy_cp = yy_full_match; /* restore poss. backed-over text */ \ +| ++yy_lp; \ +| goto find_rule; \ +| } +| static int yy_more_flag = 0; +| static int yy_more_len = 0; +| #define yymore() (yy_more_flag = 1) +| #define YY_MORE_ADJ yy_more_len +| #define YY_RESTORE_YY_MORE_OFFSET +| char *yytext; +| #line 1 "conftest.l" +| #define INITIAL 0 +| #line 391 "lex.yy.c" +| +| /* Macros after this point can all be overridden by user definitions in +| * section 1. +| */ +| +| #ifndef YY_SKIP_YYWRAP +| #ifdef __cplusplus +| extern "C" int yywrap YY_PROTO(( void )); +| #else +| extern int yywrap YY_PROTO(( void )); +| #endif +| #endif +| +| #ifndef YY_NO_UNPUT +| static void yyunput YY_PROTO(( int c, char *buf_ptr )) +| #ifdef __GNUC__ +| __attribute__((__unused__)) +| #endif +| ; +| #endif +| +| #ifndef yytext_ptr +| static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, yy_size_t )); +| #endif +| +| #ifdef YY_NEED_STRLEN +| static yy_size_t yy_flex_strlen YY_PROTO(( yyconst char * )); +| #endif +| +| #ifndef YY_NO_INPUT +| #ifdef __cplusplus +| static int yyinput YY_PROTO(( void )); +| #else +| static int input YY_PROTO(( void )); +| #endif +| #endif +| +| #if YY_STACK_USED +| static int yy_start_stack_ptr = 0; +| static int yy_start_stack_depth = 0; +| static int *yy_start_stack = 0; +| #ifndef YY_NO_PUSH_STATE +| static void yy_push_state YY_PROTO(( int new_state )); +| #endif +| #ifndef YY_NO_POP_STATE +| static void yy_pop_state YY_PROTO(( void )); +| #endif +| #ifndef YY_NO_TOP_STATE +| static int yy_top_state YY_PROTO(( void )); +| #endif +| +| #else +| #define YY_NO_PUSH_STATE 1 +| #define YY_NO_POP_STATE 1 +| #define YY_NO_TOP_STATE 1 +| #endif +| +| #ifdef YY_MALLOC_DECL +| YY_MALLOC_DECL +| #else +| #if __STDC__ +| #ifndef __cplusplus +| #include +| #endif +| #else +| /* Just try to get by without declaring the routines. This will fail +| * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) +| * or sizeof(void*) != sizeof(int). +| */ +| #endif +| #endif +| +| /* Amount of stuff to slurp up with each read. */ +| #ifndef YY_READ_BUF_SIZE +| #define YY_READ_BUF_SIZE 8192 +| #endif +| +| /* Copy whatever the last rule matched to the standard output. */ +| +| #ifndef ECHO +| /* This used to be an fputs(), but since the string might contain NUL's, +| * we now use fwrite(). +| */ +| #define ECHO (void) fwrite( yytext, (size_t)yyleng, 1, yyout ) +| #endif +| +| /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, +| * is returned in "result". +| */ +| #ifndef YY_INPUT +| #define YY_INPUT(buf,result,max_size) \ +| if ( yy_current_buffer->yy_is_interactive ) \ +| { \ +| int c = '*', n; \ +| for ( n = 0; n < max_size && \ +| (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ +| buf[n] = (char) c; \ +| if ( c == '\n' ) \ +| buf[n++] = (char) c; \ +| if ( c == EOF && ferror( yyin ) ) \ +| YY_FATAL_ERROR( "input in flex scanner failed" ); \ +| result = n; \ +| } \ +| else if ( ((result = fread( buf, 1, (size_t)max_size, yyin )) == 0) \ +| && ferror( yyin ) ) \ +| YY_FATAL_ERROR( "input in flex scanner failed" ); +| #endif +| +| /* No semi-colon after return; correct usage is to write "yyterminate();" - +| * we don't want an extra ';' after the "return" because that will cause +| * some compilers to complain about unreachable statements. +| */ +| #ifndef yyterminate +| #define yyterminate() return YY_NULL +| #endif +| +| /* Number of entries by which start-condition stack grows. */ +| #ifndef YY_START_STACK_INCR +| #define YY_START_STACK_INCR 25 +| #endif +| +| /* Report a fatal error. */ +| #ifndef YY_FATAL_ERROR +| #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) +| #endif +| +| /* Default declaration of generated scanner - a define so the user can +| * easily add parameters. +| */ +| #ifndef YY_DECL +| #define YY_DECL int yylex YY_PROTO(( void )) +| #endif +| +| /* Code executed at the beginning of each rule, after yytext and yyleng +| * have been set up. +| */ +| #ifndef YY_USER_ACTION +| #define YY_USER_ACTION +| #endif +| +| /* Code executed at the end of each rule. */ +| #ifndef YY_BREAK +| #define YY_BREAK /*LINTED*/break; +| #endif +| +| #define YY_RULE_SETUP \ +| YY_USER_ACTION +| +| YY_DECL +| { +| register yy_state_type yy_current_state; +| register char *yy_cp, *yy_bp; +| register int yy_act; +| +| #line 1 "conftest.l" +| +| #line 548 "lex.yy.c" +| +| #if defined(YY_USES_REJECT) && (defined(__GNUC__) || defined(lint)) +| /* XXX: shut up `unused label' warning with %options yylineno */ +| if (/*CONSTCOND*/0 && yy_full_match) +| goto find_rule; +| #endif +| if ( yy_init ) +| { +| yy_init = 0; +| +| #ifdef YY_USER_INIT +| YY_USER_INIT; +| #endif +| +| if ( ! yy_start ) +| yy_start = 1; /* first start state */ +| +| if ( ! yyin ) +| yyin = stdin; +| +| if ( ! yyout ) +| yyout = stdout; +| +| if ( ! yy_current_buffer ) +| yy_current_buffer = +| yy_create_buffer( yyin, YY_BUF_SIZE ); +| +| yy_load_buffer_state(); +| } +| +| while (/*CONSTCOND*/ 1 ) /* loops until end-of-file is reached */ +| { +| yy_more_len = 0; +| if ( yy_more_flag ) +| { +| yy_more_len = yy_c_buf_p - yytext_ptr; +| yy_more_flag = 0; +| } +| yy_cp = yy_c_buf_p; +| +| /* Support of yytext. */ +| *yy_cp = yy_hold_char; +| +| /* yy_bp points to the position in yy_ch_buf of the start of +| * the current run. +| */ +| yy_bp = yy_cp; +| +| yy_current_state = yy_start; +| yy_state_ptr = yy_state_buf; +| *yy_state_ptr++ = yy_current_state; +| yy_match: +| do +| { +| register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; +| while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) +| { +| yy_current_state = (int) yy_def[yy_current_state]; +| if ( yy_current_state >= 13 ) +| yy_c = yy_meta[(unsigned int) yy_c]; +| } +| yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; +| *yy_state_ptr++ = yy_current_state; +| ++yy_cp; +| } +| while ( yy_base[yy_current_state] != 10 ); +| +| yy_find_action: +| yy_current_state = *--yy_state_ptr; +| yy_lp = yy_accept[yy_current_state]; +| find_rule: /* we branch to this label when backing up */ +| for ( ; ; ) /* until we find what rule we matched */ +| { +| if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] ) +| { +| yy_act = yy_acclist[yy_lp]; +| { +| yy_full_match = yy_cp; +| break; +| } +| } +| --yy_cp; +| yy_current_state = *--yy_state_ptr; +| yy_lp = yy_accept[yy_current_state]; +| } +| +| YY_DO_BEFORE_ACTION; +| +| +| do_action: /* This label is used only to access EOF actions. */ +| +| +| switch ( yy_act ) +| { /* beginning of action switch */ +| case 1: +| YY_RULE_SETUP +| #line 2 "conftest.l" +| { ECHO; } +| YY_BREAK +| case 2: +| YY_RULE_SETUP +| #line 3 "conftest.l" +| { REJECT; } +| YY_BREAK +| case 3: +| YY_RULE_SETUP +| #line 4 "conftest.l" +| { yymore (); } +| YY_BREAK +| case 4: +| YY_RULE_SETUP +| #line 5 "conftest.l" +| { yyless (1); } +| YY_BREAK +| case 5: +| YY_RULE_SETUP +| #line 6 "conftest.l" +| { yyless (input () != 0); } +| YY_BREAK +| case 6: +| YY_RULE_SETUP +| #line 7 "conftest.l" +| { unput (yytext[0]); } +| YY_BREAK +| case 7: +| YY_RULE_SETUP +| #line 8 "conftest.l" +| { BEGIN INITIAL; } +| YY_BREAK +| case 8: +| YY_RULE_SETUP +| #line 9 "conftest.l" +| ECHO; +| YY_BREAK +| #line 683 "lex.yy.c" +| case YY_STATE_EOF(INITIAL): +| yyterminate(); +| +| case YY_END_OF_BUFFER: +| { +| /* Amount of text matched not including the EOB char. */ +| int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; +| +| /* Undo the effects of YY_DO_BEFORE_ACTION. */ +| *yy_cp = yy_hold_char; +| YY_RESTORE_YY_MORE_OFFSET +| +| if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) +| { +| /* We're scanning a new file or input source. It's +| * possible that this happened because the user +| * just pointed yyin at a new source and called +| * yylex(). If so, then we have to assure +| * consistency between yy_current_buffer and our +| * globals. Here is the right place to do so, because +| * this is the first action (other than possibly a +| * back-up) that will match for the new input source. +| */ +| yy_n_chars = yy_current_buffer->yy_n_chars; +| yy_current_buffer->yy_input_file = yyin; +| yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; +| } +| +| /* Note that here we test for yy_c_buf_p "<=" to the position +| * of the first EOB in the buffer, since yy_c_buf_p will +| * already have been incremented past the NUL character +| * (since all states make transitions on EOB to the +| * end-of-buffer state). Contrast this with the test +| * in input(). +| */ +| if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) +| { /* This was really a NUL. */ +| yy_state_type yy_next_state; +| +| yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; +| +| yy_current_state = yy_get_previous_state(); +| +| /* Okay, we're now positioned to make the NUL +| * transition. We couldn't have +| * yy_get_previous_state() go ahead and do it +| * for us because it doesn't know how to deal +| * with the possibility of jamming (and we don't +| * want to build jamming into it because then it +| * will run more slowly). +| */ +| +| yy_next_state = yy_try_NUL_trans( yy_current_state ); +| +| yy_bp = yytext_ptr + YY_MORE_ADJ; +| +| if ( yy_next_state ) +| { +| /* Consume the NUL. */ +| yy_cp = ++yy_c_buf_p; +| yy_current_state = yy_next_state; +| goto yy_match; +| } +| +| else +| { +| yy_cp = yy_c_buf_p; +| goto yy_find_action; +| } +| } +| +| else switch ( yy_get_next_buffer() ) +| { +| case EOB_ACT_END_OF_FILE: +| { +| yy_did_buffer_switch_on_eof = 0; +| +| if ( yywrap() ) +| { +| /* Note: because we've taken care in +| * yy_get_next_buffer() to have set up +| * yytext, we can now set up +| * yy_c_buf_p so that if some total +| * hoser (like flex itself) wants to +| * call the scanner after we return the +| * YY_NULL, it'll still work - another +| * YY_NULL will get returned. +| */ +| yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; +| +| yy_act = YY_STATE_EOF(YY_START); +| goto do_action; +| } +| +| else +| { +| if ( ! yy_did_buffer_switch_on_eof ) +| YY_NEW_FILE; +| } +| break; +| } +| +| case EOB_ACT_CONTINUE_SCAN: +| yy_c_buf_p = +| yytext_ptr + yy_amount_of_matched_text; +| +| yy_current_state = yy_get_previous_state(); +| +| yy_cp = yy_c_buf_p; +| yy_bp = yytext_ptr + YY_MORE_ADJ; +| goto yy_match; +| +| case EOB_ACT_LAST_MATCH: +| yy_c_buf_p = +| &yy_current_buffer->yy_ch_buf[yy_n_chars]; +| +| yy_current_state = yy_get_previous_state(); +| +| yy_cp = yy_c_buf_p; +| yy_bp = yytext_ptr + YY_MORE_ADJ; +| goto yy_find_action; +| } +| break; +| } +| +| default: +| YY_FATAL_ERROR( +| "fatal flex scanner internal error--no action found" ); +| } /* end of action switch */ +| } /* end of scanning one token */ +| } /* end of yylex */ +| +| +| /* yy_get_next_buffer - try to read in a new buffer +| * +| * Returns a code representing an action: +| * EOB_ACT_LAST_MATCH - +| * EOB_ACT_CONTINUE_SCAN - continue scanning from current position +| * EOB_ACT_END_OF_FILE - end of file +| */ +| +| static int yy_get_next_buffer() +| { +| register char *dest = yy_current_buffer->yy_ch_buf; +| register char *source = yytext_ptr; +| register int number_to_move, i; +| int ret_val; +| +| if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) +| YY_FATAL_ERROR( +| "fatal flex scanner internal error--end of buffer missed" ); +| +| if ( yy_current_buffer->yy_fill_buffer == 0 ) +| { /* Don't try to fill the buffer, so this is an EOF. */ +| if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) +| { +| /* We matched a single character, the EOB, so +| * treat this as a final EOF. +| */ +| return EOB_ACT_END_OF_FILE; +| } +| +| else +| { +| /* We matched some text prior to the EOB, first +| * process it. +| */ +| return EOB_ACT_LAST_MATCH; +| } +| } +| +| /* Try to read more data. */ +| +| /* First move last chars to start of buffer. */ +| number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; +| +| for ( i = 0; i < number_to_move; ++i ) +| *(dest++) = *(source++); +| +| if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) +| /* don't do the read, it's not guaranteed to return an EOF, +| * just force an EOF +| */ +| yy_current_buffer->yy_n_chars = yy_n_chars = 0; +| +| else +| { +| int num_to_read = +| yy_current_buffer->yy_buf_size - number_to_move - 1; +| +| while ( num_to_read <= 0 ) +| { /* Not enough room in the buffer - grow it. */ +| #ifdef YY_USES_REJECT +| YY_FATAL_ERROR( +| "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); +| #else +| +| /* just a shorter name for the current buffer */ +| YY_BUFFER_STATE b = yy_current_buffer; +| +| int yy_c_buf_p_offset = +| (int) (yy_c_buf_p - b->yy_ch_buf); +| +| if ( b->yy_is_our_buffer ) +| { +| int new_size = b->yy_buf_size * 2; +| +| if ( new_size <= 0 ) +| b->yy_buf_size += b->yy_buf_size / 8; +| else +| b->yy_buf_size *= 2; +| +| b->yy_ch_buf = (char *) +| /* Include room in for 2 EOB chars. */ +| yy_flex_realloc( (void *) b->yy_ch_buf, +| b->yy_buf_size + 2 ); +| } +| else +| /* Can't grow it, we don't own it. */ +| b->yy_ch_buf = 0; +| +| if ( ! b->yy_ch_buf ) +| YY_FATAL_ERROR( +| "fatal error - scanner input buffer overflow" ); +| +| yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; +| +| num_to_read = yy_current_buffer->yy_buf_size - +| number_to_move - 1; +| #endif +| } +| +| if ( num_to_read > YY_READ_BUF_SIZE ) +| num_to_read = YY_READ_BUF_SIZE; +| +| /* Read in more data. */ +| YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), +| yy_n_chars, num_to_read ); +| +| yy_current_buffer->yy_n_chars = yy_n_chars; +| } +| +| if ( yy_n_chars == 0 ) +| { +| if ( number_to_move == YY_MORE_ADJ ) +| { +| ret_val = EOB_ACT_END_OF_FILE; +| yyrestart( yyin ); +| } +| +| else +| { +| ret_val = EOB_ACT_LAST_MATCH; +| yy_current_buffer->yy_buffer_status = +| YY_BUFFER_EOF_PENDING; +| } +| } +| +| else +| ret_val = EOB_ACT_CONTINUE_SCAN; +| +| yy_n_chars += number_to_move; +| yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; +| yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; +| +| yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; +| +| return ret_val; +| } +| +| +| /* yy_get_previous_state - get the state just before the EOB char was reached */ +| +| static yy_state_type yy_get_previous_state() +| { +| register yy_state_type yy_current_state; +| register char *yy_cp; +| +| yy_current_state = yy_start; +| yy_state_ptr = yy_state_buf; +| *yy_state_ptr++ = yy_current_state; +| +| for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) +| { +| register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); +| while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) +| { +| yy_current_state = (int) yy_def[yy_current_state]; +| if ( yy_current_state >= 13 ) +| yy_c = yy_meta[(unsigned int) yy_c]; +| } +| yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; +| *yy_state_ptr++ = yy_current_state; +| } +| +| return yy_current_state; +| } +| +| +| /* yy_try_NUL_trans - try to make a transition on the NUL character +| * +| * synopsis +| * next_state = yy_try_NUL_trans( current_state ); +| */ +| +| #ifdef YY_USE_PROTOS +| static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) +| #else +| static yy_state_type yy_try_NUL_trans( yy_current_state ) +| yy_state_type yy_current_state; +| #endif +| { +| register int yy_is_jam; +| +| register YY_CHAR yy_c = 1; +| while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) +| { +| yy_current_state = (int) yy_def[yy_current_state]; +| if ( yy_current_state >= 13 ) +| yy_c = yy_meta[(unsigned int) yy_c]; +| } +| yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; +| yy_is_jam = (yy_current_state == 12); +| if ( ! yy_is_jam ) +| *yy_state_ptr++ = yy_current_state; +| +| return yy_is_jam ? 0 : yy_current_state; +| } +| +| +| #ifndef YY_NO_UNPUT +| #ifdef YY_USE_PROTOS +| static void yyunput( int c, register char *yy_bp ) +| #else +| static void yyunput( c, yy_bp ) +| int c; +| register char *yy_bp; +| #endif +| { +| register char *yy_cp = yy_c_buf_p; +| +| /* undo effects of setting up yytext */ +| *yy_cp = yy_hold_char; +| +| if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) +| { /* need to shift things up to make room */ +| /* +2 for EOB chars. */ +| register int number_to_move = yy_n_chars + 2; +| register char *dest = &yy_current_buffer->yy_ch_buf[ +| yy_current_buffer->yy_buf_size + 2]; +| register char *source = +| &yy_current_buffer->yy_ch_buf[number_to_move]; +| +| while ( source > yy_current_buffer->yy_ch_buf ) +| *--dest = *--source; +| +| yy_cp += (int) (dest - source); +| yy_bp += (int) (dest - source); +| yy_current_buffer->yy_n_chars = +| yy_n_chars = yy_current_buffer->yy_buf_size; +| +| if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) +| YY_FATAL_ERROR( "flex scanner push-back overflow" ); +| } +| +| *--yy_cp = (char) c; +| +| +| yytext_ptr = yy_bp; +| yy_hold_char = *yy_cp; +| yy_c_buf_p = yy_cp; +| } +| #endif /* ifndef YY_NO_UNPUT */ +| +| +| #ifdef __cplusplus +| static int yyinput() +| #else +| static int input() +| #endif +| { +| int c; +| +| *yy_c_buf_p = yy_hold_char; +| +| if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) +| { +| /* yy_c_buf_p now points to the character we want to return. +| * If this occurs *before* the EOB characters, then it's a +| * valid NUL; if not, then we've hit the end of the buffer. +| */ +| if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) +| /* This was really a NUL. */ +| *yy_c_buf_p = '\0'; +| +| else +| { /* need more input */ +| int offset = yy_c_buf_p - yytext_ptr; +| ++yy_c_buf_p; +| +| switch ( yy_get_next_buffer() ) +| { +| case EOB_ACT_LAST_MATCH: +| /* This happens because yy_g_n_b() +| * sees that we've accumulated a +| * token and flags that we need to +| * try matching the token before +| * proceeding. But for input(), +| * there's no matching to consider. +| * So convert the EOB_ACT_LAST_MATCH +| * to EOB_ACT_END_OF_FILE. +| */ +| +| /* Reset buffer status. */ +| yyrestart( yyin ); +| +| /*FALLTHROUGH*/ +| +| case EOB_ACT_END_OF_FILE: +| { +| if ( yywrap() ) +| return EOF; +| +| if ( ! yy_did_buffer_switch_on_eof ) +| YY_NEW_FILE; +| #ifdef __cplusplus +| return yyinput(); +| #else +| return input(); +| #endif +| } +| +| case EOB_ACT_CONTINUE_SCAN: +| yy_c_buf_p = yytext_ptr + offset; +| break; +| } +| } +| } +| +| c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ +| *yy_c_buf_p = '\0'; /* preserve yytext */ +| yy_hold_char = *++yy_c_buf_p; +| +| +| return c; +| } +| +| +| #ifdef YY_USE_PROTOS +| void yyrestart( FILE *input_file ) +| #else +| void yyrestart( input_file ) +| FILE *input_file; +| #endif +| { +| if ( ! yy_current_buffer ) +| yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); +| +| yy_init_buffer( yy_current_buffer, input_file ); +| yy_load_buffer_state(); +| } +| +| +| #ifdef YY_USE_PROTOS +| void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) +| #else +| void yy_switch_to_buffer( new_buffer ) +| YY_BUFFER_STATE new_buffer; +| #endif +| { +| if ( yy_current_buffer == new_buffer ) +| return; +| +| if ( yy_current_buffer ) +| { +| /* Flush out information for old buffer. */ +| *yy_c_buf_p = yy_hold_char; +| yy_current_buffer->yy_buf_pos = yy_c_buf_p; +| yy_current_buffer->yy_n_chars = yy_n_chars; +| } +| +| yy_current_buffer = new_buffer; +| yy_load_buffer_state(); +| +| /* We don't actually know whether we did this switch during +| * EOF (yywrap()) processing, but the only time this flag +| * is looked at is after yywrap() is called, so it's safe +| * to go ahead and always set it. +| */ +| yy_did_buffer_switch_on_eof = 1; +| } +| +| +| #ifdef YY_USE_PROTOS +| void yy_load_buffer_state( void ) +| #else +| void yy_load_buffer_state() +| #endif +| { +| yy_n_chars = yy_current_buffer->yy_n_chars; +| yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; +| yyin = yy_current_buffer->yy_input_file; +| yy_hold_char = *yy_c_buf_p; +| } +| +| +| #ifdef YY_USE_PROTOS +| YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) +| #else +| YY_BUFFER_STATE yy_create_buffer( file, size ) +| FILE *file; +| int size; +| #endif +| { +| YY_BUFFER_STATE b; +| +| b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); +| if ( ! b ) +| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); +| +| b->yy_buf_size = size; +| +| /* yy_ch_buf has to be 2 characters longer than the size given because +| * we need to put in 2 end-of-buffer characters. +| */ +| b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); +| if ( ! b->yy_ch_buf ) +| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); +| +| b->yy_is_our_buffer = 1; +| +| yy_init_buffer( b, file ); +| +| return b; +| } +| +| +| #ifdef YY_USE_PROTOS +| void yy_delete_buffer( YY_BUFFER_STATE b ) +| #else +| void yy_delete_buffer( b ) +| YY_BUFFER_STATE b; +| #endif +| { +| if ( ! b ) +| return; +| +| if ( b == yy_current_buffer ) +| yy_current_buffer = (YY_BUFFER_STATE) 0; +| +| if ( b->yy_is_our_buffer ) +| yy_flex_free( (void *) b->yy_ch_buf ); +| +| yy_flex_free( (void *) b ); +| } +| +| +| #ifndef YY_ALWAYS_INTERACTIVE +| #ifndef YY_NEVER_INTERACTIVE +| #include +| #endif +| #endif +| +| #ifdef YY_USE_PROTOS +| void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) +| #else +| void yy_init_buffer( b, file ) +| YY_BUFFER_STATE b; +| FILE *file; +| #endif +| +| +| { +| yy_flush_buffer( b ); +| +| b->yy_input_file = file; +| b->yy_fill_buffer = 1; +| +| #if YY_ALWAYS_INTERACTIVE +| b->yy_is_interactive = 1; +| #else +| #if YY_NEVER_INTERACTIVE +| b->yy_is_interactive = 0; +| #else +| b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; +| #endif +| #endif +| } +| +| +| #ifdef YY_USE_PROTOS +| void yy_flush_buffer( YY_BUFFER_STATE b ) +| #else +| void yy_flush_buffer( b ) +| YY_BUFFER_STATE b; +| #endif +| +| { +| if ( ! b ) +| return; +| +| b->yy_n_chars = 0; +| +| /* We always need two end-of-buffer characters. The first causes +| * a transition to the end-of-buffer state. The second causes +| * a jam in that state. +| */ +| b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; +| b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; +| +| b->yy_buf_pos = &b->yy_ch_buf[0]; +| +| b->yy_at_bol = 1; +| b->yy_buffer_status = YY_BUFFER_NEW; +| +| if ( b == yy_current_buffer ) +| yy_load_buffer_state(); +| } +| +| +| #ifndef YY_NO_SCAN_BUFFER +| #ifdef YY_USE_PROTOS +| YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) +| #else +| YY_BUFFER_STATE yy_scan_buffer( base, size ) +| char *base; +| yy_size_t size; +| #endif +| { +| YY_BUFFER_STATE b; +| +| if ( size < 2 || +| base[size-2] != YY_END_OF_BUFFER_CHAR || +| base[size-1] != YY_END_OF_BUFFER_CHAR ) +| /* They forgot to leave room for the EOB's. */ +| return 0; +| +| b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); +| if ( ! b ) +| YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); +| +| b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ +| b->yy_buf_pos = b->yy_ch_buf = base; +| b->yy_is_our_buffer = 0; +| b->yy_input_file = 0; +| b->yy_n_chars = b->yy_buf_size; +| b->yy_is_interactive = 0; +| b->yy_at_bol = 1; +| b->yy_fill_buffer = 0; +| b->yy_buffer_status = YY_BUFFER_NEW; +| +| yy_switch_to_buffer( b ); +| +| return b; +| } +| #ifdef __cplusplus +| YY_BUFFER_STATE yy_scan_buffer( char *base, int size ) +| { +| return yy_scan_buffer(base, (yy_size_t) size); +| } +| #endif +| #endif +| +| +| #ifndef YY_NO_SCAN_STRING +| #ifdef YY_USE_PROTOS +| YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) +| #else +| YY_BUFFER_STATE yy_scan_string( yy_str ) +| yyconst char *yy_str; +| #endif +| { +| yy_size_t len; +| for ( len = 0; yy_str[len]; ++len ) +| ; +| +| return yy_scan_bytes( yy_str, len ); +| } +| #endif +| +| +| #ifndef YY_NO_SCAN_BYTES +| #ifdef YY_USE_PROTOS +| YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, yy_size_t len ) +| #else +| YY_BUFFER_STATE yy_scan_bytes( bytes, len ) +| yyconst char *bytes; +| yy_size_t len; +| #endif +| { +| YY_BUFFER_STATE b; +| char *buf; +| yy_size_t n, i; +| +| /* Get memory for full buffer, including space for trailing EOB's. */ +| n = len + 2; +| buf = (char *) yy_flex_alloc( n ); +| if ( ! buf ) +| YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); +| +| for ( i = 0; i < len; ++i ) +| buf[i] = bytes[i]; +| +| buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; +| +| b = yy_scan_buffer( buf, n ); +| if ( ! b ) +| YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); +| +| /* It's okay to grow etc. this buffer, and we should throw it +| * away when we're done. +| */ +| b->yy_is_our_buffer = 1; +| +| return b; +| } +| #ifdef __cplusplus +| YY_BUFFER_STATE yy_scan_bytes( yyconst char *base, int size ) +| { +| return yy_scan_bytes(base, (yy_size_t) size); +| } +| #endif +| #endif +| +| +| #ifndef YY_NO_PUSH_STATE +| #ifdef YY_USE_PROTOS +| static void yy_push_state( int new_state ) +| #else +| static void yy_push_state( new_state ) +| int new_state; +| #endif +| { +| if ( yy_start_stack_ptr >= yy_start_stack_depth ) +| { +| yy_size_t new_size; +| +| yy_start_stack_depth += YY_START_STACK_INCR; +| new_size = yy_start_stack_depth * sizeof( int ); +| +| if ( ! yy_start_stack ) +| yy_start_stack = (int *) yy_flex_alloc( new_size ); +| +| else +| yy_start_stack = (int *) yy_flex_realloc( +| (void *) yy_start_stack, new_size ); +| +| if ( ! yy_start_stack ) +| YY_FATAL_ERROR( +| "out of memory expanding start-condition stack" ); +| } +| +| yy_start_stack[yy_start_stack_ptr++] = YY_START; +| +| BEGIN(new_state); +| } +| #endif +| +| +| #ifndef YY_NO_POP_STATE +| static void yy_pop_state() +| { +| if ( --yy_start_stack_ptr < 0 ) +| YY_FATAL_ERROR( "start-condition stack underflow" ); +| +| BEGIN(yy_start_stack[yy_start_stack_ptr]); +| } +| #endif +| +| +| #ifndef YY_NO_TOP_STATE +| static int yy_top_state() +| { +| return yy_start_stack[yy_start_stack_ptr - 1]; +| } +| #endif +| +| #ifndef YY_EXIT_FAILURE +| #define YY_EXIT_FAILURE 2 +| #endif +| +| #ifdef YY_USE_PROTOS +| static void yy_fatal_error( yyconst char msg[] ) +| #else +| static void yy_fatal_error( msg ) +| char msg[]; +| #endif +| { +| (void) fprintf( stderr, "%s\n", msg ); +| exit( YY_EXIT_FAILURE ); +| } +| +| +| +| /* Redefine yyless() so it works in section 3 code. */ +| +| #undef yyless +| #define yyless(n) \ +| do \ +| { \ +| /* Undo effects of setting up yytext. */ \ +| yytext[yyleng] = yy_hold_char; \ +| yy_c_buf_p = yytext + n; \ +| yy_hold_char = *yy_c_buf_p; \ +| *yy_c_buf_p = '\0'; \ +| yyleng = n; \ +| } \ +| while ( 0 ) +| +| +| /* Internal utility routines. */ +| +| #ifndef yytext_ptr +| #ifdef YY_USE_PROTOS +| static void yy_flex_strncpy( char *s1, yyconst char *s2, yy_size_t n ) +| #else +| static void yy_flex_strncpy( s1, s2, n ) +| char *s1; +| yyconst char *s2; +| yy_size_t n; +| #endif +| { +| register yy_size_t i; +| for ( i = 0; i < n; ++i ) +| s1[i] = s2[i]; +| } +| #endif +| +| #ifdef YY_NEED_STRLEN +| #ifdef YY_USE_PROTOS +| static yy_size_t yy_flex_strlen( yyconst char *s ) +| #else +| static yy_size_t yy_flex_strlen( s ) +| yyconst char *s; +| #endif +| { +| register yy_size_t n; +| for ( n = 0; s[n]; ++n ) +| ; +| +| return n; +| } +| #endif +| +| +| #ifdef YY_USE_PROTOS +| static void *yy_flex_alloc( yy_size_t size ) +| #else +| static void *yy_flex_alloc( size ) +| yy_size_t size; +| #endif +| { +| return (void *) malloc( size ); +| } +| +| #ifdef YY_USE_PROTOS +| static void *yy_flex_realloc( void *ptr, yy_size_t size ) +| #else +| static void *yy_flex_realloc( ptr, size ) +| void *ptr; +| yy_size_t size; +| #endif +| { +| /* The cast to (char *) in the following accommodates both +| * implementations that use char* generic pointers, and those +| * that use void* generic pointers. It works with the latter +| * because both ANSI C and C++ allow castless assignment from +| * any pointer type to void*, and deal with argument conversions +| * as though doing an assignment. +| */ +| return (void *) realloc( (char *) ptr, size ); +| } +| +| #ifdef YY_USE_PROTOS +| static void yy_flex_free( void *ptr ) +| #else +| static void yy_flex_free( ptr ) +| void *ptr; +| #endif +| { +| free( ptr ); +| } +| +| #if YY_MAIN +| int main() +| { +| yylex(); +| return 0; +| } +| #endif +| #line 9 "conftest.l" +| +| #ifdef YYTEXT_POINTER +| extern char *yytext; +| #endif +| int +| main (void) +| { +| return ! yylex () + ! yywrap (); +| } +configure:3202: gcc -o conftest -g -O2 conftest.c -lfl >&5 +conftest.l: In function 'yylex': +conftest.l:6: warning: comparison between pointer and integer +conftest.l:6: warning: assignment makes pointer from integer without a cast +configure:3202: $? = 0 +configure:3212: result: -lfl +configure:3218: checking whether yytext is a pointer +configure:3234: gcc -o conftest -g -O2 conftest.c -lfl >&5 +conftest.l: In function 'yylex': +conftest.l:6: warning: comparison between pointer and integer +conftest.l:6: warning: assignment makes pointer from integer without a cast +configure:3234: $? = 0 +configure:3242: result: yes +configure:3256: checking for bison +configure:3286: result: no +configure:3256: checking for byacc +configure:3286: result: no +configure:3332: checking for a BSD-compatible install +configure:3400: result: /usr/bin/install -c +configure:3415: checking for mkdep +configure:3431: found /usr/bin/mkdep +configure:3442: result: mkdep +configure:3457: checking for rm +configure:3473: found /bin/rm +configure:3484: result: rm +configure:3499: checking for mv +configure:3515: found /bin/mv +configure:3526: result: mv +configure:3541: checking for test +configure:3557: found /bin/test +configure:3568: result: test +configure:3583: checking for sed +configure:3599: found /usr/bin/sed +configure:3610: result: sed +configure:3625: checking for true +configure:3641: found /usr/bin/true +configure:3652: result: true +configure:3667: checking for touch +configure:3683: found /usr/bin/touch +configure:3694: result: touch +configure:3863: checking if compiler accepts -Wall +configure:3879: gcc -o conftest -g -O2 -Wall conftest.c >&5 +configure:3879: $? = 0 +configure:3884: result: yes +configure:3889: checking if compiler accepts -Werror +configure:3905: gcc -o conftest -g -O2 -Wall -Werror conftest.c >&5 +configure:3905: $? = 0 +configure:3910: result: no +configure:3920: checking if ld accepts -R +configure:3935: gcc -o conftest -g -O2 -Wall -Wl,-R=/ conftest.c >&5 +configure:3935: $? = 0 +configure:3943: result: yes +configure:3947: checking if ld accepts --rpath +configure:3962: gcc -o conftest -g -O2 -Wall -Wl,--rpath=/ conftest.c >&5 +configure:3962: $? = 0 +configure:3970: result: yes +configure:4946: checking how to run the C preprocessor +configure:4977: gcc -E conftest.c +configure:4977: $? = 0 +configure:4991: gcc -E conftest.c +conftest.c:12:28: error: ac_nonexistent.h: No such file or directory +configure:4991: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| /* end confdefs.h. */ +| #include +configure:5016: result: gcc -E +configure:5036: gcc -E conftest.c +configure:5036: $? = 0 +configure:5050: gcc -E conftest.c +conftest.c:12:28: error: ac_nonexistent.h: No such file or directory +configure:5050: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| /* end confdefs.h. */ +| #include +configure:5079: checking for grep that handles long lines and -e +configure:5137: result: /usr/bin/grep +configure:5142: checking for egrep +configure:5204: result: /usr/bin/grep -E +configure:5209: checking for ANSI C header files +configure:5229: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5229: $? = 0 +configure:5302: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:5302: $? = 0 +configure:5302: ./conftest +configure:5302: $? = 0 +configure:5313: result: yes +configure:5326: checking for sys/types.h +configure:5326: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5326: $? = 0 +configure:5326: result: yes +configure:5326: checking for sys/stat.h +configure:5326: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5326: $? = 0 +configure:5326: result: yes +configure:5326: checking for stdlib.h +configure:5326: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5326: $? = 0 +configure:5326: result: yes +configure:5326: checking for string.h +configure:5326: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5326: $? = 0 +configure:5326: result: yes +configure:5326: checking for memory.h +configure:5326: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5326: $? = 0 +configure:5326: result: yes +configure:5326: checking for strings.h +configure:5326: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5326: $? = 0 +configure:5326: result: yes +configure:5326: checking for inttypes.h +configure:5326: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5326: $? = 0 +configure:5326: result: yes +configure:5326: checking for stdint.h +configure:5326: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5326: $? = 0 +configure:5326: result: yes +configure:5326: checking for unistd.h +configure:5326: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5326: $? = 0 +configure:5326: result: yes +configure:5342: checking arpa/inet.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking arpa/inet.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for arpa/inet.h +configure:5342: result: yes +configure:5342: checking fcntl.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking fcntl.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for fcntl.h +configure:5342: result: yes +configure:5342: checking netinet/in.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking netinet/in.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for netinet/in.h +configure:5342: result: yes +configure:5342: checking for stdlib.h +configure:5342: result: yes +configure:5342: checking for string.h +configure:5342: result: yes +configure:5342: checking for strings.h +configure:5342: result: yes +configure:5342: checking sys/socket.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking sys/socket.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for sys/socket.h +configure:5342: result: yes +configure:5342: checking sys/time.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking sys/time.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for sys/time.h +configure:5342: result: yes +configure:5342: checking syslog.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking syslog.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for syslog.h +configure:5342: result: yes +configure:5342: checking for unistd.h +configure:5342: result: yes +configure:5342: checking sys/param.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking sys/param.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for sys/param.h +configure:5342: result: yes +configure:5342: checking netdb.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking netdb.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for netdb.h +configure:5342: result: yes +configure:5342: checking getopt.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking getopt.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for getopt.h +configure:5342: result: yes +configure:5342: checking sys/cdefs.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking sys/cdefs.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for sys/cdefs.h +configure:5342: result: yes +configure:5342: checking arpa/nameser.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking arpa/nameser.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for arpa/nameser.h +configure:5342: result: yes +configure:5342: checking stdbool.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking stdbool.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for stdbool.h +configure:5342: result: yes +configure:5342: checking sys/queue.h usability +configure:5342: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking sys/queue.h presence +configure:5342: gcc -E conftest.c +configure:5342: $? = 0 +configure:5342: result: yes +configure:5342: checking for sys/queue.h +configure:5342: result: yes +configure:5355: checking for pid_t +configure:5355: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5355: $? = 0 +configure:5355: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +conftest.c: In function 'main': +conftest.c:75: error: expected expression before ')' token +configure:5355: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_SYSLOG_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_SYS_PARAM_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_CDEFS_H 1 +| #define HAVE_ARPA_NAMESER_H 1 +| #define HAVE_STDBOOL_H 1 +| #define HAVE_SYS_QUEUE_H 1 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef STDC_HEADERS +| # include +| # include +| #else +| # ifdef HAVE_STDLIB_H +| # include +| # endif +| #endif +| #ifdef HAVE_STRING_H +| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H +| # include +| # endif +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main () +| { +| if (sizeof ((pid_t))) +| return 0; +| ; +| return 0; +| } +configure:5355: result: yes +configure:5366: checking for size_t +configure:5366: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5366: $? = 0 +configure:5366: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +conftest.c: In function 'main': +conftest.c:75: error: expected expression before ')' token +configure:5366: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_SYSLOG_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_SYS_PARAM_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_CDEFS_H 1 +| #define HAVE_ARPA_NAMESER_H 1 +| #define HAVE_STDBOOL_H 1 +| #define HAVE_SYS_QUEUE_H 1 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef STDC_HEADERS +| # include +| # include +| #else +| # ifdef HAVE_STDLIB_H +| # include +| # endif +| #endif +| #ifdef HAVE_STRING_H +| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H +| # include +| # endif +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main () +| { +| if (sizeof ((size_t))) +| return 0; +| ; +| return 0; +| } +configure:5366: result: yes +configure:5377: checking whether time.h and sys/time.h may both be included +configure:5397: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5397: $? = 0 +configure:5404: result: yes +configure:5414: checking for res_state +configure:5414: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5414: $? = 0 +configure:5414: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +conftest.c: In function 'main': +conftest.c:50: error: expected expression before ')' token +configure:5414: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_SYSLOG_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_SYS_PARAM_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_CDEFS_H 1 +| #define HAVE_ARPA_NAMESER_H 1 +| #define HAVE_STDBOOL_H 1 +| #define HAVE_SYS_QUEUE_H 1 +| #define TIME_WITH_SYS_TIME 1 +| /* end confdefs.h. */ +| +| #include +| #include +| #include +| #include +| +| +| int +| main () +| { +| if (sizeof ((res_state))) +| return 0; +| ; +| return 0; +| } +configure:5414: result: yes +configure:5558: checking vfork.h usability +configure:5558: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +conftest.c:74:19: error: vfork.h: No such file or directory +configure:5558: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_SYSLOG_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_SYS_PARAM_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_CDEFS_H 1 +| #define HAVE_ARPA_NAMESER_H 1 +| #define HAVE_STDBOOL_H 1 +| #define HAVE_SYS_QUEUE_H 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_RES_STATE 1 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef STDC_HEADERS +| # include +| # include +| #else +| # ifdef HAVE_STDLIB_H +| # include +| # endif +| #endif +| #ifdef HAVE_STRING_H +| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H +| # include +| # endif +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| #include +configure:5558: result: no +configure:5558: checking vfork.h presence +configure:5558: gcc -E conftest.c +conftest.c:41:19: error: vfork.h: No such file or directory +configure:5558: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_SYSLOG_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_SYS_PARAM_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_CDEFS_H 1 +| #define HAVE_ARPA_NAMESER_H 1 +| #define HAVE_STDBOOL_H 1 +| #define HAVE_SYS_QUEUE_H 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_RES_STATE 1 +| /* end confdefs.h. */ +| #include +configure:5558: result: no +configure:5558: checking for vfork.h +configure:5558: result: no +configure:5571: checking for fork +configure:5571: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +conftest.c:64: warning: conflicting types for built-in function 'fork' +configure:5571: $? = 0 +configure:5571: result: yes +configure:5571: checking for vfork +configure:5571: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:5571: $? = 0 +configure:5571: result: yes +configure:5582: checking for working fork +configure:5604: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:5604: $? = 0 +configure:5604: ./conftest +configure:5604: $? = 0 +configure:5614: result: yes +configure:5635: checking for working vfork +configure:5745: result: yes +configure:5772: checking for strftime +configure:5772: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +conftest.c:68: warning: conflicting types for built-in function 'strftime' +configure:5772: $? = 0 +configure:5772: result: yes +configure:5825: checking for working memcmp +configure:5868: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:5868: $? = 0 +configure:5868: ./conftest +configure:5868: $? = 0 +configure:5878: result: yes +configure:5890: checking sys/select.h usability +configure:5890: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5890: $? = 0 +configure:5890: result: yes +configure:5890: checking sys/select.h presence +configure:5890: gcc -E conftest.c +configure:5890: $? = 0 +configure:5890: result: yes +configure:5890: checking for sys/select.h +configure:5890: result: yes +configure:5890: checking for sys/socket.h +configure:5890: result: yes +configure:5901: checking types of arguments for select +configure:5929: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:5929: $? = 0 +configure:5940: result: int,fd_set *,struct timeval * +configure:5970: checking whether lstat correctly handles trailing slash +configure:5996: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:5996: $? = 0 +configure:5996: ./conftest +configure:5996: $? = 0 +configure:6013: result: yes +configure:6032: checking whether stat accepts an empty string +configure:6052: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6052: $? = 0 +configure:6052: ./conftest +configure:6052: $? = 0 +configure:6062: result: no +configure:6081: checking for bzero +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +conftest.c:75: warning: conflicting types for built-in function 'bzero' +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for gettimeofday +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for malloc +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +conftest.c:77: warning: conflicting types for built-in function 'malloc' +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for inet_ntoa +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for strerror +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for select +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for socket +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +/var/tmp//ccezZKDv.o: In function `main': +/home/manu/milter-greylist-current/conftest.c:92: warning: warning: reference to compatibility socket(); include for correct reference +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for initgroups +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for strlcat +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for vsyslog +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for strcasestr +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for getaddrinfo +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6081: $? = 0 +configure:6081: result: yes +configure:6081: checking for getnameinfo +configure:6081: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c >&5 +configure:6081: $? = 0 +configure:6081: result: yes +configure:6096: checking for pthread_create in -lpthread +configure:6121: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lpthread >&5 +configure:6121: $? = 0 +configure:6130: result: yes +configure:6906: checking for socket in -lsocket +configure:6931: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lsocket -lpthread >&5 +ld: cannot find -lsocket +configure:6931: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_SYSLOG_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_SYS_PARAM_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_CDEFS_H 1 +| #define HAVE_ARPA_NAMESER_H 1 +| #define HAVE_STDBOOL_H 1 +| #define HAVE_SYS_QUEUE_H 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_RES_STATE 1 +| #define HAVE_FORK 1 +| #define HAVE_VFORK 1 +| #define HAVE_WORKING_VFORK 1 +| #define HAVE_WORKING_FORK 1 +| #define HAVE_STRFTIME 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_BZERO 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_MALLOC 1 +| #define HAVE_INET_NTOA 1 +| #define HAVE_STRERROR 1 +| #define HAVE_SELECT 1 +| #define HAVE_SOCKET 1 +| #define HAVE_INITGROUPS 1 +| #define HAVE_STRLCAT 1 +| #define HAVE_VSYSLOG 1 +| #define HAVE_STRCASESTR 1 +| #define HAVE_GETADDRINFO 1 +| #define HAVE_GETNAMEINFO 1 +| /* end confdefs.h. */ +| +| /* Override any GCC internal prototype to avoid an error. +| Use char because int might match the return type of a GCC +| builtin and then its argument prototype would still apply. */ +| #ifdef __cplusplus +| extern "C" +| #endif +| char socket (); +| int +| main () +| { +| return socket (); +| ; +| return 0; +| } +configure:6940: result: no +configure:6945: checking for socket in -lsocket -lnsl +configure:6970: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lsocket -lnsl -lpthread >&5 +ld: cannot find -lsocket +configure:6970: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_SYSLOG_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_SYS_PARAM_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_CDEFS_H 1 +| #define HAVE_ARPA_NAMESER_H 1 +| #define HAVE_STDBOOL_H 1 +| #define HAVE_SYS_QUEUE_H 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_RES_STATE 1 +| #define HAVE_FORK 1 +| #define HAVE_VFORK 1 +| #define HAVE_WORKING_VFORK 1 +| #define HAVE_WORKING_FORK 1 +| #define HAVE_STRFTIME 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_BZERO 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_MALLOC 1 +| #define HAVE_INET_NTOA 1 +| #define HAVE_STRERROR 1 +| #define HAVE_SELECT 1 +| #define HAVE_SOCKET 1 +| #define HAVE_INITGROUPS 1 +| #define HAVE_STRLCAT 1 +| #define HAVE_VSYSLOG 1 +| #define HAVE_STRCASESTR 1 +| #define HAVE_GETADDRINFO 1 +| #define HAVE_GETNAMEINFO 1 +| /* end confdefs.h. */ +| +| /* Override any GCC internal prototype to avoid an error. +| Use char because int might match the return type of a GCC +| builtin and then its argument prototype would still apply. */ +| #ifdef __cplusplus +| extern "C" +| #endif +| char socket (); +| int +| main () +| { +| return socket (); +| ; +| return 0; +| } +configure:6979: result: no +configure:6990: checking for inet_aton in -lresolv +configure:7015: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lresolv -lpthread >&5 +configure:7015: $? = 0 +configure:7024: result: yes +configure:7032: checking for inet_pton in -lnsl +configure:7057: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lnsl -lpthread -lresolv >&5 +ld: cannot find -lnsl +configure:7057: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_SYSLOG_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_SYS_PARAM_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_CDEFS_H 1 +| #define HAVE_ARPA_NAMESER_H 1 +| #define HAVE_STDBOOL_H 1 +| #define HAVE_SYS_QUEUE_H 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_RES_STATE 1 +| #define HAVE_FORK 1 +| #define HAVE_VFORK 1 +| #define HAVE_WORKING_VFORK 1 +| #define HAVE_WORKING_FORK 1 +| #define HAVE_STRFTIME 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_BZERO 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_MALLOC 1 +| #define HAVE_INET_NTOA 1 +| #define HAVE_STRERROR 1 +| #define HAVE_SELECT 1 +| #define HAVE_SOCKET 1 +| #define HAVE_INITGROUPS 1 +| #define HAVE_STRLCAT 1 +| #define HAVE_VSYSLOG 1 +| #define HAVE_STRCASESTR 1 +| #define HAVE_GETADDRINFO 1 +| #define HAVE_GETNAMEINFO 1 +| /* end confdefs.h. */ +| +| /* Override any GCC internal prototype to avoid an error. +| Use char because int might match the return type of a GCC +| builtin and then its argument prototype would still apply. */ +| #ifdef __cplusplus +| extern "C" +| #endif +| char inet_pton (); +| int +| main () +| { +| return inet_pton (); +| ; +| return 0; +| } +configure:7066: result: no +configure:7074: checking for res_ninit +configure:7095: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lpthread -lresolv >&5 +configure:7095: $? = 0 +configure:7104: result: yes +configure:7108: checking for res_ndestroy +configure:7129: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lpthread -lresolv >&5 +configure:7129: $? = 0 +configure:7138: result: yes +configure:7142: checking for res_nupdate +configure:7165: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lpthread -lresolv >&5 +In file included from conftest.c:72: +/usr/include/res_update.h:29:22: error: isc/list.h: No such file or directory +In file included from conftest.c:72: +/usr/include/res_update.h:36: error: expected specifier-qualifier-list before 'LINK' +/usr/include/res_update.h:51: error: function definition declared 'typedef' +/usr/include/res_update.h: In function 'LIST': +/usr/include/res_update.h:51: error: expected declaration specifiers before 'ns_updque' +conftest.c:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token +conftest.c:84: error: old-style parameter declarations in prototyped function definition +/usr/include/res_update.h:51: error: parameter name omitted +conftest.c:84: error: expected '{' at end of input +configure:7165: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "milter-greylist" +| #define PACKAGE_TARNAME "milter-greylist" +| #define PACKAGE_VERSION "4.6.4" +| #define PACKAGE_STRING "milter-greylist 4.6.4" +| #define PACKAGE_BUGREPORT "manu@netbsd.org" +| #define PACKAGE_URL "" +| #define YYTEXT_POINTER 1 +| #define PACKAGE_VERSION_UPSTREAM "4.6.4" +| #define PACKAGE_VERSION_SUFFIX "" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_ARPA_INET_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_NETINET_IN_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define HAVE_SYS_TIME_H 1 +| #define HAVE_SYSLOG_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_SYS_PARAM_H 1 +| #define HAVE_NETDB_H 1 +| #define HAVE_GETOPT_H 1 +| #define HAVE_SYS_CDEFS_H 1 +| #define HAVE_ARPA_NAMESER_H 1 +| #define HAVE_STDBOOL_H 1 +| #define HAVE_SYS_QUEUE_H 1 +| #define TIME_WITH_SYS_TIME 1 +| #define HAVE_RES_STATE 1 +| #define HAVE_FORK 1 +| #define HAVE_VFORK 1 +| #define HAVE_WORKING_VFORK 1 +| #define HAVE_WORKING_FORK 1 +| #define HAVE_STRFTIME 1 +| #define HAVE_SYS_SELECT_H 1 +| #define HAVE_SYS_SOCKET_H 1 +| #define SELECT_TYPE_ARG1 int +| #define SELECT_TYPE_ARG234 (fd_set *) +| #define SELECT_TYPE_ARG5 (struct timeval *) +| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +| #define HAVE_BZERO 1 +| #define HAVE_GETTIMEOFDAY 1 +| #define HAVE_MALLOC 1 +| #define HAVE_INET_NTOA 1 +| #define HAVE_STRERROR 1 +| #define HAVE_SELECT 1 +| #define HAVE_SOCKET 1 +| #define HAVE_INITGROUPS 1 +| #define HAVE_STRLCAT 1 +| #define HAVE_VSYSLOG 1 +| #define HAVE_STRCASESTR 1 +| #define HAVE_GETADDRINFO 1 +| #define HAVE_GETNAMEINFO 1 +| #define HAVE_RES_NINIT 1 +| #define HAVE_RES_NDESTROY 1 +| /* end confdefs.h. */ +| +| #include +| #include +| #include +| #include +| #include +| +| int +| main () +| { +| +| struct __res_state res; +| ns_updrec updrec; +| res_nupdate(&res, &updrec, NULL); +| +| ; +| return 0; +| } +configure:7178: result: no +configure:7186: checking for getaddrinfo +configure:7186: result: yes +configure:7347: checking for getnameinfo +configure:7347: result: yes +configure:7508: checking if defines timeradd +configure:7532: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:7532: $? = 0 +configure:7540: result: yes +configure:7546: checking if -D_REENTRANT is needed to use localtime_r and strtok_r +configure:7567: gcc -c -g -O2 -Wall -I/usr/pkg/include -Wall -Werror conftest.c >&5 +configure:7567: $? = 0 +configure:7599: result: no +configure:7606: checking if -D__EXTENSIONS__ is needed to use snprintf +configure:7625: gcc -c -g -O2 -Wall -I/usr/pkg/include -Wall -Werror conftest.c >&5 +configure:7625: $? = 0 +configure:7656: result: no +configure:7707: checking for smfi_register in -lmilter +configure:7732: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lmilter -lpthread -lresolv >&5 +configure:7732: $? = 0 +configure:7741: result: yes +configure:7835: checking for struct smfiDesc.xxfi_data +configure:7835: gcc -c -g -O2 -Wall -I/usr/pkg/include conftest.c >&5 +configure:7835: $? = 0 +configure:7835: result: yes +configure:7843: checking if -lpthread is needed after -lmilter +configure:7863: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lpthread -lresolv -lmilter >&5 +configure:7863: $? = 0 +configure:7897: result: no +configure:7902: checking if is outdated +configure:7925: gcc -c -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK conftest.c >&5 +configure:7925: $? = 0 +configure:7933: result: no +configure:7937: checking if __RCSID can be used twice in the same source +configure:7958: gcc -c -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK conftest.c >&5 +configure:7958: $? = 0 +configure:7966: result: yes +configure:7972: checking whether wants -pthread +configure:7986: gcc -c -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK conftest.c >&5 +configure:7986: $? = 0 +configure:8011: result: no +configure:8015: checking whether you need -D_XOPEN_SOURCE to use libpthread +configure:8034: gcc -c -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK conftest.c >&5 +conftest.c: In function 'main': +conftest.c:77: warning: unused variable 'lock' +configure:8034: $? = 0 +configure:8040: result: no +configure:8046: checking if -D_OSF_SOURCE is needed for IPV6 support +configure:8067: gcc -c -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK -D_XOPEN_SOURCE=500 -D_BSD_SOURCE conftest.c >&5 +conftest.c: In function 'main': +conftest.c:79: warning: unused variable 's' +configure:8067: $? = 0 +configure:8099: result: no +configure:8104: checking for struct sockaddr.sa_len +configure:8104: gcc -c -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK conftest.c >&5 +configure:8104: $? = 0 +configure:8104: result: yes +configure:8117: checking for struct sockaddr_in6.sin6_scope_id +configure:8117: gcc -c -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK conftest.c >&5 +configure:8117: $? = 0 +configure:8117: result: yes +configure:8131: checking if socklen_t is missing +configure:8149: gcc -c -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK conftest.c >&5 +conftest.c: In function 'main': +conftest.c:79: warning: unused variable 'slen' +configure:8149: $? = 0 +configure:8157: result: no +configure:8161: checking for broken rwlock in libpthread +configure:8273: gcc -o conftest -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib conftest.c -lpthread -lresolv -lmilter >&5 +configure:8273: $? = 0 +configure:8273: ./conftest +configure:8273: $? = 0 +configure:8284: result: no +configure:8296: checking if DNS resolver is re-entrant +configure:8321: gcc -c -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK -Wall -Werror conftest.c >&5 +configure:8321: $? = 0 +configure:8327: result: yes +configure:8686: creating ./config.status + +## ---------------------- ## +## Running config.status. ## +## ---------------------- ## + +This file was extended by milter-greylist config.status 4.6.4, which was +generated by GNU Autoconf 2.65. Invocation command line was + + CONFIG_FILES = + CONFIG_HEADERS = + CONFIG_LINKS = + CONFIG_COMMANDS = + $ ./config.status + +on adipocyte.hcpnet.net + +config.status:874: creating Makefile +config.status:874: creating milter-greylist.spec +config.status:874: creating config.h + +## ---------------- ## +## Cache variables. ## +## ---------------- ## + +ac_cv_c_compiler_gnu=yes +ac_cv_env_CC_set= +ac_cv_env_CC_value= +ac_cv_env_CFLAGS_set= +ac_cv_env_CFLAGS_value= +ac_cv_env_CPPFLAGS_set= +ac_cv_env_CPPFLAGS_value= +ac_cv_env_CPP_set= +ac_cv_env_CPP_value= +ac_cv_env_LDFLAGS_set= +ac_cv_env_LDFLAGS_value= +ac_cv_env_LIBS_set= +ac_cv_env_LIBS_value= +ac_cv_env_YACC_set= +ac_cv_env_YACC_value= +ac_cv_env_YFLAGS_set= +ac_cv_env_YFLAGS_value= +ac_cv_env_build_alias_set= +ac_cv_env_build_alias_value= +ac_cv_env_host_alias_set= +ac_cv_env_host_alias_value= +ac_cv_env_target_alias_set= +ac_cv_env_target_alias_value= +ac_cv_func_bzero=yes +ac_cv_func_fork=yes +ac_cv_func_fork_works=yes +ac_cv_func_getaddrinfo=yes +ac_cv_func_getnameinfo=yes +ac_cv_func_gettimeofday=yes +ac_cv_func_inet_ntoa=yes +ac_cv_func_initgroups=yes +ac_cv_func_lstat_dereferences_slashed_symlink=yes +ac_cv_func_malloc=yes +ac_cv_func_memcmp_working=yes +ac_cv_func_select=yes +ac_cv_func_select_args='int,fd_set *,struct timeval *' +ac_cv_func_setvbuf_reversed=no +ac_cv_func_socket=yes +ac_cv_func_stat_empty_string_bug=no +ac_cv_func_strcasestr=yes +ac_cv_func_strerror=yes +ac_cv_func_strftime=yes +ac_cv_func_strlcat=yes +ac_cv_func_vfork=yes +ac_cv_func_vfork_works=yes +ac_cv_func_vsyslog=yes +ac_cv_header_arpa_inet_h=yes +ac_cv_header_arpa_nameser_h=yes +ac_cv_header_fcntl_h=yes +ac_cv_header_getopt_h=yes +ac_cv_header_inttypes_h=yes +ac_cv_header_memory_h=yes +ac_cv_header_netdb_h=yes +ac_cv_header_netinet_in_h=yes +ac_cv_header_stdbool_h=yes +ac_cv_header_stdc=yes +ac_cv_header_stdint_h=yes +ac_cv_header_stdlib_h=yes +ac_cv_header_string_h=yes +ac_cv_header_strings_h=yes +ac_cv_header_sys_cdefs_h=yes +ac_cv_header_sys_param_h=yes +ac_cv_header_sys_queue_h=yes +ac_cv_header_sys_select_h=yes +ac_cv_header_sys_socket_h=yes +ac_cv_header_sys_stat_h=yes +ac_cv_header_sys_time_h=yes +ac_cv_header_sys_types_h=yes +ac_cv_header_syslog_h=yes +ac_cv_header_time=yes +ac_cv_header_unistd_h=yes +ac_cv_header_vfork_h=no +ac_cv_lib_inet6_getaddrinfo=no +ac_cv_lib_inet6_getnameinfo=no +ac_cv_lib_lex=-lfl +ac_cv_lib_milter_smfi_register=yes +ac_cv_lib_nsl_inet_pton=no +ac_cv_lib_pthread_pthread_create=yes +ac_cv_lib_resolv_inet_aton=yes +ac_cv_lib_socket__lnsl_socket=no +ac_cv_lib_socket_getaddrinfo=no +ac_cv_lib_socket_getnameinfo=no +ac_cv_lib_socket_socket=no +ac_cv_member_struct_smfiDesc_xxfi_data=yes +ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes +ac_cv_member_struct_sockaddr_sa_len=yes +ac_cv_objext=o +ac_cv_path_EGREP='/usr/bin/grep -E' +ac_cv_path_GREP=/usr/bin/grep +ac_cv_path_install='/usr/bin/install -c' +ac_cv_prog_CPP='gcc -E' +ac_cv_prog_LEX=flex +ac_cv_prog_MKDEP=mkdep +ac_cv_prog_MV=mv +ac_cv_prog_RM=rm +ac_cv_prog_SED=sed +ac_cv_prog_TEST=test +ac_cv_prog_TOUCH=touch +ac_cv_prog_TRUE=true +ac_cv_prog_ac_ct_CC=gcc +ac_cv_prog_cc_c89= +ac_cv_prog_cc_g=yes +ac_cv_prog_lex_root=lex.yy +ac_cv_prog_lex_yytext_pointer=yes +ac_cv_type_pid_t=yes +ac_cv_type_res_state=yes +ac_cv_type_size_t=yes +ipv6_cv_getaddrinfo=yes +ipv6_cv_getnameinfo=yes + +## ----------------- ## +## Output variables. ## +## ----------------- ## + +CC='gcc' +CFLAGS='-g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK -DCONFFILE=\"${CONFFILE}\" -DDUMPFILE=\"${DUMPFILE}\"' +CONFFILE='${SYSCONFDIR}/mail/greylist.conf' +CPP='gcc -E' +CPPFLAGS='' +DEFS='-DHAVE_CONFIG_H' +DUMPFILE='${LOCALSTATEDIR}/milter-greylist/greylist.db' +ECHO_C='' +ECHO_N='-n' +ECHO_T='' +EGREP='/usr/bin/grep -E' +EXEEXT='' +GREP='/usr/bin/grep' +INSTALL_DATA='${INSTALL} -m 644' +INSTALL_PROGRAM='${INSTALL}' +INSTALL_SCRIPT='${INSTALL}' +LDFLAGS=' -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib' +LEX='flex' +LEXLIB='-lfl' +LEX_OUTPUT_ROOT='lex.yy' +LIBOBJS='' +LIBS=' -lpthread -lresolv -lmilter' +LTLIBOBJS='' +MAKE_J1='-j 1' +MKDEP='mkdep' +MV='mv' +OBJEXT='o' +PACKAGE_BUGREPORT='manu@netbsd.org' +PACKAGE_NAME='milter-greylist' +PACKAGE_STRING='milter-greylist 4.6.4' +PACKAGE_TARNAME='milter-greylist' +PACKAGE_URL='' +PACKAGE_VERSION='4.6.4' +PATH_SEPARATOR=':' +RM='rm' +SED='sed' +SHELL='/bin/ksh' +TEST='test' +TOUCH='touch' +TRUE='true' +USER='root' +YACC='yacc' +YFLAGS='' +ac_ct_CC='gcc' +bindir='${exec_prefix}/bin' +build_alias='' +datadir='${datarootdir}' +datarootdir='${prefix}/share' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +dvidir='${docdir}' +exec_prefix='${prefix}' +host_alias='' +htmldir='${docdir}' +includedir='${prefix}/include' +infodir='${datarootdir}/info' +libdir='${exec_prefix}/lib' +libexecdir='${exec_prefix}/libexec' +localedir='${datarootdir}/locale' +localstatedir='${prefix}/var' +mandir='${datarootdir}/man' +oldincludedir='/usr/include' +pdfdir='${docdir}' +prefix='/usr/local' +program_transform_name='s,x,x,' +psdir='${docdir}' +sbindir='${exec_prefix}/sbin' +sharedstatedir='${prefix}/com' +sysconfdir='${prefix}/etc' +target_alias='' + +## ----------- ## +## confdefs.h. ## +## ----------- ## + +/* confdefs.h */ +#define PACKAGE_NAME "milter-greylist" +#define PACKAGE_TARNAME "milter-greylist" +#define PACKAGE_VERSION "4.6.4" +#define PACKAGE_STRING "milter-greylist 4.6.4" +#define PACKAGE_BUGREPORT "manu@netbsd.org" +#define PACKAGE_URL "" +#define YYTEXT_POINTER 1 +#define PACKAGE_VERSION_UPSTREAM "4.6.4" +#define PACKAGE_VERSION_SUFFIX "" +#define STDC_HEADERS 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRING_H 1 +#define HAVE_MEMORY_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_ARPA_INET_H 1 +#define HAVE_FCNTL_H 1 +#define HAVE_NETINET_IN_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRING_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_SYS_SOCKET_H 1 +#define HAVE_SYS_TIME_H 1 +#define HAVE_SYSLOG_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_SYS_PARAM_H 1 +#define HAVE_NETDB_H 1 +#define HAVE_GETOPT_H 1 +#define HAVE_SYS_CDEFS_H 1 +#define HAVE_ARPA_NAMESER_H 1 +#define HAVE_STDBOOL_H 1 +#define HAVE_SYS_QUEUE_H 1 +#define TIME_WITH_SYS_TIME 1 +#define HAVE_RES_STATE 1 +#define HAVE_FORK 1 +#define HAVE_VFORK 1 +#define HAVE_WORKING_VFORK 1 +#define HAVE_WORKING_FORK 1 +#define HAVE_STRFTIME 1 +#define HAVE_SYS_SELECT_H 1 +#define HAVE_SYS_SOCKET_H 1 +#define SELECT_TYPE_ARG1 int +#define SELECT_TYPE_ARG234 (fd_set *) +#define SELECT_TYPE_ARG5 (struct timeval *) +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +#define HAVE_BZERO 1 +#define HAVE_GETTIMEOFDAY 1 +#define HAVE_MALLOC 1 +#define HAVE_INET_NTOA 1 +#define HAVE_STRERROR 1 +#define HAVE_SELECT 1 +#define HAVE_SOCKET 1 +#define HAVE_INITGROUPS 1 +#define HAVE_STRLCAT 1 +#define HAVE_VSYSLOG 1 +#define HAVE_STRCASESTR 1 +#define HAVE_GETADDRINFO 1 +#define HAVE_GETNAMEINFO 1 +#define HAVE_RES_NINIT 1 +#define HAVE_RES_NDESTROY 1 +#define HAVE_GETADDRINFO 1 +#define HAVE_GETNAMEINFO 1 +#define HAVE_SA_LEN /**/ +#define HAVE_SIN6_SCOPE_ID 1 +#define BUILD_ENV "manu@adipocyte.hcpnet.net:/home/manu/milter-greylist-current Fri Aug 28 02:05:59 CEST 2020" + +configure: exit 0 diff -Nru milter-greylist-4.6.2/config.status milter-greylist-4.6.4/config.status --- milter-greylist-4.6.2/config.status 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/config.status 2020-08-28 00:06:45.000000000 +0000 @@ -0,0 +1,1060 @@ +#! /bin/ksh +# Generated by configure. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=${CONFIG_SHELL-/bin/ksh} +export SHELL +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by milter-greylist $as_me 4.6.4, which was +generated by GNU Autoconf 2.65. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +# Files that config.status was made for. +config_files=" Makefile milter-greylist.spec" +config_headers=" config.h" + +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Report bugs to ." + +ac_cs_config="'--with-libmilter=/usr/pkg'" +ac_cs_version="\ +milter-greylist config.status 4.6.4 +configured by ./configure, generated by GNU Autoconf 2.65, + with options \"$ac_cs_config\" + +Copyright (C) 2009 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='/home/manu/milter-greylist-current' +srcdir='.' +INSTALL='/usr/bin/install -c' +test -n "$AWK" || AWK=awk +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +if $ac_cs_recheck; then + set X '/bin/ksh' './configure' '--with-libmilter=/usr/pkg' $ac_configure_extra_args --no-create --no-recursion + shift + $as_echo "running CONFIG_SHELL=/bin/ksh $*" >&6 + CONFIG_SHELL='/bin/ksh' + export CONFIG_SHELL + exec "$@" +fi + +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "milter-greylist.spec") CONFIG_FILES="$CONFIG_FILES milter-greylist.spec" ;; + + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$tmp/subs1.awk" && +cat >>"$tmp/subs1.awk" <<\_ACAWK && +S["LTLIBOBJS"]="" +S["DUMPFILE"]="${LOCALSTATEDIR}/milter-greylist/greylist.db" +S["CONFFILE"]="${SYSCONFDIR}/mail/greylist.conf" +S["USER"]="root" +S["MAKE_J1"]="-j 1" +S["LIBOBJS"]="" +S["EGREP"]="/usr/bin/grep -E" +S["GREP"]="/usr/bin/grep" +S["CPP"]="gcc -E" +S["TOUCH"]="touch" +S["TRUE"]="true" +S["SED"]="sed" +S["TEST"]="test" +S["MV"]="mv" +S["RM"]="rm" +S["MKDEP"]="mkdep" +S["INSTALL_DATA"]="${INSTALL} -m 644" +S["INSTALL_SCRIPT"]="${INSTALL}" +S["INSTALL_PROGRAM"]="${INSTALL}" +S["YFLAGS"]="" +S["YACC"]="yacc" +S["LEXLIB"]="-lfl" +S["LEX_OUTPUT_ROOT"]="lex.yy" +S["LEX"]="flex" +S["OBJEXT"]="o" +S["EXEEXT"]="" +S["ac_ct_CC"]="gcc" +S["CPPFLAGS"]="" +S["LDFLAGS"]=" -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib" +S["CFLAGS"]="-g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK -DCONFFILE=\\\"${CONFFILE}\\\" -DDUMPFILE=\\\"${DUMPFILE}\\\"" +S["CC"]="gcc" +S["target_alias"]="" +S["host_alias"]="" +S["build_alias"]="" +S["LIBS"]=" -lpthread -lresolv -lmilter" +S["ECHO_T"]="" +S["ECHO_N"]="-n" +S["ECHO_C"]="" +S["DEFS"]="-DHAVE_CONFIG_H" +S["mandir"]="${datarootdir}/man" +S["localedir"]="${datarootdir}/locale" +S["libdir"]="${exec_prefix}/lib" +S["psdir"]="${docdir}" +S["pdfdir"]="${docdir}" +S["dvidir"]="${docdir}" +S["htmldir"]="${docdir}" +S["infodir"]="${datarootdir}/info" +S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}" +S["oldincludedir"]="/usr/include" +S["includedir"]="${prefix}/include" +S["localstatedir"]="${prefix}/var" +S["sharedstatedir"]="${prefix}/com" +S["sysconfdir"]="${prefix}/etc" +S["datadir"]="${datarootdir}" +S["datarootdir"]="${prefix}/share" +S["libexecdir"]="${exec_prefix}/libexec" +S["sbindir"]="${exec_prefix}/sbin" +S["bindir"]="${exec_prefix}/bin" +S["program_transform_name"]="s,x,x," +S["prefix"]="/usr/local" +S["exec_prefix"]="${prefix}" +S["PACKAGE_URL"]="" +S["PACKAGE_BUGREPORT"]="manu@netbsd.org" +S["PACKAGE_STRING"]="milter-greylist 4.6.4" +S["PACKAGE_VERSION"]="4.6.4" +S["PACKAGE_TARNAME"]="milter-greylist" +S["PACKAGE_NAME"]="milter-greylist" +S["PATH_SEPARATOR"]=":" +S["SHELL"]="/bin/ksh" +_ACAWK +cat >>"$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || as_fn_error "could not setup config files machinery" "$LINENO" 5 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$tmp/defines.awk" <<\_ACAWK || +BEGIN { +D["PACKAGE_NAME"]=" \"milter-greylist\"" +D["PACKAGE_TARNAME"]=" \"milter-greylist\"" +D["PACKAGE_VERSION"]=" \"4.6.4\"" +D["PACKAGE_STRING"]=" \"milter-greylist 4.6.4\"" +D["PACKAGE_BUGREPORT"]=" \"manu@netbsd.org\"" +D["PACKAGE_URL"]=" \"\"" +D["YYTEXT_POINTER"]=" 1" +D["PACKAGE_VERSION_UPSTREAM"]=" \"4.6.4\"" +D["PACKAGE_VERSION_SUFFIX"]=" \"\"" +D["STDC_HEADERS"]=" 1" +D["HAVE_SYS_TYPES_H"]=" 1" +D["HAVE_SYS_STAT_H"]=" 1" +D["HAVE_STDLIB_H"]=" 1" +D["HAVE_STRING_H"]=" 1" +D["HAVE_MEMORY_H"]=" 1" +D["HAVE_STRINGS_H"]=" 1" +D["HAVE_INTTYPES_H"]=" 1" +D["HAVE_STDINT_H"]=" 1" +D["HAVE_UNISTD_H"]=" 1" +D["HAVE_ARPA_INET_H"]=" 1" +D["HAVE_FCNTL_H"]=" 1" +D["HAVE_NETINET_IN_H"]=" 1" +D["HAVE_STDLIB_H"]=" 1" +D["HAVE_STRING_H"]=" 1" +D["HAVE_STRINGS_H"]=" 1" +D["HAVE_SYS_SOCKET_H"]=" 1" +D["HAVE_SYS_TIME_H"]=" 1" +D["HAVE_SYSLOG_H"]=" 1" +D["HAVE_UNISTD_H"]=" 1" +D["HAVE_SYS_PARAM_H"]=" 1" +D["HAVE_NETDB_H"]=" 1" +D["HAVE_GETOPT_H"]=" 1" +D["HAVE_SYS_CDEFS_H"]=" 1" +D["HAVE_ARPA_NAMESER_H"]=" 1" +D["HAVE_STDBOOL_H"]=" 1" +D["HAVE_SYS_QUEUE_H"]=" 1" +D["TIME_WITH_SYS_TIME"]=" 1" +D["HAVE_RES_STATE"]=" 1" +D["HAVE_FORK"]=" 1" +D["HAVE_VFORK"]=" 1" +D["HAVE_WORKING_VFORK"]=" 1" +D["HAVE_WORKING_FORK"]=" 1" +D["HAVE_STRFTIME"]=" 1" +D["HAVE_SYS_SELECT_H"]=" 1" +D["HAVE_SYS_SOCKET_H"]=" 1" +D["SELECT_TYPE_ARG1"]=" int" +D["SELECT_TYPE_ARG234"]=" (fd_set *)" +D["SELECT_TYPE_ARG5"]=" (struct timeval *)" +D["LSTAT_FOLLOWS_SLASHED_SYMLINK"]=" 1" +D["HAVE_BZERO"]=" 1" +D["HAVE_GETTIMEOFDAY"]=" 1" +D["HAVE_MALLOC"]=" 1" +D["HAVE_INET_NTOA"]=" 1" +D["HAVE_STRERROR"]=" 1" +D["HAVE_SELECT"]=" 1" +D["HAVE_SOCKET"]=" 1" +D["HAVE_INITGROUPS"]=" 1" +D["HAVE_STRLCAT"]=" 1" +D["HAVE_VSYSLOG"]=" 1" +D["HAVE_STRCASESTR"]=" 1" +D["HAVE_GETADDRINFO"]=" 1" +D["HAVE_GETNAMEINFO"]=" 1" +D["HAVE_RES_NINIT"]=" 1" +D["HAVE_RES_NDESTROY"]=" 1" +D["HAVE_GETADDRINFO"]=" 1" +D["HAVE_GETNAMEINFO"]=" 1" +D["HAVE_SA_LEN"]=" /**/" +D["HAVE_SIN6_SCOPE_ID"]=" 1" +D["BUILD_ENV"]=" \"manu@adipocyte.hcpnet.net:/home/manu/milter-greylist-current Fri Aug 28 02:05:59 CEST 2020\"" + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ { + line = $ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #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. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK + as_fn_error "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + ac_datarootdir_hack=' + s&@datadir@&${datarootdir}&g + s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g + s&@infodir@&${datarootdir}/info&g + s&@localedir@&${datarootdir}/locale&g + s&@mandir@&${datarootdir}/man&g + s&\${datarootdir}&${prefix}/share&g' ;; +esac +ac_sed_extra="/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +} + +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&2;} + + rm -f "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" + } >"$tmp/config.h" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$tmp/config.h" "$ac_file" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error "could not create -" "$LINENO" 5 + fi + ;; + + + esac + +done # for ac_tag + + +as_fn_exit 0 diff -Nru milter-greylist-4.6.2/configure milter-greylist-4.6.4/configure --- milter-greylist-4.6.2/configure 2016-11-24 04:14:01.000000000 +0000 +++ milter-greylist-4.6.4/configure 2020-08-28 00:06:44.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.65 for milter-greylist 4.6.2. +# Generated by GNU Autoconf 2.65 for milter-greylist 4.6.4. # # Report bugs to . # @@ -552,8 +552,8 @@ # Identity of this package. PACKAGE_NAME='milter-greylist' PACKAGE_TARNAME='milter-greylist' -PACKAGE_VERSION='4.6.2' -PACKAGE_STRING='milter-greylist 4.6.2' +PACKAGE_VERSION='4.6.4' +PACKAGE_STRING='milter-greylist 4.6.4' PACKAGE_BUGREPORT='manu@netbsd.org' PACKAGE_URL='' @@ -683,6 +683,7 @@ with_libcurl with_libcurl_static with_libGeoIP +with_libmaxminddb with_libdmalloc with_libspf2 with_libspf2_static @@ -1264,7 +1265,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures milter-greylist 4.6.2 to adapt to many kinds of systems. +\`configure' configures milter-greylist 4.6.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1325,7 +1326,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of milter-greylist 4.6.2:";; + short | recursive ) echo "Configuration of milter-greylist 4.6.4:";; esac cat <<\_ACEOF @@ -1365,6 +1366,7 @@ --with-libcurl=DIR Find libcurl in DIR --with-libcurl-static=DIR Find libcurl in DIR and link statically --with-libGeoIP=DIR Find libGeoIP in DIR + --with-libmaxminddb=DIR Find GeoIP2 libmaxminddb in DIR --with-libdmalloc=DIR Find libdmalloc in DIR --with-libspf2=DIR Find libspf2 in DIR --with-libspf2-static=DIR Find libspf2 in DIR and link statically @@ -1464,7 +1466,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -milter-greylist configure 4.6.2 +milter-greylist configure 4.6.4 generated by GNU Autoconf 2.65 Copyright (C) 2009 Free Software Foundation, Inc. @@ -1946,7 +1948,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by milter-greylist $as_me 4.6.2, which was +It was created by milter-greylist $as_me 4.6.4, which was generated by GNU Autoconf 2.65. Invocation command line was $ $0 $@ @@ -4909,10 +4911,24 @@ if test "${with_libGeoIP+set}" = set; then : withval=$with_libGeoIP; CFLAGS=$CFLAGS" -I$withval/include -DUSE_GEOIP" LIBS="-lGeoIP $LIBS" + USE_GEOIP="true" LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" fi +# Check whether --with-libmaxminddb was given. +if test "${with_libmaxminddb+set}" = set; then : + withval=$with_libmaxminddb; if test -z "$USE_GEOIP"; then + CFLAGS=$CFLAGS" -I$withval/include -DUSE_GEOIP2" + LIBS="-lmaxminddb $LIBS" + LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + else + echo "--with-libGeoIP and -with-libmaxminddb are mutually exclusive"; + exit 1; + fi +fi + + # Check whether --with-libdmalloc was given. if test "${with_libdmalloc+set}" = set; then : withval=$with_libdmalloc; CFLAGS=$CFLAGS" -I$withval/include -DUSE_DMALLOC" @@ -9070,7 +9086,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by milter-greylist $as_me 4.6.2, which was +This file was extended by milter-greylist $as_me 4.6.4, which was generated by GNU Autoconf 2.65. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -9132,7 +9148,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -milter-greylist config.status 4.6.2 +milter-greylist config.status 4.6.4 configured by $0, generated by GNU Autoconf 2.65, with options \\"\$ac_cs_config\\" diff -Nru milter-greylist-4.6.2/configure.ac milter-greylist-4.6.4/configure.ac --- milter-greylist-4.6.2/configure.ac 2016-11-24 04:14:01.000000000 +0000 +++ milter-greylist-4.6.4/configure.ac 2020-08-28 00:06:44.000000000 +0000 @@ -3,7 +3,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT(milter-greylist, 4.6.2, manu@netbsd.org) +AC_INIT(milter-greylist, 4.6.4, manu@netbsd.org) AC_CONFIG_SRCDIR([milter-greylist.c]) AC_CONFIG_HEADER([config.h]) @@ -459,7 +459,18 @@ [ --with-libGeoIP=DIR Find libGeoIP in DIR], [CFLAGS=$CFLAGS" -I$withval/include -DUSE_GEOIP" LIBS="-lGeoIP $LIBS" + USE_GEOIP="true" LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"]) +AC_ARG_WITH(libmaxminddb, + [ --with-libmaxminddb=DIR Find GeoIP2 libmaxminddb in DIR], + [if test -z "$USE_GEOIP"; then + CFLAGS=$CFLAGS" -I$withval/include -DUSE_GEOIP2" + LIBS="-lmaxminddb $LIBS" + LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib" + else + echo "--with-libGeoIP and -with-libmaxminddb are mutually exclusive"; + exit 1; + fi]) AC_ARG_WITH(libdmalloc, [ --with-libdmalloc=DIR Find libdmalloc in DIR], [CFLAGS=$CFLAGS" -I$withval/include -DUSE_DMALLOC" diff -Nru milter-greylist-4.6.2/conf_lex.l milter-greylist-4.6.4/conf_lex.l --- milter-greylist-4.6.2/conf_lex.l 2016-11-24 04:11:37.000000000 +0000 +++ milter-greylist-4.6.4/conf_lex.l 2020-08-28 00:06:44.000000000 +0000 @@ -117,6 +117,7 @@ maxpeek [Mm][Aa][Xx][Pp][Ee][Ee][Kk] geoipdb [Gg][Ee][Oo][Ii][Pp][Dd][Bb] geoipv6db [Gg][Ee][Oo][Ii][Pp][Vv]6[Dd][Bb] +geoip2db [Gg][Ee][Oo][Ii][Pp]2[Dd][Bb] geoip [Gg][Ee][Oo][Ii][Pp] ldapconf [Ll][Dd][Aa][Pp][Cc][Oo][Nn][Ff] ldapcheck [Ll][Dd][Aa][Pp][Cc][Hh][Ee][Cc][Kk] @@ -313,6 +314,7 @@ {geoipdb} { return GEOIPDB; } {geoipv6db} { return GEOIPV6DB; } {geoip} { return GEOIP; } +{geoip2db} { return GEOIP2DB; } {ldapconf} { return LDAPCONF; } {ldapcheck} { return LDAPCHECK; } {fixldapcheck} { return FIXLDAPCHECK; } diff -Nru milter-greylist-4.6.2/conf_yacc.y milter-greylist-4.6.4/conf_yacc.y --- milter-greylist-4.6.2/conf_yacc.y 2016-11-24 04:11:37.000000000 +0000 +++ milter-greylist-4.6.4/conf_yacc.y 2020-08-28 00:06:44.000000000 +0000 @@ -19,6 +19,7 @@ %token DOMATCH DATA LOCALADDR ADDFOOTER CONTINUE FIXLDAPCHECK SUBJTAG %token NOENCODE NOESCAPE TSIG NSUPDATE SERVERS RNAME RVALUE TTL CLASS TYPE %token UNBRACKET SET RSET EQSET INCSET DECSET LOG RAWFROM +%token GEOIP2DB %{ #include "config.h" @@ -26,7 +27,7 @@ #ifdef HAVE_SYS_CDEFS_H #include #ifdef __RCSID -__RCSID("$Id: conf_yacc.y,v 1.129 2016/11/24 04:11:37 manu Exp $"); +__RCSID("$Id: conf_yacc.y,v 1.130 2016/11/25 03:34:22 manu Exp $"); #endif #endif @@ -59,6 +60,9 @@ #ifdef USE_GEOIP #include "geoip.h" #endif +#ifdef USE_GEOIP2 +#include "geoip2.h" +#endif #ifdef USE_P0F #include "p0f.h" #endif @@ -150,6 +154,7 @@ | lines user '\n' | lines geoipdb '\n' | lines geoipv6db '\n' + | lines geoip2db '\n' | lines nodetach '\n' | lines lazyaw '\n' | lines report '\n' @@ -785,6 +790,19 @@ #endif } ; +geoip2db: GEOIP2DB QSTRING { +#ifdef USE_GEOIP2 + char path[QSTRLEN + 1]; + + geoip2_set_db(quotepath(path, $2, QSTRLEN)); +#else + mg_log(LOG_INFO, + "GeoIP2 support not compiled in, " + "ignore line %d", + conf_line); +#endif + } + ; report: REPORT NONE { conf.c_report = C_GLNONE; } | REPORT DELAYS { conf.c_report = C_DELAYS; } | REPORT NODELAYS { conf.c_report = C_NODELAYS; } @@ -1094,6 +1112,8 @@ | heloregex_clause | fromaddr_clause | fromregex_clause + | rawfromaddr_clause + | rawfromregex_clause | rcptaddr_clause | rcptregex_clause | domainaddr_clause @@ -1335,7 +1355,7 @@ ; geoip_clause: GEOIP QSTRING { -#ifdef USE_GEOIP +#if defined(USE_GEOIP) || defined(USE_GEOIP2) char ccode[IPADDRSTRLEN + 1]; acl_add_clause(AC_GEOIP, diff -Nru milter-greylist-4.6.2/CVS/Entries milter-greylist-4.6.4/CVS/Entries --- milter-greylist-4.6.2/CVS/Entries 2016-11-24 03:39:02.000000000 +0000 +++ milter-greylist-4.6.4/CVS/Entries 2020-08-28 00:06:44.000000000 +0000 @@ -1,81 +1,81 @@ -/ChangeLog/1.552/Thu Nov 24 04:11:37 2016//Tmilter-greylist-4-6-2 -/Makefile/1.169/Thu Nov 24 04:14:01 2016//Tmilter-greylist-4-6-2 -/Makefile.in/1.75/Mon Sep 2 03:54:35 2013//Tmilter-greylist-4-6-2 -/README/1.68/Sun Jan 31 05:37:00 2016//Tmilter-greylist-4-6-2 -/acl.c/1.118/Thu Nov 24 03:59:40 2016//Tmilter-greylist-4-6-2 -/acl.h/1.57/Wed Nov 2 17:41:05 2016//Tmilter-greylist-4-6-2 -/brokenmfapi.c/1.1/Sun Sep 1 05:00:16 2013//Tmilter-greylist-4-6-2 -/brokenmfapi.h/1.1/Sun Sep 1 05:00:16 2013//Tmilter-greylist-4-6-2 -/brokenmfapi.sh/1.2/Tue Sep 3 04:08:16 2013//Tmilter-greylist-4-6-2 -/brokenmfapi_gen.c/1.1/Sun Sep 1 05:00:16 2013//Tmilter-greylist-4-6-2 -/clock.c/1.5/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/clock.h/1.1/Fri Feb 2 02:10:23 2007//Tmilter-greylist-4-6-2 -/conf.c/1.74/Tue Feb 4 15:19:25 2014//Tmilter-greylist-4-6-2 -/conf.h/1.58/Tue Feb 4 15:19:25 2014//Tmilter-greylist-4-6-2 -/conf_lex.l/1.112/Thu Nov 24 04:11:37 2016//Tmilter-greylist-4-6-2 -/conf_yacc.y/1.129/Thu Nov 24 04:11:37 2016//Tmilter-greylist-4-6-2 -/config.h/1.165/Thu Nov 24 04:14:01 2016//Tmilter-greylist-4-6-2 -/config.h.in/1.54/Mon Feb 3 16:50:29 2014//Tmilter-greylist-4-6-2 -/configure/1.291/Thu Nov 24 04:14:01 2016//Tmilter-greylist-4-6-2 -/configure.ac/1.302/Thu Nov 24 04:14:01 2016//Tmilter-greylist-4-6-2 -/dkimcheck.c/1.10/Tue Jul 12 03:06:21 2016//Tmilter-greylist-4-6-2 -/dkimcheck.h/1.2/Sun Sep 7 00:13:34 2008//Tmilter-greylist-4-6-2 -/dnsrbl.c/1.31/Sun Jan 3 05:06:32 2016//Tmilter-greylist-4-6-2 -/dnsrbl.h/1.11/Sun Jan 3 05:06:32 2016//Tmilter-greylist-4-6-2 -/dump.c/1.43/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/dump.h/1.15/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/dump_lex.l/1.22/Mon Sep 7 12:56:54 2009//Tmilter-greylist-4-6-2 -/dump_yacc.y/1.24/Sat Oct 31 21:28:03 2009//Tmilter-greylist-4-6-2 -/fd_pool.c/1.3/Wed Jun 16 01:30:30 2010//Tmilter-greylist-4-6-2 -/fd_pool.h/1.1/Wed Oct 3 10:52:23 2007//Tmilter-greylist-4-6-2 -/geoip.c/1.7/Thu Nov 24 04:11:37 2016//Tmilter-greylist-4-6-2 -/geoip.h/1.4/Thu Nov 24 04:11:37 2016//Tmilter-greylist-4-6-2 -/greylist.conf/1.50/Tue Aug 13 12:45:08 2013//Tmilter-greylist-4-6-2 -/greylist.conf.5/1.132/Thu Nov 24 04:11:37 2016//Tmilter-greylist-4-6-2 -/greylist2.conf/1.4/Sat May 5 00:42:32 2012//Tmilter-greylist-4-6-2 -/install-sh/1.1/Sun Feb 29 21:07:51 2004//Tmilter-greylist-4-6-2 -/ldapcheck.c/1.19/Fri Feb 21 08:09:53 2014//Tmilter-greylist-4-6-2 -/ldapcheck.h/1.6/Thu Sep 20 08:31:49 2012//Tmilter-greylist-4-6-2 -/list.c/1.19/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/list.h/1.8/Mon Feb 9 04:12:07 2009//Tmilter-greylist-4-6-2 -/macro.c/1.10/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/macro.h/1.2/Fri Dec 29 18:32:44 2006//Tmilter-greylist-4-6-2 -/milter-greylist.8/1.49/Sun Jan 3 05:06:32 2016//Tmilter-greylist-4-6-2 -/milter-greylist.c/1.283/Thu Nov 24 03:59:40 2016//Tmilter-greylist-4-6-2 -/milter-greylist.h/1.99/Wed Nov 2 17:41:06 2016//Tmilter-greylist-4-6-2 -/milter-greylist.m4/1.4/Mon Jan 24 02:08:31 2011//Tmilter-greylist-4-6-2 -/milter-greylist.spec/1.154/Thu Nov 24 04:14:01 2016//Tmilter-greylist-4-6-2 -/milter-greylist.spec.in/1.12/Tue Sep 11 04:29:19 2012//Tmilter-greylist-4-6-2 -/mx.c/1.4/Sun Oct 5 15:10:18 2014//Tmilter-greylist-4-6-2 -/mx.h/1.1/Thu Nov 5 02:07:07 2009//Tmilter-greylist-4-6-2 -/nsupdate.c/1.4/Sun Jan 31 05:35:38 2016//Tmilter-greylist-4-6-2 -/nsupdate.h/1.2/Tue Oct 15 07:45:37 2013//Tmilter-greylist-4-6-2 -/p0f.c/1.18/Tue Aug 13 12:42:25 2013//Tmilter-greylist-4-6-2 -/p0f.h/1.3/Tue Feb 21 05:53:44 2012//Tmilter-greylist-4-6-2 -/pending.c/1.93/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/pending.h/1.44/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/prop.c/1.17/Thu Jun 18 03:42:48 2015//Tmilter-greylist-4-6-2 -/prop.h/1.10/Tue Jun 16 12:27:29 2015//Tmilter-greylist-4-6-2 -/queue.h/1.4/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/ratelimit.c/1.6/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/ratelimit.h/1.3/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/rc-bsd.sh.in/1.3/Fri Dec 8 05:03:54 2006//Tmilter-greylist-4-6-2 -/rc-debian.sh.in/1.8/Wed Sep 9 12:19:17 2009//Tmilter-greylist-4-6-2 -/rc-gentoo.sh.in/1.2/Mon Feb 15 16:38:04 2010//Tmilter-greylist-4-6-2 -/rc-redhat.sh.in/1.10/Wed Oct 28 04:28:52 2015//Tmilter-greylist-4-6-2 -/rc-solaris.sh.in/1.2/Thu Jul 29 06:53:02 2004//Tmilter-greylist-4-6-2 -/rc-suse.sh.in/1.1/Thu Dec 9 22:19:40 2004//Tmilter-greylist-4-6-2 -/sm_os.h/1.1/Thu Aug 21 21:05:35 2008//Tmilter-greylist-4-6-2 -/spamd.c/1.24/Sat Feb 27 15:05:35 2016//Tmilter-greylist-4-6-2 -/spamd.h/1.1/Fri Sep 26 23:35:44 2008//Tmilter-greylist-4-6-2 -/spf.c/1.40/Fri Oct 30 18:22:30 2015//Tmilter-greylist-4-6-2 -/spf.h/1.14/Tue Nov 6 11:39:33 2007//Tmilter-greylist-4-6-2 -/stat.c/1.13/Thu Nov 24 03:59:40 2016//Tmilter-greylist-4-6-2 -/stat.h/1.1/Mon Jan 1 17:29:29 2007//Tmilter-greylist-4-6-2 -/store.c/1.5/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/store.h/1.5/Mon Apr 12 12:04:41 2010//Tmilter-greylist-4-6-2 -/sync.c/1.93/Sun Jan 31 05:35:38 2016//Tmilter-greylist-4-6-2 -/sync.h/1.23/Mon Jun 8 19:05:50 2015//Tmilter-greylist-4-6-2 -/urlcheck.c/1.43/Sat Jan 19 16:01:15 2013//Tmilter-greylist-4-6-2 -/urlcheck.h/1.15/Thu Sep 20 08:31:49 2012//Tmilter-greylist-4-6-2 +/stat.c/1.13/Thu Nov 24 03:59:40 2016// +/acl.c/1.118/Thu Nov 24 03:59:40 2016// +/conf_lex.l/1.112/Thu Nov 24 04:11:37 2016// +/geoip.h/1.4/Thu Nov 24 04:11:37 2016// +/greylist.conf.5/1.132/Thu Nov 24 04:11:37 2016// +/Makefile/1.169/Thu Nov 24 04:14:01 2016// +/config.h/1.165/Thu Nov 24 03:37:43 2016// +/configure/1.291/Thu Nov 24 03:37:35 2016// +/configure.ac/1.302/Thu Nov 24 04:14:01 2016// +/milter-greylist.spec/1.154/Thu Nov 24 04:14:01 2016// +/conf_yacc.y/1.130/Fri Nov 25 03:34:22 2016// +/geoip.c/1.8/Tue Nov 29 00:43:35 2016// +/Makefile.in/1.75/Thu Nov 24 03:20:56 2016// +/acl.h/1.57/Thu Nov 24 03:20:57 2016// +/brokenmfapi.c/1.1/Thu Nov 24 03:20:57 2016// +/brokenmfapi.h/1.1/Thu Nov 24 03:20:57 2016// +/brokenmfapi.sh/1.2/Thu Nov 24 03:20:57 2016// +/brokenmfapi_gen.c/1.1/Thu Nov 24 03:20:57 2016// +/clock.c/1.5/Thu Nov 24 03:20:58 2016// +/clock.h/1.1/Thu Nov 24 03:20:58 2016// +/conf.c/1.74/Thu Nov 24 03:20:58 2016// +/conf.h/1.58/Thu Nov 24 03:20:58 2016// +/config.h.in/1.54/Thu Nov 24 03:20:59 2016// +/dkimcheck.c/1.10/Thu Nov 24 03:21:00 2016// +/dkimcheck.h/1.2/Thu Nov 24 03:21:00 2016// +/dnsrbl.c/1.31/Thu Nov 24 03:21:00 2016// +/dnsrbl.h/1.11/Thu Nov 24 03:21:00 2016// +/dump.c/1.43/Thu Nov 24 03:21:01 2016// +/dump.h/1.15/Thu Nov 24 03:21:01 2016// +/dump_lex.l/1.22/Thu Nov 24 03:21:01 2016// +/dump_yacc.y/1.24/Thu Nov 24 03:21:01 2016// +/fd_pool.c/1.3/Thu Nov 24 03:21:01 2016// +/fd_pool.h/1.1/Thu Nov 24 03:21:01 2016// +/greylist.conf/1.50/Thu Nov 24 03:21:02 2016// +/greylist2.conf/1.4/Thu Nov 24 03:21:02 2016// +/install-sh/1.1/Thu Nov 24 03:21:02 2016// +/ldapcheck.c/1.19/Thu Nov 24 03:21:02 2016// +/ldapcheck.h/1.6/Thu Nov 24 03:21:02 2016// +/list.c/1.19/Thu Nov 24 03:21:02 2016// +/list.h/1.8/Thu Nov 24 03:21:02 2016// +/macro.c/1.10/Thu Nov 24 03:21:03 2016// +/macro.h/1.2/Thu Nov 24 03:21:03 2016// +/milter-greylist.8/1.49/Thu Nov 24 03:21:04 2016// +/milter-greylist.m4/1.4/Thu Nov 24 03:21:04 2016// +/milter-greylist.spec.in/1.12/Thu Nov 24 03:21:05 2016// +/mx.c/1.4/Thu Nov 24 03:21:05 2016// +/mx.h/1.1/Thu Nov 24 03:21:05 2016// +/nsupdate.c/1.4/Thu Nov 24 03:21:06 2016// +/nsupdate.h/1.2/Thu Nov 24 03:21:06 2016// +/p0f.c/1.18/Thu Nov 24 03:21:06 2016// +/p0f.h/1.3/Thu Nov 24 03:21:06 2016// +/pending.c/1.93/Thu Nov 24 03:21:07 2016// +/pending.h/1.44/Thu Nov 24 03:21:07 2016// +/prop.c/1.17/Thu Nov 24 03:21:07 2016// +/prop.h/1.10/Thu Nov 24 03:21:07 2016// +/queue.h/1.4/Thu Nov 24 03:21:07 2016// +/ratelimit.c/1.6/Thu Nov 24 03:21:07 2016// +/ratelimit.h/1.3/Thu Nov 24 03:21:07 2016// +/rc-bsd.sh.in/1.3/Thu Nov 24 03:21:08 2016// +/rc-debian.sh.in/1.8/Thu Nov 24 03:21:08 2016// +/rc-gentoo.sh.in/1.2/Thu Nov 24 03:21:08 2016// +/rc-redhat.sh.in/1.10/Thu Nov 24 03:21:08 2016// +/rc-solaris.sh.in/1.2/Thu Nov 24 03:21:08 2016// +/rc-suse.sh.in/1.1/Thu Nov 24 03:21:08 2016// +/sm_os.h/1.1/Thu Nov 24 03:21:08 2016// +/spamd.c/1.24/Thu Nov 24 03:21:08 2016// +/spamd.h/1.1/Thu Nov 24 03:21:08 2016// +/spf.c/1.40/Thu Nov 24 03:21:09 2016// +/spf.h/1.14/Thu Nov 24 03:21:09 2016// +/stat.h/1.1/Thu Nov 24 03:21:09 2016// +/store.c/1.5/Thu Nov 24 03:21:09 2016// +/store.h/1.5/Thu Nov 24 03:21:09 2016// +/sync.c/1.93/Thu Nov 24 03:21:09 2016// +/sync.h/1.23/Thu Nov 24 03:21:09 2016// +/urlcheck.c/1.43/Thu Nov 24 03:21:10 2016// +/urlcheck.h/1.15/Thu Nov 24 03:21:10 2016// +/README/1.69/Fri Jul 7 21:59:13 2017// +/ChangeLog/1.556/Sat Jul 8 00:08:51 2017// +/milter-greylist.c/1.284/Tue Jul 11 03:17:33 2017// +/milter-greylist.h/1.100/Tue Jul 11 03:17:33 2017// D diff -Nru milter-greylist-4.6.2/CVS/Tag milter-greylist-4.6.4/CVS/Tag --- milter-greylist-4.6.2/CVS/Tag 2016-11-24 03:39:02.000000000 +0000 +++ milter-greylist-4.6.4/CVS/Tag 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -Nmilter-greylist-4-6-2 diff -Nru milter-greylist-4.6.2/debian/changelog milter-greylist-4.6.4/debian/changelog --- milter-greylist-4.6.2/debian/changelog 2021-01-13 13:19:29.000000000 +0000 +++ milter-greylist-4.6.4/debian/changelog 2021-08-30 19:27:26.000000000 +0000 @@ -1,3 +1,12 @@ +milter-greylist (4.6.4-1) unstable; urgency=medium + + * QA upload. + * Add salsa ci. + * New upstream version 4.6.4 + - Refresh patches. + + -- Sudip Mukherjee Mon, 30 Aug 2021 20:27:26 +0100 + milter-greylist (4.6.2-3) unstable; urgency=medium * QA upload. diff -Nru milter-greylist-4.6.2/debian/patches/default_source.patch milter-greylist-4.6.4/debian/patches/default_source.patch --- milter-greylist-4.6.2/debian/patches/default_source.patch 2021-01-13 12:53:08.000000000 +0000 +++ milter-greylist-4.6.4/debian/patches/default_source.patch 2021-08-30 18:39:45.000000000 +0000 @@ -5,20 +5,24 @@ Origin: vendor Forwarded: no ---- milter-greylist-4.5.11.orig/Makefile.in -+++ milter-greylist-4.5.11/Makefile.in +diff --git a/Makefile.in b/Makefile.in +index 49bf916..1cade24 100644 +--- a/Makefile.in ++++ b/Makefile.in @@ -29,7 +29,7 @@ # OF THE POSSIBILITY OF SUCH DAMAGE. # --CFLAGS= @CFLAGS@ -D_BSD_SOURCE -I. -I${SRCDIR} @CPPFLAGS@ -+CFLAGS= @CFLAGS@ -D_DEFAULT_SOURCE -I. -I${SRCDIR} @CPPFLAGS@ +-CFLAGS= @CFLAGS@ -D_BSD_SOURCE -DYY_NO_INPUT -I. -I${SRCDIR} @CPPFLAGS@ ++CFLAGS= @CFLAGS@ -D_DEFAULT_SOURCE -DYY_NO_INPUT -I. -I${SRCDIR} @CPPFLAGS@ LDFLAGS= @LDFLAGS@ LIBS= @LIBS@ prefix= @prefix@ ---- milter-greylist-4.5.11.orig/configure -+++ milter-greylist-4.5.11/configure -@@ -8134,7 +8134,7 @@ $as_echo "$xopen" >&6; } +diff --git a/configure b/configure +index 1c85163..f6dfb36 100755 +--- a/configure ++++ b/configure +@@ -8042,7 +8042,7 @@ $as_echo "$xopen" >&6; } # Tru64 Unix needs -D_OSF_SOURCE for IPV6 support SAVEDCFLAGS=$CFLAGS @@ -27,7 +31,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -D_OSF_SOURCE is needed for IPV6 support" >&5 $as_echo_n "checking if -D_OSF_SOURCE is needed for IPV6 support... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext -@@ -8390,7 +8390,7 @@ $as_echo_n "checking if DNS resolver is +@@ -8298,7 +8298,7 @@ $as_echo_n "checking if DNS resolver is re-entrant... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -36,9 +40,11 @@ #include #include ---- milter-greylist-4.5.11.orig/configure.ac -+++ milter-greylist-4.5.11/configure.ac -@@ -1079,7 +1079,7 @@ AC_MSG_RESULT([$xopen]) +diff --git a/configure.ac b/configure.ac +index 214389c..64fbf2a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1067,7 +1067,7 @@ AC_MSG_RESULT([$xopen]) # Tru64 Unix needs -D_OSF_SOURCE for IPV6 support SAVEDCFLAGS=$CFLAGS @@ -47,7 +53,7 @@ AC_MSG_CHECKING([if -D_OSF_SOURCE is needed for IPV6 support]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ #include -@@ -1240,7 +1240,7 @@ AC_ARG_WITH(thread-safe-resolver, +@@ -1228,7 +1228,7 @@ AC_ARG_WITH(thread-safe-resolver, CFLAGS=$CFLAGS$efl AC_MSG_CHECKING([if DNS resolver is re-entrant]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ diff -Nru milter-greylist-4.6.2/debian/salsa-ci.yml milter-greylist-4.6.4/debian/salsa-ci.yml --- milter-greylist-4.6.2/debian/salsa-ci.yml 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/debian/salsa-ci.yml 2021-08-26 18:42:03.000000000 +0000 @@ -0,0 +1,11 @@ +# For more information on what jobs are run see: +# https://salsa.debian.org/salsa-ci-team/pipeline +# +# To enable the jobs, go to your repository (at salsa.debian.org) +# and click over Settings > CI/CD > Expand (in General pipelines). +# In "Custom CI config path" write debian/salsa-ci.yml and click +# in "Save Changes". The CI tests will run after the next commit. +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff -Nru milter-greylist-4.6.2/.#dkimcheck.c.1.7 milter-greylist-4.6.4/.#dkimcheck.c.1.7 --- milter-greylist-4.6.2/.#dkimcheck.c.1.7 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/.#dkimcheck.c.1.7 2020-08-28 00:06:45.000000000 +0000 @@ -0,0 +1,413 @@ +/* $Id: dkimcheck.c,v 1.7 2013/01/19 16:01:15 manu Exp $ */ + +/* + * Copyright (c) 2008 Emmanuel Dreyfus + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Emmanuel Dreyfus + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* For DKIM support you will need to build the Sendmail milter-dkim + * (now formally obsoleted) and in particular its libdkim, source from: + * http://sourceforge.net/projects/dkim-milter + */ + +#include "config.h" + +#ifdef USE_DKIM + +#ifdef HAVE_SYS_CDEFS_H +#include +#ifdef __RCSID +__RCSID("$Id: dkimcheck.c,v 1.7 2013/01/19 16:01:15 manu Exp $"); +#endif +#endif +#include +#ifdef HAVE_STDBOOL_H +#include +#endif +#include +#include +#include +#include +#include +#include +#ifdef HAVE_STRINGS_H +#include +#endif +#include +#include + +#include "conf.h" +#include "spf.h" +#include "acl.h" +#include "milter-greylist.h" +#include "dkimcheck.h" + +static DKIM_LIB *dkim_ptr = NULL; +static sfsistat dkimcheck_error(struct mlfi_priv *); + +static sfsistat +dkimcheck_error(priv) + struct mlfi_priv *priv; +{ + sfsistat retval; + + switch (priv->priv_dkimstat) { + case DKIM_STAT_OK: + retval = SMFIS_CONTINUE; + break; + + case DKIM_STAT_NOSIG: + mg_log(LOG_DEBUG, "DKIM failed: %s", + dkim_getresultstr(priv->priv_dkimstat)); + + retval = SMFIS_CONTINUE; + break; + + case DKIM_STAT_KEYFAIL: + case DKIM_STAT_CBTRYAGAIN: + mg_log(LOG_WARNING, "DKIM failed: %s", + dkim_getresultstr(priv->priv_dkimstat)); + + retval = SMFIS_TEMPFAIL; + break; + + case DKIM_STAT_INTERNAL: + mg_log(LOG_WARNING, "DKIM failed: %s", + dkim_getresultstr(priv->priv_dkimstat)); + + exit(EX_OSERR); + break; + + default: + mg_log(LOG_ERR, "DKIM failed: %s", + dkim_getresultstr(priv->priv_dkimstat)); + + retval = SMFIS_CONTINUE; + break; + } + + if (priv->priv_dkimstat != DKIM_STAT_OK) { + (void)dkim_free(priv->priv_dkim); + priv->priv_dkim = NULL; + } + + return retval; +} + +void +dkimcheck_init(void) +{ + if ((dkim_ptr = dkim_init(NULL, NULL)) == NULL) { + mg_log(LOG_ERR, "dkim_init() failed"); + exit(EX_OSERR); + } + + return; +} + +void +dkimcheck_clear(void) +{ + /* + * XXX This probably leaves stale handles for messages being processed + */ + if (dkim_ptr != NULL) + dkim_close(dkim_ptr); + dkim_ptr = NULL; + + dkimcheck_init(); + return; +} + +/* + * Translate LF to CRLF, for end of header, + * but also for \r found inside multiline headers + */ +static char * +header_lf2crlf(name, value, lenp) + char *name; + char *value; + size_t *lenp; +{ + char *header; + size_t namelen; + size_t len; + char *cp; + char last; + int i; + + /* +2 for ": and +1 for trailing \0' */ + namelen = strlen(name); + *lenp = namelen + 2 + 1; + + /* Add value length, plus room for each lf -> crlf conversion */ + last = '\0'; + for (cp = value; *cp; cp++) { + if (*cp == '\n' && last != '\r') + *lenp++; + *lenp++; + last = *cp; + } + + if ((header = malloc(*lenp)) == NULL) { + mg_log(LOG_ERR, "malloc(%d) failed: %s", *lenp, strerror(errno)); + exit (EX_OSERR); + } + + strcpy(header, name); + header[namelen] = ':'; + header[namelen + 1] = ' '; + + i = namelen + 2; + last = '\0'; + for (cp = value; *cp; cp++) { + if (*cp == '\n' && last != '\r') + header[i++] = '\r'; + header[i++] = *cp; + + last = *cp; + } + + header[i] = '\0'; + + return header; +} + +sfsistat +dkimcheck_header(name, value, priv) + char *name; + char *value; + struct mlfi_priv *priv; +{ + unsigned char *header; + size_t len; + + if (priv->priv_dkim == NULL) { + /* + * priv->priv_dkim may be NULL because we never + * handled a header, or because we encountered an + * error. In the latter case, priv->priv_dkimstat + * is set to an error value different than DKIM_STAT_OK + * and we do not try to run DKIM again. + */ + if (priv->priv_dkimstat != DKIM_STAT_OK) + return SMFIS_CONTINUE; + + priv->priv_dkim = dkim_verify(dkim_ptr, priv->priv_queueid, + NULL, &priv->priv_dkimstat); + if (priv->priv_dkim == NULL) { + mg_log(LOG_ERR, "dkim_verify() failed: %s", + dkim_getresultstr(priv->priv_dkimstat)); + return SMFIS_CONTINUE; + } + } + + header = header_lf2crlf(name, value, &len); + priv->priv_dkimstat = dkim_header(priv->priv_dkim, header, len); + free(header); + + return dkimcheck_error(priv); +} + +sfsistat +dkimcheck_eoh(priv) + struct mlfi_priv *priv; +{ + if (priv->priv_dkim == NULL) + return SMFIS_CONTINUE; + + priv->priv_dkimstat = dkim_eoh(priv->priv_dkim); + return dkimcheck_error(priv); +} + +sfsistat +dkimcheck_body(chunk, size, priv) + unsigned char *chunk; + size_t size; + struct mlfi_priv *priv; +{ + if (priv->priv_dkim == NULL) + return SMFIS_CONTINUE; + + priv->priv_dkimstat = dkim_body(priv->priv_dkim, chunk, size); + return dkimcheck_error(priv); +} + +sfsistat +dkimcheck_eom(priv) + struct mlfi_priv *priv; +{ + bool testkey; + + if (priv->priv_dkim == NULL) + return SMFIS_CONTINUE; + + priv->priv_dkimstat = dkim_eom(priv->priv_dkim, &testkey); + return dkimcheck_error(priv); +} + +int +dkimcheck_validate(ad, stage, ap, priv) + acl_data_t *ad; + acl_stage_t stage; + struct acl_param *ap; + struct mlfi_priv *priv; +{ + enum spf_status stat; + int result; + + if (stage != AS_DATA) { + mg_log(LOG_ERR, "dkim clause called at non DATA stage"); + exit(EX_SOFTWARE); + } + + stat = ad ? *(enum spf_status *)ad : MGSPF_PASS; + + switch (stat) { + case MGSPF_PASS: + result = (priv->priv_dkimstat == DKIM_STAT_OK); + break; + + case MGSPF_FAIL: + switch (priv->priv_dkimstat) { + case DKIM_STAT_BADSIG: + case DKIM_STAT_NOKEY: + case DKIM_STAT_REVOKED: + case DKIM_STAT_CBREJECT: + result = 1; + break; + default: + result = 0; + } + break; + + case MGSPF_ERROR: + switch (priv->priv_dkimstat) { + case DKIM_STAT_SYNTAX: + case DKIM_STAT_INVALID: + case DKIM_STAT_NOTIMPLEMENT: + case DKIM_STAT_CBERROR: + case DKIM_STAT_MULTIDNSREPLY: + result = 1; + break; + default: + result = 0; + } + break; + + case MGSPF_NONE: + result = (priv->priv_dkimstat == DKIM_STAT_NOSIG); + break; + + case MGSPF_UNKNOWN: + result = (priv->priv_dkimstat == DKIM_STAT_CANTVRFY); + break; + + default: + mg_log(LOG_ERR, "Internal error: unexpected dkim_status"); + exit(EX_SOFTWARE); + break; + } + + return result; +} + +char * +acl_print_dkim(ad, buf, len) + acl_data_t *ad; + char *buf; + size_t len; +{ + char *tmpstr; + enum spf_status status; + + status = ad ? *(enum spf_status *)ad : MGSPF_PASS; + switch (status) { + case MGSPF_PASS: + tmpstr = "pass"; + break; + case MGSPF_FAIL: + tmpstr = "fail"; + break; + case MGSPF_UNKNOWN: + tmpstr = "unknown"; + break; + case MGSPF_ERROR: + tmpstr = "error"; + break; + case MGSPF_NONE: + tmpstr = "none"; + break; + default: + mg_log(LOG_ERR, "Internal error: unexpected dkim_status"); + exit(EX_SOFTWARE); + break; + } + snprintf(buf, len, "%s", tmpstr); + return buf; +} + +void +acl_add_dkim(ad, data) + acl_data_t *ad; + void *data; +{ + enum spf_status status; + char buf[QSTRLEN + 1]; + + status = *(enum spf_status *)data; + + switch (status) { + case MGSPF_PASS: + case MGSPF_FAIL: + case MGSPF_UNKNOWN: + case MGSPF_ERROR: + case MGSPF_NONE: + ad->dkim_status = *(enum spf_status *)data; + break; + default: + acl_print_dkim((acl_data_t *)&status, buf, QSTRLEN); + mg_log(LOG_ERR, "bad DKIM status %s", buf); + exit(EX_USAGE); + break; + } + + return; +} + +void +dkimcheck_free(priv) + struct mlfi_priv *priv; +{ + if (priv->priv_dkim != NULL) { + dkim_free(priv->priv_dkim); + priv->priv_dkim = NULL; + } + return; +} + +#endif /* USE_DKIM */ diff -Nru milter-greylist-4.6.2/dnsrbl.c milter-greylist-4.6.4/dnsrbl.c --- milter-greylist-4.6.2/dnsrbl.c 2016-01-03 05:06:32.000000000 +0000 +++ milter-greylist-4.6.4/dnsrbl.c 2020-08-28 00:06:44.000000000 +0000 @@ -60,6 +60,9 @@ #include #include #include +#ifdef __APPLE__ +#include +#endif #include #ifndef NS_MAXMSG #define NS_MAXMSG 65535 diff -Nru milter-greylist-4.6.2/geoip2.c milter-greylist-4.6.4/geoip2.c --- milter-greylist-4.6.2/geoip2.c 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/geoip2.c 2020-08-28 00:06:45.000000000 +0000 @@ -0,0 +1,173 @@ +/* $Id: geoip.c,v 1.7 2016/11/24 04:11:37 manu Exp $ */ + +/* + * Copyright (c) 2007 Emmanuel Dreyfus + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Emmanuel Dreyfus + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include "config.h" + +#ifdef USE_GEOIP2 + +#ifdef HAVE_SYS_CDEFS_H +#include +#ifdef __RCSID +__RCSID("$Id"); +#endif +#endif + +#include +#include +#include +#include +#include +#include +#include + +#include "milter-greylist.h" +#include "conf.h" +#include "geoip2.h" + +#ifdef USE_DMALLOC +#include +#endif + +#include + +static MMDB_s mmdb; +static MMDB_s *geoip2_handle = NULL; +static char geoip2_database[MAXPATHLEN + 1]; +static pthread_rwlock_t geoip2_lock; + +void +geoip2_init(void) +{ + int error; + + if ((error = pthread_rwlock_init(&geoip2_lock, NULL)) != 0) { + mg_log(LOG_ERR, "pthread_rwlock_init failed: %s", + strerror(error)); + exit(EX_OSERR); + } + + return; +} + +void +geoip2_set_db(name) + char *name; +{ + if (geoip2_handle != NULL) { + MMDB_close(geoip2_handle); + } + + strncpy(geoip2_database, name, MAXPATHLEN); + geoip2_database[MAXPATHLEN] = '\0'; + + geoip2_handle = &mmdb; + int status = MMDB_open(geoip2_database, MMDB_MODE_MMAP, geoip2_handle); + if (status != MMDB_SUCCESS) { + mg_log(LOG_WARNING, + "Geoip2 database \"%s\" cannot be used", + geoip2_database); + geoip2_handle = NULL; + return; + } +} + +int +geoip2_filter(ad, stage, ap, priv) + acl_data_t *ad; + acl_stage_t stage; + struct acl_param *ap; + struct mlfi_priv *priv; +{ + char *ccode = ad->string; + + if (priv->priv_ccode == NULL) + return 0; + + if (strcmp(ccode, priv->priv_ccode) == 0) + return 1; + else + return 0; +} + +void +geoip2_set_ccode(priv) + struct mlfi_priv *priv; +{ + char ipstr[IPADDRSTRLEN]; + int gai_error, mmdb_error; + MMDB_lookup_result_s result; + + if (geoip2_handle == NULL) { + mg_log(LOG_DEBUG, "GeoIP2 is not available"); + priv->priv_ccode = NULL; + return; + } + + if (iptostring(SA(&priv->priv_addr), + priv->priv_addrlen, ipstr, sizeof(ipstr)) == NULL) { + mg_log(LOG_DEBUG, "Geoip2 iptostring failed"); + priv->priv_ccode = NULL; + return; + } + + WRLOCK(geoip2_lock); + + /* + * result is not checked, as from libmaxminddb(3) man page: + * This function always returns an MMDB_lookup_result_s structure, + * but you should also check the gai_error and mmdb_error parameters. + * If either of these indicates an error then the returned structure + * is meaningless. + */ + result = MMDB_lookup_string(geoip2_handle, ipstr, + &gai_error, &mmdb_error); + + if (gai_error == 0 && mmdb_error == MMDB_SUCCESS) { + MMDB_entry_data_s entry_data; + int status; + + status = MMDB_get_value(&result.entry, &entry_data, + "country", "iso_code", NULL); + + if (status == MMDB_SUCCESS && entry_data.has_data) + priv->priv_ccode = strndup(entry_data.utf8_string, + entry_data.data_size); + } + + UNLOCK(geoip2_lock); + + if (priv->priv_ccode == NULL) + priv->priv_ccode = "ZZ"; + + return; +} + +#endif /* USE_GEOIP2 */ diff -Nru milter-greylist-4.6.2/geoip2.c.orig milter-greylist-4.6.4/geoip2.c.orig --- milter-greylist-4.6.2/geoip2.c.orig 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/geoip2.c.orig 2020-08-28 00:06:45.000000000 +0000 @@ -0,0 +1,165 @@ +/* $Id: geoip.c,v 1.7 2016/11/24 04:11:37 manu Exp $ */ + +/* + * Copyright (c) 2007 Emmanuel Dreyfus + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Emmanuel Dreyfus + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include "config.h" + +#ifdef USE_GEOIP2 + +#ifdef HAVE_SYS_CDEFS_H +#include +#ifdef __RCSID +__RCSID("$Id"); +#endif +#endif + +#include +#include +#include +#include +#include +#include +#include + +#include "milter-greylist.h" +#include "conf.h" +#include "geoip2.h" + +#ifdef USE_DMALLOC +#include +#endif + +#include + +static MMDB_s mmdb; +static MMDB_s *geoip2_handle = &mmdb; +static char geoip2_database[MAXPATHLEN + 1]; +static pthread_rwlock_t geoip2_lock; + +void +geoip2_init(void) +{ + int error; + + if ((error = pthread_rwlock_init(&geoip2_lock, NULL)) != 0) { + mg_log(LOG_ERR, "pthread_rwlock_init failed: %s", + strerror(error)); + exit(EX_OSERR); + } + + return; +} + +void +geoip2_set_db(name) + char *name; +{ + if (geoip2_handle != NULL) { + MMDB_close(geoip2_handle); + } + + strncpy(geoip2_database, name, MAXPATHLEN); + geoip2_database[MAXPATHLEN] = '\0'; + + int status = MMDB_open(geoip2_database, MMDB_MODE_MMAP, geoip2_handle); + if (status != MMDB_SUCCESS) { + mg_log(LOG_WARNING, + "Geoip2 database \"%s\" cannot be used", + geoip2_database); + return; + } +} + +int +geoip2_filter(ad, stage, ap, priv) + acl_data_t *ad; + acl_stage_t stage; + struct acl_param *ap; + struct mlfi_priv *priv; +{ + char *ccode = ad->string; + + if (priv->priv_ccode == NULL) + return 0; + + if (strcmp(ccode, priv->priv_ccode) == 0) + return 1; + else + return 0; +} + +void +geoip2_set_ccode(priv) + struct mlfi_priv *priv; +{ + char ipstr[IPADDRSTRLEN]; + int gai_error, mmdb_error; + MMDB_lookup_result_s result; + + if (iptostring(SA(&priv->priv_addr), + priv->priv_addrlen, ipstr, sizeof(ipstr)) == NULL) { + mg_log(LOG_DEBUG, "Geoip2 iptostring failed"); + priv->priv_ccode = NULL; + return; + } + + WRLOCK(geoip2_lock); + + /* + * result is not checked, as from libmaxminddb(3) man page: + * This function always returns an MMDB_lookup_result_s structure, + * but you should also check the gai_error and mmdb_error parameters. + * If either of these indicates an error then the returned structure + * is meaningless. + */ + result = MMDB_lookup_string(geoip2_handle, ipstr, + &gai_error, &mmdb_error); + + if (gai_error == 0 && mmdb_error == MMDB_SUCCESS) { + MMDB_entry_data_s entry_data; + int status; + + status = MMDB_get_value(&result.entry, &entry_data, + "country", "iso_code", NULL); + + if (status == MMDB_SUCCESS && entry_data.has_data) + priv->priv_ccode = strndup(entry_data.utf8_string, + entry_data.data_size); + } + + UNLOCK(geoip2_lock); + + if (priv->priv_ccode == NULL) + priv->priv_ccode = "ZZ"; + + return; +} + +#endif /* USE_GEOIP2 */ diff -Nru milter-greylist-4.6.2/geoip2.h milter-greylist-4.6.4/geoip2.h --- milter-greylist-4.6.2/geoip2.h 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/geoip2.h 2020-08-28 00:06:45.000000000 +0000 @@ -0,0 +1,46 @@ +/* $Id: geoip2.h,v 1.4 2016/11/24 04:11:37 manu Exp $ */ + +/* + * Copyright (c) 2007 Emmanuel Dreyfus + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Emmanuel Dreyfus + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include "spf.h" +#include "acl.h" + +#ifndef _MG_GEOIP2_H_ +#define _MG_GEOIP2_H_ + +void geoip2_init(void); +void geoip2_set_db(char *); +void geoip2_set_db_v6(char *); +void geoip2_set_ccode(struct mlfi_priv *); +int geoip2_filter(acl_data_t *, acl_stage_t, + struct acl_param *, struct mlfi_priv *); + +#endif /* _MG_GEOIP2_H_ */ + diff -Nru milter-greylist-4.6.2/geoip.c milter-greylist-4.6.4/geoip.c --- milter-greylist-4.6.2/geoip.c 2016-11-24 04:11:37.000000000 +0000 +++ milter-greylist-4.6.4/geoip.c 2020-08-28 00:06:44.000000000 +0000 @@ -1,4 +1,4 @@ -/* $Id: geoip.c,v 1.7 2016/11/24 04:11:37 manu Exp $ */ +/* $Id: geoip.c,v 1.8 2016/11/29 00:43:35 manu Exp $ */ /* * Copyright (c) 2007 Emmanuel Dreyfus @@ -163,7 +163,7 @@ return; } - if (geoip_handle == NULL) { + if (handle == NULL) { mg_log(LOG_DEBUG, "GeoIP is not available"); priv->priv_ccode = NULL; return; diff -Nru milter-greylist-4.6.2/greylist.conf.5 milter-greylist-4.6.4/greylist.conf.5 --- milter-greylist-4.6.2/greylist.conf.5 2016-11-24 04:11:37.000000000 +0000 +++ milter-greylist-4.6.4/greylist.conf.5 2020-08-28 00:06:44.000000000 +0000 @@ -200,6 +200,8 @@ statement can be used to specify the location of GeoIP database. .I geoipv6db statement can be used to specify the location of GeoIPv6 database. +.I geoip2db +statement can be used to specify the location of GeoIP2 (maxminddb) database. .TP .I p0f This is used to match against the remote system OS fingerprint genre and @@ -1602,6 +1604,7 @@ Laurence Moindrot, Lev Walkin, Manuel Badzong, +Markus Wennrich, Mart Pirita, Martin Paul, Matt Kettler, diff -Nru milter-greylist-4.6.2/Makefile milter-greylist-4.6.4/Makefile --- milter-greylist-4.6.2/Makefile 2016-11-24 04:14:01.000000000 +0000 +++ milter-greylist-4.6.4/Makefile 2020-08-28 00:06:44.000000000 +0000 @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.169 2016/11/24 04:14:01 manu Exp $ +# $Id: Makefile.in,v 1.75 2013/09/02 03:54:35 manu Exp $ # # Copyright (c) 2004 Emmanuel Dreyfus @@ -29,7 +29,7 @@ # OF THE POSSIBILITY OF SUCH DAMAGE. # -CFLAGS= -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK -DCONFFILE=\"${CONFFILE}\" -DDUMPFILE=\"${DUMPFILE}\" -D_BSD_SOURCE -I. -I${SRCDIR} +CFLAGS= -g -O2 -Wall -I/usr/pkg/include -DHAVE_DATA_CALLBACK -DCONFFILE=\"${CONFFILE}\" -DDUMPFILE=\"${DUMPFILE}\" -D_BSD_SOURCE -DYY_NO_INPUT -I. -I${SRCDIR} LDFLAGS= -L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib LIBS= -lpthread -lresolv -lmilter prefix= /usr/local @@ -63,13 +63,13 @@ OBJ= milter-greylist.o pending.o sync.o dnsrbl.o list.o macro.o \ conf.o store.o dump.o spf.o acl.o urlcheck.o stat.o clock.o \ geoip.o fd_pool.o prop.o ldapcheck.o dkimcheck.o p0f.o \ - spamd.o mx.o ratelimit.o nsupdate.o brokenmfapi.o + spamd.o mx.o ratelimit.o nsupdate.o brokenmfapi.o geoip2.o OBJ_SEQ= conf_yacc.o dump_yacc.o OBJ_SEQ_FLAG= .objseq-built SRC= milter-greylist.c pending.c sync.c conf.c macro.c stat.c \ clock.c store.c dump.c spf.c acl.c dnsrbl.c list.c \ urlcheck.c geoip.c prop.c ldapcheck.c dkimcheck.c p0f.c \ - spamd.c mx.c ratelimit.c nsupdate.c brokenmfapi.c + spamd.c mx.c ratelimit.c nsupdate.c brokenmfapi.c geoip2.c GENSRC= conf_yacc.c conf_lex.c dump_yacc.c dump_lex.c VPATH= ${SRCDIR} diff -Nru milter-greylist-4.6.2/Makefile.in milter-greylist-4.6.4/Makefile.in --- milter-greylist-4.6.2/Makefile.in 2013-09-02 03:54:35.000000000 +0000 +++ milter-greylist-4.6.4/Makefile.in 2020-08-28 00:06:44.000000000 +0000 @@ -29,7 +29,7 @@ # OF THE POSSIBILITY OF SUCH DAMAGE. # -CFLAGS= @CFLAGS@ -D_BSD_SOURCE -I. -I${SRCDIR} @CPPFLAGS@ +CFLAGS= @CFLAGS@ -D_BSD_SOURCE -DYY_NO_INPUT -I. -I${SRCDIR} @CPPFLAGS@ LDFLAGS= @LDFLAGS@ LIBS= @LIBS@ prefix= @prefix@ @@ -63,13 +63,13 @@ OBJ= milter-greylist.o pending.o sync.o dnsrbl.o list.o macro.o \ conf.o store.o dump.o spf.o acl.o urlcheck.o stat.o clock.o \ geoip.o fd_pool.o prop.o ldapcheck.o dkimcheck.o p0f.o \ - spamd.o mx.o ratelimit.o nsupdate.o brokenmfapi.o + spamd.o mx.o ratelimit.o nsupdate.o brokenmfapi.o geoip2.o OBJ_SEQ= conf_yacc.o dump_yacc.o OBJ_SEQ_FLAG= .objseq-built SRC= milter-greylist.c pending.c sync.c conf.c macro.c stat.c \ clock.c store.c dump.c spf.c acl.c dnsrbl.c list.c \ urlcheck.c geoip.c prop.c ldapcheck.c dkimcheck.c p0f.c \ - spamd.c mx.c ratelimit.c nsupdate.c brokenmfapi.c + spamd.c mx.c ratelimit.c nsupdate.c brokenmfapi.c geoip2.c GENSRC= conf_yacc.c conf_lex.c dump_yacc.c dump_lex.c VPATH= ${SRCDIR} diff -Nru milter-greylist-4.6.2/man milter-greylist-4.6.4/man --- milter-greylist-4.6.2/man 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/man 2020-08-28 00:06:45.000000000 +0000 @@ -0,0 +1,30 @@ +hash (9) kernel hash functions +The hhaasshh hash32_buf hash32_str hash32_strn functions returns a hhaasshh of the given buffer. The hash32_buf function returns a 32 bit hhaasshh of buf , which is len bytes long, seeded with an initial hhaasshh of ihash (which is usually HASH32_BUF_INIT ) . This... + +hash (3) hash database access method +...fail. hhaasshh hhaasshh is a user defined hhaasshh function. Since no hhaasshh function performs equally well on all possible data, the user may find that the built-in hhaasshh function does poorly on a particular data set. User specified hhaasshh... + +nsec3hash (8) generate NSEC3 hash +...NSEC3 hhaasshh based on a set of NSEC3 parameters. This can be used to check the validity of NSEC3 records in a signed zone. salt 4 The salt provided to the hhaasshh algorithm. algorithm 4 A number indicating the hhaasshh... + +SHA1 (3) Secure Hash Algorithm +SHA-1 (Secure HHaasshh Algorithm) is a cryptographic hhaasshh function with a 160 bit output. SHA1() computes the SHA-1 message digest of the n bytes at d and places it in md (which must have space for SHA_DIGEST_LENGTH == 20... + +MDC2 (3) MDC2 hash function +MDC2 hhaasshh function + +lh_new (3) dynamic hash table +...hhaasshh table size is made depending on the 'load' of the hhaasshh table. The load is the number of items in the hhaasshh table divided by the size of the hhaasshh table. The default values are as follows. If (hhaasshh... + +passwd (1) compute password hashes +The passwd command computes the hhaasshh of a password typed at run-time or the hhaasshh of each password in a list. The password list is taken from the named file for option -in file, from stdin for option -stdin... + +RIPEMD160 (3) RIPEMD-160 hash function +RIPEMD-160 hhaasshh function + +hcreate (3) manage hash search table +...the data can no longer be accessed. The hsearch function is used to search to the hhaasshh table. It returns a pointer into the hhaasshh table indicating the address of an item. The item argument is of type ENTRY , defined... + +mi_vector_hash (3) fast 32bit hash functions +fast 32bit hhaasshh functions + diff -Nru milter-greylist-4.6.2/milter-greylist.8 milter-greylist-4.6.4/milter-greylist.8 --- milter-greylist-4.6.2/milter-greylist.8 2016-01-03 05:06:32.000000000 +0000 +++ milter-greylist-4.6.4/milter-greylist.8 2020-08-28 00:06:45.000000000 +0000 @@ -350,6 +350,7 @@ Laurence Moindrot, Lev Walkin, Manuel Badzong, +Markus Wennrich, Mart Pirita, Martin Paul, Matt Kettler, diff -Nru milter-greylist-4.6.2/milter-greylist.c milter-greylist-4.6.4/milter-greylist.c --- milter-greylist-4.6.2/milter-greylist.c 2016-11-24 03:59:40.000000000 +0000 +++ milter-greylist-4.6.4/milter-greylist.c 2020-08-28 00:06:45.000000000 +0000 @@ -1,4 +1,4 @@ -/* $Id: milter-greylist.c,v 1.283 2016/11/24 03:59:40 manu Exp $ */ +/* $Id: milter-greylist.c,v 1.284 2017/07/11 03:17:33 manu Exp $ */ /* * Copyright (c) 2004-2012 Emmanuel Dreyfus @@ -34,7 +34,7 @@ #ifdef HAVE_SYS_CDEFS_H #include #ifdef __RCSID -__RCSID("$Id: milter-greylist.c,v 1.283 2016/11/24 03:59:40 manu Exp $"); +__RCSID("$Id: milter-greylist.c,v 1.284 2017/07/11 03:17:33 manu Exp $"); #endif #endif @@ -107,6 +107,9 @@ #ifdef USE_GEOIP #include "geoip.h" #endif +#ifdef USE_GEOIP2 +#include "geoip2.h" +#endif #ifdef USE_P0F #include "p0f.h" #endif @@ -339,7 +342,7 @@ tuple.salen = priv->priv_addrlen; tuple.from = priv->priv_from; tuple.rcpt = priv->priv_rcpt.lh_first->r_addr; - tuple.autowhite = 0; + tuple.autowhite = priv->priv_sr.sr_autowhite; tuple.updatetype = TU_AUTOWHITE; mg_tuple_update(&tuple); @@ -424,6 +427,9 @@ #ifdef USE_GEOIP geoip_set_ccode(priv); #endif +#ifdef USE_GEOIP2 + geoip2_set_ccode(priv); +#endif #ifdef HAVE_SPF2 priv->priv_spf_header = NULL; #endif @@ -877,8 +883,8 @@ (priv->priv_buflen > priv->priv_maxpeek)) { if (conf.c_debug) mg_log(LOG_DEBUG, - "ignoring message beyond maxpeek = %d", - priv->priv_maxpeek); + "%s: ignoring message beyond maxpeek = %d", + priv->priv_queueid, priv->priv_maxpeek); priv->priv_maxpeek = 0; return SMFIS_CONTINUE; } @@ -987,8 +993,8 @@ if (priv->priv_peekcount >= priv->priv_maxpeek) { if (!priv->priv_peekdone) { mg_log(LOG_DEBUG, - "ignoring message beyond maxpeek = %d", - priv->priv_maxpeek); + "%s: ignoring message beyond maxpeek = %d", + priv->priv_queueid, priv->priv_maxpeek); priv->priv_peekdone = 1; } return SMFIS_CONTINUE; @@ -1296,7 +1302,7 @@ /* Add subject tag if we have the whole message */ if (priv->priv_sr.sr_subjtag) { - const char const subjhdr[] = "Subject: "; + const char subjhdr[] = "Subject: "; size_t subjhdrlen = sizeof(subjhdr) - 1; char *tag; struct line *l; @@ -1853,6 +1859,9 @@ #ifdef USE_GEOIP geoip_init(); #endif +#ifdef USE_GEOIP2 + geoip2_init(); +#endif macro_init(); ratelimit_init(); #ifdef USE_NSUPDATE @@ -3244,7 +3253,7 @@ break; } case 'C': { /* Country code from GeoIP */ -#ifdef USE_GEOIP +#if defined(USE_GEOIP) || defined(USE_GEOIP2) if (priv->priv_ccode != NULL) mystrncat(&outstr, priv->priv_ccode, diff -Nru milter-greylist-4.6.2/milter-greylist.h milter-greylist-4.6.4/milter-greylist.h --- milter-greylist-4.6.2/milter-greylist.h 2016-11-02 17:41:06.000000000 +0000 +++ milter-greylist-4.6.4/milter-greylist.h 2020-08-28 00:06:45.000000000 +0000 @@ -1,4 +1,4 @@ -/* $Id: milter-greylist.h,v 1.99 2016/11/02 17:41:06 manu Exp $ */ +/* $Id: milter-greylist.h,v 1.100 2017/07/11 03:17:33 manu Exp $ */ /* * Copyright (c) 2004-2012 Emmanuel Dreyfus @@ -202,8 +202,8 @@ int priv_rcptcount; struct bh_line priv_header; struct bh_line priv_body; - int priv_maxpeek; -#ifdef USE_GEOIP + size_t priv_maxpeek; +#if defined(USE_GEOIP) || defined(USE_GEOIP2) const char *priv_ccode; #endif size_t priv_msgcount; diff -Nru milter-greylist-4.6.2/milter-greylist.spec milter-greylist-4.6.4/milter-greylist.spec --- milter-greylist-4.6.2/milter-greylist.spec 2016-11-24 04:14:01.000000000 +0000 +++ milter-greylist-4.6.4/milter-greylist.spec 2020-08-28 00:06:45.000000000 +0000 @@ -1,7 +1,7 @@ -# $Id: milter-greylist.spec,v 1.154 2016/11/24 04:14:01 manu Exp $ +# $Id: milter-greylist.spec.in,v 1.12 2012/09/11 04:29:19 manu Exp $ # Contributed by Ivan F. Martinez -%define ver 4.6.2 +%define ver 4.6.4 %define rel 1 %define user grmilter @@ -22,6 +22,9 @@ %define libGeoIP 0 %{?build_libGeoIP:%define libGeoIP 1} +%define libmaxminddb 0 +%{?build_libmaxminddb:%define libmaxminddb 1} + %define libcurl 0 %{?build_libcurl:%define libcurl 1} @@ -69,6 +72,9 @@ %if %{libGeoIP} BuildRequires: GeoIP-devel %endif +%if %{libmaxminddb} +BuildRequires: libmaxminddb-devel +%endif %description milter-greylist is a stand-alone milter written in C that implements the @@ -114,6 +120,9 @@ %if %{libGeoIP} --with-libGeoIP \ %endif +%if %{libmaxminddb} + --with-libmaxminddb \ +%endif %if %{libdkim} --with-libdkim=/usr/include \ %endif @@ -203,6 +212,9 @@ %attr(0600,%{user},root) %ghost %{_localstatedir}/milter-greylist/greylist.db %changelog +* Tue Jul 18 2020 Markus Wennrich +- add geoip2db option using libmaxminddb (GeoIP2) + * Mon Sep 10 2012 Murty Rompalli - Mkdir parent dir for pidfile/socket/dumpfile - Add helpful error message if mkdir fails diff -Nru milter-greylist-4.6.2/.#milter-greylist.spec.1.144 milter-greylist-4.6.4/.#milter-greylist.spec.1.144 --- milter-greylist-4.6.2/.#milter-greylist.spec.1.144 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/.#milter-greylist.spec.1.144 2020-08-28 00:06:45.000000000 +0000 @@ -0,0 +1,246 @@ +# $Id: milter-greylist.spec.in,v 1.12 2012/09/11 04:29:19 manu Exp $ +# Contributed by Ivan F. Martinez + +%define ver 4.5.12 +%define rel 1 + +%define user grmilter +%{?build_user:%define user %{build_user}} + +%define postfix 0 +%{?build_postfix:%define postfix 1} + +%define dnsrbl 0 +%{?build_dnsrbl:%define dnsrbl 1} + +%define libbind 0 +%{?build_libbind:%define libbind 1} + +%define libspf2 0 +%{?build_libspf2:%define libspf2 1} + +%define libGeoIP 0 +%{?build_libGeoIP:%define libGeoIP 1} + +%define libcurl 0 +%{?build_libcurl:%define libcurl 1} + +%define p0f 0 +%{?build_p0f:%define p0f 1} + +%define libdkim 0 +%{?build_libdkim:%define libdkim 1} + +%define bldmx 0 +%{?build_mx:%define bldmx 1} + +%if ! %{postfix} +Summary: GreyList milter for Sendmail +%else +Summary: GreyList milter for Postfix +%endif +Name: milter-greylist +Version: %ver +Release: %rel +Group: System Environment/Daemons +License: 3-clause BSD license +Source0: ftp://ftp.espci.fr/pub/milter-greylist/%{name}-%{version}.tgz +URL: http://hcpnet.free.fr/milter-greylist/ +BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) + +%if ! %{postfix} +Requires: sendmail >= 8.11 +Requires: sendmail-cf >= 8.11 +%else +Requires: postfix >= 2.3 +%endif +BuildRequires: sendmail-devel >= 8.11 +BuildRequires: flex +BuildRequires: bison +%if %{libbind} +BuildRequires: bind-libbind-devel +%endif +%if %{libspf2} +BuildRequires: libspf2-devel +%endif +%if %{libcurl} +BuildRequires: curl-devel +%endif +%if %{libGeoIP} +BuildRequires: GeoIP-devel +%endif + +%description +milter-greylist is a stand-alone milter written in C that implements the +greylist filtering method, as proposed by Evan Harris. + +Grey listing works by assuming that unlike legitimate MTA, spam engines will +not retry sending their junk mail on a temporary error. The filter will +always temporarily reject mail on a first attempt, and to accept it after +some time has elapsed. + +If spammers ever try to resend rejected messages, we can assume they will +not stay idle between the two sends (if they do, the spam problem would just +be solved). Odds are good that the spammer will send a mail to an honey pot +address and get blacklisted in several real-time distributed black list +before the second attempt. + + +%prep +%setup -q + + +%build +%configure \ + --with-user=%{user} \ +%if %{postfix} + --enable-postfix \ +%endif +%if %{dnsrbl} + --enable-dnsrbl \ +%endif +%if %{p0f} + --enable-p0f \ +%endif +%if %{libbind} + --with-libbind \ +%endif +%if %{libspf2} + --with-libspf2 \ +%endif +%if %{libcurl} + --with-libcurl \ +%endif +%if %{libGeoIP} + --with-libGeoIP \ +%endif +%if %{libdkim} + --with-libdkim=/usr/include \ +%endif +%if %{bldmx} + --enable-mx \ +%endif + + +%{__make} %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p ${RPM_BUILD_ROOT}%{_initrddir} +mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/mail +mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/milter-greylist +mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/sendmail-cf/feature + +install -m 755 rc-redhat.sh ${RPM_BUILD_ROOT}%{_initrddir}/milter-greylist +install -m 644 milter-greylist.m4 ${RPM_BUILD_ROOT}%{_datadir}/sendmail-cf/feature/milter-greylist.m4 +touch ${RPM_BUILD_ROOT}%{_localstatedir}/milter-greylist/greylist.db +# use root user, as the %files section define the correct install user +make DESTDIR=${RPM_BUILD_ROOT} USER=root install + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%pre +/usr/bin/id "%{user}" &> /dev/null +if [ $? -ne 0 ] +then + /usr/sbin/useradd -r -d /etc/mail -s /sbin/nologin \ + -c "GreyList Milter" %{user} >/dev/null 2>&1 || : +fi + + +%post +/sbin/chkconfig --add milter-greylist +%if ! %{postfix} +/bin/grep -q -E '(FEATURE|INPUT_MAIL_FILTER).*milter-greylist' /etc/mail/sendmail.mc +if [ $? -ne 0 ] +then + echo "You can enable milter-greylist in your sendmail, adding the line : " + echo "FEATURE(\`milter-greylist')dnl" + echo "to /etc/mail/sendmail.mc file" +fi +%endif + + +%preun +if [ $1 -eq 0 ]; then + /sbin/service milter-greylist stop > /dev/null 2>&1 || : + /sbin/chkconfig --del milter-greylist +%if ! %{postfix} + /bin/grep -q -E '(FEATURE|INPUT_MAIL_FILTER).*milter-greylist' /etc/mail/sendmail.mc + if [ $? -eq 0 ] + then + echo "You must remove the milter-greylist config" + echo "from /etc/mail/sendmail.mc file" + fi +%endif +fi + +%postun +if [ $1 -eq 0 ]; then + rm -rf %{_localstatedir}/milter-greylist/ + grep -q "$%{user}:.*GreyList Milter:" + if [ $? -eq 0 ] + then + /usr/sbin/userdel %{user} >/dev/null 2>&1 || : + /usr/sbin/groupdel %{user} >/dev/null 2>&1 || : + fi +else + /sbin/service milter-greylist condrestart > /dev/null 2>&1 || : +fi + +%files +%defattr(-,root,root) +%doc README ChangeLog +%config (noreplace) %{_sysconfdir}/mail/greylist.conf +%{_initrddir}/milter-greylist +%{_bindir}/milter-greylist +%{_mandir}/man5/greylist.conf.5.gz +%{_mandir}/man8/milter-greylist.8.gz +%{_datadir}/sendmail-cf/feature/milter-greylist.m4 +%dir %attr(-,%{user},root) %{_localstatedir}/milter-greylist +%attr(0600,%{user},root) %ghost %{_localstatedir}/milter-greylist/greylist.db + +%changelog +* Mon Sep 10 2012 Murty Rompalli +- Mkdir parent dir for pidfile/socket/dumpfile +- Add helpful error message if mkdir fails +- Fix duplicate logging when run with -D via systemd + +* Fri Mar 16 2012 Rudy Eschauzier +- added build_libdkim and build_mx support + +* Wed Mar 10 2010 Chris Bennett (cgb) +- added build_GeoIP, build_libcurl, build_p0f + +* Tue Aug 26 2008 Joe Pruett +- added build_spf2 + +* Thu Jan 4 2007 Nerijus Baliunas 3.1.4-1 +- added build_user, build_postfix, build_dnsrbl, build_libbind definitions + +* Sun Mar 13 2005 Petr Kristof 1.7.4-3 +- support for running as specific user + +* Tue Jan 25 2005 Petr Kristof 1.7.4-3 +- Use more %macros +- Add conditional restart during upgrade +- Fixed %postun cleanup +- Add %ghost for greylist.db + +* Mon Jan 17 2005 Ivan F. Martinez 1.7.4-2 +- added check for milter-greylist in sendmail.mc on post + +* Wed Jan 5 2005 Horst H. von Brand 1.7.4-1 +- Updated version +- Added missing installed milter-greylist.m4 file +- Need sendmail-cf if installing above +- Requires bison for building + +* Thu Dec 16 2004 Ivan F. Martinez 1.7.3-1 +- updated to new version + +* Wed Dec 8 2004 Ivan F. Martinez 1.6rc1-1 +- initial release + diff -Nru milter-greylist-4.6.2/milter-greylist.spec.in milter-greylist-4.6.4/milter-greylist.spec.in --- milter-greylist-4.6.2/milter-greylist.spec.in 2012-09-11 04:29:19.000000000 +0000 +++ milter-greylist-4.6.4/milter-greylist.spec.in 2020-08-28 00:06:45.000000000 +0000 @@ -22,6 +22,9 @@ %define libGeoIP 0 %{?build_libGeoIP:%define libGeoIP 1} +%define libmaxminddb 0 +%{?build_libmaxminddb:%define libmaxminddb 1} + %define libcurl 0 %{?build_libcurl:%define libcurl 1} @@ -69,6 +72,9 @@ %if %{libGeoIP} BuildRequires: GeoIP-devel %endif +%if %{libmaxminddb} +BuildRequires: libmaxminddb-devel +%endif %description milter-greylist is a stand-alone milter written in C that implements the @@ -114,6 +120,9 @@ %if %{libGeoIP} --with-libGeoIP \ %endif +%if %{libmaxminddb} + --with-libmaxminddb \ +%endif %if %{libdkim} --with-libdkim=/usr/include \ %endif @@ -203,6 +212,9 @@ %attr(0600,%{user},root) %ghost %{_localstatedir}/milter-greylist/greylist.db %changelog +* Tue Jul 18 2020 Markus Wennrich +- add geoip2db option using libmaxminddb (GeoIP2) + * Mon Sep 10 2012 Murty Rompalli - Mkdir parent dir for pidfile/socket/dumpfile - Add helpful error message if mkdir fails diff -Nru milter-greylist-4.6.2/nsupdate.c milter-greylist-4.6.4/nsupdate.c --- milter-greylist-4.6.2/nsupdate.c 2016-01-31 05:35:38.000000000 +0000 +++ milter-greylist-4.6.4/nsupdate.c 2020-08-28 00:06:45.000000000 +0000 @@ -60,6 +60,25 @@ #include "acl.h" #include "store.h" +struct tsig_entry { + ns_tsig_key tse_tsig; + LIST_ENTRY(tsig_entry) tse_list; +}; + +struct nsupdate_entry { + res_state nse_res; /* for runtime only */ + char *nse_servers; /* for config only */ + char *nse_name; + char *nse_rname; + int nse_ttl; + int nse_class; + int nse_type; + char *nse_rvalue; + ns_tsig_key *nse_tsig; + LIST_ENTRY(nsupdate_entry) nse_list; +}; + + LIST_HEAD(tsig_head, tsig_entry) tsig_head = LIST_HEAD_INITIALIZER(tsig_head); LIST_HEAD(nsupdate_head, nsupdate_entry) nsupdate_head = @@ -79,7 +98,7 @@ return; } -static const char const base64_translate[] = { +static const char base64_translate[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, @@ -469,6 +488,12 @@ return 0; } +char * +nsupdate_get_name(struct nsupdate_entry *nse) +{ + return nse->nse_name; +} + int nsupdate_filter(ad, stage, ap, priv) acl_data_t *ad; @@ -536,4 +561,5 @@ } } + #endif /* USE_NSUPDATE */ diff -Nru milter-greylist-4.6.2/nsupdate.h milter-greylist-4.6.4/nsupdate.h --- milter-greylist-4.6.2/nsupdate.h 2013-10-15 07:45:37.000000000 +0000 +++ milter-greylist-4.6.4/nsupdate.h 2020-08-28 00:06:45.000000000 +0000 @@ -32,38 +32,20 @@ #ifndef NSUPDATE_H #define NSUPDATE_H -#include -#include - #include "acl.h" #ifndef HAVE_RES_STATE typedef struct __res_state *res_state; #endif -void nsupdate_init(void); +struct nsupdate_entry; -struct tsig_entry { - ns_tsig_key tse_tsig; - LIST_ENTRY(tsig_entry) tse_list; -}; +void nsupdate_init(void); int tsig_add(char *, char *, char *); struct ns_tsig_key *tsig_byname(char *); void tsig_clear(void); -struct nsupdate_entry { - res_state nse_res; /* for runtime only */ - char *nse_servers; /* for config only */ - char *nse_name; - char *nse_rname; - int nse_ttl; - int nse_class; - int nse_type; - char *nse_rvalue; - ns_tsig_key *nse_tsig; - LIST_ENTRY(nsupdate_entry) nse_list; -}; int nsupdate_add_servers(char *); int nsupdate_add_rname(char *); int nsupdate_add_rvalue(char *); @@ -73,6 +55,8 @@ int nsupdate_add_tsig(char *); int nsupdate_add(char *); +char *nsupdate_get_name(struct nsupdate_entry *); + int nsupdate_filter(acl_data_t *, acl_stage_t, struct acl_param *, struct mlfi_priv *); struct nsupdate_entry *nsupdate_byname(char *); diff -Nru milter-greylist-4.6.2/pending.c milter-greylist-4.6.4/pending.c --- milter-greylist-4.6.2/pending.c 2013-01-19 16:01:15.000000000 +0000 +++ milter-greylist-4.6.4/pending.c 2020-08-28 00:06:45.000000000 +0000 @@ -504,14 +504,12 @@ struct pending *pending; struct pending *next; struct timeval tv; - time_t now; int dirty = 0; struct pending_bucket *b; ipaddr *mask = NULL; time_t tarpitted = -1; (void)gettimeofday(&tv, NULL); - now = tv.tv_sec; b = &pending_buckets[BUCKET_HASH(sa, from, rcpt, PENDING_BUCKETS)]; PENDING_LOCK; diff -Nru milter-greylist-4.6.2/README milter-greylist-4.6.4/README --- milter-greylist-4.6.2/README 2016-01-31 05:37:00.000000000 +0000 +++ milter-greylist-4.6.4/README 2020-08-28 00:06:44.000000000 +0000 @@ -1,9 +1,9 @@ -# $Id: README,v 1.68 2016/01/31 05:37:00 manu Exp $ +# $Id: README,v 1.69 2017/07/07 21:59:13 manu Exp $ ########################################################################### ====================================== milter-greylist installation notes - $Date: 2016/01/31 05:37:00 $ + $Date: 2017/07/07 21:59:13 $ ====================================== Emmanuel Dreyfus @@ -175,10 +175,26 @@ SLocal_check_rcpt R$+ $: $(storage {greylist} $) $&{client_addr} R$+ $: $>A <$1> <+Connect> <$1> -R<$+> <$*> $: $(storage {greylist} $@ $1 $) $2 ++R <$+> $: $&{client_name} ++R $+ $: $>D <$1> <+Connect> <$1> ++R<$+> <$*> $: $(storage {greylist} $@ $1 $) $1 Note that there must be tabs and no spaces before the "$:"! +Some sample entries for /etc/mail/access: + +Connect:1.2.3 OK +Connect:provider.net OK + +As RHS the keywords "WHITE", "RELAY" or "OK" are allowed. But to make sure +Sendmail keeps accepting mails from the given source "OK" is the usually +the best, except explicitly full relaying is desired where "RELAY" should +be given. + +On the LHS the tag "connect:" is mandatory, followed by either an address +or a domain (both of them might be partial, covering a whole network or +any subdoman). + 3 Configuring Postfix with milter-greylist ========================================== diff -Nru milter-greylist-4.6.2/.#spf.c.1.33 milter-greylist-4.6.4/.#spf.c.1.33 --- milter-greylist-4.6.2/.#spf.c.1.33 1970-01-01 00:00:00.000000000 +0000 +++ milter-greylist-4.6.4/.#spf.c.1.33 2020-08-28 00:06:45.000000000 +0000 @@ -0,0 +1,612 @@ +/* $Id: spf.c,v 1.33 2011/08/17 01:06:50 manu Exp $ */ + +/* + * Copyright (c) 2004-2007 Emmanuel Dreyfus + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Emmanuel Dreyfus + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include "config.h" + +#ifdef HAVE_SYS_CDEFS_H +#include +#ifdef __RCSID +__RCSID("$Id: spf.c,v 1.33 2011/08/17 01:06:50 manu Exp $"); +#endif +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "conf.h" +#include "spf.h" +#include "acl.h" +#include "milter-greylist.h" + +#ifdef USE_DMALLOC +#include +#endif + +#if (defined(HAVE_SPF) || defined(HAVE_SPF_ALT) || \ + defined(HAVE_SPF2_10) || defined(HAVE_SPF2)) +static int spf_check_internal(acl_data_t *, acl_stage_t, + struct acl_param *, struct mlfi_priv *); +static int spf_check_self(acl_data_t *, acl_stage_t, + struct acl_param *, struct mlfi_priv *); +#endif + +#ifdef HAVE_SPF +#include + +#ifndef SPF_FALSE +#define SPF_FALSE 0 +#endif + + +static int +spf_check_internal(ad, as, ap, priv) + acl_data_t *ad; + acl_stage_t as; + struct acl_param *ap; + struct mlfi_priv *priv; +{ + struct sockaddr *sa = SA(&priv->priv_addr); + socklen_t salen = priv->priv_addrlen; + char *helo = priv->priv_helo; + char *fromp = priv->priv_from; + peer_info_t *p = NULL; + char addr[IPADDRSTRLEN]; + int result = 0; + struct timeval tv1, tv2, tv3; + enum spf_status status; + + if (conf.c_debug) + gettimeofday(&tv1, NULL); + + if (sa->sa_family != AF_INET) /* libspf doesn't support IPv6 */ + return result; + if (!iptostring(sa, salen, addr, sizeof(addr))) + return result; + + if ((p = SPF_init("milter-greylist", addr, + NULL, NULL, NULL, SPF_FALSE, SPF_FALSE)) == NULL) { + mg_log(LOG_ERR, "SPF_Init failed"); + goto out1; + } + SPF_smtp_helo(p, helo); + SPF_smtp_from(p, from); + p->RES = SPF_policy_main(p); + + if (conf.c_debug) + mg_log(LOG_DEBUG, "SPF return code %d", p->RES); + + status = ad ? *(enum spf_status *)ad : MGSPF_PASS; + switch (status) { + case MGSPF_PASS: + result = (p->RES == SPF_PASS); + break; + case MGSPF_FAIL: + result = (p->RES == SPF_H_FAIL); + break; + case MGSPF_SOFTFAIL: + result = (p->RES == SPF_S_FAIL); + break; + case MGSPF_NEUTRAL: + result = (p->RES == SPF_NEUTRAL); + break; + case MGSPF_UNKNOWN: + result = (p->RES == SPF_UNKNOWN || p->RES == SPF_UNMECH); + break; + case MGSPF_ERROR: + result = (p->RES == SPF_ERROR); + break; + case MGSPF_NONE: + result = (p->RES == SPF_NONE); + break; + default: + mg_log(LOG_ERR, "Internal error: unexpected spf_status"); + exit(EX_SOFTWARE); + break; + } + + SPF_close(p); + +out1: + if (conf.c_debug) { + gettimeofday(&tv2, NULL); + timersub(&tv2, &tv1, &tv3); + mg_log(LOG_DEBUG, "SPF lookup performed in %ld.%06lds", + tv3.tv_sec, tv3.tv_usec); + } + + return result; +} +#endif /* HAVE_SPF */ + + +#if defined(HAVE_SPF_ALT) || defined(HAVE_SPF2_10) || defined(HAVE_SPF2) +/* SMTP needs at least 64 chars for local part and 255 for doamin... */ +#ifndef NS_MAXDNAME +#define NS_MAXDNAME 1025 +#endif +#endif + +#ifdef HAVE_SPF_ALT +#include +#include +#include +#endif + +#ifdef HAVE_SPF2_10 +#include +#include +#include +#endif + +#if defined(HAVE_SPF_ALT) || defined(HAVE_SPF2_10) +static int +spf_check_internal(ad, as, ap, priv) + acl_data_t *ad; + acl_stage_t as; + struct acl_param *ap; + struct mlfi_priv *priv; +{ + struct sockaddr *sa = SA(&priv->priv_addr); + socklen_t salen = priv->priv_addrlen; + char *helo = priv->priv_helo; + char *fromp = priv->priv_from; + SPF_config_t spfconf; + SPF_dns_config_t dnsconf; + char addr[IPADDRSTRLEN]; + char from[NS_MAXDNAME + 1]; + SPF_output_t out; + int result = 0; + struct timeval tv1, tv2, tv3; + size_t len; + enum spf_status status; + + if (conf.c_debug) + gettimeofday(&tv1, NULL); + + if ((spfconf = SPF_create_config()) == NULL) { + mg_log(LOG_ERR, "SPF_create_config failed"); + goto out1; + } + + if ((dnsconf = SPF_dns_create_config_resolv(NULL, 0)) == NULL) { + mg_log(LOG_ERR, "SPF_dns_create_config_resolv faile"); + goto out2; + } + + /* + * Get the IP address + */ + if (!iptostring(sa, salen, addr, sizeof(addr))) { + mg_log(LOG_ERR, "SPF_set_ip_str failed"); + goto out3; + } + if (SPF_set_ip_str(spfconf, addr) != 0) { + mg_log(LOG_ERR, "SPF_set_ip_str failed"); + goto out3; + } + + /* HELO string */ + if (SPF_set_helo_dom(spfconf, helo) != 0) { + mg_log(LOG_ERR, "SPF_set_helo failed"); + goto out3; + } + + /* + * And the enveloppe source e-mail + */ + if (fromp[0] == '<') + fromp++; /* strip leading < */ + strncpy(from, fromp, NS_MAXDNAME); + from[NS_MAXDNAME] = '\0'; + len = strlen(from); + if (fromp[len - 1] == '>') + from[len - 1] = '\0'; /* strip trailing > */ + + if (SPF_set_env_from(spfconf, from) != 0) { + mg_log(LOG_ERR, "SPF_set_env_from failed"); + goto out3; + } + + /* + * Get the SPF result + */ + SPF_init_output(&out); +#if 0 &&((SPF_LIB_VERSION_MAJOR == 0) && (SPF_LIB_VERSION_MINOR <= 3)) + out = SPF_result(spfconf, dnsconf, NULL); +#else + out = SPF_result(spfconf, dnsconf); +#endif + + status = ad ? *(enum spf_status *)ad : MGSPF_PASS; + switch (status) { + case MGSPF_PASS: + result = (out.result == SPF_RESULT_PASS); + break; + case MGSPF_FAIL: + result = (out.result == SPF_RESULT_FAIL); + break; + case MGSPF_SOFTFAIL: + result = (out.result == SPF_RESULT_SOFTFAIL); + break; + case MGSPF_NEUTRAL: + result = (out.result == SPF_RESULT_NEUTRAL); + break; + case MGSPF_UNKNOWN: + result = (out.result == SPF_RESULT_UNKNOWN); + break; + case MGSPF_ERROR: + result = (out.result == SPF_RESULT_ERROR); + break; + case MGSPF_NONE: + result = (out.result == SPF_RESULT_NONE); + break; + default: + mg_log(LOG_ERR, "Internal error: unexpected spf_status"); + exit(EX_SOFTWARE); + break; + } + + if (conf.c_debug) + mg_log(LOG_DEBUG, "SPF return code %d", out.result); + + SPF_free_output(&out); +out3: + SPF_dns_destroy_config_resolv(dnsconf); +out2: + SPF_destroy_config(spfconf); +out1: + if (conf.c_debug) { + gettimeofday(&tv2, NULL); + timersub(&tv2, &tv1, &tv3); + mg_log(LOG_DEBUG, "SPF lookup performed in %ld.%06lds", + tv3.tv_sec, tv3.tv_usec); + } + + return result; +} + +#endif /* HAVE_SPF_ALT */ + +#ifdef HAVE_SPF2 +#include + +static int +spf_check_internal(ad, as, ap, priv) + acl_data_t *ad; + acl_stage_t as; + struct acl_param *ap; + struct mlfi_priv *priv; +{ + struct sockaddr *sa = SA(&priv->priv_addr); + char *helo = priv->priv_helo; + char *fromp = priv->priv_from; + SPF_server_t *spf_server; + SPF_request_t *spf_request; + SPF_response_t *spf_response; + char from[NS_MAXDNAME + 1]; + int res, result = 0; + struct timeval tv1, tv2, tv3; + size_t len; + enum spf_status status; + + if (conf.c_debug) + gettimeofday(&tv1, NULL); + + if ((spf_server = SPF_server_new(SPF_DNS_CACHE, 0)) == NULL) { + mg_log(LOG_ERR, "SPF_server_new failed"); + goto out1; + } + + if ((spf_request = SPF_request_new(spf_server)) == NULL) { + mg_log(LOG_ERR, "SPF_request_new failed"); + goto out2; + } + + /* + * Get the IP address + */ + switch (sa->sa_family) { + case AF_INET: + res = SPF_request_set_ipv4(spf_request, *SADDR4(sa)); + break; +#ifdef AF_INET6 + case AF_INET6: + res = SPF_request_set_ipv6(spf_request, *SADDR6(sa)); + break; +#endif + default: + mg_log(LOG_ERR, "unknown address family %d", sa->sa_family); + goto out3; + } + if (res != 0) { + mg_log(LOG_ERR, "SPF_request_set_ip_str failed"); + goto out3; + } + + /* HELO string */ + if (SPF_request_set_helo_dom(spf_request, helo) != 0) { + mg_log(LOG_ERR, "SPF_request_set_helo_dom failed"); + goto out3; + } + + /* + * And the enveloppe source e-mail + */ + if (fromp[0] == '<') + fromp++; /* strip leading < */ + strncpy(from, fromp, NS_MAXDNAME); + from[NS_MAXDNAME] = '\0'; + len = strlen(from); + if (fromp[len - 1] == '>') + from[len - 1] = '\0'; /* strip trailing > */ + + if (SPF_request_set_env_from(spf_request, from) != 0) { + mg_log(LOG_ERR, "SPF_request_set_env_from failed"); + goto out3; + } + + /* + * Get the SPF result + */ + SPF_request_query_mailfrom(spf_request, &spf_response); + res = SPF_response_result(spf_response); + + status = ad ? *(enum spf_status *)ad : MGSPF_PASS; + switch (status) { + case MGSPF_PASS: + result = (res == SPF_RESULT_PASS); + break; + case MGSPF_FAIL: + result = (res == SPF_RESULT_FAIL); + break; + case MGSPF_SOFTFAIL: + result = (res == SPF_RESULT_SOFTFAIL); + break; + case MGSPF_NEUTRAL: + result = (res == SPF_RESULT_NEUTRAL); + break; + case MGSPF_UNKNOWN: + result = + (res == SPF_RESULT_PERMERROR || res == SPF_RESULT_INVALID); + break; + case MGSPF_ERROR: + result = (res == SPF_RESULT_TEMPERROR); + break; + case MGSPF_NONE: + result = (res == SPF_RESULT_NONE); + break; + default: + mg_log(LOG_ERR, "Internal error: unexpected spf_status"); + exit(EX_SOFTWARE); + break; + } + + if (conf.c_debug) + mg_log(LOG_DEBUG, "SPF return code %d", res); + + SPF_response_free(spf_response); +out3: + SPF_request_free(spf_request); +out2: + SPF_server_free(spf_server); +out1: + if (conf.c_debug) { + gettimeofday(&tv2, NULL); + timersub(&tv2, &tv1, &tv3); + mg_log(LOG_DEBUG, "SPF lookup performed in %ld.%06lds", + tv3.tv_sec, tv3.tv_usec); + } + + return result; +} + + +#endif /* HAVE_SPF2 */ + + + +#if (defined(HAVE_SPF) || defined(HAVE_SPF_ALT) || \ + defined(HAVE_SPF2_10) || defined(HAVE_SPF2)) +char * +acl_print_spf(ad, buf, len) + acl_data_t *ad; + char *buf; + size_t len; +{ + char *tmpstr; + enum spf_status status; + + status = ad ? *(enum spf_status *)ad : MGSPF_PASS; + switch (status) { + case MGSPF_PASS: + tmpstr = "pass"; + break; + case MGSPF_FAIL: + tmpstr = "fail"; + break; + case MGSPF_SOFTFAIL: + tmpstr = "softfail"; + break; + case MGSPF_NEUTRAL: + tmpstr = "neutral"; + break; + case MGSPF_UNKNOWN: + tmpstr = "unknown"; + break; + case MGSPF_ERROR: + tmpstr = "error"; + break; + case MGSPF_NONE: + tmpstr = "none"; + break; + case MGSPF_SELF: + tmpstr = "self"; + break; + default: + mg_log(LOG_ERR, "Internal error: unexpected spf_status"); + exit(EX_SOFTWARE); + break; + } + snprintf(buf, len, "%s", tmpstr); + return buf; +} + +void +acl_add_spf(ad, data) + acl_data_t *ad; + void *data; +{ + ad->spf_status = *(enum spf_status *)data; + return; +} + +int +spf_check(ad, as, ap, priv) + acl_data_t *ad; + acl_stage_t as; + struct acl_param *ap; + struct mlfi_priv *priv; +{ + enum spf_status status; + + status = ad ? *(enum spf_status *)ad : MGSPF_PASS; + switch (status) { + case MGSPF_PASS: + case MGSPF_FAIL: + case MGSPF_SOFTFAIL: + case MGSPF_NEUTRAL: + case MGSPF_UNKNOWN: + case MGSPF_ERROR: + case MGSPF_NONE: + return spf_check_internal(ad, as, ap, priv); + break; + case MGSPF_SELF: + return spf_check_self(ad, as, ap, priv); + break; + default: + break; + } + + mg_log(LOG_ERR, "Internal error: unexpected spf_status"); + exit(EX_SOFTWARE); + + return 0; +} + +/* + * Check if the SPF record is wide open: the simpliest + * way of doing it is to check whether our own IP + * validates the record. + * That is a problem for Postfix and CommSuite installations, + * as the local IP is not available ({if_addr} milter macro). + * For now such MTAs must define "localaddr" in config. + */ +static int +spf_check_self(ad, as, ap, priv) + acl_data_t *ad; + acl_stage_t as; + struct acl_param *ap; + struct mlfi_priv *priv; +{ + int retval = 0; + sockaddr_t saved_addr; + acl_data_t tmp_ad; + char *ip; + + (void)memcpy(&saved_addr, &priv->priv_addr, sizeof(saved_addr)); + + switch (conf.c_localaddr.ss_family) { + case AF_INET: + (void)memcpy(&priv->priv_addr, &conf.c_localaddr, + sizeof(struct sockaddr_in)); + break; +#ifdef AF_INET6 + case AF_INET6: + (void)memcpy(&priv->priv_addr, &conf.c_localaddr, + sizeof(struct sockaddr_in6)); + break; +#endif /* AF_INET6 */ + default: /* localaddr unspecified, try fallback to {if_addr} */ + ip = local_ipstr(priv); + if (strcmp(ip, "0.0.0.0") == 0) { + mg_log(LOG_ERR, + "spf self used without localaddr specified " + "and no {if_addr} macro is available"); + return 0; + } + if (strncmp(ip, "IPv6:", strlen("IPv6:")) == 0) { +#ifdef AF_INET6 + if (inet_pton(AF_INET6, ip + strlen("IPv6:"), + SADDR6(SA(&priv->priv_addr))) <= 0) { + mg_log(LOG_ERR, + "Invalid IPv6 local address %s", ip); + exit(EX_SOFTWARE); + } +#else /* AF_INET6 */ + mg_log(LOG_ERR, + "IPv6 support not compiled but local IP is IPv6"); + exit(EX_SOFTWARE); +#endif /* AF_INET6 */ + } else { + if (inet_pton(AF_INET, ip, + SADDR4(SA(&priv->priv_addr))) <= 0) { + mg_log(LOG_ERR, + "Invalid IPv4 local address %s", ip); + exit(EX_SOFTWARE); + } + } + break; + } + + if (ad == NULL) + (void)memset(&tmp_ad, 0, sizeof(tmp_ad)); + else + (void)memcpy(&tmp_ad, ad, sizeof(tmp_ad)); + + tmp_ad.spf_status = MGSPF_PASS; + + retval = spf_check_internal(&tmp_ad, as, ap, priv); + + (void)memcpy(&priv->priv_addr, &saved_addr, sizeof(priv->priv_addr)); + + return retval; +} + +#endif