configure
上传用户:pycemail
上传日期:2007-01-04
资源大小:329k
文件大小:142k
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2575: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in utmpx.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:2605: checking for $ac_hdr" >&5
- if eval "test "${ac_cv_header_$ac_safe+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2610 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2615: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in regex.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:2645: checking for $ac_hdr" >&5
- if eval "test "${ac_cv_header_$ac_safe+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2650 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2655: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- ac_safe=`echo "glob.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for glob.h""... $ac_c" 1>&6
- echo "configure:2683: checking for glob.h" >&5
- if eval "test "${ac_cv_header_$ac_safe+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2688 "configure"
- #include "confdefs.h"
- #include <glob.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2693: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- have_glob_h="yes"
- else
- echo "$ac_t""no" 1>&6
- fi
- ac_safe=`echo "fnmatch.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for fnmatch.h""... $ac_c" 1>&6
- echo "configure:2716: checking for fnmatch.h" >&5
- if eval "test "${ac_cv_header_$ac_safe+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2721 "configure"
- #include "confdefs.h"
- #include <fnmatch.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2726: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- have_fnmatch_h="yes"
- else
- echo "$ac_t""no" 1>&6
- fi
- ac_safe=`echo "syslog.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for syslog.h""... $ac_c" 1>&6
- echo "configure:2749: checking for syslog.h" >&5
- if eval "test "${ac_cv_header_$ac_safe+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2754 "configure"
- #include "confdefs.h"
- #include <syslog.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2759: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- have_syslog_h="yes"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for working const""... $ac_c" 1>&6
- echo "configure:2782: checking for working const" >&5
- if eval "test "${ac_cv_c_const+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2787 "configure"
- #include "confdefs.h"
- int main() {
- /* Ultrix mips cc rejects this. */
- typedef int charset[2]; const charset x;
- /* SunOS 4.1.1 cc rejects this. */
- char const *const *ccp;
- char **p;
- /* NEC SVR4.0.2 mips cc rejects this. */
- struct point {int x, y;};
- static struct point const zero = {0,0};
- /* AIX XL C 1.02.0.0 rejects this.
- It does not let you subtract one const X* pointer from another in an arm
- of an if-expression whose if-part is not a constant expression */
- const char *g = "string";
- ccp = &g + (g ? g-g : 0);
- /* HPUX 7.0 cc rejects these. */
- ++ccp;
- p = (char**) ccp;
- ccp = (char const *const *) p;
- { /* SCO 3.2v4 cc rejects this. */
- char *t;
- char const *s = 0 ? (char *) 0 : (char const *) 0;
- *t++ = 0;
- }
- { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
- int x[] = {25, 17};
- const int *foo = &x[0];
- ++foo;
- }
- { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
- typedef const int *iptr;
- iptr p = 0;
- ++p;
- }
- { /* AIX XL C 1.02.0.0 rejects this saying
- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
- struct s { int j; const int *ap[3]; };
- struct s *b; b->j = 5;
- }
- { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
- const int foo = 10;
- }
- ; return 0; }
- EOF
- if { (eval echo configure:2836: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_const=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_c_const=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_c_const" 1>&6
- if test $ac_cv_c_const = no; then
- cat >> confdefs.h <<EOF
- #define const
- EOF
- fi
- echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
- echo "configure:2857: checking for uid_t in sys/types.h" >&5
- if eval "test "${ac_cv_type_uid_t+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2862 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "uid_t" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_uid_t=yes
- else
- rm -rf conftest*
- ac_cv_type_uid_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_uid_t" 1>&6
- if test $ac_cv_type_uid_t = no; then
- cat >> confdefs.h <<EOF
- #define uid_t int
- EOF
- cat >> confdefs.h <<EOF
- #define gid_t int
- EOF
- fi
- echo $ac_n "checking for pid_t""... $ac_c" 1>&6
- echo "configure:2891: checking for pid_t" >&5
- if eval "test "${ac_cv_type_pid_t+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2896 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- eval "ac_cv_type_pid_t=yes"
- else
- rm -rf conftest*
- eval "ac_cv_type_pid_t=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_type_'pid_t`" = yes"; then
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- cat >> confdefs.h <<EOF
- #define pid_t int
- EOF
- fi
- echo $ac_n "checking for size_t""... $ac_c" 1>&6
- echo "configure:2926: checking for size_t" >&5
- if eval "test "${ac_cv_type_size_t+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2931 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- eval "ac_cv_type_size_t=yes"
- else
- rm -rf conftest*
- eval "ac_cv_type_size_t=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_type_'size_t`" = yes"; then
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- cat >> confdefs.h <<EOF
- #define size_t unsigned
- EOF
- fi
- echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
- echo "configure:2961: checking whether time.h and sys/time.h may both be included" >&5
- if eval "test "${ac_cv_header_time+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 2966 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int main() {
- struct tm *tp;
- ; return 0; }
- EOF
- if { (eval echo configure:2975: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_time=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_time=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_header_time" 1>&6
- if test $ac_cv_header_time = yes; then
- cat >> confdefs.h <<EOF
- #define TIME_WITH_SYS_TIME 1
- EOF
- fi
- echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
- echo "configure:2996: checking whether struct tm is in sys/time.h or time.h" >&5
- if eval "test "${ac_cv_struct_tm+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3001 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <time.h>
- int main() {
- struct tm *tp; tp->tm_sec;
- ; return 0; }
- EOF
- if { (eval echo configure:3009: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_tm=time.h
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_tm=sys/time.h
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_struct_tm" 1>&6
- if test $ac_cv_struct_tm = sys/time.h; then
- cat >> confdefs.h <<EOF
- #define TM_IN_SYS_TIME 1
- EOF
- fi
- echo $ac_n "checking for umode_t""... $ac_c" 1>&6
- echo "configure:3031: checking for umode_t" >&5
- if eval "test "${ac_cv_type_umode_t+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3036 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])umode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- eval "ac_cv_type_umode_t=yes"
- else
- rm -rf conftest*
- eval "ac_cv_type_umode_t=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_type_'umode_t`" = yes"; then
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- cat >> confdefs.h <<EOF
- #define umode_t mode_t
- EOF
- fi
- echo $ac_n "checking for ino_t""... $ac_c" 1>&6
- echo "configure:3066: checking for ino_t" >&5
- if eval "test "${ac_cv_type_ino_t+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3071 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- eval "ac_cv_type_ino_t=yes"
- else
- rm -rf conftest*
- eval "ac_cv_type_ino_t=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_type_'ino_t`" = yes"; then
- echo "$ac_t""yes" 1>&6
- else
- echo "$ac_t""no" 1>&6
- cat >> confdefs.h <<EOF
- #define ino_t ino_t
- EOF
- fi
- for ac_hdr in utmp.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3105: checking for $ac_hdr" >&5
- if eval "test "${ac_cv_header_$ac_safe+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3110 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3115: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
- have_utmp=1
- else
- echo "$ac_t""no" 1>&6
- have_utmp=0
- fi
- done
- if test $have_utmp; then
- echo $ac_n "checking whether your struct utmp has ut_user""... $ac_c" 1>&6
- echo "configure:3145: checking whether your struct utmp has ut_user" >&5
- if eval "test "${pr_cv_header_utmaxtype+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3150 "configure"
- #include "confdefs.h"
- #include <utmp.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep " *ut_user.*;" >/dev/null 2>&1; then
- rm -rf conftest*
- pr_cv_header_utmaxtype="yes"
- else
- rm -rf conftest*
- pr_cv_header_utmaxtype="no"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$pr_cv_header_utmaxtype" 1>&6
- echo $ac_n "checking whether your struct utmp has ut_host""... $ac_c" 1>&6
- echo "configure:3168: checking whether your struct utmp has ut_host" >&5
- if eval "test "${pr_cv_header_ut_host+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3173 "configure"
- #include "confdefs.h"
- #include <utmp.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep " *ut_host.*;" >/dev/null 2>&1; then
- rm -rf conftest*
- pr_cv_header_ut_host="yes"
- else
- rm -rf conftest*
- pr_cv_header_ut_host="no"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$pr_cv_header_ut_host" 1>&6
- if test "$pr_cv_header_utmaxtype" = "yes"; then
- cat >> confdefs.h <<EOF
- #define HAVE_UTMAXTYPE 1
- EOF
- fi
- if test "$pr_cv_header_ut_host" = "yes"; then
- cat >> confdefs.h <<EOF
- #define HAVE_UT_UT_HOST 1
- EOF
- fi
- fi
- if test "$have_glob_h" = "yes"; then
- echo $ac_n "checking whether your glob.h defines GLOB_PERIOD""... $ac_c" 1>&6
- echo "configure:3206: checking whether your glob.h defines GLOB_PERIOD" >&5
- if eval "test "${pr_cv_header_glob_period+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3211 "configure"
- #include "confdefs.h"
- #include <glob.h>
- #ifdef GLOB_PERIOD
- yes
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- pr_cv_header_glob_period="yes"
- else
- rm -rf conftest*
- pr_cv_header_glob_period="no"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$pr_cv_header_glob_period" 1>&6
- if test "$pr_cv_header_glob_period" = "yes"; then
- echo $ac_n "checking whether your glob.h defines GLOB_ALTDIRFUNC""... $ac_c" 1>&6
- echo "configure:3236: checking whether your glob.h defines GLOB_ALTDIRFUNC" >&5
- if eval "test "${pr_cv_header_glob_altdirfunc+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3241 "configure"
- #include "confdefs.h"
- #include <glob.h>
- #ifdef GLOB_ALTDIRFUNC
- yes
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- pr_cv_header_glob_altdirfunc="yes"
- else
- rm -rf conftest*
- pr_cv_header_glob_altdirfunc="no"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$pr_cv_header_glob_altdirfunc" 1>&6
- if test "$pr_cv_header_glob_altdirfunc" = "yes"; then
- cat >> confdefs.h <<EOF
- #define HAVE_GLOB_H 1
- EOF
- cat >> confdefs.h <<EOF
- #define HAVE_GLOB_PERIOD 1
- EOF
- fi
- fi
- fi
- echo $ac_n "checking for timer_t""... $ac_c" 1>&6
- echo "configure:3278: checking for timer_t" >&5
- if eval "test "${pr_cv_header_timer_t+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3283 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep ".*typedef.*timer_t;" >/dev/null 2>&1; then
- rm -rf conftest*
- pr_cv_header_timer_t="yes"
- else
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 3294 "configure"
- #include "confdefs.h"
- #include <limits.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep ".*typedef.*timer_t;" >/dev/null 2>&1; then
- rm -rf conftest*
- pr_cv_header_timer_t="yes"
- else
- rm -rf conftest*
- pr_cv_header_timer_t="no"
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$pr_cv_header_timer_t" 1>&6
- if test "$pr_cv_header_timer_t" = "yes"; then
- cat >> confdefs.h <<EOF
- #define HAVE_TIMER_T 1
- EOF
- fi
- if test "$have_syslog_h" = "yes"; then
- cat >> confdefs.h <<EOF
- #define HAVE_SYSLOG_H 1
- EOF
- echo $ac_n "checking whether your syslog.h defines LOG_CRON""... $ac_c" 1>&6
- echo "configure:3328: checking whether your syslog.h defines LOG_CRON" >&5
- if eval "test "${pr_cv_header_syslog_log_cron+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3333 "configure"
- #include "confdefs.h"
- #include <syslog.h>
- #ifdef LOG_CRON
- yes
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- pr_cv_header_syslog_log_cron="yes"
- else
- rm -rf conftest*
- pr_cv_header_syslog_log_cron="no"
- fi
- rm -f conftest*
-
- fi
- echo "$ac_t""$pr_cv_header_syslog_log_cron" 1>&6
- echo $ac_n "checking whether your syslog.h defines LOG_FTP""... $ac_c" 1>&6
- echo "configure:3357: checking whether your syslog.h defines LOG_FTP" >&5
- if eval "test "${pr_cv_header_syslog_log_ftp+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3362 "configure"
- #include "confdefs.h"
- #include <syslog.h>
- #ifdef LOG_FTP
- yes
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- pr_cv_header_syslog_log_ftp="yes"
- else
- rm -rf conftest*
- pr_cv_header_syslog_log_ftp="no"
- fi
- rm -f conftest*
-
- fi
- echo "$ac_t""$pr_cv_header_syslog_log_ftp" 1>&6
- if test "$pr_cv_header_syslog_log_cron" = "yes"; then
- cat >> confdefs.h <<EOF
- #define HAVE_LOG_CRON 1
- EOF
- fi
- if test "$pr_cv_header_syslog_log_ftp" = "yes"; then
- cat >> confdefs.h <<EOF
- #define HAVE_LOG_FTP 1
- EOF
- fi
- fi
- if test "$have_fnmatch_h" = "yes"; then
- echo $ac_n "checking whether your fnmatch.h defines FNM_NOESCAPE""... $ac_c" 1>&6
- echo "configure:3401: checking whether your fnmatch.h defines FNM_NOESCAPE" >&5
- if eval "test "${pr_cv_header_fnmatch_noescape+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3406 "configure"
- #include "confdefs.h"
- #include <fnmatch.h>
- #ifdef FNM_NOESCAPE
- yes
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- pr_cv_header_fnmatch_noescape="yes"
- else
- rm -rf conftest*
- pr_cv_header_fnmatch_noescape="no"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$pr_cv_header_fnmatch_noescape" 1>&6
- fi
- # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
- # for constant arguments. Useless!
- echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
- echo "configure:3433: checking for working alloca.h" >&5
- if eval "test "${ac_cv_header_alloca_h+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3438 "configure"
- #include "confdefs.h"
- #include <alloca.h>
- int main() {
- char *p = alloca(2 * sizeof(int));
- ; return 0; }
- EOF
- if { (eval echo configure:3445: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_header_alloca_h=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_alloca_h=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
- if test $ac_cv_header_alloca_h = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_ALLOCA_H 1
- EOF
- fi
- echo $ac_n "checking for alloca""... $ac_c" 1>&6
- echo "configure:3466: checking for alloca" >&5
- if eval "test "${ac_cv_func_alloca_works+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3471 "configure"
- #include "confdefs.h"
- #ifdef __GNUC__
- # define alloca __builtin_alloca
- #else
- # ifdef _MSC_VER
- # include <malloc.h>
- # define alloca _alloca
- # else
- # if HAVE_ALLOCA_H
- # include <alloca.h>
- # else
- # ifdef _AIX
- #pragma alloca
- # else
- # ifndef alloca /* predefined by HP cc +Olibcalls */
- char *alloca ();
- # endif
- # endif
- # endif
- # endif
- #endif
- int main() {
- char *p = (char *) alloca(1);
- ; return 0; }
- EOF
- if { (eval echo configure:3499: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_func_alloca_works=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_func_alloca_works=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
- if test $ac_cv_func_alloca_works = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_ALLOCA 1
- EOF
- fi
- if test $ac_cv_func_alloca_works = no; then
- # The SVR3 libPW and SVR4 libucb both contain incompatible functions
- # that cause trouble. Some versions do not even contain alloca or
- # contain a buggy version. If you still want to use their alloca,
- # use ar to extract alloca.o from them instead of compiling alloca.c.
- ALLOCA=alloca.${ac_objext}
- cat >> confdefs.h <<EOF
- #define C_ALLOCA 1
- EOF
- echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
- echo "configure:3531: checking whether alloca needs Cray hooks" >&5
- if eval "test "${ac_cv_os_cray+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3536 "configure"
- #include "confdefs.h"
- #if defined(CRAY) && ! defined(CRAY2)
- webecray
- #else
- wenotbecray
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "webecray" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_os_cray=yes
- else
- rm -rf conftest*
- ac_cv_os_cray=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_os_cray" 1>&6
- if test $ac_cv_os_cray = yes; then
- for ac_func in _getb67 GETB67 getb67; do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3561: checking for $ac_func" >&5
- if eval "test "${ac_cv_func_$ac_func+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3566 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- f = $ac_func;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3590: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define CRAY_STACKSEG_END $ac_func
- EOF
- break
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- fi
- echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
- echo "configure:3617: checking stack direction for C alloca" >&5
- if eval "test "${ac_cv_c_stack_direction+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_c_stack_direction=0
- else
- cat > conftest.$ac_ext <<EOF
- #line 3625 "configure"
- #include "confdefs.h"
- find_stack_direction ()
- {
- static char *addr = 0;
- auto char dummy;
- if (addr == 0)
- {
- addr = &dummy;
- return find_stack_direction ();
- }
- else
- return (&dummy > addr) ? 1 : -1;
- }
- main ()
- {
- exit (find_stack_direction() < 0);
- }
- EOF
- if { (eval echo configure:3644: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_c_stack_direction=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_c_stack_direction=-1
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
- cat >> confdefs.h <<EOF
- #define STACK_DIRECTION $ac_cv_c_stack_direction
- EOF
- fi
- if test "$pr_cv_header_fnmatch_noescape" = "yes"; then
- echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
- echo "configure:3667: checking for working fnmatch" >&5
- if eval "test "${ac_cv_func_fnmatch_works+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # Some versions of Solaris or SCO have a broken fnmatch function.
- # So we run a test program. If we are cross-compiling, take no chance.
- # Thanks to John Oleynick and Franc,ois Pinard for this test.
- if test "$cross_compiling" = yes; then
- ac_cv_func_fnmatch_works=no
- else
- cat > conftest.$ac_ext <<EOF
- #line 3678 "configure"
- #include "confdefs.h"
- main() { exit (fnmatch ("a*", "abc", 0) != 0); }
- EOF
- if { (eval echo configure:3682: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_fnmatch_works=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_fnmatch_works=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
- if test $ac_cv_func_fnmatch_works = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_FNMATCH 1
- EOF
- fi
- fi
- if test $ac_cv_prog_gcc = yes; then
- echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
- echo "configure:3707: checking whether ${CC-cc} needs -traditional" >&5
- if eval "test "${ac_cv_prog_gcc_traditional+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_pattern="Autoconf.*'x'"
- cat > conftest.$ac_ext <<EOF
- #line 3713 "configure"
- #include "confdefs.h"
- #include <sgtty.h>
- Autoconf TIOCGETP
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "$ac_pattern" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_prog_gcc_traditional=yes
- else
- rm -rf conftest*
- ac_cv_prog_gcc_traditional=no
- fi
- rm -f conftest*
- if test $ac_cv_prog_gcc_traditional = no; then
- cat > conftest.$ac_ext <<EOF
- #line 3731 "configure"
- #include "confdefs.h"
- #include <termio.h>
- Autoconf TCGETA
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "$ac_pattern" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_prog_gcc_traditional=yes
- fi
- rm -f conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
- if test $ac_cv_prog_gcc_traditional = yes; then
- CC="$CC -traditional"
- fi
- fi
- echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
- echo "configure:3753: checking whether setpgrp takes no argument" >&5
- if eval "test "${ac_cv_func_setpgrp_void+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3761 "configure"
- #include "confdefs.h"
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- /*
- * If this system has a BSD-style setpgrp, which takes arguments, exit
- * successfully.
- */
- main()
- {
- if (setpgrp(1,1) == -1)
- exit(0);
- else
- exit(1);
- }
- EOF
- if { (eval echo configure:3781: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_setpgrp_void=no
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_setpgrp_void=yes
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
- if test $ac_cv_func_setpgrp_void = yes; then
- cat >> confdefs.h <<EOF
- #define SETPGRP_VOID 1
- EOF
- fi
- echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
- echo "configure:3805: checking return type of signal handlers" >&5
- if eval "test "${ac_cv_type_signal+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3810 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <signal.h>
- #ifdef signal
- #undef signal
- #endif
- #ifdef __cplusplus
- extern "C" void (*signal (int, void (*)(int)))(int);
- #else
- void (*signal ()) ();
- #endif
- int main() {
- int i;
- ; return 0; }
- EOF
- if { (eval echo configure:3827: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_type_signal=void
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_type_signal=int
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_signal" 1>&6
- cat >> confdefs.h <<EOF
- #define RETSIGTYPE $ac_cv_type_signal
- EOF
- echo $ac_n "checking for vprintf""... $ac_c" 1>&6
- echo "configure:3846: checking for vprintf" >&5
- if eval "test "${ac_cv_func_vprintf+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3851 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char vprintf(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char vprintf();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_vprintf) || defined (__stub___vprintf)
- choke me
- #else
- f = vprintf;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3875: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_vprintf=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_vprintf=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'vprintf`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_VPRINTF 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$ac_cv_func_vprintf" != yes; then
- echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
- echo "configure:3899: checking for _doprnt" >&5
- if eval "test "${ac_cv_func__doprnt+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3904 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char _doprnt(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char _doprnt();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub__doprnt) || defined (__stub____doprnt)
- choke me
- #else
- f = _doprnt;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3928: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func__doprnt=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func__doprnt=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'_doprnt`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_DOPRNT 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- for ac_func in getcwd gethostname gettimeofday mkdir rmdir select sendfile socket strerror strtol
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3955: checking for $ac_func" >&5
- if eval "test "${ac_cv_func_$ac_func+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3960 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- f = $ac_func;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3984: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in strchr memcpy bcopy flock getopt getopt_long strsep
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4011: checking for $ac_func" >&5
- if eval "test "${ac_cv_func_$ac_func+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4016 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- f = $ac_func;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4040: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in vsnprintf __vsnprintf snprintf __snprintf
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4067: checking for $ac_func" >&5
- if eval "test "${ac_cv_func_$ac_func+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4072 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- f = $ac_func;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4096: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in setsid setpassent seteuid setegid crypt fgetpwent fgetgrent
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4123: checking for $ac_func" >&5
- if eval "test "${ac_cv_func_$ac_func+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4128 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- f = $ac_func;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4152: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in inet_aton siginterrupt setpgid
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4179: checking for $ac_func" >&5
- if eval "test "${ac_cv_func_$ac_func+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4184 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- f = $ac_func;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4208: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in regcomp
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4235: checking for $ac_func" >&5
- if eval "test "${ac_cv_func_$ac_func+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4240 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- f = $ac_func;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4264: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- if test "$have_glob_h" = "yes" &&
- test "$pr_cv_header_glob_period" = "yes" &&
- test "$pr_cv_header_glob_altdirfunc" = "yes"; then
- for ac_func in glob
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4295: checking for $ac_func" >&5
- if eval "test "${ac_cv_func_$ac_func+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4300 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- f = $ac_func;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4324: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- fi
- for ac_func in setproctitle
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4353: checking for $ac_func" >&5
- if eval "test "${ac_cv_func_$ac_func+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4358 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- f = $ac_func;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4382: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in libutil.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:4410: checking for $ac_hdr" >&5
- if eval "test "${ac_cv_header_$ac_safe+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4415 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4420: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
- echo "configure:4447: checking for setproctitle in -lutil" >&5
- ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
- if eval "test "${ac_cv_lib_$ac_lib_var+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lutil $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4455 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char setproctitle();
- int main() {
- setproctitle()
- ; return 0; }
- EOF
- if { (eval echo configure:4466: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_SETPROCTITLE 1
- EOF
- ac_cv_func_setproctitle="yes" ; LIBS="$LIBS -lutil"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$ac_cv_func_setproctitle" = "yes"; then
- cat >> confdefs.h <<EOF
- #define PF_ARGV_TYPE PF_ARGV_NONE
- EOF
- else
- pf_argv_set="no"
- for ac_hdr in sys/pstat.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:4503: checking for $ac_hdr" >&5
- if eval "test "${ac_cv_header_$ac_safe+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4508 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4513: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
- have_pstat_h="yes"
- else
- echo "$ac_t""no" 1>&6
- have_pstat_h="no"
- fi
- done
- if test "$have_pstat_h" = "yes"; then
- for ac_func in pstat
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4544: checking for $ac_func" >&5
- if eval "test "${ac_cv_func_$ac_func+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4549 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- char (*f)();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- f = $ac_func;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4573: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
-
- if test "$ac_cv_func_pstat" = "yes"; then
- cat >> confdefs.h <<EOF
- #define PF_ARGV_TYPE PF_ARGV_PSTAT
- EOF
- else
- cat >> confdefs.h <<EOF
- #define PF_ARGV_TYPE PF_ARGV_WRITABLE
- EOF
- fi
- pf_argv_set="yes"
- fi
- if test "$pf_argv_set" = "no"; then
- cat > conftest.$ac_ext <<EOF
- #line 4615 "configure"
- #include "confdefs.h"
- #include <sys/exec.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "#define.*PS_STRINGS.*" >/dev/null 2>&1; then
- rm -rf conftest*
- have_psstrings="yes"
- else
- rm -rf conftest*
- have_psstrings="no"
- fi
- rm -f conftest*
- if test "$have_psstrings" = "yes"; then
- cat >> confdefs.h <<EOF
- #define PF_ARGV_TYPE PF_ARGV_PSSTRINGS
- EOF
- pf_argv_set="yes"
- fi
- fi
- if test "$pf_argv_set" = "no"; then
- echo $ac_n "checking whether __progname and __progname_full are available""... $ac_c" 1>&6
- echo "configure:4640: checking whether __progname and __progname_full are available" >&5
- if eval "test "${pf_cv_var_progname+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4645 "configure"
- #include "confdefs.h"
- extern char *__progname, *__progname_full;
- int main() {
- __progname = "foo"; __progname_full = "foo bar";
- ; return 0; }
- EOF
- if { (eval echo configure:4652: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- pf_cv_var_progname="yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- pf_cv_var_progname="no"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$pf_cv_var_progname" 1>&6
- if test "$pf_cv_var_progname" = "yes"; then
- cat >> confdefs.h <<EOF
- #define HAVE___PROGNAME 1
- EOF
- fi
- echo $ac_n "checking which argv replacement method to use""... $ac_c" 1>&6
- echo "configure:4674: checking which argv replacement method to use" >&5
- if eval "test "${pf_cv_argv_type+set}" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4679 "configure"
- #include "confdefs.h"
- #if defined(__GNU_HURD__)
- yes
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- pf_cv_argv_type="new"
- else
- rm -rf conftest*
- pf_cv_argv_type="writeable"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$pf_cv_argv_type" 1>&6
- if test "$pf_cv_argv_type" = "new"; then
- cat >> confdefs.h <<EOF
- #define PF_ARGV_TYPE PF_ARGV_NEW
- EOF
- pf_argv_set="yes"
- fi
- if test "$pf_argv_set" = "no"; then
- cat >> confdefs.h <<EOF
- #define PF_ARGV_TYPE PF_ARGV_WRITEABLE
- EOF
- fi
- fi
- fi
- LIBS="-lsupp $LIBS"
- for module in $ac_addl_modules; do
- src=`echo "$module" | sed -e 's/.o$//'`.c;
- if test -f $srcdir/modules/$src -o -f $srcdir/contrib/$src; then
- if ! test -f $srcdir/modules/$src; then
- olddir=`pwd`
- cd $srcdir/modules
- ln -s ../contrib/$src $src
- cd $olddir
- fi
- alib=`cat $srcdir/modules/$src | grep "\$Libraries:" | sed -e 's/^.*$Libraries: (.*)\$/1/'`
- test x"$alib" = x || ac_addl_libs="$alib $ac_addl_libs"
- adir=`cat $srcdir/modules/$src | grep "\$Directories:" | sed -e 's/^.*$Directories: (.*)\$/1/'`
- test x"$adir" = x || ac_addl_dirs="$adir $ac_addl_dirs"
- else
- echo "source file '$srcdir/modules/$src' cannot be found -- aborting"
- exit 1
- fi
- done
- ac_addl_libs=`echo "$ac_addl_libs" | sed -e 's/ *$//'`
- test "x$ac_addl_libs" = x || LIBS="$LIBS $ac_addl_libs"
- ac_addl_dirs=`echo "$ac_addl_dirs" | sed -e 's/ *$//'`
- ADDL_DIRS="$ac_addl_dirs"
- MODULES="$ac_core_modules $ac_addl_modules"
- BUILD_MODULES="$ac_build_core_modules $ac_build_addl_modules"
- VERSION=`cat $srcdir/include/version.h | grep "#define VERSION" | sed -e 's/^.*"(.*)"/1/'`
- CFLAGS="$CFLAGS $use_shadow"
- trap '' 1 2 15
- cat > confcache <<EOF
- # This file is a shell script that caches the results of configure
- # tests run on this system so they can be shared between configure
- # scripts and configure runs. It is not useful on other systems.
- # If it contains results you don't want to keep, you may remove or edit it.
- #
- # By default, configure uses ./config.cache as the cache file,
- # creating it if it does not exist already. You can give configure
- # the --cache-file=FILE option to use a different cache file; that is
- # what configure does when it calls configure scripts in
- # subdirectories, so they share the cache.
- # Giving --cache-file=/dev/null disables caching, for debugging configure.
- # config.status only pays attention to the cache file if you give it the
- # --recheck option to rerun configure.
- #
- EOF
- # The following way of writing the cache mishandles newlines in values,
- # but we know of no workaround that is simple, portable, and efficient.
- # So, don't put newlines in cache variables' values.
- # Ultrix sh set writes to stderr and can't be redirected directly,
- # and sets the high bit in the cache file unless we assign to the vars.
- (set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space= *)
- # `set' does not quote correctly, so add quotes (double-quote substitution
- # turns \\ into \, and sed turns \ into ).
- sed -n
- -e "s/'/'\\''/g"
- -e "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1='\2'}/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*)=(.*)/1=${1=2}/p'
- ;;
- esac >> confcache
- if cmp -s $cache_file confcache; then
- :
- else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
- fi
- rm -f confcache
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- # Any assignment to VPATH causes Sun make to only execute
- # the first set of double-colon rules, so remove it if not needed.
- # If there is a colon in the path, we need to keep it.
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- fi
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- DEFS=-DHAVE_CONFIG_H
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
- echo creating $CONFIG_STATUS
- rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #! /bin/sh
- # Generated automatically by configure.
- # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
- case "$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec ${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "$ac_cs_usage"; exit 0 ;;
- *) echo "$ac_cs_usage"; exit 1 ;;
- esac
- done
- ac_given_srcdir=$srcdir
- ac_given_INSTALL="$INSTALL"
- trap 'rm -fr `echo "lib/Makefile src/Makefile modules/Makefile Makefile Make.rules Make.modules contrib/proftpd.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
- $ac_vpsub
- $extrasub
- s%@SHELL@%$SHELL%g
- s%@CFLAGS@%$CFLAGS%g
- s%@CPPFLAGS@%$CPPFLAGS%g
- s%@CXXFLAGS@%$CXXFLAGS%g
- s%@FFLAGS@%$FFLAGS%g
- s%@DEFS@%$DEFS%g
- s%@LDFLAGS@%$LDFLAGS%g
- s%@LIBS@%$LIBS%g
- s%@exec_prefix@%$exec_prefix%g
- s%@prefix@%$prefix%g
- s%@program_transform_name@%$program_transform_name%g
- s%@bindir@%$bindir%g
- s%@sbindir@%$sbindir%g
- s%@libexecdir@%$libexecdir%g
- s%@datadir@%$datadir%g
- s%@sysconfdir@%$sysconfdir%g
- s%@sharedstatedir@%$sharedstatedir%g
- s%@localstatedir@%$localstatedir%g
- s%@libdir@%$libdir%g
- s%@includedir@%$includedir%g
- s%@oldincludedir@%$oldincludedir%g
- s%@infodir@%$infodir%g
- s%@mandir@%$mandir%g
- s%@host@%$host%g
- s%@host_alias@%$host_alias%g
- s%@host_cpu@%$host_cpu%g
- s%@host_vendor@%$host_vendor%g
- s%@host_os@%$host_os%g
- s%@target@%$target%g
- s%@target_alias@%$target_alias%g
- s%@target_cpu@%$target_cpu%g
- s%@target_vendor@%$target_vendor%g
- s%@target_os@%$target_os%g
- s%@build@%$build%g
- s%@build_alias@%$build_alias%g
- s%@build_cpu@%$build_cpu%g
- s%@build_vendor@%$build_vendor%g
- s%@build_os@%$build_os%g
- s%@OSREL@%$OSREL%g
- s%@OSTYPE@%$OSTYPE%g
- s%@CC@%$CC%g
- s%@SET_MAKE@%$SET_MAKE%g
- s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
- s%@INSTALL_DATA@%$INSTALL_DATA%g
- s%@CPP@%$CPP%g
- s%@install_user@%$install_user%g
- s%@install_group@%$install_group%g
- s%@ALLOCA@%$ALLOCA%g
- s%@MODULES@%$MODULES%g
- s%@BUILD_MODULES@%$BUILD_MODULES%g
- s%@ADDL_DIRS@%$ADDL_DIRS%g
- s%@VERSION@%$VERSION%g
- CEOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
- ac_file=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_cmds # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=""
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_FILES=${CONFIG_FILES-"lib/Makefile src/Makefile modules/Makefile Makefile Make.rules Make.modules contrib/proftpd.spec"}
- EOF
- cat >> $CONFIG_STATUS <<EOF
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\
- # $configure_input" ;;
- *) ac_comsub= ;;
- esac
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
- s%@configure_input@%$configure_input%g
- s%@srcdir@%$srcdir%g
- s%@top_srcdir@%$top_srcdir%g
- s%@INSTALL@%$INSTALL%g
- " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
- fi; done
- rm -f conftest.s*
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
- #
- # ac_d sets the value in "#define NAME VALUE" lines.
- ac_dA='s%^([ ]*)#([ ]*define[ ][ ]*)'
- ac_dB='([ ][ ]*)[^ ]*%1#2'
- ac_dC='3'
- ac_dD='%g'
- # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
- ac_uA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_uB='([ ])%1#2define3'
- ac_uC=' '
- ac_uD='4%g'
- # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
- ac_eA='s%^([ ]*)#([ ]*)undef([ ][ ]*)'
- ac_eB='$%1#2define3'
- ac_eC=' '
- ac_eD='%g'
- if test "${CONFIG_HEADERS+set}" != set; then
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="config.h"
- EOF
- cat >> $CONFIG_STATUS <<EOF
- fi
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- echo creating $ac_file
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
- EOF
- # Transform confdefs.h into a sed script conftest.vals that substitutes
- # the proper values into config.h.in to produce config.h. And first:
- # Protect against being on the right side of a sed subst in config.status.
- # Protect against being in an unquoted here document in config.status.
- rm -f conftest.vals
- cat > conftest.hdr <<EOF
- s/[\&%]/\&/g
- s%[\$`]%\&%g
- s%#define ([A-Za-z_][A-Za-z0-9_]*) *(.*)%${ac_dA}1${ac_dB}1${ac_dC}2${ac_dD}%gp
- s%ac_d%ac_u%gp
- s%ac_u%ac_e%gp
- EOF
- sed -n -f conftest.hdr confdefs.h > conftest.vals
- rm -f conftest.hdr
- # This sed command replaces #undef with comments. This is necessary, for
- # example, in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- cat >> conftest.vals <<EOF
- s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
- EOF
- # Break up conftest.vals because some shells have a limit on
- # the size of here documents, and old seds have small limits too.
- rm -f conftest.tail
- while :
- do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
- ' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
- done
- rm -f conftest.vals
- cat >> $CONFIG_STATUS <<EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
- fi; done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- EOF
- cat >> $CONFIG_STATUS <<EOF
- exit 0
- EOF
- chmod +x $CONFIG_STATUS
- rm -fr confdefs* $ac_clean_files
- test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1