2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for OpenVPN 2.0.9.
5 # Report bugs to <openvpn-users@lists.sourceforge.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME
='OpenVPN'
271 PACKAGE_TARNAME
='openvpn'
272 PACKAGE_VERSION
='2.0.9'
273 PACKAGE_STRING
='OpenVPN 2.0.9'
274 PACKAGE_BUGREPORT
='openvpn-users@lists.sourceforge.net'
276 ac_unique_file
="syshead.h"
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS IFCONFIG IPROUTE ROUTE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CC_set
=${CC+set}
757 ac_cv_env_CC_set
=${CC+set}
758 ac_cv_env_CC_value
=$CC
759 ac_env_CFLAGS_set
=${CFLAGS+set}
760 ac_env_CFLAGS_value
=$CFLAGS
761 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value
=$CFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CPP_set
=${CPP+set}
772 ac_env_CPP_value
=$CPP
773 ac_cv_env_CPP_set
=${CPP+set}
774 ac_cv_env_CPP_value
=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures OpenVPN 2.0.9 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
842 --build=BUILD configure
for building on BUILD
[guessed
]
843 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
844 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
848 if test -n "$ac_init_help"; then
849 case $ac_init_help in
850 short | recursive
) echo "Configuration of OpenVPN 2.0.9:";;
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --disable-lzo Disable LZO compression support
858 --disable-crypto Disable OpenSSL crypto support
859 --disable-ssl Disable OpenSSL SSL support
for TLS-based key exchange
860 --disable-multi Disable client
/server support
(--mode server
+ client mode
)
861 --disable-server Disable server support only
(but retain client support
)
862 --disable-plugins Disable plug-in support
863 --disable-management Disable management server support
864 --disable-socks Disable Socks support
865 --disable-http Disable HTTP proxy support
866 --disable-fragment Disable internal fragmentation support
(--fragment)
867 --disable-debug Disable debugging support
(disable gremlin and verb
7+ messages
)
868 --enable-small Enable smaller executable size
(disable OCC
, usage message
, and verb
4 parm list
)
869 --enable-pthread Enable pthread support
(Experimental
for OpenVPN
2.0)
870 --enable-password-save Allow
--askpass and
--auth-user-pass passwords to be
read from a
file
871 --enable-iproute2 Enable support
for iproute2
872 --enable-strict Enable strict compiler warnings
(debugging option
)
873 --enable-pedantic Enable pedantic compiler warnings
, will not generate a working executable
(debugging option
)
874 --enable-profiling Enable profiling
(debugging option
)
875 --enable-strict-options Enable strict options check between peers
(debugging option
)
876 --disable-dependency-tracking speeds up one-time build
877 --enable-dependency-tracking do not reject slow dependency extractors
880 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
881 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
882 --with-ssl-headers=DIR Crypto
/SSL Include files location
883 --with-ssl-lib=DIR Crypto
/SSL Library location
884 --with-lzo-headers=DIR LZO Include files location
885 --with-lzo-lib=DIR LZO Library location
886 --with-ifconfig-path=PATH Path to ifconfig tool
887 --with-iproute-path=PATH Path to iproute tool
888 --with-route-path=PATH Path to route tool
889 --with-mem-check=TYPE Build with debug memory checking
, TYPE
= dmalloc or valgrind
891 Some influential environment variables
:
892 CC C compiler
command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
895 nonstandard directory
<lib dir
>
896 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
897 headers
in a nonstandard directory
<include dir
>
900 Use these variables to override the choices made by
`configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 Report bugs to <openvpn-users@lists.sourceforge.net>.
907 if test "$ac_init_help" = "recursive"; then
908 # If there are subdirs, report their specific --help.
910 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
911 test -d $ac_dir || continue
914 if test "$ac_dir" != .; then
915 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
916 # A "../" for each directory in $ac_dir_suffix.
917 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
919 ac_dir_suffix= ac_top_builddir=
923 .) # No --srcdir option. We are building in place.
925 if test -z "$ac_top_builddir"; then
928 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
930 [\\/]* | ?:[\\/]* ) # Absolute path.
931 ac_srcdir=$srcdir$ac_dir_suffix;
932 ac_top_srcdir=$srcdir ;;
934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
938 # Do not use `cd foo
&& pwd` to compute absolute paths, because
939 # the directories may not exist.
941 .) ac_abs_builddir="$ac_dir";;
944 .) ac_abs_builddir=`pwd`;;
945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
949 case $ac_abs_builddir in
950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
952 case ${ac_top_builddir}. in
953 .) ac_abs_top_builddir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958 case $ac_abs_builddir in
959 .) ac_abs_srcdir=$ac_srcdir;;
962 .) ac_abs_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967 case $ac_abs_builddir in
968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
970 case $ac_top_srcdir in
971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
978 # Check for guested configure; otherwise get Cygnus style configure.
979 if test -f $ac_srcdir/configure.gnu; then
981 $SHELL $ac_srcdir/configure.gnu --help=recursive
982 elif test -f $ac_srcdir/configure; then
984 $SHELL $ac_srcdir/configure --help=recursive
985 elif test -f $ac_srcdir/configure.ac ||
986 test -f $ac_srcdir/configure.in; then
990 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
996 test -n "$ac_init_help" && exit 0
997 if $ac_init_version; then
999 OpenVPN configure 2.0.9
1000 generated by GNU Autoconf 2.59
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by OpenVPN $as_me 2.0.9, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1025 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1026 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1027 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1028 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1029 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1031 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1032 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1034 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1035 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1036 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1037 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1038 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1039 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1040 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1073 ac_must_keep_next=false
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 -* ) ac_must_keep_next=true ;;
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close
' the trap.
1120 trap 'exit_status
=$?
1121 # Save into config.log some information that might help in debugging.
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1131 # The following way of writing the cache mishandles newlines in values,
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1154 for ac_var
in $ac_subst_vars
1156 eval ac_val
=$
`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1161 if test -n "$ac_subst_files"; then
1168 for ac_var
in $ac_subst_files
1170 eval ac_val
=$
`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1176 if test -s confdefs.h
; then
1183 sed "/^$/d" confdefs.h |
sort
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1190 rm -f core
*.core
&&
1191 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's
/^
/|
/' "$ac_site_file" >&5
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1266 # Check that the precious variables saved in the cache have kept the same
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1279 ac_cache_corrupted=: ;;
1281 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1288 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1313 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1320 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1349 ac_config_headers="$ac_config_headers config.h"
1353 # Check whether --enable-lzo or --disable-lzo was given.
1354 if test "${enable_lzo+set}" = set; then
1355 enableval="$enable_lzo"
1362 # Check whether --enable-crypto or --disable-crypto was given.
1363 if test "${enable_crypto+set}" = set; then
1364 enableval="$enable_crypto"
1371 # Check whether --enable-ssl or --disable-ssl was given.
1372 if test "${enable_ssl+set}" = set; then
1373 enableval="$enable_ssl"
1380 # Check whether --enable-multi or --disable-multi was given.
1381 if test "${enable_multi+set}" = set; then
1382 enableval="$enable_multi"
1389 # Check whether --enable-server or --disable-server was given.
1390 if test "${enable_server+set}" = set; then
1391 enableval="$enable_server"
1392 MULTI_SERVER="$enableval"
1398 # Check whether --enable-plugins or --disable-plugins was given.
1399 if test "${enable_plugins+set}" = set; then
1400 enableval="$enable_plugins"
1401 PLUGINS="$enableval"
1407 # Check whether --enable-management or --disable-management was given.
1408 if test "${enable_management+set}" = set; then
1409 enableval="$enable_management"
1410 MANAGEMENT="$enableval"
1416 # Check whether --enable-socks or --disable-socks was given.
1417 if test "${enable_socks+set}" = set; then
1418 enableval="$enable_socks"
1425 # Check whether --enable-http or --disable-http was given.
1426 if test "${enable_http+set}" = set; then
1427 enableval="$enable_http"
1428 HTTP_PROXY="$enableval"
1434 # Check whether --enable-fragment or --disable-fragment was given.
1435 if test "${enable_fragment+set}" = set; then
1436 enableval="$enable_fragment"
1437 FRAGMENT="$enableval"
1443 # Check whether --enable-debug or --disable-debug was given.
1444 if test "${enable_debug+set}" = set; then
1445 enableval="$enable_debug"
1452 # Check whether --enable-small or --disable-small was given.
1453 if test "${enable_small+set}" = set; then
1454 enableval="$enable_small"
1461 # Check whether --enable-pthread or --disable-pthread was given.
1462 if test "${enable_pthread+set}" = set; then
1463 enableval="$enable_pthread"
1464 PTHREAD="$enableval"
1470 # Check whether --enable-password-save or --disable-password-save was given.
1471 if test "${enable_password_save+set}" = set; then
1472 enableval="$enable_password_save"
1473 PASSWORD_SAVE="$enableval"
1479 # Check whether --enable-iproute2 or --disable-iproute2 was given.
1480 if test "${enable_iproute2+set}" = set; then
1481 enableval="$enable_iproute2"
1483 cat >>confdefs.h <<\_ACEOF
1484 #define CONFIG_FEATURE_IPROUTE 1
1490 # Check whether --enable-strict or --disable-strict was given.
1491 if test "${enable_strict+set}" = set; then
1492 enableval="$enable_strict"
1499 # Check whether --enable-pedantic or --disable-pedantic was given.
1500 if test "${enable_pedantic+set}" = set; then
1501 enableval="$enable_pedantic"
1502 PEDANTIC="$enableval"
1508 # Check whether --enable-profiling or --disable-profiling was given.
1509 if test "${enable_profiling+set}" = set; then
1510 enableval="$enable_profiling"
1511 PROFILE="$enableval"
1517 # Check whether --enable-strict-options or --disable-strict-options was given.
1518 if test "${enable_strict_options+set}" = set; then
1519 enableval="$enable_strict_options"
1520 STRICT_OPTIONS="$enableval"
1527 # Check whether --with-ssl-headers or --without-ssl-headers was given.
1528 if test "${with_ssl_headers+set}" = set; then
1529 withval="$with_ssl_headers"
1530 CS_HDR_DIR="$withval"
1531 CPPFLAGS="$CPPFLAGS -I$withval"
1536 # Check whether --with-ssl-lib or --without-ssl-lib was given.
1537 if test "${with_ssl_lib+set}" = set; then
1538 withval="$with_ssl_lib"
1539 LDFLAGS="$LDFLAGS -L$withval"
1544 # Check whether --with-lzo-headers or --without-lzo-headers was given.
1545 if test "${with_lzo_headers+set}" = set; then
1546 withval="$with_lzo_headers"
1547 LZO_HDR_DIR="$withval"
1548 CPPFLAGS="$CPPFLAGS -I$withval"
1553 # Check whether --with-lzo-lib or --without-lzo-lib was given.
1554 if test "${with_lzo_lib+set}" = set; then
1555 withval="$with_lzo_lib"
1556 LDFLAGS="$LDFLAGS -L$withval"
1561 # Check whether --with-ifconfig-path or --without-ifconfig-path was given.
1562 if test "${with_ifconfig_path+set}" = set; then
1563 withval="$with_ifconfig_path"
1566 # Extract the first word of "ifconfig", so it can be a program name with args.
1567 set dummy ifconfig; ac_word=$2
1568 echo "$as_me:$LINENO: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_path_IFCONFIG+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 ac_cv_path_IFCONFIG="$IFCONFIG" # Let the user override the test with a path.
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
1580 for as_dir in $as_dummy
1583 test -z "$as_dir" && as_dir=.
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586 ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 test -z "$ac_cv_path_IFCONFIG" && ac_cv_path_IFCONFIG="ifconfig"
1597 IFCONFIG=$ac_cv_path_IFCONFIG
1599 if test -n "$IFCONFIG"; then
1600 echo "$as_me:$LINENO: result: $IFCONFIG" >&5
1601 echo "${ECHO_T}$IFCONFIG" >&6
1603 echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1610 cat >>confdefs.h <<_ACEOF
1611 #define IFCONFIG_PATH "$IFCONFIG"
1616 # Check whether --with-iproute-path or --without-iproute-path was given.
1617 if test "${with_iproute_path+set}" = set; then
1618 withval="$with_iproute_path"
1621 # Extract the first word of "ip", so it can be a program name with args.
1622 set dummy ip; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_path_IPROUTE+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 ac_cv_path_IPROUTE="$IPROUTE" # Let the user override the test with a path.
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
1635 for as_dir in $as_dummy
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 test -z "$ac_cv_path_IPROUTE" && ac_cv_path_IPROUTE="ip"
1652 IPROUTE=$ac_cv_path_IPROUTE
1654 if test -n "$IPROUTE"; then
1655 echo "$as_me:$LINENO: result: $IPROUTE" >&5
1656 echo "${ECHO_T}$IPROUTE" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1665 cat >>confdefs.h <<_ACEOF
1666 #define IPROUTE_PATH "$IPROUTE"
1672 # Check whether --with-route-path or --without-route-path was given.
1673 if test "${with_route_path+set}" = set; then
1674 withval="$with_route_path"
1677 # Extract the first word of "route", so it can be a program name with args.
1678 set dummy route; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_path_ROUTE+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 ac_cv_path_ROUTE="$ROUTE" # Let the user override the test with a path.
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
1691 for as_dir in $as_dummy
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 test -z "$ac_cv_path_ROUTE" && ac_cv_path_ROUTE="route"
1708 ROUTE=$ac_cv_path_ROUTE
1710 if test -n "$ROUTE"; then
1711 echo "$as_me:$LINENO: result: $ROUTE" >&5
1712 echo "${ECHO_T}$ROUTE" >&6
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1721 cat >>confdefs.h <<_ACEOF
1722 #define ROUTE_PATH "$ROUTE"
1727 # Check whether --with-mem-check or --without-mem-check was given.
1728 if test "${with_mem_check+set}" = set; then
1729 withval="$with_mem_check"
1735 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1736 if test -f $ac_dir/install-sh; then
1738 ac_install_sh="$ac_aux_dir/install-sh -c"
1740 elif test -f $ac_dir/install.sh; then
1742 ac_install_sh="$ac_aux_dir/install.sh -c"
1744 elif test -f $ac_dir/shtool; then
1746 ac_install_sh="$ac_aux_dir/shtool install -c"
1750 if test -z "$ac_aux_dir"; then
1751 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1752 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1753 { (exit 1); exit 1; }; }
1755 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1756 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1757 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1759 # Make sure we can run config.sub.
1760 $ac_config_sub sun4 >/dev/null 2>&1 ||
1761 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1762 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1763 { (exit 1); exit 1; }; }
1765 echo "$as_me:$LINENO: checking build system type" >&5
1766 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1767 if test "${ac_cv_build+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 ac_cv_build_alias=$build_alias
1771 test -z "$ac_cv_build_alias" &&
1772 ac_cv_build_alias=`$ac_config_guess`
1773 test -z "$ac_cv_build_alias" &&
1774 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1775 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1776 { (exit 1); exit 1; }; }
1777 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1779 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1783 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1784 echo "${ECHO_T}$ac_cv_build" >&6
1786 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1787 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1788 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1791 echo "$as_me:$LINENO: checking host system type" >&5
1792 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1793 if test "${ac_cv_host+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 ac_cv_host_alias=$host_alias
1797 test -z "$ac_cv_host_alias" &&
1798 ac_cv_host_alias=$ac_cv_build_alias
1799 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1800 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1801 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1802 { (exit 1); exit 1; }; }
1805 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1806 echo "${ECHO_T}$ac_cv_host" >&6
1808 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1809 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1810 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1813 echo "$as_me:$LINENO: checking target system type" >&5
1814 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1815 if test "${ac_cv_target+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 ac_cv_target_alias=$target_alias
1819 test "x$ac_cv_target_alias" = "x" &&
1820 ac_cv_target_alias=$ac_cv_host_alias
1821 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1822 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1823 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1824 { (exit 1); exit 1; }; }
1827 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1828 echo "${ECHO_T}$ac_cv_target" >&6
1829 target=$ac_cv_target
1830 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1831 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1832 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1835 # The aliases save the names the user supplied, while $host etc.
1836 # will get canonicalized.
1837 test -n "$target_alias" &&
1838 test "$program_prefix$program_suffix$program_transform_name" = \
1840 program_prefix=${target_alias}-
1841 am__api_version="1.8"
1842 # Find a good install program. We prefer a C program (faster),
1843 # so one script is as good as another. But avoid the broken or
1844 # incompatible versions:
1845 # SysV /etc/install, /usr/sbin/install
1846 # SunOS /usr/etc/install
1847 # IRIX /sbin/install
1849 # AmigaOS /C/install, which installs bootblocks on floppy discs
1850 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1853 # OS/2's system install, which has a completely different semantic
1854 # ./install, which can be erroneously created by make from ./install.sh.
1855 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1856 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1857 if test -z "$INSTALL"; then
1858 if test "${ac_cv_path_install+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1865 test -z "$as_dir" && as_dir
=.
1866 # Account for people who put trailing slashes in PATH elements.
1868 .
/ | .
// |
/cC
/* | \
1869 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1870 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1873 # OSF1 and SCO ODT 3.0 have their own names for install.
1874 # Don't use installbsd from OSF since it installs stuff as root
1876 for ac_prog
in ginstall scoinst
install; do
1877 for ac_exec_ext
in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1879 if test $ac_prog = install &&
1880 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1881 # AIX install. It has an incompatible calling convention.
1883 elif test $ac_prog = install &&
1884 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1885 # program-specific install script used by HP pwplus--don't use.
1888 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1900 if test "${ac_cv_path_install+set}" = set; then
1901 INSTALL
=$ac_cv_path_install
1903 # As a last resort, use the slow shell script. We don't cache a
1904 # path for INSTALL within a source directory, because that will
1905 # break other packages using the cache if that directory is
1906 # removed, or if the path is relative.
1907 INSTALL
=$ac_install_sh
1910 echo "$as_me:$LINENO: result: $INSTALL" >&5
1911 echo "${ECHO_T}$INSTALL" >&6
1913 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1914 # It thinks the first close brace ends the variable substitution.
1915 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1917 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1919 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1921 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1922 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1925 echo timestamp
> conftest.
file
1926 # Do `set' in a subshell so we don't clobber the current shell's
1927 # arguments. Must try -L first in case configure is actually a
1928 # symlink; some systems play weird games with the mod time of symlinks
1929 # (eg FreeBSD returns the mod time of the symlink's containing
1932 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1933 if test "$*" = "X"; then
1935 set X
`ls -t $srcdir/configure conftest.file`
1938 if test "$*" != "X $srcdir/configure conftest.file" \
1939 && test "$*" != "X conftest.file $srcdir/configure"; then
1941 # If neither matched, then we have a broken ls. This can happen
1942 # if, for instance, CONFIG_SHELL is bash and it inherits a
1943 # broken ls alias from the environment. This has actually
1944 # happened. Such a system could not be considered "sane".
1945 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1946 alias in your environment" >&5
1947 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1948 alias in your environment" >&2;}
1949 { (exit 1); exit 1; }; }
1952 test "$2" = conftest.
file
1958 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1959 Check your system clock" >&5
1960 echo "$as_me: error: newly created file is older than distributed files!
1961 Check your system clock" >&2;}
1962 { (exit 1); exit 1; }; }
1964 echo "$as_me:$LINENO: result: yes" >&5
1965 echo "${ECHO_T}yes" >&6
1966 test "$program_prefix" != NONE
&&
1967 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1968 # Use a double $ so make ignores it.
1969 test "$program_suffix" != NONE
&&
1970 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1971 # Double any \ or $. echo might interpret backslashes.
1972 # By default was `s,x,x', remove it if useless.
1973 cat <<\_ACEOF
>conftest.
sed
1974 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1976 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1979 # expand $ac_aux_dir to an absolute path
1980 am_aux_dir
=`cd $ac_aux_dir && pwd`
1982 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1983 # Use eval to expand $SHELL
1984 if eval "$MISSING --run true"; then
1985 am_missing_run
="$MISSING --run "
1988 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1989 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1992 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1993 # Keeping the `.' argument allows $(mkdir_p) to be used without
1994 # argument. Indeed, we sometimes output rules like
1995 # $(mkdir_p) $(somedir)
1996 # where $(somedir) is conditionally defined.
1997 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1998 # expensive solution, as it forces Make to start a sub-shell.)
1999 mkdir_p
='mkdir -p -- .'
2001 # On NextStep and OpenStep, the `mkdir' command does not
2002 # recognize any option. It will interpret all options as
2003 # directories to create, and then abort because `.' already
2005 for d
in .
/-p .
/--version;
2007 test -d $d && rmdir $d
2009 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2010 if test -f "$ac_aux_dir/mkinstalldirs"; then
2011 mkdir_p
='$(mkinstalldirs)'
2013 mkdir_p
='$(install_sh) -d'
2017 for ac_prog
in gawk mawk nawk
awk
2019 # Extract the first word of "$ac_prog", so it can be a program name with args.
2020 set dummy
$ac_prog; ac_word
=$2
2021 echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023 if test "${ac_cv_prog_AWK+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 if test -n "$AWK"; then
2027 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2033 test -z "$as_dir" && as_dir
=.
2034 for ac_exec_ext
in '' $ac_executable_extensions; do
2035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036 ac_cv_prog_AWK
="$ac_prog"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 if test -n "$AWK"; then
2047 echo "$as_me:$LINENO: result: $AWK" >&5
2048 echo "${ECHO_T}$AWK" >&6
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2054 test -n "$AWK" && break
2057 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2058 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2059 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2060 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 cat >conftest.
make <<\_ACEOF
2065 @
echo 'ac_maketemp="$(MAKE)"'
2067 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2068 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2069 if test -n "$ac_maketemp"; then
2070 eval ac_cv_prog_make_
${ac_make}_set
=yes
2072 eval ac_cv_prog_make_
${ac_make}_set
=no
2076 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2077 echo "$as_me:$LINENO: result: yes" >&5
2078 echo "${ECHO_T}yes" >&6
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 SET_MAKE
="MAKE=${MAKE-make}"
2086 rm -rf .tst
2>/dev
/null
2087 mkdir .tst
2>/dev
/null
2088 if test -d .tst
; then
2093 rmdir .tst
2>/dev
/null
2095 # test to see if srcdir already configured
2096 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2097 test -f $srcdir/config.status
; then
2098 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2099 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2100 { (exit 1); exit 1; }; }
2103 # test whether we have cygpath
2104 if test -z "$CYGPATH_W"; then
2105 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2106 CYGPATH_W
='cygpath -w'
2113 # Define the identity of the package.
2115 VERSION
=$PACKAGE_VERSION
2118 cat >>confdefs.h
<<_ACEOF
2119 #define PACKAGE "$PACKAGE"
2123 cat >>confdefs.h
<<_ACEOF
2124 #define VERSION "$VERSION"
2127 # Some tools Automake needs.
2129 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2132 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2135 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2138 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2141 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2144 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2146 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
2148 # Installed binaries are usually stripped using `strip' when the user
2149 # run `make install-strip'. However `strip' might not be the right
2150 # tool to use in cross-compilation environments, therefore Automake
2151 # will honor the `STRIP' environment variable to overrule this program.
2152 if test "$cross_compiling" != no
; then
2153 if test -n "$ac_tool_prefix"; then
2154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2155 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2156 echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158 if test "${ac_cv_prog_STRIP+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$STRIP"; then
2162 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir
=.
2169 for ac_exec_ext
in '' $ac_executable_extensions; do
2170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 STRIP
=$ac_cv_prog_STRIP
2181 if test -n "$STRIP"; then
2182 echo "$as_me:$LINENO: result: $STRIP" >&5
2183 echo "${ECHO_T}$STRIP" >&6
2185 echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6
2190 if test -z "$ac_cv_prog_STRIP"; then
2192 # Extract the first word of "strip", so it can be a program name with args.
2193 set dummy strip
; ac_word
=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$ac_ct_STRIP"; then
2200 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir
=.
2207 for ac_exec_ext
in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_ac_ct_STRIP
="strip"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
2219 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2220 if test -n "$ac_ct_STRIP"; then
2221 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2222 echo "${ECHO_T}$ac_ct_STRIP" >&6
2224 echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6
2230 STRIP
="$ac_cv_prog_STRIP"
2234 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2236 # We need awk for the "check" target. The system "awk" is bad on
2242 CPPFLAGS
="$CPPFLAGS -I${srcdir}"
2244 openvpn_target
=$target
2245 if test $target_alias; then
2246 openvpn_target
=$target_alias
2249 cat >>confdefs.h
<<_ACEOF
2250 #define TARGET_ALIAS "$openvpn_target"
2256 cat >>confdefs.h
<<\_ACEOF
2257 #define TARGET_LINUX 1
2260 if test -z $CS_HDR_DIR && test "$CRYPTO" = "yes"; then
2261 CPPFLAGS
="$CPPFLAGS $(pkg-config --cflags openssl 2>/dev/null)"
2266 cat >>confdefs.h
<<\_ACEOF
2267 #define TARGET_SOLARIS 1
2273 cat >>confdefs.h
<<\_ACEOF
2274 #define TARGET_OPENBSD 1
2280 cat >>confdefs.h
<<\_ACEOF
2281 #define TARGET_FREEBSD 1
2287 cat >>confdefs.h
<<\_ACEOF
2288 #define TARGET_NETBSD 1
2294 cat >>confdefs.h
<<\_ACEOF
2295 #define TARGET_DARWIN 1
2298 CPPFLAGS
="$CPPFLAGS -no-cpp-precomp"
2301 echo "$as_me:$LINENO: result: WARNING: configure support for mingw is incomplete" >&5
2302 echo "${ECHO_T}WARNING: configure support for mingw is incomplete" >&6
2303 echo "$as_me:$LINENO: result: WARNING: use makefile.w32 instead" >&5
2304 echo "${ECHO_T}WARNING: use makefile.w32 instead" >&6
2306 LIBS
="-lgdi32 $LIBS"
2309 LIBS
="-lwsock32 $LIBS"
2316 ac_cpp
='$CPP $CPPFLAGS'
2317 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2320 if test -n "$ac_tool_prefix"; then
2321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2322 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC
="$CC" # Let the user override the test.
2331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir
=.
2336 for ac_exec_ext
in '' $ac_executable_extensions; do
2337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 if test -n "$CC"; then
2349 echo "$as_me:$LINENO: result: $CC" >&5
2350 echo "${ECHO_T}$CC" >&6
2352 echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2357 if test -z "$ac_cv_prog_CC"; then
2359 # Extract the first word of "gcc", so it can be a program name with args.
2360 set dummy gcc
; ac_word
=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 if test -n "$ac_ct_CC"; then
2367 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir
=.
2374 for ac_exec_ext
in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_ac_ct_CC
="gcc"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2386 if test -n "$ac_ct_CC"; then
2387 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2388 echo "${ECHO_T}$ac_ct_CC" >&6
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2399 if test -z "$CC"; then
2400 if test -n "$ac_tool_prefix"; then
2401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2402 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2403 echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405 if test "${ac_cv_prog_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC
="$CC" # Let the user override the test.
2411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2415 test -z "$as_dir" && as_dir
=.
2416 for ac_exec_ext
in '' $ac_executable_extensions; do
2417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 if test -n "$CC"; then
2429 echo "$as_me:$LINENO: result: $CC" >&5
2430 echo "${ECHO_T}$CC" >&6
2432 echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6
2437 if test -z "$ac_cv_prog_CC"; then
2439 # Extract the first word of "cc", so it can be a program name with args.
2440 set dummy cc
; ac_word
=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir
=.
2454 for ac_exec_ext
in '' $ac_executable_extensions; do
2455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_ac_ct_CC
="cc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6
2470 echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2480 if test -z "$CC"; then
2481 # Extract the first word of "cc", so it can be a program name with args.
2482 set dummy cc
; ac_word
=$2
2483 echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2485 if test "${ac_cv_prog_CC+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 if test -n "$CC"; then
2489 ac_cv_prog_CC
="$CC" # Let the user override the test.
2492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir
=.
2497 for ac_exec_ext
in '' $ac_executable_extensions; do
2498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2500 ac_prog_rejected
=yes
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 if test $ac_prog_rejected = yes; then
2511 # We found a bogon in the path, so make sure we never use it.
2512 set dummy
$ac_cv_prog_CC
2514 if test $# != 0; then
2515 # We chose a different compiler from the bogus one.
2516 # However, it has the same basename, so the bogon will be chosen
2517 # first if we set CC to just the basename; use the full file name.
2519 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2525 if test -n "$CC"; then
2526 echo "$as_me:$LINENO: result: $CC" >&5
2527 echo "${ECHO_T}$CC" >&6
2529 echo "$as_me:$LINENO: result: no" >&5
2530 echo "${ECHO_T}no" >&6
2534 if test -z "$CC"; then
2535 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2539 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2540 echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC
="$CC" # Let the user override the test.
2548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir
=.
2553 for ac_exec_ext
in '' $ac_executable_extensions; do
2554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 if test -n "$CC"; then
2566 echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6
2569 echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2573 test -n "$CC" && break
2576 if test -z "$CC"; then
2580 # Extract the first word of "$ac_prog", so it can be a program name with args.
2581 set dummy
$ac_prog; ac_word
=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 if test -n "$ac_ct_CC"; then
2588 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir
=.
2595 for ac_exec_ext
in '' $ac_executable_extensions; do
2596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_ac_ct_CC
="$ac_prog"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2609 echo "${ECHO_T}$ac_ct_CC" >&6
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2615 test -n "$ac_ct_CC" && break
2624 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2625 See \`config.log' for more details." >&5
2626 echo "$as_me: error: no acceptable C compiler found in \$PATH
2627 See \`config.log' for more details." >&2;}
2628 { (exit 1); exit 1; }; }
2630 # Provide some information about the compiler.
2631 echo "$as_me:$LINENO:" \
2632 "checking for C compiler version" >&5
2633 ac_compiler
=`set X $ac_compile; echo $2`
2634 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2635 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }
2639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2640 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }
2644 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2645 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }
2650 cat >conftest.
$ac_ext <<_ACEOF
2653 cat confdefs.h
>>conftest.
$ac_ext
2654 cat >>conftest.
$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2665 ac_clean_files_save
=$ac_clean_files
2666 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2667 # Try to create an executable without -o first, disregard a.out.
2668 # It will help us diagnose broken compilers, and finding out an intuition
2670 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2671 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2672 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2673 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2674 (eval $ac_link_default) 2>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; then
2678 # Find the output, starting from the most likely. This scheme is
2679 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2682 # Be careful to initialize this variable, since it used to be cached.
2683 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2685 # b.out is created by i960 compilers.
2686 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2688 test -f "$ac_file" ||
continue
2690 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2693 # This is the source file.
2696 # We found the default executable, but exeext='' is most
2700 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701 # FIXME: I believe we export ac_cv_exeext for Libtool,
2702 # but it would be cool to find out if it's true. Does anybody
2703 # maintain Libtool? --akim.
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.
$ac_ext >&5
2714 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: C compiler cannot create executables
2717 See \`config.log' for more details." >&2;}
2718 { (exit 77); exit 77; }; }
2721 ac_exeext
=$ac_cv_exeext
2722 echo "$as_me:$LINENO: result: $ac_file" >&5
2723 echo "${ECHO_T}$ac_file" >&6
2725 # Check the compiler produces executables we can run. If not, either
2726 # the compiler is broken, or we cross compile.
2727 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2728 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2730 # If not cross compiling, check that we can run a simple program.
2731 if test "$cross_compiling" != yes; then
2732 if { ac_try
='./$ac_file'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2740 if test "$cross_compiling" = maybe
; then
2743 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2744 If you meant to cross compile, use \`--host'.
2745 See \`config.log' for more details." >&5
2746 echo "$as_me: error: cannot run C compiled programs.
2747 If you meant to cross compile, use \`--host'.
2748 See \`config.log' for more details." >&2;}
2749 { (exit 1); exit 1; }; }
2753 echo "$as_me:$LINENO: result: yes" >&5
2754 echo "${ECHO_T}yes" >&6
2756 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2757 ac_clean_files
=$ac_clean_files_save
2758 # Check the compiler produces executables we can run. If not, either
2759 # the compiler is broken, or we cross compile.
2760 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2761 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2762 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2763 echo "${ECHO_T}$cross_compiling" >&6
2765 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2766 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2768 (eval $ac_link) 2>&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
2772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2773 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2774 # work properly (i.e., refer to `conftest.exe'), while it won't with
2776 for ac_file
in conftest.exe conftest conftest.
*; do
2777 test -f "$ac_file" ||
continue
2779 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2780 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2787 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2788 See \`config.log' for more details." >&5
2789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2790 See \`config.log' for more details." >&2;}
2791 { (exit 1); exit 1; }; }
2794 rm -f conftest
$ac_cv_exeext
2795 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2796 echo "${ECHO_T}$ac_cv_exeext" >&6
2798 rm -f conftest.
$ac_ext
2799 EXEEXT
=$ac_cv_exeext
2801 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2802 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2803 if test "${ac_cv_objext+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 cat >conftest.
$ac_ext <<_ACEOF
2809 cat confdefs.h
>>conftest.
$ac_ext
2810 cat >>conftest.
$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2821 rm -f conftest.o conftest.obj
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; then
2827 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2829 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2830 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.
$ac_ext >&5
2838 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2839 See \`config.log' for more details." >&5
2840 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2841 See \`config.log' for more details." >&2;}
2842 { (exit 1); exit 1; }; }
2845 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2847 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2848 echo "${ECHO_T}$ac_cv_objext" >&6
2849 OBJEXT
=$ac_cv_objext
2851 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 cat >conftest.
$ac_ext <<_ACEOF
2859 cat confdefs.h
>>conftest.
$ac_ext
2860 cat >>conftest.
$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2874 rm -f conftest.
$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>conftest.er1
2878 grep -v '^ *+' conftest.er1
>conftest.err
2880 cat conftest.err
>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try
='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try
='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.
$ac_ext >&5
2903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2904 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2907 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2908 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2909 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2910 ac_test_CFLAGS
=${CFLAGS+set}
2911 ac_save_CFLAGS
=$CFLAGS
2913 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2914 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2915 if test "${ac_cv_prog_cc_g+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 cat >conftest.
$ac_ext <<_ACEOF
2921 cat confdefs.h
>>conftest.
$ac_ext
2922 cat >>conftest.
$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2933 rm -f conftest.
$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1
>conftest.err
2939 cat conftest.err
>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try
='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try
='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.
$ac_ext >&5
2962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2964 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2966 if test "$ac_test_CFLAGS" = set; then
2967 CFLAGS
=$ac_save_CFLAGS
2968 elif test $ac_cv_prog_cc_g = yes; then
2969 if test "$GCC" = yes; then
2975 if test "$GCC" = yes; then
2981 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2982 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2983 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_cv_prog_cc_stdc
=no
2988 cat >conftest.
$ac_ext <<_ACEOF
2991 cat confdefs.h
>>conftest.
$ac_ext
2992 cat >>conftest.
$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2996 #include <sys/types.h>
2997 #include <sys/stat.h>
2998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2999 struct buf { int x; };
3000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3001 static char *e (p, i)
3007 static char *f (char * (*g) (char **, int), char **p, ...)
3012 s = g (p, va_arg (v,int));
3017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3018 function prototypes and stuff, but not '\xHH' hex character constants.
3019 These don't provoke an error unfortunately, instead are silently treated
3020 as 'x'. The following induces an error, until -std1 is added to get
3021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3022 array size at least. It's necessary to write '\x00'==0 to get something
3023 that's true only with -std1. */
3024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3026 int test (int i, double x);
3027 struct s1 {int (*f) (int a);};
3028 struct s2 {int (*f) (double a);};
3029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3040 # Don't try gcc -ansi; that turns off useful extensions and
3041 # breaks some systems' header files.
3042 # AIX -qlanglvl=ansi
3043 # Ultrix and OSF/1 -std1
3044 # HP-UX 10.20 and later -Ae
3045 # HP-UX older versions -Aa -D_HPUX_SOURCE
3046 # SVR4 -Xc -D__EXTENSIONS__
3047 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3049 CC
="$ac_save_CC $ac_arg"
3050 rm -f conftest.
$ac_objext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3052 (eval $ac_compile) 2>conftest.er1
3054 grep -v '^ *+' conftest.er1
>conftest.err
3056 cat conftest.err
>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try
='test -z "$ac_c_werror_flag"
3060 || test ! -s conftest.err'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try
='test -s conftest.$ac_objext'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_cv_prog_cc_stdc
=$ac_arg
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.
$ac_ext >&5
3079 rm -f conftest.err conftest.
$ac_objext
3081 rm -f conftest.
$ac_ext conftest.
$ac_objext
3086 case "x$ac_cv_prog_cc_stdc" in
3088 echo "$as_me:$LINENO: result: none needed" >&5
3089 echo "${ECHO_T}none needed" >&6 ;;
3091 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3092 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3093 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3096 # Some people use a C++ compiler to compile C. Since we use `exit',
3097 # in C++ we need to declare it. In case someone uses the same compiler
3098 # for both compiling C and C++ we need to have the C++ compiler decide
3099 # the declaration of exit, since it's the most demanding environment.
3100 cat >conftest.
$ac_ext <<_ACEOF
3105 rm -f conftest.
$ac_objext
3106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107 (eval $ac_compile) 2>conftest.er1
3109 grep -v '^ *+' conftest.er1
>conftest.err
3111 cat conftest.err
>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try
='test -z "$ac_c_werror_flag"
3115 || test ! -s conftest.err'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; } &&
3121 { ac_try
='test -s conftest.$ac_objext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 for ac_declaration
in \
3129 'extern "C" void std::exit (int) throw (); using std::exit;' \
3130 'extern "C" void std::exit (int); using std::exit;' \
3131 'extern "C" void exit (int) throw ();' \
3132 'extern "C" void exit (int);' \
3135 cat >conftest.
$ac_ext <<_ACEOF
3138 cat confdefs.h
>>conftest.
$ac_ext
3139 cat >>conftest.
$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3151 rm -f conftest.
$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>conftest.er1
3155 grep -v '^ *+' conftest.er1
>conftest.err
3157 cat conftest.err
>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try
='test -z "$ac_c_werror_flag"
3161 || test ! -s conftest.err'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; } &&
3167 { ac_try
='test -s conftest.$ac_objext'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.
$ac_ext >&5
3180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3181 cat >conftest.
$ac_ext <<_ACEOF
3184 cat confdefs.h
>>conftest.
$ac_ext
3185 cat >>conftest.
$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3196 rm -f conftest.
$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198 (eval $ac_compile) 2>conftest.er1
3200 grep -v '^ *+' conftest.er1
>conftest.err
3202 cat conftest.err
>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try
='test -z "$ac_c_werror_flag"
3206 || test ! -s conftest.err'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; } &&
3212 { ac_try
='test -s conftest.$ac_objext'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.
$ac_ext >&5
3224 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3227 if test -n "$ac_declaration"; then
3228 echo '#ifdef __cplusplus' >>confdefs.h
3229 echo $ac_declaration >>confdefs.h
3230 echo '#endif' >>confdefs.h
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.
$ac_ext >&5
3238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3240 ac_cpp
='$CPP $CPPFLAGS'
3241 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3244 DEPDIR
="${am__leading_dot}deps"
3246 ac_config_commands
="$ac_config_commands depfiles"
3249 am_make
=${MAKE-make}
3250 cat > confinc
<< 'END'
3255 # If we don't find an include directive, just comment out the code.
3256 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3257 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3261 # First try GNU make style include.
3262 echo "include confinc" > confmf
3263 # We grep out `Entering directory' and `Leaving directory'
3264 # messages which can occur if `w' ends up in MAKEFLAGS.
3265 # In particular we don't look at `^make:' because GNU make might
3266 # be invoked under some other name (usually "gmake"), in which
3267 # case it prints its new name instead of `make'.
3268 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3273 # Now try BSD make style include.
3274 if test "$am__include" = "#"; then
3275 echo '.include "confinc"' > confmf
3276 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3277 am__include
=.include
3284 echo "$as_me:$LINENO: result: $_am_result" >&5
3285 echo "${ECHO_T}$_am_result" >&6
3286 rm -f confinc confmf
3288 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3289 if test "${enable_dependency_tracking+set}" = set; then
3290 enableval
="$enable_dependency_tracking"
3293 if test "x$enable_dependency_tracking" != xno
; then
3294 am_depcomp
="$ac_aux_dir/depcomp"
3299 if test "x$enable_dependency_tracking" != xno; then
3310 depcc
="$CC" am_compiler_list
=
3312 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3313 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3314 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3318 # We make a subdir and do the tests there. Otherwise we can end up
3319 # making bogus files that we don't know about and never remove. For
3320 # instance it was reported that on HP-UX the gcc test will end up
3321 # making a dummy file named `D' -- because `-MD' means `put the output
3324 # Copy depcomp to subdir because otherwise we won't find it if we're
3325 # using a relative directory.
3326 cp "$am_depcomp" conftest.dir
3328 # We will build objects and dependencies in a subdirectory because
3329 # it helps to detect inapplicable dependency modes. For instance
3330 # both Tru64's cc and ICC support -MD to output dependencies as a
3331 # side effect of compilation, but ICC will put the dependencies in
3332 # the current directory while Tru64 will put them in the object
3336 am_cv_CC_dependencies_compiler_type
=none
3337 if test "$am_compiler_list" = ""; then
3338 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3340 for depmode
in $am_compiler_list; do
3341 # Setup a source with many dependencies, because some compilers
3342 # like to wrap large dependency lists on column 80 (with \), and
3343 # we should not choose a depcomp mode which is confused by this.
3345 # We need to recreate these files for each test, as the compiler may
3346 # overwrite some of them when testing with obscure command lines.
3347 # This happens at least with the AIX C compiler.
3349 for i
in 1 2 3 4 5 6; do
3350 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3351 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3352 # Solaris 8's {/usr,}/bin/sh.
3353 touch sub
/conftst
$i.h
3355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3359 # after this tag, mechanisms are not by side-effect, so they'll
3360 # only be used when explicitly requested
3361 if test "x$enable_dependency_tracking" = xyes
; then
3369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3370 # mode. It turns out that the SunPro C++ compiler does not properly
3371 # handle `-M -o', and we need to detect this.
3372 if depmode
=$depmode \
3373 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3374 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3375 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3376 >/dev
/null
2>conftest.err
&&
3377 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3378 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3379 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3380 # icc doesn't choke on unknown options, it will just issue warnings
3381 # (even with -Werror). So we grep stderr for any message
3382 # that says an option was ignored.
3383 if grep 'ignoring option' conftest.err
>/dev
/null
2>&1; then :; else
3384 am_cv_CC_dependencies_compiler_type
=$depmode
3393 am_cv_CC_dependencies_compiler_type
=none
3397 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3398 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3399 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3404 test "x$enable_dependency_tracking" != xno \
3405 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3407 am__fastdepCC_FALSE
='#'
3409 am__fastdepCC_TRUE
='#'
3410 am__fastdepCC_FALSE
=
3414 # Find a good install program. We prefer a C program (faster),
3415 # so one script is as good as another. But avoid the broken or
3416 # incompatible versions:
3417 # SysV /etc/install, /usr/sbin/install
3418 # SunOS /usr/etc/install
3419 # IRIX /sbin/install
3421 # AmigaOS /C/install, which installs bootblocks on floppy discs
3422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3425 # OS/2's system install, which has a completely different semantic
3426 # ./install, which can be erroneously created by make from ./install.sh.
3427 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3428 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3429 if test -z "$INSTALL"; then
3430 if test "${ac_cv_path_install+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3437 test -z "$as_dir" && as_dir
=.
3438 # Account for people who put trailing slashes in PATH elements.
3440 .
/ | .
// |
/cC
/* | \
3441 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3442 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3445 # OSF1 and SCO ODT 3.0 have their own names for install.
3446 # Don't use installbsd from OSF since it installs stuff as root
3448 for ac_prog
in ginstall scoinst
install; do
3449 for ac_exec_ext
in '' $ac_executable_extensions; do
3450 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3451 if test $ac_prog = install &&
3452 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3453 # AIX install. It has an incompatible calling convention.
3455 elif test $ac_prog = install &&
3456 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3457 # program-specific install script used by HP pwplus--don't use.
3460 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3472 if test "${ac_cv_path_install+set}" = set; then
3473 INSTALL
=$ac_cv_path_install
3475 # As a last resort, use the slow shell script. We don't cache a
3476 # path for INSTALL within a source directory, because that will
3477 # break other packages using the cache if that directory is
3478 # removed, or if the path is relative.
3479 INSTALL
=$ac_install_sh
3482 echo "$as_me:$LINENO: result: $INSTALL" >&5
3483 echo "${ECHO_T}$INSTALL" >&6
3485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3486 # It thinks the first close brace ends the variable substitution.
3487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3491 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3495 ac_cpp
='$CPP $CPPFLAGS'
3496 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3499 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3500 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3501 # On Suns, sometimes $CPP names a directory.
3502 if test -n "$CPP" && test -d "$CPP"; then
3505 if test -z "$CPP"; then
3506 if test "${ac_cv_prog_CPP+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 # Double quotes because CPP needs to be expanded
3510 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3513 for ac_c_preproc_warn_flag
in '' yes
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.
$ac_ext <<_ACEOF
3524 cat confdefs.h
>>conftest.
$ac_ext
3525 cat >>conftest.
$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3528 # include <limits.h>
3530 # include <assert.h>
3534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3535 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3537 grep -v '^ *+' conftest.er1
>conftest.err
3539 cat conftest.err
>&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev
/null
; then
3542 if test -s conftest.err
; then
3543 ac_cpp_err
=$ac_c_preproc_warn_flag
3544 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3551 if test -z "$ac_cpp_err"; then
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.
$ac_ext >&5
3557 # Broken: fails on valid input.
3560 rm -f conftest.err conftest.
$ac_ext
3562 # OK, works on sane cases. Now check whether non-existent headers
3563 # can be detected and how.
3564 cat >conftest.
$ac_ext <<_ACEOF
3567 cat confdefs.h
>>conftest.
$ac_ext
3568 cat >>conftest.
$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 #include <ac_nonexistent.h>
3572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3573 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3575 grep -v '^ *+' conftest.er1
>conftest.err
3577 cat conftest.err
>&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev
/null
; then
3580 if test -s conftest.err
; then
3581 ac_cpp_err
=$ac_c_preproc_warn_flag
3582 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3589 if test -z "$ac_cpp_err"; then
3590 # Broken: success on invalid input.
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.
$ac_ext >&5
3596 # Passes both tests.
3600 rm -f conftest.err conftest.
$ac_ext
3603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604 rm -f conftest.err conftest.
$ac_ext
3605 if $ac_preproc_ok; then
3617 echo "$as_me:$LINENO: result: $CPP" >&5
3618 echo "${ECHO_T}$CPP" >&6
3620 for ac_c_preproc_warn_flag
in '' yes
3622 # Use a header file that comes with gcc, so configuring glibc
3623 # with a fresh cross-compiler works.
3624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3625 # <limits.h> exists even on freestanding compilers.
3626 # On the NeXT, cc -E runs the code through the compiler's parser,
3627 # not just through cpp. "Syntax error" is here to catch this case.
3628 cat >conftest.
$ac_ext <<_ACEOF
3631 cat confdefs.h
>>conftest.
$ac_ext
3632 cat >>conftest.
$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3635 # include <limits.h>
3637 # include <assert.h>
3641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3642 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3644 grep -v '^ *+' conftest.er1
>conftest.err
3646 cat conftest.err
>&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } >/dev
/null
; then
3649 if test -s conftest.err
; then
3650 ac_cpp_err
=$ac_c_preproc_warn_flag
3651 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3658 if test -z "$ac_cpp_err"; then
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.
$ac_ext >&5
3664 # Broken: fails on valid input.
3667 rm -f conftest.err conftest.
$ac_ext
3669 # OK, works on sane cases. Now check whether non-existent headers
3670 # can be detected and how.
3671 cat >conftest.
$ac_ext <<_ACEOF
3674 cat confdefs.h
>>conftest.
$ac_ext
3675 cat >>conftest.
$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 #include <ac_nonexistent.h>
3679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3682 grep -v '^ *+' conftest.er1
>conftest.err
3684 cat conftest.err
>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev
/null
; then
3687 if test -s conftest.err
; then
3688 ac_cpp_err
=$ac_c_preproc_warn_flag
3689 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3696 if test -z "$ac_cpp_err"; then
3697 # Broken: success on invalid input.
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.
$ac_ext >&5
3703 # Passes both tests.
3707 rm -f conftest.err conftest.
$ac_ext
3710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3711 rm -f conftest.err conftest.
$ac_ext
3712 if $ac_preproc_ok; then
3715 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3716 See \`config.log' for more details." >&5
3717 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3718 See \`config.log' for more details." >&2;}
3719 { (exit 1); exit 1; }; }
3723 ac_cpp
='$CPP $CPPFLAGS'
3724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3729 echo "$as_me:$LINENO: checking for egrep" >&5
3730 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3731 if test "${ac_cv_prog_egrep+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3735 then ac_cv_prog_egrep
='grep -E'
3736 else ac_cv_prog_egrep
='egrep'
3739 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3740 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3741 EGREP
=$ac_cv_prog_egrep
3744 if test $ac_cv_c_compiler_gnu = yes; then
3745 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3746 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3747 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 ac_pattern
="Autoconf.*'x'"
3751 cat >conftest.
$ac_ext <<_ACEOF
3754 cat confdefs.h
>>conftest.
$ac_ext
3755 cat >>conftest.
$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3761 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3762 ac_cv_prog_gcc_traditional
=yes
3764 ac_cv_prog_gcc_traditional
=no
3769 if test $ac_cv_prog_gcc_traditional = no
; then
3770 cat >conftest.
$ac_ext <<_ACEOF
3773 cat confdefs.h
>>conftest.
$ac_ext
3774 cat >>conftest.
$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3780 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3781 ac_cv_prog_gcc_traditional
=yes
3787 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3788 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3789 if test $ac_cv_prog_gcc_traditional = yes; then
3790 CC
="$CC -traditional"
3795 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3796 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3797 if test "${ac_cv_header_stdc+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 cat >conftest.
$ac_ext <<_ACEOF
3803 cat confdefs.h
>>conftest.
$ac_ext
3804 cat >>conftest.
$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3819 rm -f conftest.
$ac_objext
3820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3821 (eval $ac_compile) 2>conftest.er1
3823 grep -v '^ *+' conftest.er1
>conftest.err
3825 cat conftest.err
>&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try
='test -z "$ac_c_werror_flag"
3829 || test ! -s conftest.err'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; } &&
3835 { ac_try
='test -s conftest.$ac_objext'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 ac_cv_header_stdc
=yes
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.
$ac_ext >&5
3846 ac_cv_header_stdc
=no
3848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3850 if test $ac_cv_header_stdc = yes; then
3851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3852 cat >conftest.
$ac_ext <<_ACEOF
3855 cat confdefs.h
>>conftest.
$ac_ext
3856 cat >>conftest.
$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862 $EGREP "memchr" >/dev
/null
2>&1; then
3865 ac_cv_header_stdc
=no
3871 if test $ac_cv_header_stdc = yes; then
3872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3873 cat >conftest.
$ac_ext <<_ACEOF
3876 cat confdefs.h
>>conftest.
$ac_ext
3877 cat >>conftest.
$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3883 $EGREP "free" >/dev
/null
2>&1; then
3886 ac_cv_header_stdc
=no
3892 if test $ac_cv_header_stdc = yes; then
3893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3894 if test "$cross_compiling" = yes; then
3897 cat >conftest.
$ac_ext <<_ACEOF
3900 cat confdefs.h
>>conftest.
$ac_ext
3901 cat >>conftest.
$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3904 #if ((' ' & 0x0FF) == 0x020)
3905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908 # define ISLOWER(c) \
3909 (('a' <= (c) && (c) <= 'i') \
3910 || ('j' <= (c) && (c) <= 'r') \
3911 || ('s' <= (c) && (c) <= 'z'))
3912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3920 for (i = 0; i < 256; i++)
3921 if (XOR (islower (i), ISLOWER (i))
3922 || toupper (i) != TOUPPER (i))
3927 rm -f conftest
$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929 (eval $ac_link) 2>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3940 echo "$as_me: program exited with status $ac_status" >&5
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.
$ac_ext >&5
3945 ac_cv_header_stdc
=no
3947 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3951 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3952 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3953 if test $ac_cv_header_stdc = yes; then
3955 cat >>confdefs.h
<<\_ACEOF
3956 #define STDC_HEADERS 1
3962 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3963 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3964 if test "${ac_cv_c_const+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 cat >conftest.
$ac_ext <<_ACEOF
3970 cat confdefs.h
>>conftest.
$ac_ext
3971 cat >>conftest.
$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3977 /* FIXME: Include the comments suggested by Paul. */
3979 /* Ultrix mips cc rejects this. */
3980 typedef int charset[2];
3982 /* SunOS 4.1.1 cc rejects this. */
3983 char const *const *ccp;
3985 /* NEC SVR4.0.2 mips cc rejects this. */
3986 struct point {int x, y;};
3987 static struct point const zero = {0,0};
3988 /* AIX XL C 1.02.0.0 rejects this.
3989 It does not let you subtract one const X* pointer from another in
3990 an arm of an if-expression whose if-part is not a constant
3992 const char *g = "string";
3993 ccp = &g + (g ? g-g : 0);
3994 /* HPUX 7.0 cc rejects these. */
3997 ccp = (char const *const *) p;
3998 { /* SCO 3.2v4 cc rejects this. */
4000 char const *s = 0 ? (char *) 0 : (char const *) 0;
4004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4006 const int *foo = &x[0];
4009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4010 typedef const int *iptr;
4014 { /* AIX XL C 1.02.0.0 rejects this saying
4015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4016 struct s { int j; const int *ap[3]; };
4017 struct s *b; b->j = 5;
4019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4028 rm -f conftest.
$ac_objext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030 (eval $ac_compile) 2>conftest.er1
4032 grep -v '^ *+' conftest.er1
>conftest.err
4034 cat conftest.err
>&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try
='test -z "$ac_c_werror_flag"
4038 || test ! -s conftest.err'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; } &&
4044 { ac_try
='test -s conftest.$ac_objext'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.
$ac_ext >&5
4057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4059 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4060 echo "${ECHO_T}$ac_cv_c_const" >&6
4061 if test $ac_cv_c_const = no
; then
4063 cat >>confdefs.h
<<\_ACEOF
4069 echo "$as_me:$LINENO: checking for inline" >&5
4070 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4071 if test "${ac_cv_c_inline+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 for ac_kw
in inline __inline__ __inline
; do
4076 cat >conftest.
$ac_ext <<_ACEOF
4079 cat confdefs.h
>>conftest.
$ac_ext
4080 cat >>conftest.
$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4084 static $ac_kw foo_t static_foo () {return 0; }
4085 $ac_kw foo_t foo () {return 0; }
4089 rm -f conftest.
$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>conftest.er1
4093 grep -v '^ *+' conftest.er1
>conftest.err
4095 cat conftest.err
>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try
='test -z "$ac_c_werror_flag"
4099 || test ! -s conftest.err'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try
='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 ac_cv_c_inline
=$ac_kw; break
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.
$ac_ext >&5
4117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4121 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4122 echo "${ECHO_T}$ac_cv_c_inline" >&6
4125 case $ac_cv_c_inline in
4128 case $ac_cv_c_inline in
4130 *) ac_val
=$ac_cv_c_inline;;
4132 cat >>confdefs.h
<<_ACEOF
4134 #define inline $ac_val
4140 echo "$as_me:$LINENO: checking for working volatile" >&5
4141 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4142 if test "${ac_cv_c_volatile+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 cat >conftest.
$ac_ext <<_ACEOF
4148 cat confdefs.h
>>conftest.
$ac_ext
4149 cat >>conftest.
$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4162 rm -f conftest.
$ac_objext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4164 (eval $ac_compile) 2>conftest.er1
4166 grep -v '^ *+' conftest.er1
>conftest.err
4168 cat conftest.err
>&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try
='test -z "$ac_c_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try
='test -s conftest.$ac_objext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_c_volatile
=yes
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.
$ac_ext >&5
4191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4193 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4194 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4195 if test $ac_cv_c_volatile = no
; then
4197 cat >>confdefs.h
<<\_ACEOF
4203 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4213 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4214 inttypes.h stdint.h unistd.h
4216 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4217 echo "$as_me:$LINENO: checking for $ac_header" >&5
4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 cat >conftest.
$ac_ext <<_ACEOF
4225 cat confdefs.h
>>conftest.
$ac_ext
4226 cat >>conftest.
$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 $ac_includes_default
4230 #include <$ac_header>
4232 rm -f conftest.
$ac_objext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234 (eval $ac_compile) 2>conftest.er1
4236 grep -v '^ *+' conftest.er1
>conftest.err
4238 cat conftest.err
>&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try
='test -z "$ac_c_werror_flag"
4242 || test ! -s conftest.err'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; } &&
4248 { ac_try
='test -s conftest.$ac_objext'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 eval "$as_ac_Header=yes"
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.
$ac_ext >&5
4259 eval "$as_ac_Header=no"
4261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4266 cat >>confdefs.h
<<_ACEOF
4267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4275 echo "$as_me:$LINENO: checking for off_t" >&5
4276 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4277 if test "${ac_cv_type_off_t+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 cat >conftest.
$ac_ext <<_ACEOF
4283 cat confdefs.h
>>conftest.
$ac_ext
4284 cat >>conftest.
$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4298 rm -f conftest.
$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300 (eval $ac_compile) 2>conftest.er1
4302 grep -v '^ *+' conftest.er1
>conftest.err
4304 cat conftest.err
>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try
='test -z "$ac_c_werror_flag"
4308 || test ! -s conftest.err'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try
='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 ac_cv_type_off_t
=yes
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.
$ac_ext >&5
4327 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4329 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4330 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4331 if test $ac_cv_type_off_t = yes; then
4335 cat >>confdefs.h
<<_ACEOF
4341 echo "$as_me:$LINENO: checking for pid_t" >&5
4342 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4343 if test "${ac_cv_type_pid_t+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 cat >conftest.
$ac_ext <<_ACEOF
4349 cat confdefs.h
>>conftest.
$ac_ext
4350 cat >>conftest.
$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 $ac_includes_default
4364 rm -f conftest.
$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>conftest.er1
4368 grep -v '^ *+' conftest.er1
>conftest.err
4370 cat conftest.err
>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try
='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try
='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_type_pid_t
=yes
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.
$ac_ext >&5
4393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4395 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4396 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4397 if test $ac_cv_type_pid_t = yes; then
4401 cat >>confdefs.h
<<_ACEOF
4407 echo "$as_me:$LINENO: checking for size_t" >&5
4408 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4409 if test "${ac_cv_type_size_t+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 cat >conftest.
$ac_ext <<_ACEOF
4415 cat confdefs.h
>>conftest.
$ac_ext
4416 cat >>conftest.
$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 $ac_includes_default
4424 if (sizeof (size_t))
4430 rm -f conftest.
$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4434 grep -v '^ *+' conftest.er1
>conftest.err
4436 cat conftest.err
>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try
='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try
='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_type_size_t
=yes
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.
$ac_ext >&5
4457 ac_cv_type_size_t
=no
4459 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4461 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4462 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4463 if test $ac_cv_type_size_t = yes; then
4467 cat >>confdefs.h
<<_ACEOF
4468 #define size_t unsigned
4473 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4474 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4475 if test "${ac_cv_type_uid_t+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 cat >conftest.
$ac_ext <<_ACEOF
4481 cat confdefs.h
>>conftest.
$ac_ext
4482 cat >>conftest.
$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 #include <sys/types.h>
4487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4488 $EGREP "uid_t" >/dev
/null
2>&1; then
4489 ac_cv_type_uid_t
=yes
4496 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4497 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4498 if test $ac_cv_type_uid_t = no
; then
4500 cat >>confdefs.h
<<\_ACEOF
4505 cat >>confdefs.h
<<\_ACEOF
4511 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4512 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4513 if test "${ac_cv_header_time+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 cat >conftest.
$ac_ext <<_ACEOF
4519 cat confdefs.h
>>conftest.
$ac_ext
4520 cat >>conftest.
$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 #include <sys/types.h>
4523 #include <sys/time.h>
4529 if ((struct tm *) 0)
4535 rm -f conftest.
$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>conftest.er1
4539 grep -v '^ *+' conftest.er1
>conftest.err
4541 cat conftest.err
>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try
='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try
='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_header_time
=yes
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.
$ac_ext >&5
4562 ac_cv_header_time
=no
4564 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4566 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4567 echo "${ECHO_T}$ac_cv_header_time" >&6
4568 if test $ac_cv_header_time = yes; then
4570 cat >>confdefs.h
<<\_ACEOF
4571 #define TIME_WITH_SYS_TIME 1
4576 echo "$as_me:$LINENO: checking for ISO C 1999 vararg macro support" >&5
4577 echo $ECHO_N "checking for ISO C 1999 vararg macro support... $ECHO_C" >&6
4578 if test "${ax_cv_cpp_vararg_macro_iso+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 cat >conftest.
$ac_ext <<_ACEOF
4583 #define macro(a, ...) func(a, __VA_ARGS__)
4584 int func(int a, int b, int c);
4585 int test() { return macro(1, 2, 3); }
4588 rm -f conftest.
$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>conftest.er1
4592 grep -v '^ *+' conftest.er1
>conftest.err
4594 cat conftest.err
>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try
='test -z "$ac_c_werror_flag"
4598 || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try
='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ax_cv_cpp_vararg_macro_iso
=yes
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.
$ac_ext >&5
4615 ax_cv_cpp_vararg_macro_iso
=no
4617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4619 echo "$as_me:$LINENO: result: $ax_cv_cpp_vararg_macro_iso" >&5
4620 echo "${ECHO_T}$ax_cv_cpp_vararg_macro_iso" >&6
4621 if test $ax_cv_cpp_vararg_macro_iso = yes ; then
4623 cat >>confdefs.h
<<\_ACEOF
4624 #define HAVE_CPP_VARARG_MACRO_ISO 1
4629 echo "$as_me:$LINENO: checking for GNU GCC vararg macro support" >&5
4630 echo $ECHO_N "checking for GNU GCC vararg macro support... $ECHO_C" >&6
4631 if test "${ax_cv_cpp_vararg_macro_gcc+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 cat >conftest.
$ac_ext <<_ACEOF
4636 #define macro(a, b...) func(a, b)
4637 int func(int a, int b, int c);
4638 int test() { return macro(1, 2, 3); }
4641 rm -f conftest.
$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4645 grep -v '^ *+' conftest.er1
>conftest.err
4647 cat conftest.err
>&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try
='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try
='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ax_cv_cpp_vararg_macro_gcc
=yes
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.
$ac_ext >&5
4668 ax_cv_cpp_vararg_macro_gcc
=no
4670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4672 echo "$as_me:$LINENO: result: $ax_cv_cpp_vararg_macro_gcc" >&5
4673 echo "${ECHO_T}$ax_cv_cpp_vararg_macro_gcc" >&6
4674 if test $ax_cv_cpp_vararg_macro_gcc = yes ; then
4676 cat >>confdefs.h
<<\_ACEOF
4677 #define HAVE_CPP_VARARG_MACRO_GCC 1
4683 echo "$as_me:$LINENO: result: checking for C compiler empty array support" >&5
4684 echo "${ECHO_T}checking for C compiler empty array support" >&6
4685 cat >conftest.
$ac_ext <<_ACEOF
4687 struct { int foo; int bar[0]; } mystruct;
4690 rm -f conftest.
$ac_objext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692 (eval $ac_compile) 2>conftest.er1
4694 grep -v '^ *+' conftest.er1
>conftest.err
4696 cat conftest.err
>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try
='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try
='test -s conftest.$ac_objext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4714 cat >>confdefs.h
<<_ACEOF
4715 #define EMPTY_ARRAY_SIZE 0
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.
$ac_ext >&5
4724 cat >conftest.
$ac_ext <<_ACEOF
4726 struct { int foo; int bar[]; } mystruct;
4729 rm -f conftest.
$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>conftest.er1
4733 grep -v '^ *+' conftest.er1
>conftest.err
4735 cat conftest.err
>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try
='test -z "$ac_c_werror_flag"
4739 || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try
='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4753 cat >>confdefs.h
<<_ACEOF
4754 #define EMPTY_ARRAY_SIZE
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.
$ac_ext >&5
4763 { { echo "$as_me:$LINENO: error: C compiler is unable to creaty empty arrays" >&5
4764 echo "$as_me: error: C compiler is unable to creaty empty arrays" >&2;}
4765 { (exit 1); exit 1; }; }
4768 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4775 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4776 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4777 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 cat >conftest.
$ac_ext <<_ACEOF
4783 cat confdefs.h
>>conftest.
$ac_ext
4784 cat >>conftest.
$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <sys/types.h>
4787 #include <sys/wait.h>
4789 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4792 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4800 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4805 rm -f conftest.
$ac_objext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>conftest.er1
4809 grep -v '^ *+' conftest.er1
>conftest.err
4811 cat conftest.err
>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try
='test -z "$ac_c_werror_flag"
4815 || test ! -s conftest.err'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; } &&
4821 { ac_try
='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_cv_header_sys_wait_h
=yes
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.
$ac_ext >&5
4832 ac_cv_header_sys_wait_h
=no
4834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4837 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4838 if test $ac_cv_header_sys_wait_h = yes; then
4840 cat >>confdefs.h
<<\_ACEOF
4841 #define HAVE_SYS_WAIT_H 1
4884 for ac_header
in sys
/time.h sys
/socket.h sys
/ioctl.h sys
/stat.h sys
/mman.h fcntl.h sys
/file.h stdlib.h stdint.h stdarg.h unistd.h signal.h stdio.h string.h
strings.h ctype.h errno.h syslog.h
pwd.h grp.h net
/if_tun.h net
/if.h stropts.h sys
/sockio.h netinet
/in.h netinet
/in_systm.h netinet
/ip.h netinet
/if_ether.h netinet
/tcp.h resolv.h arpa
/inet.h netdb.h sys
/uio.h linux
/if_tun.h linux
/sockios.h linux
/types.h sys
/poll.h sys
/epoll.h
4886 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888 echo "$as_me:$LINENO: checking for $ac_header" >&5
4889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4896 # Is the header compilable?
4897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4899 cat >conftest.
$ac_ext <<_ACEOF
4902 cat confdefs.h
>>conftest.
$ac_ext
4903 cat >>conftest.
$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4905 $ac_includes_default
4906 #include <$ac_header>
4908 rm -f conftest.
$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>conftest.er1
4912 grep -v '^ *+' conftest.er1
>conftest.err
4914 cat conftest.err
>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try
='test -z "$ac_c_werror_flag"
4918 || test ! -s conftest.err'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try
='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_header_compiler
=yes
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.
$ac_ext >&5
4935 ac_header_compiler
=no
4937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4939 echo "${ECHO_T}$ac_header_compiler" >&6
4941 # Is the header present?
4942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4944 cat >conftest.
$ac_ext <<_ACEOF
4947 cat confdefs.h
>>conftest.
$ac_ext
4948 cat >>conftest.
$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #include <$ac_header>
4952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4955 grep -v '^ *+' conftest.er1
>conftest.err
4957 cat conftest.err
>&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev
/null
; then
4960 if test -s conftest.err
; then
4961 ac_cpp_err
=$ac_c_preproc_warn_flag
4962 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4969 if test -z "$ac_cpp_err"; then
4970 ac_header_preproc
=yes
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.
$ac_ext >&5
4975 ac_header_preproc
=no
4977 rm -f conftest.err conftest.
$ac_ext
4978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4979 echo "${ECHO_T}$ac_header_preproc" >&6
4981 # So? What about this header?
4982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4988 ac_header_preproc
=yes
4993 echo "$as_me:$LINENO: checking for $ac_header" >&5
4994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 eval "$as_ac_Header=\$ac_header_preproc"
5000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5005 cat >>confdefs.h
<<_ACEOF
5006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014 for ac_header
in linux
/errqueue.h
5016 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017 echo "$as_me:$LINENO: checking for $ac_header" >&5
5018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 cat >conftest.
$ac_ext <<_ACEOF
5025 cat confdefs.h
>>conftest.
$ac_ext
5026 cat >>conftest.
$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 #ifdef HAVE_LINUX_TYPES_H
5029 # include <linux/types.h>
5033 #include <$ac_header>
5035 rm -f conftest.
$ac_objext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>conftest.er1
5039 grep -v '^ *+' conftest.er1
>conftest.err
5041 cat conftest.err
>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try
='test -z "$ac_c_werror_flag"
5045 || test ! -s conftest.err'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try
='test -s conftest.$ac_objext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 eval "$as_ac_Header=yes"
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.
$ac_ext >&5
5062 eval "$as_ac_Header=no"
5064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5069 cat >>confdefs.h
<<_ACEOF
5070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5077 cat >confcache
<<\_ACEOF
5078 # This file is a shell script that caches the results of configure
5079 # tests run on this system so they can be shared between configure
5080 # scripts and configure runs, see configure's option --config-cache.
5081 # It is not useful on other systems. If it contains results you don't
5082 # want to keep, you may remove or edit it.
5084 # config.status only pays attention to the cache file if you give it
5085 # the --recheck option to rerun configure.
5087 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5088 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5093 # The following way of writing the cache mishandles newlines in values,
5094 # but we know of no workaround that is simple, portable, and efficient.
5095 # So, don't put newlines in cache variables' values.
5096 # Ultrix sh set writes to stderr and can't be redirected directly,
5097 # and sets the high bit in the cache file unless we assign to the vars.
5100 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5102 # `set' does not quote correctly, so add quotes (double-quote
5103 # substitution turns \\\\ into \\, and sed turns \\ into \).
5106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5109 # `set' quotes correctly as required by POSIX, so do not add quotes.
5111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5118 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5120 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5122 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5123 if test -w $cache_file; then
5124 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5125 cat confcache
>$cache_file
5127 echo "not updating unwritable cache $cache_file"
5132 echo "$as_me:$LINENO: checking for in_addr_t" >&5
5133 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
5134 if test "${ac_cv_type_in_addr_t+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 cat >conftest.
$ac_ext <<_ACEOF
5140 cat confdefs.h
>>conftest.
$ac_ext
5141 cat >>conftest.
$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #include "syshead.h"
5148 if ((in_addr_t *) 0)
5150 if (sizeof (in_addr_t))
5156 rm -f conftest.
$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158 (eval $ac_compile) 2>conftest.er1
5160 grep -v '^ *+' conftest.er1
>conftest.err
5162 cat conftest.err
>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try
='test -z "$ac_c_werror_flag"
5166 || test ! -s conftest.err'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; } &&
5172 { ac_try
='test -s conftest.$ac_objext'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5178 ac_cv_type_in_addr_t
=yes
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.
$ac_ext >&5
5183 ac_cv_type_in_addr_t
=no
5185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5187 echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
5188 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
5189 if test $ac_cv_type_in_addr_t = yes; then
5193 cat >>confdefs.h
<<\_ACEOF
5194 #define in_addr_t uint32_t
5200 echo "$as_me:$LINENO: checking for uint8_t" >&5
5201 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
5202 if test "${ac_cv_type_uint8_t+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 cat >conftest.
$ac_ext <<_ACEOF
5208 cat confdefs.h
>>conftest.
$ac_ext
5209 cat >>conftest.
$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 #include "syshead.h"
5218 if (sizeof (uint8_t))
5224 rm -f conftest.
$ac_objext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226 (eval $ac_compile) 2>conftest.er1
5228 grep -v '^ *+' conftest.er1
>conftest.err
5230 cat conftest.err
>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try
='test -z "$ac_c_werror_flag"
5234 || test ! -s conftest.err'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; } &&
5240 { ac_try
='test -s conftest.$ac_objext'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 ac_cv_type_uint8_t
=yes
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.
$ac_ext >&5
5251 ac_cv_type_uint8_t
=no
5253 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5255 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5256 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
5257 if test $ac_cv_type_uint8_t = yes; then
5261 cat >>confdefs.h
<<\_ACEOF
5262 #define uint8_t unsigned char
5267 echo "$as_me:$LINENO: checking for uint16_t" >&5
5268 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5269 if test "${ac_cv_type_uint16_t+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 cat >conftest.
$ac_ext <<_ACEOF
5275 cat confdefs.h
>>conftest.
$ac_ext
5276 cat >>conftest.
$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include "syshead.h"
5285 if (sizeof (uint16_t))
5291 rm -f conftest.
$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
5295 grep -v '^ *+' conftest.er1
>conftest.err
5297 cat conftest.err
>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try
='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try
='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_type_uint16_t
=yes
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.
$ac_ext >&5
5318 ac_cv_type_uint16_t
=no
5320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5322 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5323 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5324 if test $ac_cv_type_uint16_t = yes; then
5328 cat >>confdefs.h
<<\_ACEOF
5329 #define uint16_t unsigned char
5334 echo "$as_me:$LINENO: checking for uint32_t" >&5
5335 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5336 if test "${ac_cv_type_uint32_t+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 cat >conftest.
$ac_ext <<_ACEOF
5342 cat confdefs.h
>>conftest.
$ac_ext
5343 cat >>conftest.
$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 #include "syshead.h"
5352 if (sizeof (uint32_t))
5358 rm -f conftest.
$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5362 grep -v '^ *+' conftest.er1
>conftest.err
5364 cat conftest.err
>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try
='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try
='test -s conftest.$ac_objext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_cv_type_uint32_t
=yes
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.
$ac_ext >&5
5385 ac_cv_type_uint32_t
=no
5387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5390 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5391 if test $ac_cv_type_uint32_t = yes; then
5395 cat >>confdefs.h
<<\_ACEOF
5396 #define uint32_t unsigned long
5402 echo "$as_me:$LINENO: checking for struct tun_pi" >&5
5403 echo $ECHO_N "checking for struct tun_pi... $ECHO_C" >&6
5404 if test "${ac_cv_type_struct_tun_pi+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 cat >conftest.
$ac_ext <<_ACEOF
5410 cat confdefs.h
>>conftest.
$ac_ext
5411 cat >>conftest.
$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 #include "syshead.h"
5418 if ((struct tun_pi *) 0)
5420 if (sizeof (struct tun_pi))
5426 rm -f conftest.
$ac_objext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5428 (eval $ac_compile) 2>conftest.er1
5430 grep -v '^ *+' conftest.er1
>conftest.err
5432 cat conftest.err
>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try
='test -z "$ac_c_werror_flag"
5436 || test ! -s conftest.err'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; } &&
5442 { ac_try
='test -s conftest.$ac_objext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 ac_cv_type_struct_tun_pi
=yes
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.
$ac_ext >&5
5453 ac_cv_type_struct_tun_pi
=no
5455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5457 echo "$as_me:$LINENO: result: $ac_cv_type_struct_tun_pi" >&5
5458 echo "${ECHO_T}$ac_cv_type_struct_tun_pi" >&6
5459 if test $ac_cv_type_struct_tun_pi = yes; then
5461 cat >>confdefs.h
<<\_ACEOF
5462 #define HAVE_TUN_PI 1
5467 echo "$as_me:$LINENO: checking for struct iphdr" >&5
5468 echo $ECHO_N "checking for struct iphdr... $ECHO_C" >&6
5469 if test "${ac_cv_type_struct_iphdr+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 cat >conftest.
$ac_ext <<_ACEOF
5475 cat confdefs.h
>>conftest.
$ac_ext
5476 cat >>conftest.
$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 #include "syshead.h"
5483 if ((struct iphdr *) 0)
5485 if (sizeof (struct iphdr))
5491 rm -f conftest.
$ac_objext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5495 grep -v '^ *+' conftest.er1
>conftest.err
5497 cat conftest.err
>&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try
='test -z "$ac_c_werror_flag"
5501 || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try
='test -s conftest.$ac_objext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 ac_cv_type_struct_iphdr
=yes
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.
$ac_ext >&5
5518 ac_cv_type_struct_iphdr
=no
5520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5522 echo "$as_me:$LINENO: result: $ac_cv_type_struct_iphdr" >&5
5523 echo "${ECHO_T}$ac_cv_type_struct_iphdr" >&6
5524 if test $ac_cv_type_struct_iphdr = yes; then
5526 cat >>confdefs.h
<<\_ACEOF
5527 #define HAVE_IPHDR 1
5532 echo "$as_me:$LINENO: checking for struct iovec" >&5
5533 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
5534 if test "${ac_cv_type_struct_iovec+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 cat >conftest.
$ac_ext <<_ACEOF
5540 cat confdefs.h
>>conftest.
$ac_ext
5541 cat >>conftest.
$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543 #include "syshead.h"
5548 if ((struct iovec *) 0)
5550 if (sizeof (struct iovec))
5556 rm -f conftest.
$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5560 grep -v '^ *+' conftest.er1
>conftest.err
5562 cat conftest.err
>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try
='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try
='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_cv_type_struct_iovec
=yes
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.
$ac_ext >&5
5583 ac_cv_type_struct_iovec
=no
5585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5587 echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
5588 echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
5589 if test $ac_cv_type_struct_iovec = yes; then
5591 cat >>confdefs.h
<<\_ACEOF
5592 #define HAVE_IOVEC 1
5598 echo "$as_me:$LINENO: checking for struct sock_extended_err" >&5
5599 echo $ECHO_N "checking for struct sock_extended_err... $ECHO_C" >&6
5600 if test "${ac_cv_type_struct_sock_extended_err+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 cat >conftest.
$ac_ext <<_ACEOF
5606 cat confdefs.h
>>conftest.
$ac_ext
5607 cat >>conftest.
$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 #include "syshead.h"
5614 if ((struct sock_extended_err *) 0)
5616 if (sizeof (struct sock_extended_err))
5622 rm -f conftest.
$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>conftest.er1
5626 grep -v '^ *+' conftest.er1
>conftest.err
5628 cat conftest.err
>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try
='test -z "$ac_c_werror_flag"
5632 || test ! -s conftest.err'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; } &&
5638 { ac_try
='test -s conftest.$ac_objext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_type_struct_sock_extended_err
=yes
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.
$ac_ext >&5
5649 ac_cv_type_struct_sock_extended_err
=no
5651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sock_extended_err" >&5
5654 echo "${ECHO_T}$ac_cv_type_struct_sock_extended_err" >&6
5655 if test $ac_cv_type_struct_sock_extended_err = yes; then
5657 cat >>confdefs.h
<<\_ACEOF
5658 #define HAVE_SOCK_EXTENDED_ERR 1
5663 echo "$as_me:$LINENO: checking for struct msghdr" >&5
5664 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
5665 if test "${ac_cv_type_struct_msghdr+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 cat >conftest.
$ac_ext <<_ACEOF
5671 cat confdefs.h
>>conftest.
$ac_ext
5672 cat >>conftest.
$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include "syshead.h"
5679 if ((struct msghdr *) 0)
5681 if (sizeof (struct msghdr))
5687 rm -f conftest.
$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>conftest.er1
5691 grep -v '^ *+' conftest.er1
>conftest.err
5693 cat conftest.err
>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } &&
5696 { ac_try
='test -z "$ac_c_werror_flag"
5697 || test ! -s conftest.err'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try
='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_cv_type_struct_msghdr
=yes
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.
$ac_ext >&5
5714 ac_cv_type_struct_msghdr
=no
5716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5718 echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
5719 echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
5720 if test $ac_cv_type_struct_msghdr = yes; then
5722 cat >>confdefs.h
<<\_ACEOF
5723 #define HAVE_MSGHDR 1
5728 echo "$as_me:$LINENO: checking for struct cmsghdr" >&5
5729 echo $ECHO_N "checking for struct cmsghdr... $ECHO_C" >&6
5730 if test "${ac_cv_type_struct_cmsghdr+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 cat >conftest.
$ac_ext <<_ACEOF
5736 cat confdefs.h
>>conftest.
$ac_ext
5737 cat >>conftest.
$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 #include "syshead.h"
5744 if ((struct cmsghdr *) 0)
5746 if (sizeof (struct cmsghdr))
5752 rm -f conftest.
$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>conftest.er1
5756 grep -v '^ *+' conftest.er1
>conftest.err
5758 cat conftest.err
>&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try
='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try
='test -s conftest.$ac_objext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_cv_type_struct_cmsghdr
=yes
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.
$ac_ext >&5
5779 ac_cv_type_struct_cmsghdr
=no
5781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5783 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsghdr" >&5
5784 echo "${ECHO_T}$ac_cv_type_struct_cmsghdr" >&6
5785 if test $ac_cv_type_struct_cmsghdr = yes; then
5787 cat >>confdefs.h
<<\_ACEOF
5788 #define HAVE_CMSGHDR 1
5794 echo "$as_me:$LINENO: checking for unsigned int" >&5
5795 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
5796 if test "${ac_cv_type_unsigned_int+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 cat >conftest.
$ac_ext <<_ACEOF
5802 cat confdefs.h
>>conftest.
$ac_ext
5803 cat >>conftest.
$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5809 if ((unsigned int *) 0)
5811 if (sizeof (unsigned int))
5817 rm -f conftest.
$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5821 grep -v '^ *+' conftest.er1
>conftest.err
5823 cat conftest.err
>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try
='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try
='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_type_unsigned_int
=yes
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.
$ac_ext >&5
5844 ac_cv_type_unsigned_int
=no
5846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5848 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
5849 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
5851 echo "$as_me:$LINENO: checking size of unsigned int" >&5
5852 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
5853 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test "$ac_cv_type_unsigned_int" = yes; then
5857 # The cast to unsigned long works around a bug in the HP C Compiler
5858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5860 # This bug is HP SR number 8606223364.
5861 if test "$cross_compiling" = yes; then
5862 # Depending upon the size, compute the lo and hi bounds.
5863 cat >conftest.
$ac_ext <<_ACEOF
5866 cat confdefs.h
>>conftest.
$ac_ext
5867 cat >>conftest.
$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5873 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
5880 rm -f conftest.
$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5884 grep -v '^ *+' conftest.er1
>conftest.err
5886 cat conftest.err
>&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try
='test -z "$ac_c_werror_flag"
5890 || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try
='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5904 cat >conftest.
$ac_ext <<_ACEOF
5907 cat confdefs.h
>>conftest.
$ac_ext
5908 cat >>conftest.
$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 $ac_includes_default
5914 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
5921 rm -f conftest.
$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>conftest.er1
5925 grep -v '^ *+' conftest.er1
>conftest.err
5927 cat conftest.err
>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try
='test -z "$ac_c_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try
='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_hi
=$ac_mid; break
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.
$ac_ext >&5
5948 ac_lo
=`expr $ac_mid + 1`
5949 if test $ac_lo -le $ac_mid; then
5953 ac_mid
=`expr 2 '*' $ac_mid + 1`
5955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.
$ac_ext >&5
5961 cat >conftest.
$ac_ext <<_ACEOF
5964 cat confdefs.h
>>conftest.
$ac_ext
5965 cat >>conftest.
$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5971 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
5978 rm -f conftest.
$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5982 grep -v '^ *+' conftest.er1
>conftest.err
5984 cat conftest.err
>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try
='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try
='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6002 cat >conftest.
$ac_ext <<_ACEOF
6005 cat confdefs.h
>>conftest.
$ac_ext
6006 cat >>conftest.
$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 $ac_includes_default
6012 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
6019 rm -f conftest.
$ac_objext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021 (eval $ac_compile) 2>conftest.er1
6023 grep -v '^ *+' conftest.er1
>conftest.err
6025 cat conftest.err
>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try
='test -z "$ac_c_werror_flag"
6029 || test ! -s conftest.err'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try
='test -s conftest.$ac_objext'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 ac_lo
=$ac_mid; break
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.
$ac_ext >&5
6046 ac_hi
=`expr '(' $ac_mid ')' - 1`
6047 if test $ac_mid -le $ac_hi; then
6051 ac_mid
=`expr 2 '*' $ac_mid`
6053 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.
$ac_ext >&5
6061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6064 # Binary search between lo and hi bounds.
6065 while test "x$ac_lo" != "x$ac_hi"; do
6066 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6067 cat >conftest.
$ac_ext <<_ACEOF
6070 cat confdefs.h
>>conftest.
$ac_ext
6071 cat >>conftest.
$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 $ac_includes_default
6077 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
6084 rm -f conftest.
$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>conftest.er1
6088 grep -v '^ *+' conftest.er1
>conftest.err
6090 cat conftest.err
>&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try
='test -z "$ac_c_werror_flag"
6094 || test ! -s conftest.err'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; } &&
6100 { ac_try
='test -s conftest.$ac_objext'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.
$ac_ext >&5
6111 ac_lo
=`expr '(' $ac_mid ')' + 1`
6113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6116 ?
*) ac_cv_sizeof_unsigned_int
=$ac_lo;;
6117 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
6118 See \`config.log' for more details." >&5
6119 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
6120 See \`config.log' for more details." >&2;}
6121 { (exit 1); exit 1; }; } ;;
6124 if test "$cross_compiling" = yes; then
6125 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6126 See \`config.log' for more details." >&5
6127 echo "$as_me: error: cannot run test program while cross compiling
6128 See \`config.log' for more details." >&2;}
6129 { (exit 1); exit 1; }; }
6131 cat >conftest.
$ac_ext <<_ACEOF
6134 cat confdefs.h
>>conftest.
$ac_ext
6135 cat >>conftest.
$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 $ac_includes_default
6138 long longval () { return (long) (sizeof (unsigned int)); }
6139 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
6146 FILE *f = fopen ("conftest.val", "w");
6149 if (((long) (sizeof (unsigned int))) < 0)
6151 long i = longval ();
6152 if (i != ((long) (sizeof (unsigned int))))
6154 fprintf (f, "%ld\n", i);
6158 unsigned long i = ulongval ();
6159 if (i != ((long) (sizeof (unsigned int))))
6161 fprintf (f, "%lu\n", i);
6163 exit (ferror (f) || fclose (f) != 0);
6169 rm -f conftest
$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_sizeof_unsigned_int
=`cat conftest.val`
6182 echo "$as_me: program exited with status $ac_status" >&5
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.
$ac_ext >&5
6187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
6188 See \`config.log' for more details." >&5
6189 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
6190 See \`config.log' for more details." >&2;}
6191 { (exit 1); exit 1; }; }
6193 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6198 ac_cv_sizeof_unsigned_int
=0
6201 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
6202 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
6203 cat >>confdefs.h
<<_ACEOF
6204 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
6208 echo "$as_me:$LINENO: checking for unsigned long" >&5
6209 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
6210 if test "${ac_cv_type_unsigned_long+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 cat >conftest.
$ac_ext <<_ACEOF
6216 cat confdefs.h
>>conftest.
$ac_ext
6217 cat >>conftest.
$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 $ac_includes_default
6223 if ((unsigned long *) 0)
6225 if (sizeof (unsigned long))
6231 rm -f conftest.
$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6235 grep -v '^ *+' conftest.er1
>conftest.err
6237 cat conftest.err
>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try
='test -z "$ac_c_werror_flag"
6241 || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try
='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_type_unsigned_long
=yes
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.
$ac_ext >&5
6258 ac_cv_type_unsigned_long
=no
6260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
6263 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
6265 echo "$as_me:$LINENO: checking size of unsigned long" >&5
6266 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
6267 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 if test "$ac_cv_type_unsigned_long" = yes; then
6271 # The cast to unsigned long works around a bug in the HP C Compiler
6272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6274 # This bug is HP SR number 8606223364.
6275 if test "$cross_compiling" = yes; then
6276 # Depending upon the size, compute the lo and hi bounds.
6277 cat >conftest.
$ac_ext <<_ACEOF
6280 cat confdefs.h
>>conftest.
$ac_ext
6281 cat >>conftest.
$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6287 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
6294 rm -f conftest.
$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>conftest.er1
6298 grep -v '^ *+' conftest.er1
>conftest.err
6300 cat conftest.err
>&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try
='test -z "$ac_c_werror_flag"
6304 || test ! -s conftest.err'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; } &&
6310 { ac_try
='test -s conftest.$ac_objext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6318 cat >conftest.
$ac_ext <<_ACEOF
6321 cat confdefs.h
>>conftest.
$ac_ext
6322 cat >>conftest.
$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 $ac_includes_default
6328 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
6335 rm -f conftest.
$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>conftest.er1
6339 grep -v '^ *+' conftest.er1
>conftest.err
6341 cat conftest.err
>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 { ac_try
='test -z "$ac_c_werror_flag"
6345 || test ! -s conftest.err'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; } &&
6351 { ac_try
='test -s conftest.$ac_objext'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6357 ac_hi
=$ac_mid; break
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.
$ac_ext >&5
6362 ac_lo
=`expr $ac_mid + 1`
6363 if test $ac_lo -le $ac_mid; then
6367 ac_mid
=`expr 2 '*' $ac_mid + 1`
6369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.
$ac_ext >&5
6375 cat >conftest.
$ac_ext <<_ACEOF
6378 cat confdefs.h
>>conftest.
$ac_ext
6379 cat >>conftest.
$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 $ac_includes_default
6385 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
6392 rm -f conftest.
$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6396 grep -v '^ *+' conftest.er1
>conftest.err
6398 cat conftest.err
>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try
='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try
='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6416 cat >conftest.
$ac_ext <<_ACEOF
6419 cat confdefs.h
>>conftest.
$ac_ext
6420 cat >>conftest.
$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6426 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
6433 rm -f conftest.
$ac_objext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435 (eval $ac_compile) 2>conftest.er1
6437 grep -v '^ *+' conftest.er1
>conftest.err
6439 cat conftest.err
>&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try
='test -z "$ac_c_werror_flag"
6443 || test ! -s conftest.err'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try
='test -s conftest.$ac_objext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 ac_lo
=$ac_mid; break
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.
$ac_ext >&5
6460 ac_hi
=`expr '(' $ac_mid ')' - 1`
6461 if test $ac_mid -le $ac_hi; then
6465 ac_mid
=`expr 2 '*' $ac_mid`
6467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.
$ac_ext >&5
6475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6477 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6478 # Binary search between lo and hi bounds.
6479 while test "x$ac_lo" != "x$ac_hi"; do
6480 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6481 cat >conftest.
$ac_ext <<_ACEOF
6484 cat confdefs.h
>>conftest.
$ac_ext
6485 cat >>conftest.
$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 $ac_includes_default
6491 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
6498 rm -f conftest.
$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6502 grep -v '^ *+' conftest.er1
>conftest.err
6504 cat conftest.err
>&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try
='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try
='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.
$ac_ext >&5
6525 ac_lo
=`expr '(' $ac_mid ')' + 1`
6527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6530 ?
*) ac_cv_sizeof_unsigned_long
=$ac_lo;;
6531 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
6532 See \`config.log' for more details." >&5
6533 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
6534 See \`config.log' for more details." >&2;}
6535 { (exit 1); exit 1; }; } ;;
6538 if test "$cross_compiling" = yes; then
6539 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6540 See \`config.log' for more details." >&5
6541 echo "$as_me: error: cannot run test program while cross compiling
6542 See \`config.log' for more details." >&2;}
6543 { (exit 1); exit 1; }; }
6545 cat >conftest.
$ac_ext <<_ACEOF
6548 cat confdefs.h
>>conftest.
$ac_ext
6549 cat >>conftest.
$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 $ac_includes_default
6552 long longval () { return (long) (sizeof (unsigned long)); }
6553 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
6560 FILE *f = fopen ("conftest.val", "w");
6563 if (((long) (sizeof (unsigned long))) < 0)
6565 long i = longval ();
6566 if (i != ((long) (sizeof (unsigned long))))
6568 fprintf (f, "%ld\n", i);
6572 unsigned long i = ulongval ();
6573 if (i != ((long) (sizeof (unsigned long))))
6575 fprintf (f, "%lu\n", i);
6577 exit (ferror (f) || fclose (f) != 0);
6583 rm -f conftest
$ac_exeext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6585 (eval $ac_link) 2>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_sizeof_unsigned_long
=`cat conftest.val`
6596 echo "$as_me: program exited with status $ac_status" >&5
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.
$ac_ext >&5
6601 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
6602 See \`config.log' for more details." >&5
6603 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
6604 See \`config.log' for more details." >&2;}
6605 { (exit 1); exit 1; }; }
6607 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6612 ac_cv_sizeof_unsigned_long
=0
6615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
6616 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
6617 cat >>confdefs.h
<<_ACEOF
6618 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
6623 cat >confcache
<<\_ACEOF
6624 # This file is a shell script that caches the results of configure
6625 # tests run on this system so they can be shared between configure
6626 # scripts and configure runs, see configure's option --config-cache.
6627 # It is not useful on other systems. If it contains results you don't
6628 # want to keep, you may remove or edit it.
6630 # config.status only pays attention to the cache file if you give it
6631 # the --recheck option to rerun configure.
6633 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6634 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6639 # The following way of writing the cache mishandles newlines in values,
6640 # but we know of no workaround that is simple, portable, and efficient.
6641 # So, don't put newlines in cache variables' values.
6642 # Ultrix sh set writes to stderr and can't be redirected directly,
6643 # and sets the high bit in the cache file unless we assign to the vars.
6646 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6648 # `set' does not quote correctly, so add quotes (double-quote
6649 # substitution turns \\\\ into \\, and sed turns \\ into \).
6652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6655 # `set' quotes correctly as required by POSIX, so do not add quotes.
6657 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6666 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6668 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6669 if test -w $cache_file; then
6670 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6671 cat confcache
>$cache_file
6673 echo "not updating unwritable cache $cache_file"
6679 echo "$as_me:$LINENO: checking for socklen_t" >&5
6680 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6681 if test "${ac_cv_type_socklen_t+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.
$ac_ext <<_ACEOF
6687 cat confdefs.h
>>conftest.
$ac_ext
6688 cat >>conftest.
$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 #include <sys/types.h>
6691 #include <sys/socket.h>
6696 if ((socklen_t *) 0)
6698 if (sizeof (socklen_t))
6704 rm -f conftest.
$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>conftest.er1
6708 grep -v '^ *+' conftest.er1
>conftest.err
6710 cat conftest.err
>&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try
='test -z "$ac_c_werror_flag"
6714 || test ! -s conftest.err'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; } &&
6720 { ac_try
='test -s conftest.$ac_objext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 ac_cv_type_socklen_t
=yes
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.
$ac_ext >&5
6731 ac_cv_type_socklen_t
=no
6733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6735 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6736 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6737 if test $ac_cv_type_socklen_t = yes; then
6741 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
6742 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
6743 if test "${curl_cv_socklen_t_equiv+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 # Systems have either "struct sockaddr *" or
6748 # "void *" as the second argument to getpeername
6749 curl_cv_socklen_t_equiv
=
6750 for arg2
in "struct sockaddr" void
; do
6751 for t
in int size_t unsigned long
"unsigned long"; do
6752 cat >conftest.
$ac_ext <<_ACEOF
6755 cat confdefs.h
>>conftest.
$ac_ext
6756 cat >>conftest.
$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6759 #include <sys/types.h>
6760 #include <sys/socket.h>
6762 int getpeername (int, $arg2 *, $t *);
6769 getpeername(0,0,&len);
6775 rm -f conftest.
$ac_objext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777 (eval $ac_compile) 2>conftest.er1
6779 grep -v '^ *+' conftest.er1
>conftest.err
6781 cat conftest.err
>&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } &&
6784 { ac_try
='test -z "$ac_c_werror_flag"
6785 || test ! -s conftest.err'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; } &&
6791 { ac_try
='test -s conftest.$ac_objext'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6798 curl_cv_socklen_t_equiv
="$t"
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.
$ac_ext >&5
6806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6810 if test "x$curl_cv_socklen_t_equiv" = x
; then
6811 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
6812 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
6813 { (exit 1); exit 1; }; }
6818 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
6819 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
6821 cat >>confdefs.h
<<_ACEOF
6822 #define socklen_t $curl_cv_socklen_t_equiv
6828 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6829 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6830 if test "${ac_cv_type_signal+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 cat >conftest.
$ac_ext <<_ACEOF
6836 cat confdefs.h
>>conftest.
$ac_ext
6837 cat >>conftest.
$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 #include <sys/types.h>
6845 extern "C" void (*signal (int, void (*)(int)))(int);
6847 void (*signal ()) ();
6858 rm -f conftest.
$ac_objext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>conftest.er1
6862 grep -v '^ *+' conftest.er1
>conftest.err
6864 cat conftest.err
>&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try
='test -z "$ac_c_werror_flag"
6868 || test ! -s conftest.err'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; } &&
6874 { ac_try
='test -s conftest.$ac_objext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 ac_cv_type_signal
=void
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.
$ac_ext >&5
6885 ac_cv_type_signal
=int
6887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6889 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6890 echo "${ECHO_T}$ac_cv_type_signal" >&6
6892 cat >>confdefs.h
<<_ACEOF
6893 #define RETSIGTYPE $ac_cv_type_signal
6898 echo "$as_me:$LINENO: checking for library containing socket" >&5
6899 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
6900 if test "${ac_cv_search_socket+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 ac_func_search_save_LIBS
=$LIBS
6904 ac_cv_search_socket
=no
6905 cat >conftest.
$ac_ext <<_ACEOF
6908 cat confdefs.h
>>conftest.
$ac_ext
6909 cat >>conftest.
$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6912 /* Override any gcc2 internal prototype to avoid an error. */
6916 /* We use char because int might match the return type of a gcc2
6917 builtin and then its argument prototype would still apply. */
6927 rm -f conftest.
$ac_objext conftest
$ac_exeext
6928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929 (eval $ac_link) 2>conftest.er1
6931 grep -v '^ *+' conftest.er1
>conftest.err
6933 cat conftest.err
>&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try
='test -z "$ac_c_werror_flag"
6937 || test ! -s conftest.err'
6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; } &&
6943 { ac_try
='test -s conftest$ac_exeext'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6949 ac_cv_search_socket
="none required"
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.
$ac_ext >&5
6955 rm -f conftest.err conftest.
$ac_objext \
6956 conftest
$ac_exeext conftest.
$ac_ext
6957 if test "$ac_cv_search_socket" = no
; then
6958 for ac_lib
in socket
; do
6959 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6960 cat >conftest.
$ac_ext <<_ACEOF
6963 cat confdefs.h
>>conftest.
$ac_ext
6964 cat >>conftest.
$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6967 /* Override any gcc2 internal prototype to avoid an error. */
6971 /* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6982 rm -f conftest.
$ac_objext conftest
$ac_exeext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984 (eval $ac_link) 2>conftest.er1
6986 grep -v '^ *+' conftest.er1
>conftest.err
6988 cat conftest.err
>&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try
='test -z "$ac_c_werror_flag"
6992 || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try
='test -s conftest$ac_exeext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_search_socket
="-l$ac_lib"
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.
$ac_ext >&5
7011 rm -f conftest.err conftest.
$ac_objext \
7012 conftest
$ac_exeext conftest.
$ac_ext
7015 LIBS
=$ac_func_search_save_LIBS
7017 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7018 echo "${ECHO_T}$ac_cv_search_socket" >&6
7019 if test "$ac_cv_search_socket" != no
; then
7020 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
7025 echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7026 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6
7027 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 ac_func_search_save_LIBS
=$LIBS
7031 ac_cv_search_inet_ntoa
=no
7032 cat >conftest.
$ac_ext <<_ACEOF
7035 cat confdefs.h
>>conftest.
$ac_ext
7036 cat >>conftest.
$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7039 /* Override any gcc2 internal prototype to avoid an error. */
7043 /* We use char because int might match the return type of a gcc2
7044 builtin and then its argument prototype would still apply. */
7054 rm -f conftest.
$ac_objext conftest
$ac_exeext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056 (eval $ac_link) 2>conftest.er1
7058 grep -v '^ *+' conftest.er1
>conftest.err
7060 cat conftest.err
>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try
='test -z "$ac_c_werror_flag"
7064 || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try
='test -s conftest$ac_exeext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_search_inet_ntoa
="none required"
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.
$ac_ext >&5
7082 rm -f conftest.err conftest.
$ac_objext \
7083 conftest
$ac_exeext conftest.
$ac_ext
7084 if test "$ac_cv_search_inet_ntoa" = no
; then
7085 for ac_lib
in nsl
; do
7086 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7087 cat >conftest.
$ac_ext <<_ACEOF
7090 cat confdefs.h
>>conftest.
$ac_ext
7091 cat >>conftest.
$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7094 /* Override any gcc2 internal prototype to avoid an error. */
7098 /* We use char because int might match the return type of a gcc2
7099 builtin and then its argument prototype would still apply. */
7109 rm -f conftest.
$ac_objext conftest
$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>conftest.er1
7113 grep -v '^ *+' conftest.er1
>conftest.err
7115 cat conftest.err
>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try
='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try
='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_search_inet_ntoa
="-l$ac_lib"
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.
$ac_ext >&5
7138 rm -f conftest.err conftest.
$ac_objext \
7139 conftest
$ac_exeext conftest.
$ac_ext
7142 LIBS
=$ac_func_search_save_LIBS
7144 echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7145 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6
7146 if test "$ac_cv_search_inet_ntoa" != no
; then
7147 test "$ac_cv_search_inet_ntoa" = "none required" || LIBS
="$ac_cv_search_inet_ntoa $LIBS"
7152 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7153 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7154 if test "${ac_cv_search_gethostbyname+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 ac_func_search_save_LIBS
=$LIBS
7158 ac_cv_search_gethostbyname
=no
7159 cat >conftest.
$ac_ext <<_ACEOF
7162 cat confdefs.h
>>conftest.
$ac_ext
7163 cat >>conftest.
$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7166 /* Override any gcc2 internal prototype to avoid an error. */
7170 /* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7172 char gethostbyname ();
7181 rm -f conftest.
$ac_objext conftest
$ac_exeext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7183 (eval $ac_link) 2>conftest.er1
7185 grep -v '^ *+' conftest.er1
>conftest.err
7187 cat conftest.err
>&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try
='test -z "$ac_c_werror_flag"
7191 || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try
='test -s conftest$ac_exeext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_search_gethostbyname
="none required"
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.
$ac_ext >&5
7209 rm -f conftest.err conftest.
$ac_objext \
7210 conftest
$ac_exeext conftest.
$ac_ext
7211 if test "$ac_cv_search_gethostbyname" = no
; then
7212 for ac_lib
in resolv nsl
; do
7213 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7214 cat >conftest.
$ac_ext <<_ACEOF
7217 cat confdefs.h
>>conftest.
$ac_ext
7218 cat >>conftest.
$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7221 /* Override any gcc2 internal prototype to avoid an error. */
7225 /* We use char because int might match the return type of a gcc2
7226 builtin and then its argument prototype would still apply. */
7227 char gethostbyname ();
7236 rm -f conftest.
$ac_objext conftest
$ac_exeext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7238 (eval $ac_link) 2>conftest.er1
7240 grep -v '^ *+' conftest.er1
>conftest.err
7242 cat conftest.err
>&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try
='test -z "$ac_c_werror_flag"
7246 || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try
='test -s conftest$ac_exeext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 ac_cv_search_gethostbyname
="-l$ac_lib"
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.
$ac_ext >&5
7265 rm -f conftest.err conftest.
$ac_objext \
7266 conftest
$ac_exeext conftest.
$ac_ext
7269 LIBS
=$ac_func_search_save_LIBS
7271 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7272 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7273 if test "$ac_cv_search_gethostbyname" != no
; then
7274 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
7281 for ac_header
in unistd.h vfork.h
7283 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7285 echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7293 # Is the header compilable?
7294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7296 cat >conftest.
$ac_ext <<_ACEOF
7299 cat confdefs.h
>>conftest.
$ac_ext
7300 cat >>conftest.
$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 $ac_includes_default
7303 #include <$ac_header>
7305 rm -f conftest.
$ac_objext
7306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7307 (eval $ac_compile) 2>conftest.er1
7309 grep -v '^ *+' conftest.er1
>conftest.err
7311 cat conftest.err
>&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } &&
7314 { ac_try
='test -z "$ac_c_werror_flag"
7315 || test ! -s conftest.err'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; } &&
7321 { ac_try
='test -s conftest.$ac_objext'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7327 ac_header_compiler
=yes
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.
$ac_ext >&5
7332 ac_header_compiler
=no
7334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7336 echo "${ECHO_T}$ac_header_compiler" >&6
7338 # Is the header present?
7339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7341 cat >conftest.
$ac_ext <<_ACEOF
7344 cat confdefs.h
>>conftest.
$ac_ext
7345 cat >>conftest.
$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #include <$ac_header>
7349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7350 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7352 grep -v '^ *+' conftest.er1
>conftest.err
7354 cat conftest.err
>&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } >/dev
/null
; then
7357 if test -s conftest.err
; then
7358 ac_cpp_err
=$ac_c_preproc_warn_flag
7359 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7366 if test -z "$ac_cpp_err"; then
7367 ac_header_preproc
=yes
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.
$ac_ext >&5
7372 ac_header_preproc
=no
7374 rm -f conftest.err conftest.
$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7376 echo "${ECHO_T}$ac_header_preproc" >&6
7378 # So? What about this header?
7379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7385 ac_header_preproc
=yes
7390 echo "$as_me:$LINENO: checking for $ac_header" >&5
7391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 eval "$as_ac_Header=\$ac_header_preproc"
7397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7402 cat >>confdefs.h
<<_ACEOF
7403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7412 for ac_func
in fork vfork
7414 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7415 echo "$as_me:$LINENO: checking for $ac_func" >&5
7416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7417 if eval "test \"\${$as_ac_var+set}\" = set"; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 cat >conftest.
$ac_ext <<_ACEOF
7423 cat confdefs.h
>>conftest.
$ac_ext
7424 cat >>conftest.
$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7428 #define $ac_func innocuous_$ac_func
7430 /* System header to define __stub macros and hopefully few prototypes,
7431 which can conflict with char $ac_func (); below.
7432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433 <limits.h> exists even on freestanding compilers. */
7436 # include <limits.h>
7438 # include <assert.h>
7443 /* Override any gcc2 internal prototype to avoid an error. */
7448 /* We use char because int might match the return type of a gcc2
7449 builtin and then its argument prototype would still apply. */
7451 /* The GNU C library defines this for functions which it implements
7452 to always fail with ENOSYS. Some functions are actually named
7453 something starting with __ and the normal name is an alias. */
7454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7457 char (*f) () = $ac_func;
7466 return f != $ac_func;
7471 rm -f conftest.
$ac_objext conftest
$ac_exeext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7473 (eval $ac_link) 2>conftest.er1
7475 grep -v '^ *+' conftest.er1
>conftest.err
7477 cat conftest.err
>&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } &&
7480 { ac_try
='test -z "$ac_c_werror_flag"
7481 || test ! -s conftest.err'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; } &&
7487 { ac_try
='test -s conftest$ac_exeext'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 eval "$as_ac_var=yes"
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.
$ac_ext >&5
7498 eval "$as_ac_var=no"
7500 rm -f conftest.err conftest.
$ac_objext \
7501 conftest
$ac_exeext conftest.
$ac_ext
7503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7505 if test `eval echo '${'$as_ac_var'}'` = yes; then
7506 cat >>confdefs.h
<<_ACEOF
7507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7513 if test "x$ac_cv_func_fork" = xyes
; then
7514 echo "$as_me:$LINENO: checking for working fork" >&5
7515 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7516 if test "${ac_cv_func_fork_works+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 if test "$cross_compiling" = yes; then
7520 ac_cv_func_fork_works
=cross
7522 cat >conftest.
$ac_ext <<_ACEOF
7523 /* By Ruediger Kuhlmann. */
7524 #include <sys/types.h>
7526 # include <unistd.h>
7528 /* Some systems only have a dummy stub for fork() */
7536 rm -f conftest
$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538 (eval $ac_link) 2>&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_cv_func_fork_works
=yes
7549 echo "$as_me: program exited with status $ac_status" >&5
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.
$ac_ext >&5
7554 ac_cv_func_fork_works
=no
7556 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7559 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7560 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7563 ac_cv_func_fork_works
=$ac_cv_func_fork
7565 if test "x$ac_cv_func_fork_works" = xcross
; then
7567 *-*-amigaos* |
*-*-msdosdjgpp*)
7568 # Override, as these systems have only a dummy fork() stub
7569 ac_cv_func_fork_works
=no
7572 ac_cv_func_fork_works
=yes
7575 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7576 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7578 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7579 if test "x$ac_cv_func_vfork" = xyes
; then
7580 echo "$as_me:$LINENO: checking for working vfork" >&5
7581 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7582 if test "${ac_cv_func_vfork_works+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 if test "$cross_compiling" = yes; then
7586 ac_cv_func_vfork_works
=cross
7588 cat >conftest.
$ac_ext <<_ACEOF
7591 cat confdefs.h
>>conftest.
$ac_ext
7592 cat >>conftest.
$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 /* Thanks to Paul Eggert for this test. */
7597 #include <sys/types.h>
7598 #include <sys/stat.h>
7599 #include <sys/wait.h>
7601 # include <unistd.h>
7606 /* On some sparc systems, changes by the child to local and incoming
7607 argument registers are propagated back to the parent. The compiler
7608 is told about this with #include <vfork.h>, but some compilers
7609 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7610 static variable whose address is put into a register that is
7611 clobbered by the vfork. */
7614 sparc_address_test (int arg)
7616 sparc_address_test (arg) int arg;
7637 pid_t parent = getpid ();
7640 sparc_address_test (0);
7645 /* Here is another test for sparc vfork register problems. This
7646 test uses lots of local variables, at least as many local
7647 variables as main has allocated so far including compiler
7648 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7649 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7650 reuse the register of parent for one of the local variables,
7651 since it will think that parent can't possibly be used any more
7652 in this routine. Assigning to the local variable will thus
7653 munge parent in the parent process. */
7655 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7656 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7657 /* Convince the compiler that p..p7 are live; otherwise, it might
7658 use the same hardware register for all 8 local variables. */
7659 if (p != p1 || p != p2 || p != p3 || p != p4
7660 || p != p5 || p != p6 || p != p7)
7663 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7664 from child file descriptors. If the child closes a descriptor
7665 before it execs or exits, this munges the parent's descriptor
7666 as well. Test for this by closing stdout in the child. */
7667 _exit(close(fileno(stdout)) != 0);
7672 while (wait(&status) != child)
7675 /* Was there some problem with vforking? */
7678 /* Did the child fail? (This shouldn't happen.) */
7681 /* Did the vfork/compiler bug occur? */
7682 || parent != getpid()
7684 /* Did the file descriptor bug occur? */
7685 || fstat(fileno(stdout), &st) != 0
7690 rm -f conftest
$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692 (eval $ac_link) 2>&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 ac_cv_func_vfork_works
=yes
7703 echo "$as_me: program exited with status $ac_status" >&5
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.
$ac_ext >&5
7708 ac_cv_func_vfork_works
=no
7710 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7713 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7714 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7717 if test "x$ac_cv_func_fork_works" = xcross
; then
7718 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7719 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7720 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7723 if test "x$ac_cv_func_vfork_works" = xyes
; then
7725 cat >>confdefs.h
<<\_ACEOF
7726 #define HAVE_WORKING_VFORK 1
7731 cat >>confdefs.h
<<\_ACEOF
7736 if test "x$ac_cv_func_fork_works" = xyes
; then
7738 cat >>confdefs.h
<<\_ACEOF
7739 #define HAVE_WORKING_FORK 1
7776 for ac_func
in daemon chroot getpwnam setuid nice system getpid dup dup2 getpass strerror syslog openlog mlockall getgrnam setgid setgroups stat flock readv writev setsockopt getsockopt setsid chdir gettimeofday putenv getpeername unlink poll chsize ftruncate
7778 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7779 echo "$as_me:$LINENO: checking for $ac_func" >&5
7780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7781 if eval "test \"\${$as_ac_var+set}\" = set"; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 cat >conftest.
$ac_ext <<_ACEOF
7787 cat confdefs.h
>>conftest.
$ac_ext
7788 cat >>conftest.
$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7792 #define $ac_func innocuous_$ac_func
7794 /* System header to define __stub macros and hopefully few prototypes,
7795 which can conflict with char $ac_func (); below.
7796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7797 <limits.h> exists even on freestanding compilers. */
7800 # include <limits.h>
7802 # include <assert.h>
7807 /* Override any gcc2 internal prototype to avoid an error. */
7812 /* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7815 /* The GNU C library defines this for functions which it implements
7816 to always fail with ENOSYS. Some functions are actually named
7817 something starting with __ and the normal name is an alias. */
7818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7821 char (*f) () = $ac_func;
7830 return f != $ac_func;
7835 rm -f conftest.
$ac_objext conftest
$ac_exeext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837 (eval $ac_link) 2>conftest.er1
7839 grep -v '^ *+' conftest.er1
>conftest.err
7841 cat conftest.err
>&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } &&
7844 { ac_try
='test -z "$ac_c_werror_flag"
7845 || test ! -s conftest.err'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; } &&
7851 { ac_try
='test -s conftest$ac_exeext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 eval "$as_ac_var=yes"
7859 echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.
$ac_ext >&5
7862 eval "$as_ac_var=no"
7864 rm -f conftest.err conftest.
$ac_objext \
7865 conftest
$ac_exeext conftest.
$ac_ext
7867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7869 if test `eval echo '${'$as_ac_var'}'` = yes; then
7870 cat >>confdefs.h
<<_ACEOF
7871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7877 cat >confcache
<<\_ACEOF
7878 # This file is a shell script that caches the results of configure
7879 # tests run on this system so they can be shared between configure
7880 # scripts and configure runs, see configure's option --config-cache.
7881 # It is not useful on other systems. If it contains results you don't
7882 # want to keep, you may remove or edit it.
7884 # config.status only pays attention to the cache file if you give it
7885 # the --recheck option to rerun configure.
7887 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7888 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7893 # The following way of writing the cache mishandles newlines in values,
7894 # but we know of no workaround that is simple, portable, and efficient.
7895 # So, don't put newlines in cache variables' values.
7896 # Ultrix sh set writes to stderr and can't be redirected directly,
7897 # and sets the high bit in the cache file unless we assign to the vars.
7900 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7902 # `set' does not quote correctly, so add quotes (double-quote
7903 # substitution turns \\\\ into \\, and sed turns \\ into \).
7906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7909 # `set' quotes correctly as required by POSIX, so do not add quotes.
7911 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7918 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7920 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7922 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7923 if test -w $cache_file; then
7924 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7925 cat confcache
>$cache_file
7927 echo "not updating unwritable cache $cache_file"
7932 echo "$as_me:$LINENO: checking for working memcmp" >&5
7933 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
7934 if test "${ac_cv_func_memcmp_working+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 if test "$cross_compiling" = yes; then
7938 ac_cv_func_memcmp_working
=no
7940 cat >conftest.
$ac_ext <<_ACEOF
7943 cat confdefs.h
>>conftest.
$ac_ext
7944 cat >>conftest.
$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 $ac_includes_default
7951 /* Some versions of memcmp are not 8-bit clean. */
7952 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7953 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7956 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7957 or more and with at least one buffer not starting on a 4-byte boundary.
7958 William Lewis provided this test program. */
7963 for (i = 0; i < 4; i++)
7967 strcpy (a, "--------01111111");
7968 strcpy (b, "--------10000000");
7969 if (memcmp (a, b, 16) >= 0)
7979 rm -f conftest
$ac_exeext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7990 ac_cv_func_memcmp_working
=yes
7992 echo "$as_me: program exited with status $ac_status" >&5
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.
$ac_ext >&5
7997 ac_cv_func_memcmp_working
=no
7999 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8002 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8003 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8004 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
8005 "memcmp.$ac_objext" | \
8006 *" memcmp.$ac_objext" | \
8007 "memcmp.$ac_objext "* | \
8008 *" memcmp.$ac_objext "* ) ;;
8009 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
8030 for ac_func
in socket recv recvfrom send sendto listen accept connect
bind select gethostbyname inet_ntoa
time ctime memset vsnprintf
8032 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8033 echo "$as_me:$LINENO: checking for $ac_func" >&5
8034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8035 if eval "test \"\${$as_ac_var+set}\" = set"; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 cat >conftest.
$ac_ext <<_ACEOF
8041 cat confdefs.h
>>conftest.
$ac_ext
8042 cat >>conftest.
$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8046 #define $ac_func innocuous_$ac_func
8048 /* System header to define __stub macros and hopefully few prototypes,
8049 which can conflict with char $ac_func (); below.
8050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8051 <limits.h> exists even on freestanding compilers. */
8054 # include <limits.h>
8056 # include <assert.h>
8061 /* Override any gcc2 internal prototype to avoid an error. */
8066 /* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8069 /* The GNU C library defines this for functions which it implements
8070 to always fail with ENOSYS. Some functions are actually named
8071 something starting with __ and the normal name is an alias. */
8072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8075 char (*f) () = $ac_func;
8084 return f != $ac_func;
8089 rm -f conftest.
$ac_objext conftest
$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>conftest.er1
8093 grep -v '^ *+' conftest.er1
>conftest.err
8095 cat conftest.err
>&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try
='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try
='test -s conftest$ac_exeext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8111 eval "$as_ac_var=yes"
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.
$ac_ext >&5
8116 eval "$as_ac_var=no"
8118 rm -f conftest.err conftest.
$ac_objext \
8119 conftest
$ac_exeext conftest.
$ac_ext
8121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8123 if test `eval echo '${'$as_ac_var'}'` = yes; then
8124 cat >>confdefs.h
<<_ACEOF
8125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8129 { { echo "$as_me:$LINENO: error: Required library function not found" >&5
8130 echo "$as_me: error: Required library function not found" >&2;}
8131 { (exit 1); exit 1; }; }
8137 { echo "$as_me:$LINENO: checking for working epoll implementation..." >&5
8138 echo "$as_me: checking for working epoll implementation..." >&6;}
8139 OLDLDFLAGS
="$LDFLAGS"
8140 LDFLAGS
="$LDFLAGS -Wl,--fatal-warnings"
8142 for ac_func
in epoll_create
8144 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8145 echo "$as_me:$LINENO: checking for $ac_func" >&5
8146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8147 if eval "test \"\${$as_ac_var+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 cat >conftest.
$ac_ext <<_ACEOF
8153 cat confdefs.h
>>conftest.
$ac_ext
8154 cat >>conftest.
$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8158 #define $ac_func innocuous_$ac_func
8160 /* System header to define __stub macros and hopefully few prototypes,
8161 which can conflict with char $ac_func (); below.
8162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163 <limits.h> exists even on freestanding compilers. */
8166 # include <limits.h>
8168 # include <assert.h>
8173 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8181 /* The GNU C library defines this for functions which it implements
8182 to always fail with ENOSYS. Some functions are actually named
8183 something starting with __ and the normal name is an alias. */
8184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8187 char (*f) () = $ac_func;
8196 return f != $ac_func;
8201 rm -f conftest.
$ac_objext conftest
$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>conftest.er1
8205 grep -v '^ *+' conftest.er1
>conftest.err
8207 cat conftest.err
>&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try
='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try
='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 eval "$as_ac_var=yes"
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.
$ac_ext >&5
8228 eval "$as_ac_var=no"
8230 rm -f conftest.err conftest.
$ac_objext \
8231 conftest
$ac_exeext conftest.
$ac_ext
8233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8235 if test `eval echo '${'$as_ac_var'}'` = yes; then
8236 cat >>confdefs.h
<<_ACEOF
8237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8239 cat >>confdefs.h
<<\_ACEOF
8240 #define HAVE_EPOLL_CREATE 1
8246 LDFLAGS
="$OLDLDFLAGS"
8249 if test "$MEMCHECK" = "valgrind"; then
8250 { echo "$as_me:$LINENO: checking for valgrind tool and Header files..." >&5
8251 echo "$as_me: checking for valgrind tool and Header files..." >&6;}
8252 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
8253 echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
8254 echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6
8255 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
8259 echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6
8261 # Is the header compilable?
8262 echo "$as_me:$LINENO: checking valgrind/memcheck.h usability" >&5
8263 echo $ECHO_N "checking valgrind/memcheck.h usability... $ECHO_C" >&6
8264 cat >conftest.
$ac_ext <<_ACEOF
8267 cat confdefs.h
>>conftest.
$ac_ext
8268 cat >>conftest.
$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8270 $ac_includes_default
8271 #include <valgrind/memcheck.h>
8273 rm -f conftest.
$ac_objext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275 (eval $ac_compile) 2>conftest.er1
8277 grep -v '^ *+' conftest.er1
>conftest.err
8279 cat conftest.err
>&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try
='test -z "$ac_c_werror_flag"
8283 || test ! -s conftest.err'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; } &&
8289 { ac_try
='test -s conftest.$ac_objext'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 ac_header_compiler
=yes
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.
$ac_ext >&5
8300 ac_header_compiler
=no
8302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8304 echo "${ECHO_T}$ac_header_compiler" >&6
8306 # Is the header present?
8307 echo "$as_me:$LINENO: checking valgrind/memcheck.h presence" >&5
8308 echo $ECHO_N "checking valgrind/memcheck.h presence... $ECHO_C" >&6
8309 cat >conftest.
$ac_ext <<_ACEOF
8312 cat confdefs.h
>>conftest.
$ac_ext
8313 cat >>conftest.
$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 #include <valgrind/memcheck.h>
8317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8318 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8320 grep -v '^ *+' conftest.er1
>conftest.err
8322 cat conftest.err
>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } >/dev
/null
; then
8325 if test -s conftest.err
; then
8326 ac_cpp_err
=$ac_c_preproc_warn_flag
8327 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8334 if test -z "$ac_cpp_err"; then
8335 ac_header_preproc
=yes
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.
$ac_ext >&5
8340 ac_header_preproc
=no
8342 rm -f conftest.err conftest.
$ac_ext
8343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8344 echo "${ECHO_T}$ac_header_preproc" >&6
8346 # So? What about this header?
8347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8349 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&5
8350 echo "$as_me: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8351 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&5
8352 echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&2;}
8353 ac_header_preproc
=yes
8358 echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
8359 echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6
8360 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 ac_cv_header_valgrind_memcheck_h
=$ac_header_preproc
8365 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
8366 echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6
8369 if test $ac_cv_header_valgrind_memcheck_h = yes; then
8372 cat >>confdefs.h
<<\_ACEOF
8373 #define USE_VALGRIND 1
8376 CFLAGS
="-g -fno-inline"
8379 { { echo "$as_me:$LINENO: error: valgrind headers not found." >&5
8380 echo "$as_me: error: valgrind headers not found." >&2;}
8381 { (exit 1); exit 1; }; }
8389 if test "$PTHREAD" = "yes"; then
8390 { echo "$as_me:$LINENO: checking for pthread support..." >&5
8391 echo "$as_me: checking for pthread support..." >&6;}
8392 echo "$as_me:$LINENO: result: ********* WARNING: pthread support is experimental for OpenVPN 2.0" >&5
8393 echo "${ECHO_T}********* WARNING: pthread support is experimental for OpenVPN 2.0" >&6
8398 # We used to check for pthread.h first, but this fails if pthread.h
8399 # requires special compiler flags (e.g. on True64 or Sequent).
8400 # It gets checked for in the link test anyway.
8402 # First of all, check if the user has set any of the PTHREAD_LIBS,
8403 # etcetera environment variables, and if threads linking works using
8405 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
8406 save_CFLAGS
="$CFLAGS"
8407 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8409 LIBS
="$PTHREAD_LIBS $LIBS"
8410 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8411 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
8412 cat >conftest.
$ac_ext <<_ACEOF
8415 cat confdefs.h
>>conftest.
$ac_ext
8416 cat >>conftest.
$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8419 /* Override any gcc2 internal prototype to avoid an error. */
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425 char pthread_join ();
8434 rm -f conftest.
$ac_objext conftest
$ac_exeext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>conftest.er1
8438 grep -v '^ *+' conftest.er1
>conftest.err
8440 cat conftest.err
>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try
='test -z "$ac_c_werror_flag"
8444 || test ! -s conftest.err'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try
='test -s conftest$ac_exeext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.
$ac_ext >&5
8462 rm -f conftest.err conftest.
$ac_objext \
8463 conftest
$ac_exeext conftest.
$ac_ext
8464 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
8465 echo "${ECHO_T}$acx_pthread_ok" >&6
8466 if test x
"$acx_pthread_ok" = xno
; then
8471 CFLAGS
="$save_CFLAGS"
8474 # We must check for the threads library under a number of different
8475 # names; the ordering is very important because some systems
8476 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8477 # libraries is broken (non-POSIX).
8479 # Create a list of thread flags to try. Items starting with a "-" are
8480 # C compiler flags, and other items are library names, except for "none"
8481 # which indicates that we try without any flags at all.
8483 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
8485 # The ordering *is* (sometimes) important. Some notes on the
8486 # individual items follow:
8488 # pthreads: AIX (must check this before -lpthread)
8489 # none: in case threads are in libc; should be tried before -Kthread and
8490 # other compiler flags to prevent continual compiler warnings
8491 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8492 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8493 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8494 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8495 # -pthreads: Solaris/gcc
8496 # -mthreads: Mingw32/gcc, Lynx/gcc
8497 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8498 # doesn't hurt to check since this sometimes defines pthreads too;
8499 # also defines -D_REENTRANT)
8500 # pthread: Linux, etcetera
8501 # --thread-safe: KAI C++
8506 # On Solaris (at least, for some versions), libc contains stubbed
8507 # (non-functional) versions of the pthreads routines, so link-based
8508 # tests will erroneously succeed. (We need to link with -pthread or
8509 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8510 # a function called by this macro, so we could check for that, but
8511 # who knows whether they'll stub that too in a future libc.) So,
8512 # we'll just look for -pthreads and -lpthread first:
8514 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
8518 if test x
"$acx_pthread_ok" = xno
; then
8519 for flag
in $acx_pthread_flags; do
8523 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
8524 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
8528 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
8529 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
8530 PTHREAD_CFLAGS
="$flag"
8534 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
8535 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
8536 PTHREAD_LIBS
="-l$flag"
8541 save_CFLAGS
="$CFLAGS"
8542 LIBS
="$PTHREAD_LIBS $LIBS"
8543 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8545 # Check for various functions. We must include pthread.h,
8546 # since some functions may be macros. (On the Sequent, we
8547 # need a special flag -Kthread to make this header compile.)
8548 # We check for pthread_join because it is in -lpthread on IRIX
8549 # while pthread_create is in libc. We check for pthread_attr_init
8550 # due to DEC craziness with -lpthreads. We check for
8551 # pthread_cleanup_push because it is one of the few pthread
8552 # functions on Solaris that doesn't have a non-functional libc stub.
8553 # We try pthread_create on general principles.
8554 cat >conftest.
$ac_ext <<_ACEOF
8557 cat confdefs.h
>>conftest.
$ac_ext
8558 cat >>conftest.
$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8560 #include <pthread.h>
8564 pthread_t th; pthread_join(th, 0);
8565 pthread_attr_init(0); pthread_cleanup_push(0, 0);
8566 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
8571 rm -f conftest.
$ac_objext conftest
$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>conftest.er1
8575 grep -v '^ *+' conftest.er1
>conftest.err
8577 cat conftest.err
>&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try
='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try
='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.
$ac_ext >&5
8599 rm -f conftest.err conftest.
$ac_objext \
8600 conftest
$ac_exeext conftest.
$ac_ext
8603 CFLAGS
="$save_CFLAGS"
8605 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
8606 echo "${ECHO_T}$acx_pthread_ok" >&6
8607 if test "x$acx_pthread_ok" = xyes
; then
8616 # Various other checks:
8617 if test "x$acx_pthread_ok" = xyes
; then
8619 LIBS
="$PTHREAD_LIBS $LIBS"
8620 save_CFLAGS
="$CFLAGS"
8621 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8623 # Detect AIX lossage: threads are created detached by default
8624 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
8625 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
8626 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
8627 cat >conftest.
$ac_ext <<_ACEOF
8630 cat confdefs.h
>>conftest.
$ac_ext
8631 cat >>conftest.
$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 #include <pthread.h>
8637 int attr=PTHREAD_CREATE_JOINABLE;
8642 rm -f conftest.
$ac_objext conftest
$ac_exeext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8644 (eval $ac_link) 2>conftest.er1
8646 grep -v '^ *+' conftest.er1
>conftest.err
8648 cat conftest.err
>&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try
='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try
='test -s conftest$ac_exeext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ok
=PTHREAD_CREATE_JOINABLE
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.
$ac_ext >&5
8671 rm -f conftest.err conftest.
$ac_objext \
8672 conftest
$ac_exeext conftest.
$ac_ext
8673 if test x
"$ok" = xunknown
; then
8674 cat >conftest.
$ac_ext <<_ACEOF
8677 cat confdefs.h
>>conftest.
$ac_ext
8678 cat >>conftest.
$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 #include <pthread.h>
8684 int attr=PTHREAD_CREATE_UNDETACHED;
8689 rm -f conftest.
$ac_objext conftest
$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>conftest.er1
8693 grep -v '^ *+' conftest.er1
>conftest.err
8695 cat conftest.err
>&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try
='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try
='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ok
=PTHREAD_CREATE_UNDETACHED
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.
$ac_ext >&5
8718 rm -f conftest.err conftest.
$ac_objext \
8719 conftest
$ac_exeext conftest.
$ac_ext
8721 if test x
"$ok" != xPTHREAD_CREATE_JOINABLE
; then
8723 cat >>confdefs.h
<<\_ACEOF
8724 #define PTHREAD_CREATE_JOINABLE $ok
8728 echo "$as_me:$LINENO: result: ${ok}" >&5
8729 echo "${ECHO_T}${ok}" >&6
8730 if test x
"$ok" = xunknown
; then
8731 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
8732 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
8735 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
8736 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
8739 *-aix* |
*-freebsd*) flag
="-D_THREAD_SAFE";;
8740 *solaris
* | alpha
*-osf* |
*linux
*) flag
="-D_REENTRANT";;
8742 echo "$as_me:$LINENO: result: ${flag}" >&5
8743 echo "${ECHO_T}${flag}" >&6
8744 if test "x$flag" != xno
; then
8745 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
8749 CFLAGS
="$save_CFLAGS"
8751 # More AIX lossage: must compile with cc_r
8752 # Extract the first word of "cc_r", so it can be a program name with args.
8753 set dummy cc_r
; ac_word
=$2
8754 echo "$as_me:$LINENO: checking for $ac_word" >&5
8755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8756 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 if test -n "$PTHREAD_CC"; then
8760 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
8762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8766 test -z "$as_dir" && as_dir
=.
8767 for ac_exec_ext
in '' $ac_executable_extensions; do
8768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8769 ac_cv_prog_PTHREAD_CC
="cc_r"
8770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8776 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC
="${CC}"
8779 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
8780 if test -n "$PTHREAD_CC"; then
8781 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
8782 echo "${ECHO_T}$PTHREAD_CC" >&6
8784 echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6
8796 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8797 if test x
"$acx_pthread_ok" = xyes
; then
8801 echo "$as_me:$LINENO: result: WARNING: pthread support on OpenBSD is unstable!" >&5
8802 echo "${ECHO_T}WARNING: pthread support on OpenBSD is unstable!" >&6
8803 CFLAGS
="$CFLAGS -pthread"
8806 LIBS
="$PTHREAD_LIBS $LIBS"
8807 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8810 cat >>confdefs.h
<<\_ACEOF
8811 #define USE_PTHREAD 1
8819 echo "$as_me:$LINENO: result: I don't know how to build with pthread support on this platform." >&5
8820 echo "${ECHO_T}I don't know how to build with pthread support on this platform." >&6
8821 { { echo "$as_me:$LINENO: error: try ./configure --disable-pthread" >&5
8822 echo "$as_me: error: try ./configure --disable-pthread" >&2;}
8823 { (exit 1); exit 1; }; }
8831 if test "$MEMCHECK" = "dmalloc"; then
8832 { echo "$as_me:$LINENO: checking for dmalloc Library and Header files..." >&5
8833 echo "$as_me: checking for dmalloc Library and Header files..." >&6;}
8834 if test "${ac_cv_header_dmalloc_h+set}" = set; then
8835 echo "$as_me:$LINENO: checking for dmalloc.h" >&5
8836 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
8837 if test "${ac_cv_header_dmalloc_h+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
8841 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
8843 # Is the header compilable?
8844 echo "$as_me:$LINENO: checking dmalloc.h usability" >&5
8845 echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6
8846 cat >conftest.
$ac_ext <<_ACEOF
8849 cat confdefs.h
>>conftest.
$ac_ext
8850 cat >>conftest.
$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8852 $ac_includes_default
8853 #include <dmalloc.h>
8855 rm -f conftest.
$ac_objext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8857 (eval $ac_compile) 2>conftest.er1
8859 grep -v '^ *+' conftest.er1
>conftest.err
8861 cat conftest.err
>&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } &&
8864 { ac_try
='test -z "$ac_c_werror_flag"
8865 || test ! -s conftest.err'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try
='test -s conftest.$ac_objext'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 ac_header_compiler
=yes
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.
$ac_ext >&5
8882 ac_header_compiler
=no
8884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8886 echo "${ECHO_T}$ac_header_compiler" >&6
8888 # Is the header present?
8889 echo "$as_me:$LINENO: checking dmalloc.h presence" >&5
8890 echo $ECHO_N "checking dmalloc.h presence... $ECHO_C" >&6
8891 cat >conftest.
$ac_ext <<_ACEOF
8894 cat confdefs.h
>>conftest.
$ac_ext
8895 cat >>conftest.
$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 #include <dmalloc.h>
8899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8902 grep -v '^ *+' conftest.er1
>conftest.err
8904 cat conftest.err
>&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } >/dev
/null
; then
8907 if test -s conftest.err
; then
8908 ac_cpp_err
=$ac_c_preproc_warn_flag
8909 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8916 if test -z "$ac_cpp_err"; then
8917 ac_header_preproc
=yes
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.
$ac_ext >&5
8922 ac_header_preproc
=no
8924 rm -f conftest.err conftest.
$ac_ext
8925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8926 echo "${ECHO_T}$ac_header_preproc" >&6
8928 # So? What about this header?
8929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8931 { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
8932 echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8933 { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5
8934 echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;}
8935 ac_header_preproc
=yes
8940 echo "$as_me:$LINENO: checking for dmalloc.h" >&5
8941 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
8942 if test "${ac_cv_header_dmalloc_h+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 ac_cv_header_dmalloc_h
=$ac_header_preproc
8947 echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
8948 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
8951 if test $ac_cv_header_dmalloc_h = yes; then
8952 echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8953 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
8954 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 ac_check_lib_save_LIBS
=$LIBS
8958 LIBS
="-ldmalloc $LIBS"
8959 cat >conftest.
$ac_ext <<_ACEOF
8962 cat confdefs.h
>>conftest.
$ac_ext
8963 cat >>conftest.
$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8966 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8981 rm -f conftest.
$ac_objext conftest
$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983 (eval $ac_link) 2>conftest.er1
8985 grep -v '^ *+' conftest.er1
>conftest.err
8987 cat conftest.err
>&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try
='test -z "$ac_c_werror_flag"
8991 || test ! -s conftest.err'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; } &&
8997 { ac_try
='test -s conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 ac_cv_lib_dmalloc_malloc
=yes
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.
$ac_ext >&5
9008 ac_cv_lib_dmalloc_malloc
=no
9010 rm -f conftest.err conftest.
$ac_objext \
9011 conftest
$ac_exeext conftest.
$ac_ext
9012 LIBS
=$ac_check_lib_save_LIBS
9014 echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
9015 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
9016 if test $ac_cv_lib_dmalloc_malloc = yes; then
9018 if test "$PTHREAD" = "yes"; then
9020 LIBS
="-ldmallocth $LIBS"
9024 LIBS
="-ldmalloc $LIBS"
9028 cat >>confdefs.h
<<\_ACEOF
9034 { { echo "$as_me:$LINENO: error: dmalloc library not found." >&5
9035 echo "$as_me: error: dmalloc library not found." >&2;}
9036 { (exit 1); exit 1; }; }
9041 { { echo "$as_me:$LINENO: error: dmalloc headers not found." >&5
9042 echo "$as_me: error: dmalloc headers not found." >&2;}
9043 { (exit 1); exit 1; }; }
9050 if test "$PLUGINS" = "yes"; then
9051 { echo "$as_me:$LINENO: checking for libdl Library and Header files..." >&5
9052 echo "$as_me: checking for libdl Library and Header files..." >&6;}
9053 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9054 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9055 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
9056 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9060 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
9062 # Is the header compilable?
9063 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9064 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
9065 cat >conftest.
$ac_ext <<_ACEOF
9068 cat confdefs.h
>>conftest.
$ac_ext
9069 cat >>conftest.
$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9071 $ac_includes_default
9074 rm -f conftest.
$ac_objext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076 (eval $ac_compile) 2>conftest.er1
9078 grep -v '^ *+' conftest.er1
>conftest.err
9080 cat conftest.err
>&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try
='test -z "$ac_c_werror_flag"
9084 || test ! -s conftest.err'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; } &&
9090 { ac_try
='test -s conftest.$ac_objext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 ac_header_compiler
=yes
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.
$ac_ext >&5
9101 ac_header_compiler
=no
9103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9105 echo "${ECHO_T}$ac_header_compiler" >&6
9107 # Is the header present?
9108 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9109 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
9110 cat >conftest.
$ac_ext <<_ACEOF
9113 cat confdefs.h
>>conftest.
$ac_ext
9114 cat >>conftest.
$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9119 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9121 grep -v '^ *+' conftest.er1
>conftest.err
9123 cat conftest.err
>&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } >/dev
/null
; then
9126 if test -s conftest.err
; then
9127 ac_cpp_err
=$ac_c_preproc_warn_flag
9128 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9135 if test -z "$ac_cpp_err"; then
9136 ac_header_preproc
=yes
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.
$ac_ext >&5
9141 ac_header_preproc
=no
9143 rm -f conftest.err conftest.
$ac_ext
9144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9145 echo "${ECHO_T}$ac_header_preproc" >&6
9147 # So? What about this header?
9148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9150 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9151 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9153 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9154 ac_header_preproc
=yes
9159 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9160 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
9161 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 ac_cv_header_dlfcn_h
=$ac_header_preproc
9166 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9167 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
9170 if test $ac_cv_header_dlfcn_h = yes; then
9171 echo "$as_me:$LINENO: checking for dlopen" >&5
9172 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9173 if test "${ac_cv_func_dlopen+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 cat >conftest.
$ac_ext <<_ACEOF
9179 cat confdefs.h
>>conftest.
$ac_ext
9180 cat >>conftest.
$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9184 #define dlopen innocuous_dlopen
9186 /* System header to define __stub macros and hopefully few prototypes,
9187 which can conflict with char dlopen (); below.
9188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9189 <limits.h> exists even on freestanding compilers. */
9192 # include <limits.h>
9194 # include <assert.h>
9199 /* Override any gcc2 internal prototype to avoid an error. */
9204 /* We use char because int might match the return type of a gcc2
9205 builtin and then its argument prototype would still apply. */
9207 /* The GNU C library defines this for functions which it implements
9208 to always fail with ENOSYS. Some functions are actually named
9209 something starting with __ and the normal name is an alias. */
9210 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9213 char (*f) () = dlopen;
9227 rm -f conftest.
$ac_objext conftest
$ac_exeext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229 (eval $ac_link) 2>conftest.er1
9231 grep -v '^ *+' conftest.er1
>conftest.err
9233 cat conftest.err
>&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try
='test -z "$ac_c_werror_flag"
9237 || test ! -s conftest.err'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try
='test -s conftest$ac_exeext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_cv_func_dlopen
=yes
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.
$ac_ext >&5
9254 ac_cv_func_dlopen
=no
9256 rm -f conftest.err conftest.
$ac_objext \
9257 conftest
$ac_exeext conftest.
$ac_ext
9259 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9260 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9261 if test $ac_cv_func_dlopen = yes; then
9263 cat >>confdefs.h
<<\_ACEOF
9268 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9269 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 ac_check_lib_save_LIBS
=$LIBS
9275 cat >conftest.
$ac_ext <<_ACEOF
9278 cat confdefs.h
>>conftest.
$ac_ext
9279 cat >>conftest.
$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9282 /* Override any gcc2 internal prototype to avoid an error. */
9286 /* We use char because int might match the return type of a gcc2
9287 builtin and then its argument prototype would still apply. */
9297 rm -f conftest.
$ac_objext conftest
$ac_exeext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>conftest.er1
9301 grep -v '^ *+' conftest.er1
>conftest.err
9303 cat conftest.err
>&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try
='test -z "$ac_c_werror_flag"
9307 || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try
='test -s conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_cv_lib_dl_dlopen
=yes
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.
$ac_ext >&5
9324 ac_cv_lib_dl_dlopen
=no
9326 rm -f conftest.err conftest.
$ac_objext \
9327 conftest
$ac_exeext conftest.
$ac_ext
9328 LIBS
=$ac_check_lib_save_LIBS
9330 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9332 if test $ac_cv_lib_dl_dlopen = yes; then
9338 cat >>confdefs.h
<<\_ACEOF
9344 echo "$as_me:$LINENO: result: libdl library not found." >&5
9345 echo "${ECHO_T}libdl library not found." >&6
9352 echo "$as_me:$LINENO: result: libdl headers not found." >&5
9353 echo "${ECHO_T}libdl headers not found." >&6
9361 if test "$LZO" = "yes"; then
9363 { echo "$as_me:$LINENO: checking for LZO Library and Header files..." >&5
9364 echo "$as_me: checking for LZO Library and Header files..." >&6;}
9365 if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
9366 echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
9367 echo $ECHO_N "checking for lzo/lzo1x.h... $ECHO_C" >&6
9368 if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 echo "$as_me:$LINENO: result: $ac_cv_header_lzo_lzo1x_h" >&5
9372 echo "${ECHO_T}$ac_cv_header_lzo_lzo1x_h" >&6
9374 # Is the header compilable?
9375 echo "$as_me:$LINENO: checking lzo/lzo1x.h usability" >&5
9376 echo $ECHO_N "checking lzo/lzo1x.h usability... $ECHO_C" >&6
9377 cat >conftest.
$ac_ext <<_ACEOF
9380 cat confdefs.h
>>conftest.
$ac_ext
9381 cat >>conftest.
$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 $ac_includes_default
9384 #include <lzo/lzo1x.h>
9386 rm -f conftest.
$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>conftest.er1
9390 grep -v '^ *+' conftest.er1
>conftest.err
9392 cat conftest.err
>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try
='test -z "$ac_c_werror_flag"
9396 || test ! -s conftest.err'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try
='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_header_compiler
=yes
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.
$ac_ext >&5
9413 ac_header_compiler
=no
9415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9417 echo "${ECHO_T}$ac_header_compiler" >&6
9419 # Is the header present?
9420 echo "$as_me:$LINENO: checking lzo/lzo1x.h presence" >&5
9421 echo $ECHO_N "checking lzo/lzo1x.h presence... $ECHO_C" >&6
9422 cat >conftest.
$ac_ext <<_ACEOF
9425 cat confdefs.h
>>conftest.
$ac_ext
9426 cat >>conftest.
$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 #include <lzo/lzo1x.h>
9430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9431 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9433 grep -v '^ *+' conftest.er1
>conftest.err
9435 cat conftest.err
>&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } >/dev
/null
; then
9438 if test -s conftest.err
; then
9439 ac_cpp_err
=$ac_c_preproc_warn_flag
9440 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9447 if test -z "$ac_cpp_err"; then
9448 ac_header_preproc
=yes
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.
$ac_ext >&5
9453 ac_header_preproc
=no
9455 rm -f conftest.err conftest.
$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9457 echo "${ECHO_T}$ac_header_preproc" >&6
9459 # So? What about this header?
9460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9462 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&5
9463 echo "$as_me: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: proceeding with the compiler's result" >&5
9465 echo "$as_me: WARNING: lzo/lzo1x.h: proceeding with the compiler's result" >&2;}
9466 ac_header_preproc
=yes
9471 echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
9472 echo $ECHO_N "checking for lzo/lzo1x.h... $ECHO_C" >&6
9473 if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 ac_cv_header_lzo_lzo1x_h
=$ac_header_preproc
9478 echo "$as_me:$LINENO: result: $ac_cv_header_lzo_lzo1x_h" >&5
9479 echo "${ECHO_T}$ac_cv_header_lzo_lzo1x_h" >&6
9482 if test $ac_cv_header_lzo_lzo1x_h = yes; then
9486 cat >>confdefs.h
<<\_ACEOF
9487 #define LZO_HEADER_DIR 1
9492 if test "${ac_cv_header_lzo1x_h+set}" = set; then
9493 echo "$as_me:$LINENO: checking for lzo1x.h" >&5
9494 echo $ECHO_N "checking for lzo1x.h... $ECHO_C" >&6
9495 if test "${ac_cv_header_lzo1x_h+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 echo "$as_me:$LINENO: result: $ac_cv_header_lzo1x_h" >&5
9499 echo "${ECHO_T}$ac_cv_header_lzo1x_h" >&6
9501 # Is the header compilable?
9502 echo "$as_me:$LINENO: checking lzo1x.h usability" >&5
9503 echo $ECHO_N "checking lzo1x.h usability... $ECHO_C" >&6
9504 cat >conftest.
$ac_ext <<_ACEOF
9507 cat confdefs.h
>>conftest.
$ac_ext
9508 cat >>conftest.
$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 $ac_includes_default
9513 rm -f conftest.
$ac_objext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515 (eval $ac_compile) 2>conftest.er1
9517 grep -v '^ *+' conftest.er1
>conftest.err
9519 cat conftest.err
>&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try
='test -z "$ac_c_werror_flag"
9523 || test ! -s conftest.err'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; } &&
9529 { ac_try
='test -s conftest.$ac_objext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_header_compiler
=yes
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.
$ac_ext >&5
9540 ac_header_compiler
=no
9542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9544 echo "${ECHO_T}$ac_header_compiler" >&6
9546 # Is the header present?
9547 echo "$as_me:$LINENO: checking lzo1x.h presence" >&5
9548 echo $ECHO_N "checking lzo1x.h presence... $ECHO_C" >&6
9549 cat >conftest.
$ac_ext <<_ACEOF
9552 cat confdefs.h
>>conftest.
$ac_ext
9553 cat >>conftest.
$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9558 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9560 grep -v '^ *+' conftest.er1
>conftest.err
9562 cat conftest.err
>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } >/dev
/null
; then
9565 if test -s conftest.err
; then
9566 ac_cpp_err
=$ac_c_preproc_warn_flag
9567 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9574 if test -z "$ac_cpp_err"; then
9575 ac_header_preproc
=yes
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.
$ac_ext >&5
9580 ac_header_preproc
=no
9582 rm -f conftest.err conftest.
$ac_ext
9583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9584 echo "${ECHO_T}$ac_header_preproc" >&6
9586 # So? What about this header?
9587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9589 { echo "$as_me:$LINENO: WARNING: lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&5
9590 echo "$as_me: WARNING: lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9591 { echo "$as_me:$LINENO: WARNING: lzo1x.h: proceeding with the compiler's result" >&5
9592 echo "$as_me: WARNING: lzo1x.h: proceeding with the compiler's result" >&2;}
9593 ac_header_preproc
=yes
9598 echo "$as_me:$LINENO: checking for lzo1x.h" >&5
9599 echo $ECHO_N "checking for lzo1x.h... $ECHO_C" >&6
9600 if test "${ac_cv_header_lzo1x_h+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_cv_header_lzo1x_h
=$ac_header_preproc
9605 echo "$as_me:$LINENO: result: $ac_cv_header_lzo1x_h" >&5
9606 echo "${ECHO_T}$ac_cv_header_lzo1x_h" >&6
9609 if test $ac_cv_header_lzo1x_h = yes; then
9610 LZO_H
="1" ; lzolibs
=lzo
9619 if test -n "$LZO_H"; then
9621 for i
in $lzolibs ; do
9622 if test $havelzolib = 1 ; then break ; fi
9623 as_ac_Lib
=`echo "ac_cv_lib_$i''_lzo1x_1_15_compress" | $as_tr_sh`
9624 echo "$as_me:$LINENO: checking for lzo1x_1_15_compress in -l$i" >&5
9625 echo $ECHO_N "checking for lzo1x_1_15_compress in -l$i... $ECHO_C" >&6
9626 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 ac_check_lib_save_LIBS
=$LIBS
9631 cat >conftest.
$ac_ext <<_ACEOF
9634 cat confdefs.h
>>conftest.
$ac_ext
9635 cat >>conftest.
$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9638 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9644 char lzo1x_1_15_compress ();
9648 lzo1x_1_15_compress ();
9653 rm -f conftest.
$ac_objext conftest
$ac_exeext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9655 (eval $ac_link) 2>conftest.er1
9657 grep -v '^ *+' conftest.er1
>conftest.err
9659 cat conftest.err
>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try
='test -z "$ac_c_werror_flag"
9663 || test ! -s conftest.err'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try
='test -s conftest$ac_exeext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 eval "$as_ac_Lib=yes"
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.
$ac_ext >&5
9680 eval "$as_ac_Lib=no"
9682 rm -f conftest.err conftest.
$ac_objext \
9683 conftest
$ac_exeext conftest.
$ac_ext
9684 LIBS
=$ac_check_lib_save_LIBS
9686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9687 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9688 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9694 cat >>confdefs.h
<<\_ACEOF
9704 if test $havelzolib = 0 ; then
9705 { { echo "$as_me:$LINENO: error: LZO headers were found but LZO library was not found" >&5
9706 echo "$as_me: error: LZO headers were found but LZO library was not found" >&2;}
9707 { (exit 1); exit 1; }; }
9710 echo "$as_me:$LINENO: result: LZO headers were not found" >&5
9711 echo "${ECHO_T}LZO headers were not found" >&6
9712 echo "$as_me:$LINENO: result: LZO library available from http://www.oberhumer.com/opensource/lzo/" >&5
9713 echo "${ECHO_T}LZO library available from http://www.oberhumer.com/opensource/lzo/" >&6
9714 { { echo "$as_me:$LINENO: error: Or try ./configure --disable-lzo" >&5
9715 echo "$as_me: error: Or try ./configure --disable-lzo" >&2;}
9716 { (exit 1); exit 1; }; }
9721 if test "$CRYPTO" = "yes"; then
9722 { echo "$as_me:$LINENO: checking for OpenSSL Crypto Library and Header files..." >&5
9723 echo "$as_me: checking for OpenSSL Crypto Library and Header files..." >&6;}
9724 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9725 echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
9726 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6
9727 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
9731 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
9733 # Is the header compilable?
9734 echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
9735 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6
9736 cat >conftest.
$ac_ext <<_ACEOF
9739 cat confdefs.h
>>conftest.
$ac_ext
9740 cat >>conftest.
$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9743 #include <openssl/evp.h>
9745 rm -f conftest.
$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>conftest.er1
9749 grep -v '^ *+' conftest.er1
>conftest.err
9751 cat conftest.err
>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try
='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try
='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_header_compiler
=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.
$ac_ext >&5
9772 ac_header_compiler
=no
9774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9776 echo "${ECHO_T}$ac_header_compiler" >&6
9778 # Is the header present?
9779 echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
9780 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6
9781 cat >conftest.
$ac_ext <<_ACEOF
9784 cat confdefs.h
>>conftest.
$ac_ext
9785 cat >>conftest.
$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 #include <openssl/evp.h>
9789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9790 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9792 grep -v '^ *+' conftest.er1
>conftest.err
9794 cat conftest.err
>&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } >/dev
/null
; then
9797 if test -s conftest.err
; then
9798 ac_cpp_err
=$ac_c_preproc_warn_flag
9799 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9806 if test -z "$ac_cpp_err"; then
9807 ac_header_preproc
=yes
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.
$ac_ext >&5
9812 ac_header_preproc
=no
9814 rm -f conftest.err conftest.
$ac_ext
9815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9816 echo "${ECHO_T}$ac_header_preproc" >&6
9818 # So? What about this header?
9819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9821 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
9822 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
9824 echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
9825 ac_header_preproc
=yes
9830 echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
9831 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6
9832 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 ac_cv_header_openssl_evp_h
=$ac_header_preproc
9837 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
9838 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
9841 if test $ac_cv_header_openssl_evp_h = yes; then
9842 echo "$as_me:$LINENO: checking for EVP_CIPHER_CTX_init in -lcrypto" >&5
9843 echo $ECHO_N "checking for EVP_CIPHER_CTX_init in -lcrypto... $ECHO_C" >&6
9844 if test "${ac_cv_lib_crypto_EVP_CIPHER_CTX_init+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 ac_check_lib_save_LIBS
=$LIBS
9848 LIBS
="-lcrypto $LIBS"
9849 cat >conftest.
$ac_ext <<_ACEOF
9852 cat confdefs.h
>>conftest.
$ac_ext
9853 cat >>conftest.
$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9856 /* Override any gcc2 internal prototype to avoid an error. */
9860 /* We use char because int might match the return type of a gcc2
9861 builtin and then its argument prototype would still apply. */
9862 char EVP_CIPHER_CTX_init ();
9866 EVP_CIPHER_CTX_init ();
9871 rm -f conftest.
$ac_objext conftest
$ac_exeext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9873 (eval $ac_link) 2>conftest.er1
9875 grep -v '^ *+' conftest.er1
>conftest.err
9877 cat conftest.err
>&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try
='test -z "$ac_c_werror_flag"
9881 || test ! -s conftest.err'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try
='test -s conftest$ac_exeext'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_lib_crypto_EVP_CIPHER_CTX_init
=yes
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.
$ac_ext >&5
9898 ac_cv_lib_crypto_EVP_CIPHER_CTX_init
=no
9900 rm -f conftest.err conftest.
$ac_objext \
9901 conftest
$ac_exeext conftest.
$ac_ext
9902 LIBS
=$ac_check_lib_save_LIBS
9904 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_init" >&5
9905 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" >&6
9906 if test $ac_cv_lib_crypto_EVP_CIPHER_CTX_init = yes; then
9908 { echo "$as_me:$LINENO: checking that OpenSSL Library is at least version 0.9.6..." >&5
9909 echo "$as_me: checking that OpenSSL Library is at least version 0.9.6..." >&6;}
9910 cat >conftest.
$ac_ext <<_ACEOF
9913 cat confdefs.h
>>conftest.
$ac_ext
9914 cat >>conftest.
$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 #include "openssl/evp.h"
9918 #if SSLEAY_VERSION_NUMBER >= 0x00906000L
9923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9924 $EGREP "yes" >/dev
/null
2>&1; then
9927 cat >>confdefs.h
<<\_ACEOF
9928 #define USE_CRYPTO 1
9932 LIBS
="-lcrypto $LIBS"
9935 for ac_func
in EVP_CIPHER_CTX_set_key_length
9937 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9938 echo "$as_me:$LINENO: checking for $ac_func" >&5
9939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9940 if eval "test \"\${$as_ac_var+set}\" = set"; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 cat >conftest.
$ac_ext <<_ACEOF
9946 cat confdefs.h
>>conftest.
$ac_ext
9947 cat >>conftest.
$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9951 #define $ac_func innocuous_$ac_func
9953 /* System header to define __stub macros and hopefully few prototypes,
9954 which can conflict with char $ac_func (); below.
9955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9956 <limits.h> exists even on freestanding compilers. */
9959 # include <limits.h>
9961 # include <assert.h>
9966 /* Override any gcc2 internal prototype to avoid an error. */
9971 /* We use char because int might match the return type of a gcc2
9972 builtin and then its argument prototype would still apply. */
9974 /* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9980 char (*f) () = $ac_func;
9989 return f != $ac_func;
9994 rm -f conftest.
$ac_objext conftest
$ac_exeext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9996 (eval $ac_link) 2>conftest.er1
9998 grep -v '^ *+' conftest.er1
>conftest.err
10000 cat conftest.err
>&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try
='test -z "$ac_c_werror_flag"
10004 || test ! -s conftest.err'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; } &&
10010 { ac_try
='test -s conftest$ac_exeext'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 eval "$as_ac_var=yes"
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.
$ac_ext >&5
10021 eval "$as_ac_var=no"
10023 rm -f conftest.err conftest.
$ac_objext \
10024 conftest
$ac_exeext conftest.
$ac_ext
10026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10028 if test `eval echo '${'$as_ac_var'}'` = yes; then
10029 cat >>confdefs.h
<<_ACEOF
10030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10038 for ac_header
in openssl
/engine.h
10040 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10042 echo "$as_me:$LINENO: checking for $ac_header" >&5
10043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10050 # Is the header compilable?
10051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10053 cat >conftest.
$ac_ext <<_ACEOF
10056 cat confdefs.h
>>conftest.
$ac_ext
10057 cat >>conftest.
$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 $ac_includes_default
10060 #include <$ac_header>
10062 rm -f conftest.
$ac_objext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064 (eval $ac_compile) 2>conftest.er1
10066 grep -v '^ *+' conftest.er1
>conftest.err
10068 cat conftest.err
>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try
='test -z "$ac_c_werror_flag"
10072 || test ! -s conftest.err'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try
='test -s conftest.$ac_objext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_header_compiler
=yes
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.
$ac_ext >&5
10089 ac_header_compiler
=no
10091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10093 echo "${ECHO_T}$ac_header_compiler" >&6
10095 # Is the header present?
10096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10098 cat >conftest.
$ac_ext <<_ACEOF
10101 cat confdefs.h
>>conftest.
$ac_ext
10102 cat >>conftest.
$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 #include <$ac_header>
10106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10107 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10109 grep -v '^ *+' conftest.er1
>conftest.err
10111 cat conftest.err
>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } >/dev
/null
; then
10114 if test -s conftest.err
; then
10115 ac_cpp_err
=$ac_c_preproc_warn_flag
10116 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10123 if test -z "$ac_cpp_err"; then
10124 ac_header_preproc
=yes
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.
$ac_ext >&5
10129 ac_header_preproc
=no
10131 rm -f conftest.err conftest.
$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133 echo "${ECHO_T}$ac_header_preproc" >&6
10135 # So? What about this header?
10136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10142 ac_header_preproc
=yes
10147 echo "$as_me:$LINENO: checking for $ac_header" >&5
10148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 eval "$as_ac_Header=\$ac_header_preproc"
10154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10159 cat >>confdefs.h
<<_ACEOF
10160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10168 for ac_func
in ENGINE_load_builtin_engines
10170 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10171 echo "$as_me:$LINENO: checking for $ac_func" >&5
10172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10173 if eval "test \"\${$as_ac_var+set}\" = set"; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 cat >conftest.
$ac_ext <<_ACEOF
10179 cat confdefs.h
>>conftest.
$ac_ext
10180 cat >>conftest.
$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10184 #define $ac_func innocuous_$ac_func
10186 /* System header to define __stub macros and hopefully few prototypes,
10187 which can conflict with char $ac_func (); below.
10188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10189 <limits.h> exists even on freestanding compilers. */
10192 # include <limits.h>
10194 # include <assert.h>
10199 /* Override any gcc2 internal prototype to avoid an error. */
10204 /* We use char because int might match the return type of a gcc2
10205 builtin and then its argument prototype would still apply. */
10207 /* The GNU C library defines this for functions which it implements
10208 to always fail with ENOSYS. Some functions are actually named
10209 something starting with __ and the normal name is an alias. */
10210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10213 char (*f) () = $ac_func;
10222 return f != $ac_func;
10227 rm -f conftest.
$ac_objext conftest
$ac_exeext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>conftest.er1
10231 grep -v '^ *+' conftest.er1
>conftest.err
10233 cat conftest.err
>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try
='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try
='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 eval "$as_ac_var=yes"
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.
$ac_ext >&5
10254 eval "$as_ac_var=no"
10256 rm -f conftest.err conftest.
$ac_objext \
10257 conftest
$ac_exeext conftest.
$ac_ext
10259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10261 if test `eval echo '${'$as_ac_var'}'` = yes; then
10262 cat >>confdefs.h
<<_ACEOF
10263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10270 for ac_func
in ENGINE_register_all_complete
10272 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10273 echo "$as_me:$LINENO: checking for $ac_func" >&5
10274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10275 if eval "test \"\${$as_ac_var+set}\" = set"; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 cat >conftest.
$ac_ext <<_ACEOF
10281 cat confdefs.h
>>conftest.
$ac_ext
10282 cat >>conftest.
$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10286 #define $ac_func innocuous_$ac_func
10288 /* System header to define __stub macros and hopefully few prototypes,
10289 which can conflict with char $ac_func (); below.
10290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10291 <limits.h> exists even on freestanding compilers. */
10294 # include <limits.h>
10296 # include <assert.h>
10301 /* Override any gcc2 internal prototype to avoid an error. */
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10315 char (*f) () = $ac_func;
10324 return f != $ac_func;
10329 rm -f conftest.
$ac_objext conftest
$ac_exeext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331 (eval $ac_link) 2>conftest.er1
10333 grep -v '^ *+' conftest.er1
>conftest.err
10335 cat conftest.err
>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try
='test -z "$ac_c_werror_flag"
10339 || test ! -s conftest.err'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; } &&
10345 { ac_try
='test -s conftest$ac_exeext'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 eval "$as_ac_var=yes"
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.
$ac_ext >&5
10356 eval "$as_ac_var=no"
10358 rm -f conftest.err conftest.
$ac_objext \
10359 conftest
$ac_exeext conftest.
$ac_ext
10361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10363 if test `eval echo '${'$as_ac_var'}'` = yes; then
10364 cat >>confdefs.h
<<_ACEOF
10365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10372 for ac_func
in ENGINE_cleanup
10374 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 echo "$as_me:$LINENO: checking for $ac_func" >&5
10376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10377 if eval "test \"\${$as_ac_var+set}\" = set"; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 cat >conftest.
$ac_ext <<_ACEOF
10383 cat confdefs.h
>>conftest.
$ac_ext
10384 cat >>conftest.
$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10388 #define $ac_func innocuous_$ac_func
10390 /* System header to define __stub macros and hopefully few prototypes,
10391 which can conflict with char $ac_func (); below.
10392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10393 <limits.h> exists even on freestanding compilers. */
10396 # include <limits.h>
10398 # include <assert.h>
10403 /* Override any gcc2 internal prototype to avoid an error. */
10408 /* We use char because int might match the return type of a gcc2
10409 builtin and then its argument prototype would still apply. */
10411 /* The GNU C library defines this for functions which it implements
10412 to always fail with ENOSYS. Some functions are actually named
10413 something starting with __ and the normal name is an alias. */
10414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10417 char (*f) () = $ac_func;
10426 return f != $ac_func;
10431 rm -f conftest.
$ac_objext conftest
$ac_exeext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>conftest.er1
10435 grep -v '^ *+' conftest.er1
>conftest.err
10437 cat conftest.err
>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try
='test -z "$ac_c_werror_flag"
10441 || test ! -s conftest.err'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; } &&
10447 { ac_try
='test -s conftest$ac_exeext'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 eval "$as_ac_var=yes"
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.
$ac_ext >&5
10458 eval "$as_ac_var=no"
10460 rm -f conftest.err conftest.
$ac_objext \
10461 conftest
$ac_exeext conftest.
$ac_ext
10463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10465 if test `eval echo '${'$as_ac_var'}'` = yes; then
10466 cat >>confdefs.h
<<_ACEOF
10467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10475 { { echo "$as_me:$LINENO: error: OpenSSL crypto Library is too old." >&5
10476 echo "$as_me: error: OpenSSL crypto Library is too old." >&2;}
10477 { (exit 1); exit 1; }; }
10484 { { echo "$as_me:$LINENO: error: OpenSSL Crypto library not found." >&5
10485 echo "$as_me: error: OpenSSL Crypto library not found." >&2;}
10486 { (exit 1); exit 1; }; }
10491 { { echo "$as_me:$LINENO: error: OpenSSL Crypto headers not found." >&5
10492 echo "$as_me: error: OpenSSL Crypto headers not found." >&2;}
10493 { (exit 1); exit 1; }; }
10500 if test "$SSL" = "yes"; then
10501 { echo "$as_me:$LINENO: checking for OpenSSL SSL Library and Header files..." >&5
10502 echo "$as_me: checking for OpenSSL SSL Library and Header files..." >&6;}
10503 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10504 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10505 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10506 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10510 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10512 # Is the header compilable?
10513 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10514 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
10515 cat >conftest.
$ac_ext <<_ACEOF
10518 cat confdefs.h
>>conftest.
$ac_ext
10519 cat >>conftest.
$ac_ext <<_ACEOF
10520 /* end confdefs.h. */
10521 $ac_includes_default
10522 #include <openssl/ssl.h>
10524 rm -f conftest.
$ac_objext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>conftest.er1
10528 grep -v '^ *+' conftest.er1
>conftest.err
10530 cat conftest.err
>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try
='test -z "$ac_c_werror_flag"
10534 || test ! -s conftest.err'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; } &&
10540 { ac_try
='test -s conftest.$ac_objext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 ac_header_compiler
=yes
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.
$ac_ext >&5
10551 ac_header_compiler
=no
10553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555 echo "${ECHO_T}$ac_header_compiler" >&6
10557 # Is the header present?
10558 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10559 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10560 cat >conftest.
$ac_ext <<_ACEOF
10563 cat confdefs.h
>>conftest.
$ac_ext
10564 cat >>conftest.
$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <openssl/ssl.h>
10568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10569 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10571 grep -v '^ *+' conftest.er1
>conftest.err
10573 cat conftest.err
>&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } >/dev
/null
; then
10576 if test -s conftest.err
; then
10577 ac_cpp_err
=$ac_c_preproc_warn_flag
10578 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10585 if test -z "$ac_cpp_err"; then
10586 ac_header_preproc
=yes
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.
$ac_ext >&5
10591 ac_header_preproc
=no
10593 rm -f conftest.err conftest.
$ac_ext
10594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10595 echo "${ECHO_T}$ac_header_preproc" >&6
10597 # So? What about this header?
10598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10600 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10601 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10602 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10603 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10604 ac_header_preproc
=yes
10609 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10610 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10611 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
10616 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10617 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10620 if test $ac_cv_header_openssl_ssl_h = yes; then
10621 echo "$as_me:$LINENO: checking for SSL_CTX_new in -lssl" >&5
10622 echo $ECHO_N "checking for SSL_CTX_new in -lssl... $ECHO_C" >&6
10623 if test "${ac_cv_lib_ssl_SSL_CTX_new+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 ac_check_lib_save_LIBS
=$LIBS
10628 cat >conftest.
$ac_ext <<_ACEOF
10631 cat confdefs.h
>>conftest.
$ac_ext
10632 cat >>conftest.
$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10635 /* Override any gcc2 internal prototype to avoid an error. */
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10641 char SSL_CTX_new ();
10650 rm -f conftest.
$ac_objext conftest
$ac_exeext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>conftest.er1
10654 grep -v '^ *+' conftest.er1
>conftest.err
10656 cat conftest.err
>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
10659 { ac_try
='test -z "$ac_c_werror_flag"
10660 || test ! -s conftest.err'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try
='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_cv_lib_ssl_SSL_CTX_new
=yes
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.
$ac_ext >&5
10677 ac_cv_lib_ssl_SSL_CTX_new
=no
10679 rm -f conftest.err conftest.
$ac_objext \
10680 conftest
$ac_exeext conftest.
$ac_ext
10681 LIBS
=$ac_check_lib_save_LIBS
10683 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
10684 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_CTX_new" >&6
10685 if test $ac_cv_lib_ssl_SSL_CTX_new = yes; then
10687 if test "$MEMCHECK" = "ssl"; then
10688 { echo "$as_me:$LINENO: checking for Memory Debugging Capabilities in OpenSSL Library..." >&5
10689 echo "$as_me: checking for Memory Debugging Capabilities in OpenSSL Library..." >&6;}
10690 echo "$as_me:$LINENO: checking for CRYPTO_mem_ctrl in -lssl" >&5
10691 echo $ECHO_N "checking for CRYPTO_mem_ctrl in -lssl... $ECHO_C" >&6
10692 if test "${ac_cv_lib_ssl_CRYPTO_mem_ctrl+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 ac_check_lib_save_LIBS
=$LIBS
10697 cat >conftest.
$ac_ext <<_ACEOF
10700 cat confdefs.h
>>conftest.
$ac_ext
10701 cat >>conftest.
$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10704 /* Override any gcc2 internal prototype to avoid an error. */
10708 /* We use char because int might match the return type of a gcc2
10709 builtin and then its argument prototype would still apply. */
10710 char CRYPTO_mem_ctrl ();
10714 CRYPTO_mem_ctrl ();
10719 rm -f conftest.
$ac_objext conftest
$ac_exeext
10720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10721 (eval $ac_link) 2>conftest.er1
10723 grep -v '^ *+' conftest.er1
>conftest.err
10725 cat conftest.err
>&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try
='test -z "$ac_c_werror_flag"
10729 || test ! -s conftest.err'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; } &&
10735 { ac_try
='test -s conftest$ac_exeext'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=yes
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.
$ac_ext >&5
10746 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=no
10748 rm -f conftest.err conftest.
$ac_objext \
10749 conftest
$ac_exeext conftest.
$ac_ext
10750 LIBS
=$ac_check_lib_save_LIBS
10752 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
10753 echo "${ECHO_T}$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6
10754 if test $ac_cv_lib_ssl_CRYPTO_mem_ctrl = yes; then
10757 cat >>confdefs.h
<<\_ACEOF
10758 #define CRYPTO_MDEBUG 1
10761 echo "$as_me:$LINENO: result: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
10762 echo "${ECHO_T}NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6
10765 { { echo "$as_me:$LINENO: error: Memory Debugging function in OpenSSL library not found." >&5
10766 echo "$as_me: error: Memory Debugging function in OpenSSL library not found." >&2;}
10767 { (exit 1); exit 1; }; }
10774 { { echo "$as_me:$LINENO: error: OpenSSL SSL library not found." >&5
10775 echo "$as_me: error: OpenSSL SSL library not found." >&2;}
10776 { (exit 1); exit 1; }; }
10781 { { echo "$as_me:$LINENO: error: OpenSSL SSL headers not found." >&5
10782 echo "$as_me: error: OpenSSL SSL headers not found." >&2;}
10783 { (exit 1); exit 1; }; }
10789 cat >>confdefs.h
<<\_ACEOF
10799 if test "$MULTI" = "yes"; then
10801 cat >>confdefs.h
<<\_ACEOF
10802 #define ENABLE_CLIENT_SERVER 1
10807 if test "$MULTI_SERVER" = "no"; then
10809 cat >>confdefs.h
<<\_ACEOF
10810 #define ENABLE_CLIENT_ONLY 1
10815 if test "$MANAGEMENT" = "yes"; then
10817 cat >>confdefs.h
<<\_ACEOF
10818 #define ENABLE_MANAGEMENT 1
10823 if test "$SOCKS" = "yes"; then
10825 cat >>confdefs.h
<<\_ACEOF
10826 #define ENABLE_SOCKS 1
10831 if test "$HTTP_PROXY" = "yes"; then
10833 cat >>confdefs.h
<<\_ACEOF
10834 #define ENABLE_HTTP_PROXY 1
10839 if test "$DEBUG" = "yes"; then
10841 cat >>confdefs.h
<<\_ACEOF
10842 #define ENABLE_DEBUG 1
10847 if test "$SMALL" = "yes"; then
10849 cat >>confdefs.h
<<\_ACEOF
10850 #define ENABLE_SMALL 1
10855 if test "$FRAGMENT" = "yes"; then
10857 cat >>confdefs.h
<<\_ACEOF
10858 #define ENABLE_FRAGMENT 1
10863 if test "$STRICT" = "yes"; then
10864 CFLAGS
="$CFLAGS -Wall -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function"
10867 if test "$PEDANTIC" = "yes"; then
10868 CFLAGS
="$CFLAGS -ansi -pedantic"
10871 if test "$PROFILE" = "yes"; then
10872 CFLAGS
="$CFLAGS -pg -DENABLE_PROFILING"
10875 if test "$STRICT_OPTIONS" = "yes"; then
10877 cat >>confdefs.h
<<\_ACEOF
10878 #define STRICT_OPTIONS_CHECK 1
10883 if test "$PASSWORD_SAVE" = "yes"; then
10885 cat >>confdefs.h
<<\_ACEOF
10886 #define ENABLE_PASSWORD_SAVE 1
10891 ac_config_files
="$ac_config_files Makefile openvpn.spec config-win32.h install-win32/openvpn.nsi"
10892 cat >confcache
<<\_ACEOF
10893 # This file is a shell script that caches the results of configure
10894 # tests run on this system so they can be shared between configure
10895 # scripts and configure runs, see configure's option --config-cache.
10896 # It is not useful on other systems. If it contains results you don't
10897 # want to keep, you may remove or edit it.
10899 # config.status only pays attention to the cache file if you give it
10900 # the --recheck option to rerun configure.
10902 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10903 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10904 # following values.
10908 # The following way of writing the cache mishandles newlines in values,
10909 # but we know of no workaround that is simple, portable, and efficient.
10910 # So, don't put newlines in cache variables' values.
10911 # Ultrix sh set writes to stderr and can't be redirected directly,
10912 # and sets the high bit in the cache file unless we assign to the vars.
10915 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10917 # `set' does not quote correctly, so add quotes (double-quote
10918 # substitution turns \\\\ into \\, and sed turns \\ into \).
10921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10924 # `set' quotes correctly as required by POSIX, so do not add quotes.
10926 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10933 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10935 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10937 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
10938 if test -w $cache_file; then
10939 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10940 cat confcache
>$cache_file
10942 echo "not updating unwritable cache $cache_file"
10947 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10948 # Let make expand exec_prefix.
10949 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10951 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10952 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10953 # trailing colons and then remove the whole line if VPATH becomes empty
10954 # (actually we leave an empty line to preserve line numbers).
10955 if test "x$srcdir" = x.
; then
10956 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10957 s/:*\$(srcdir):*/:/;
10958 s/:*\${srcdir}:*/:/;
10960 s/^\([^=]*=[ ]*\):*/\1/;
10966 DEFS
=-DHAVE_CONFIG_H
10970 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10971 # 1. Remove the extension, and $U if already installed.
10972 ac_i
=`echo "$ac_i" |
10973 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10975 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
10976 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
10978 LIBOBJS
=$ac_libobjs
10980 LTLIBOBJS
=$ac_ltlibobjs
10983 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10984 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10985 Usually this means the macro was only invoked conditionally." >&5
10986 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10987 Usually this means the macro was only invoked conditionally." >&2;}
10988 { (exit 1); exit 1; }; }
10990 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10991 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10992 Usually this means the macro was only invoked conditionally." >&5
10993 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10994 Usually this means the macro was only invoked conditionally." >&2;}
10995 { (exit 1); exit 1; }; }
10998 : ${CONFIG_STATUS=./config.status}
10999 ac_clean_files_save
=$ac_clean_files
11000 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11001 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11002 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11003 cat >$CONFIG_STATUS <<_ACEOF
11005 # Generated by $as_me.
11006 # Run this file to recreate the current configuration.
11007 # Compiler output produced by configure, useful for debugging
11008 # configure, is in config.log if it exists.
11011 ac_cs_recheck=false
11013 SHELL=\${CONFIG_SHELL-$SHELL}
11016 cat >>$CONFIG_STATUS <<\_ACEOF
11017 ## --------------------- ##
11018 ## M4sh Initialization. ##
11019 ## --------------------- ##
11021 # Be Bourne compatible
11022 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11025 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11026 # is contrary to our usage. Disable this feature.
11027 alias -g '${1+"$@"}'='"$@"'
11028 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
11031 DUALCASE
=1; export DUALCASE
# for MKS sh
11033 # Support unset when possible.
11034 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
11041 # Work around bugs in pre-3.0 UWIN ksh.
11042 $as_unset ENV MAIL MAILPATH
11049 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11050 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11051 LC_TELEPHONE LC_TIME
11053 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11054 eval $as_var=C
; export $as_var
11060 # Required to use basename.
11061 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11067 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
11068 as_basename
=basename
11074 # Name of the executable.
11075 as_me
=`$as_basename "$0" ||
11076 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11077 X"$0" : 'X\(//\)$' \| \
11078 X"$0" : 'X\(/\)$' \| \
11079 . : '\(.\)' 2>/dev/null ||
11081 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11082 /^X\/\(\/\/\)$/{ s//\1/; q; }
11083 /^X\/\(\/\).*/{ s//\1/; q; }
11087 # PATH needs CR, and LINENO needs CR and PATH.
11088 # Avoid depending upon Character Ranges.
11089 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11090 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11091 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11092 as_cr_digits
='0123456789'
11093 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11095 # The user is always right.
11096 if test "${PATH_SEPARATOR+set}" != set; then
11097 echo "#! /bin/sh" >conf$$.sh
11098 echo "exit 0" >>conf$$.sh
11100 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11109 as_lineno_1
=$LINENO
11110 as_lineno_2
=$LINENO
11111 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
11112 test "x$as_lineno_1" != "x$as_lineno_2" &&
11113 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
11114 # Find who we are. Look in the path if we contain no path at all
11117 *[\\/]* ) as_myself
=$0 ;;
11118 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11119 for as_dir
in $PATH
11122 test -z "$as_dir" && as_dir
=.
11123 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11128 # We did not find ourselves, most probably we were run as `sh COMMAND'
11129 # in which case we are not to be found in the path.
11130 if test "x$as_myself" = x
; then
11133 if test ! -f "$as_myself"; then
11134 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11135 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11136 { (exit 1); exit 1; }; }
11138 case $CONFIG_SHELL in
11140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11141 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
11144 test -z "$as_dir" && as_dir
=.
11145 for as_base
in sh bash ksh sh5
; do
11148 if ("$as_dir/$as_base" -c '
11149 as_lineno_1=$LINENO
11150 as_lineno_2=$LINENO
11151 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11152 test "x$as_lineno_1" != "x$as_lineno_2" &&
11153 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
11154 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
11155 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
11156 CONFIG_SHELL
=$as_dir/$as_base
11157 export CONFIG_SHELL
11158 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11166 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11167 # uniformly replaced by the line number. The first 'sed' inserts a
11168 # line-number line before each line; the second 'sed' does the real
11169 # work. The second script uses 'N' to pair each line-number line
11170 # with the numbered line, and appends trailing '-' during
11171 # substitution so that $LINENO is not a special case at line end.
11172 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11173 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11174 sed '=' <$as_myself |
11179 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11182 s,^['$as_cr_digits']*\n,,
11183 ' >$as_me.lineno
&&
11184 chmod +x
$as_me.lineno ||
11185 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11186 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11187 { (exit 1); exit 1; }; }
11189 # Don't try to exec as it changes $[0], causing all sort of problems
11190 # (the dirname of $[0] is not the place where we might find the
11191 # original and so on. Autoconf is especially sensible to this).
11193 # Exit status is that of the last command.
11198 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11199 *c
*,-n*) ECHO_N
= ECHO_C
='
11201 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
11202 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
11205 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11211 rm -f conf$$ conf$$.exe conf$$.
file
11213 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11214 # We could just check for DJGPP; but this test a) works b) is more generic
11215 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11216 if test -f conf$$.exe
; then
11217 # Don't use ln at all; we don't have any links
11222 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11227 rm -f conf$$ conf$$.exe conf$$.
file
11229 if mkdir
-p .
2>/dev
/null
; then
11232 test -d .
/-p && rmdir .
/-p
11236 as_executable_p
="test -f"
11238 # Sed expression to map a string onto a valid CPP name.
11239 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11241 # Sed expression to map a string onto a valid variable name.
11242 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11246 # We need space, tab and new line, in precisely that order.
11256 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11257 # report actual input values of CONFIG_FILES etc. instead of their
11258 # values after options handling. Logging --version etc. is OK.
11262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11263 ## Running $as_me. ##
11268 This file was extended by OpenVPN $as_me 2.0.9, which was
11269 generated by GNU Autoconf 2.59. Invocation command line was
11271 CONFIG_FILES = $CONFIG_FILES
11272 CONFIG_HEADERS = $CONFIG_HEADERS
11273 CONFIG_LINKS = $CONFIG_LINKS
11274 CONFIG_COMMANDS = $CONFIG_COMMANDS
11278 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11282 # Files that config.status was made for.
11283 if test -n "$ac_config_files"; then
11284 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11287 if test -n "$ac_config_headers"; then
11288 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11291 if test -n "$ac_config_links"; then
11292 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11295 if test -n "$ac_config_commands"; then
11296 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11299 cat >>$CONFIG_STATUS <<\_ACEOF
11302 \`$as_me' instantiates files from templates according to the
11303 current configuration.
11305 Usage: $0 [OPTIONS] [FILE]...
11307 -h, --help print this help, then exit
11308 -V, --version print version number, then exit
11309 -q, --quiet do not print progress messages
11310 -d, --debug don't remove temporary files
11311 --recheck update $as_me by reconfiguring in the same conditions
11312 --file=FILE[:TEMPLATE]
11313 instantiate the configuration file FILE
11314 --header=FILE[:TEMPLATE]
11315 instantiate the configuration header FILE
11317 Configuration files:
11320 Configuration headers:
11323 Configuration commands:
11326 Report bugs to <bug-autoconf@gnu.org>."
11329 cat >>$CONFIG_STATUS <<_ACEOF
11331 OpenVPN config.status 2.0.9
11332 configured by $0, generated by GNU Autoconf 2.59,
11333 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11335 Copyright (C) 2003 Free Software Foundation, Inc.
11336 This config.status script is free software; the Free Software Foundation
11337 gives unlimited permission to copy, distribute and modify it."
11342 cat >>$CONFIG_STATUS <<\_ACEOF
11343 # If no file are specified by the user, then we need to provide default
11344 # value. By we need to know if files were specified by the user.
11350 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
11351 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
11359 *) # This is not an option, so the user has probably given explicit
11362 ac_need_defaults
=false
;;
11366 # Handling of the options.
11368 cat >>$CONFIG_STATUS <<\_ACEOF
11369 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11371 --version |
--vers* |
-V )
11372 echo "$ac_cs_version"; exit 0 ;;
11374 # Conflict between --help and --header
11375 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11376 Try \`$0 --help' for more information." >&5
11377 echo "$as_me: error: ambiguous option: $1
11378 Try \`$0 --help' for more information." >&2;}
11379 { (exit 1); exit 1; }; };;
11380 --help |
--hel |
-h )
11381 echo "$ac_cs_usage"; exit 0 ;;
11382 --debug |
--d* |
-d )
11384 --file |
--fil |
--fi |
--f )
11386 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
11387 ac_need_defaults
=false
;;
11388 --header |
--heade |
--head |
--hea )
11390 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
11391 ac_need_defaults
=false
;;
11392 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11393 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11396 # This is an error.
11397 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11398 Try \`$0 --help' for more information." >&5
11399 echo "$as_me: error: unrecognized option: $1
11400 Try \`$0 --help' for more information." >&2;}
11401 { (exit 1); exit 1; }; } ;;
11403 *) ac_config_targets
="$ac_config_targets $1" ;;
11409 ac_configure_extra_args
=
11411 if $ac_cs_silent; then
11413 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11417 cat >>$CONFIG_STATUS <<_ACEOF
11418 if \$ac_cs_recheck; then
11419 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11420 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11425 cat >>$CONFIG_STATUS <<_ACEOF
11427 # INIT-COMMANDS section.
11430 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11436 cat >>$CONFIG_STATUS <<\_ACEOF
11437 for ac_config_target
in $ac_config_targets
11439 case "$ac_config_target" in
11440 # Handling of arguments.
11441 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11442 "openvpn.spec" ) CONFIG_FILES
="$CONFIG_FILES openvpn.spec" ;;
11443 "config-win32.h" ) CONFIG_FILES
="$CONFIG_FILES config-win32.h" ;;
11444 "install-win32/openvpn.nsi" ) CONFIG_FILES
="$CONFIG_FILES install-win32/openvpn.nsi" ;;
11445 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
11446 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11447 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11448 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11449 { (exit 1); exit 1; }; };;
11453 # If the user did not use the arguments to specify the items to instantiate,
11454 # then the envvar interface is used. Set only those that are not.
11455 # We use the long form for the default assignment because of an extremely
11456 # bizarre bug on SunOS 4.1.3.
11457 if $ac_need_defaults; then
11458 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11459 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11460 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11463 # Have a temporary directory for convenience. Make it in the build tree
11464 # simply because there is no reason to put it here, and in addition,
11465 # creating and moving files from /tmp can sometimes cause problems.
11466 # Create a temporary directory, and hook for its removal unless debugging.
11469 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11470 trap '{ (exit 1); exit 1; }' 1 2 13 15
11473 # Create a (secure) tmp directory for tmp files.
11476 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11477 test -n "$tmp" && test -d "$tmp"
11480 tmp
=.
/confstat$$
-$RANDOM
11481 (umask 077 && mkdir
$tmp)
11484 echo "$me: cannot create a temporary directory in ." >&2
11485 { (exit 1); exit 1; }
11490 cat >>$CONFIG_STATUS <<_ACEOF
11493 # CONFIG_FILES section.
11496 # No need to generate the scripts if there are no CONFIG_FILES.
11497 # This happens for instance when ./config.status config.h
11498 if test -n "\$CONFIG_FILES"; then
11499 # Protect against being on the right side of a sed subst in config.status.
11500 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11501 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11502 s,@SHELL@,$SHELL,;t t
11503 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11504 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11505 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11506 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11507 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11508 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11509 s,@exec_prefix@,$exec_prefix,;t t
11510 s,@prefix@,$prefix,;t t
11511 s,@program_transform_name@,$program_transform_name,;t t
11512 s,@bindir@,$bindir,;t t
11513 s,@sbindir@,$sbindir,;t t
11514 s,@libexecdir@,$libexecdir,;t t
11515 s,@datadir@,$datadir,;t t
11516 s,@sysconfdir@,$sysconfdir,;t t
11517 s,@sharedstatedir@,$sharedstatedir,;t t
11518 s,@localstatedir@,$localstatedir,;t t
11519 s,@libdir@,$libdir,;t t
11520 s,@includedir@,$includedir,;t t
11521 s,@oldincludedir@,$oldincludedir,;t t
11522 s,@infodir@,$infodir,;t t
11523 s,@mandir@,$mandir,;t t
11524 s,@build_alias@,$build_alias,;t t
11525 s,@host_alias@,$host_alias,;t t
11526 s,@target_alias@,$target_alias,;t t
11527 s,@DEFS@,$DEFS,;t t
11528 s,@ECHO_C@,$ECHO_C,;t t
11529 s,@ECHO_N@,$ECHO_N,;t t
11530 s,@ECHO_T@,$ECHO_T,;t t
11531 s,@LIBS@,$LIBS,;t t
11532 s,@IFCONFIG@,$IFCONFIG,;t t
11533 s,@IPROUTE@,$IPROUTE,;t t
11534 s,@ROUTE@,$ROUTE,;t t
11535 s,@build@,$build,;t t
11536 s,@build_cpu@,$build_cpu,;t t
11537 s,@build_vendor@,$build_vendor,;t t
11538 s,@build_os@,$build_os,;t t
11539 s,@host@,$host,;t t
11540 s,@host_cpu@,$host_cpu,;t t
11541 s,@host_vendor@,$host_vendor,;t t
11542 s,@host_os@,$host_os,;t t
11543 s,@target@,$target,;t t
11544 s,@target_cpu@,$target_cpu,;t t
11545 s,@target_vendor@,$target_vendor,;t t
11546 s,@target_os@,$target_os,;t t
11547 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11548 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11549 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11550 s,@CYGPATH_W@,$CYGPATH_W,;t t
11551 s,@PACKAGE@,$PACKAGE,;t t
11552 s,@VERSION@,$VERSION,;t t
11553 s,@ACLOCAL@,$ACLOCAL,;t t
11554 s,@AUTOCONF@,$AUTOCONF,;t t
11555 s,@AUTOMAKE@,$AUTOMAKE,;t t
11556 s,@AUTOHEADER@,$AUTOHEADER,;t t
11557 s,@MAKEINFO@,$MAKEINFO,;t t
11558 s,@AMTAR@,$AMTAR,;t t
11559 s,@install_sh@,$install_sh,;t t
11560 s,@STRIP@,$STRIP,;t t
11561 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11562 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11563 s,@mkdir_p@,$mkdir_p,;t t
11565 s,@SET_MAKE@,$SET_MAKE,;t t
11566 s,@am__leading_dot@,$am__leading_dot,;t t
11568 s,@CFLAGS@,$CFLAGS,;t t
11569 s,@LDFLAGS@,$LDFLAGS,;t t
11570 s,@CPPFLAGS@,$CPPFLAGS,;t t
11571 s,@ac_ct_CC@,$ac_ct_CC,;t t
11572 s,@EXEEXT@,$EXEEXT,;t t
11573 s,@OBJEXT@,$OBJEXT,;t t
11574 s,@DEPDIR@,$DEPDIR,;t t
11575 s,@am__include@,$am__include,;t t
11576 s,@am__quote@,$am__quote,;t t
11577 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11578 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11579 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11580 s,@CCDEPMODE@,$CCDEPMODE,;t t
11581 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11582 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11584 s,@EGREP@,$EGREP,;t t
11585 s,@LIBOBJS@,$LIBOBJS,;t t
11586 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
11587 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
11588 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
11589 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11594 cat >>$CONFIG_STATUS <<\_ACEOF
11595 # Split the substitutions into bite-sized pieces for seds with
11596 # small command number limits, like on Digital OSF/1 and HP-UX.
11597 ac_max_sed_lines
=48
11598 ac_sed_frag
=1 # Number of current file.
11599 ac_beg
=1 # First line for current file.
11600 ac_end
=$ac_max_sed_lines # Line after last line for current file.
11603 while $ac_more_lines; do
11604 if test $ac_beg -gt 1; then
11605 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
11607 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
11609 if test ! -s $tmp/subs.frag
; then
11610 ac_more_lines
=false
11612 # The purpose of the label and of the branching condition is to
11613 # speed up the sed processing (if there are no `@' at all, there
11614 # is no need to browse any of the substitutions).
11615 # These are the two extra sed commands mentioned above.
11617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
11618 if test -z "$ac_sed_cmds"; then
11619 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
11621 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11623 ac_sed_frag
=`expr $ac_sed_frag + 1`
11625 ac_end
=`expr $ac_end + $ac_max_sed_lines`
11628 if test -z "$ac_sed_cmds"; then
11631 fi # test -n "$CONFIG_FILES"
11634 cat >>$CONFIG_STATUS <<\_ACEOF
11635 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
11636 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11638 - |
*:- |
*:-:* ) # input from stdin
11640 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11641 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11642 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11643 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11644 * ) ac_file_in
=$ac_file.
in ;;
11647 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11648 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11649 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11650 X"$ac_file" : 'X\(//\)[^/]' \| \
11651 X"$ac_file" : 'X\(//\)$' \| \
11652 X"$ac_file" : 'X\(/\)' \| \
11653 . : '\(.\)' 2>/dev/null ||
11655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11657 /^X\(\/\/\)$/{ s//\1/; q; }
11658 /^X\(\/\).*/{ s//\1/; q; }
11660 { if $as_mkdir_p; then
11665 while test ! -d "$as_dir"; do
11666 as_dirs
="$as_dir $as_dirs"
11667 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11669 X"$as_dir" : 'X\(//\)[^/]' \| \
11670 X"$as_dir" : 'X\(//\)$' \| \
11671 X"$as_dir" : 'X\(/\)' \| \
11672 . : '\(.\)' 2>/dev/null ||
11674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11676 /^X\(\/\/\)$/{ s//\1/; q; }
11677 /^X\(\/\).*/{ s//\1/; q; }
11680 test ! -n "$as_dirs" || mkdir
$as_dirs
11681 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11682 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11683 { (exit 1); exit 1; }; }; }
11687 if test "$ac_dir" != .
; then
11688 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11689 # A "../" for each directory in $ac_dir_suffix.
11690 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11692 ac_dir_suffix
= ac_top_builddir
=
11696 .
) # No --srcdir option. We are building in place.
11698 if test -z "$ac_top_builddir"; then
11701 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
11703 [\\/]* | ?
:[\\/]* ) # Absolute path.
11704 ac_srcdir
=$srcdir$ac_dir_suffix;
11705 ac_top_srcdir
=$srcdir ;;
11706 *) # Relative path.
11707 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
11708 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
11711 # Do not use `cd foo && pwd` to compute absolute paths, because
11712 # the directories may not exist.
11714 .
) ac_abs_builddir
="$ac_dir";;
11717 .
) ac_abs_builddir
=`pwd`;;
11718 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
11719 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
11722 case $ac_abs_builddir in
11723 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11725 case ${ac_top_builddir}.
in
11726 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
11727 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11728 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
11731 case $ac_abs_builddir in
11732 .
) ac_abs_srcdir
=$ac_srcdir;;
11735 .
) ac_abs_srcdir
=$ac_abs_builddir;;
11736 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
11737 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
11740 case $ac_abs_builddir in
11741 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
11743 case $ac_top_srcdir in
11744 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
11745 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
11746 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
11752 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11753 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
11756 if test x
"$ac_file" != x-
; then
11757 { echo "$as_me:$LINENO: creating $ac_file" >&5
11758 echo "$as_me: creating $ac_file" >&6;}
11761 # Let's still pretend it is `configure' which instantiates (i.e., don't
11762 # use $as_me), people would be surprised to read:
11763 # /* config.h. Generated by config.status. */
11764 if test x
"$ac_file" = x-
; then
11767 configure_input
="$ac_file. "
11769 configure_input
=$configure_input"Generated from `echo $ac_file_in |
11770 sed 's,.*/,,'` by configure."
11772 # First look for the input files in the build tree, otherwise in the
11774 ac_file_inputs
=`IFS=:
11775 for f in $ac_file_in; do
11777 -) echo $tmp/stdin ;;
11779 # Absolute (can't be DOS-style, as IFS=:)
11780 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11781 echo "$as_me: error: cannot find input file: $f" >&2;}
11782 { (exit 1); exit 1; }; }
11785 if test -f "$f"; then
11788 elif test -f "$srcdir/$f"; then
11793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11794 echo "$as_me: error: cannot find input file: $f" >&2;}
11795 { (exit 1); exit 1; }; }
11798 done` ||
{ (exit 1); exit 1; }
11800 cat >>$CONFIG_STATUS <<_ACEOF
11804 cat >>$CONFIG_STATUS <<\_ACEOF
11806 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11807 s
,@configure_input@
,$configure_input,;t t
11808 s
,@srcdir@
,$ac_srcdir,;t t
11809 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
11810 s
,@top_srcdir@
,$ac_top_srcdir,;t t
11811 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
11812 s
,@builddir@
,$ac_builddir,;t t
11813 s
,@abs_builddir@
,$ac_abs_builddir,;t t
11814 s
,@top_builddir@
,$ac_top_builddir,;t t
11815 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
11816 s
,@INSTALL@
,$ac_INSTALL,;t t
11817 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11819 if test x"$ac_file" != x-; then
11820 mv $tmp/out $ac_file
11828 cat >>$CONFIG_STATUS <<\_ACEOF
11831 # CONFIG_HEADER section.
11834 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
11835 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11837 # ac_d sets the value in "#define NAME VALUE" lines.
11838 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11839 ac_dB
='[ ].*$,\1#\2'
11842 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11843 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11844 ac_uB
='$,\1#\2define\3'
11848 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
11849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11851 - |
*:- |
*:-:* ) # input from stdin
11853 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11854 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11855 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11856 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11857 * ) ac_file_in
=$ac_file.
in ;;
11860 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
11861 echo "$as_me: creating $ac_file" >&6;}
11863 # First look for the input files in the build tree, otherwise in the
11865 ac_file_inputs
=`IFS=:
11866 for f in $ac_file_in; do
11868 -) echo $tmp/stdin ;;
11870 # Absolute (can't be DOS-style, as IFS=:)
11871 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11872 echo "$as_me: error: cannot find input file: $f" >&2;}
11873 { (exit 1); exit 1; }; }
11874 # Do quote $f, to prevent DOS paths from being IFS'd.
11877 if test -f "$f"; then
11880 elif test -f "$srcdir/$f"; then
11885 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11886 echo "$as_me: error: cannot find input file: $f" >&2;}
11887 { (exit 1); exit 1; }; }
11890 done` ||
{ (exit 1); exit 1; }
11891 # Remove the trailing spaces.
11892 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11896 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11897 # `conftest.undefs', that substitutes the proper values into
11898 # config.h.in to produce config.h. The first handles `#define'
11899 # templates, and the second `#undef' templates.
11900 # And first: Protect against being on the right side of a sed subst in
11901 # config.status. Protect against being in an unquoted here document
11902 # in config.status.
11903 rm -f conftest.defines conftest.undefs
11904 # Using a here document instead of a string reduces the quoting nightmare.
11905 # Putting comments in sed scripts is not portable.
11907 # `end' is used to avoid that the second main sed command (meant for
11908 # 0-ary CPP macros) applies to n-ary macro definitions.
11909 # See the Autoconf documentation for `clear'.
11910 cat >confdef2sed.
sed <<\_ACEOF
11915 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11917 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11920 # If some macros were called several times there might be several times
11921 # the same #defines, which is useless. Nevertheless, we may not want to
11922 # sort them, since we want the *last* AC-DEFINE to be honored.
11923 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11924 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11925 rm -f confdef2sed.sed
11927 # This sed command replaces #undef with comments. This is necessary, for
11928 # example, in the case of _POSIX_SOURCE, which is predefined and required
11929 # on some systems where configure will not decide to define it.
11930 cat >>conftest.undefs <<\_ACEOF
11931 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11934 # Break up conftest.defines because some shells have a limit on the size
11935 # of here documents, and old seds have small limits too (100 cmds).
11936 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11937 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11938 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11939 echo ' :' >>$CONFIG_STATUS
11940 rm -f conftest.tail
11941 while grep . conftest.defines >/dev/null
11943 # Write a limited-size here document to $tmp/defines.sed.
11944 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11945 # Speed up: don't consider the non `#define' lines.
11946 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11947 # Work around the forget-to-reset-the-flag bug.
11948 echo 't clr' >>$CONFIG_STATUS
11949 echo ': clr' >>$CONFIG_STATUS
11950 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
11952 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11954 mv $tmp/out $tmp/in
11956 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
11957 rm -f conftest.defines
11958 mv conftest.
tail conftest.defines
11960 rm -f conftest.defines
11961 echo ' fi # grep' >>$CONFIG_STATUS
11962 echo >>$CONFIG_STATUS
11964 # Break up conftest.undefs because some shells have a limit on the size
11965 # of here documents, and old seds have small limits too (100 cmds).
11966 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11967 rm -f conftest.
tail
11968 while grep . conftest.undefs
>/dev
/null
11970 # Write a limited-size here document to $tmp/undefs.sed.
11971 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11972 # Speed up: don't consider the non
`#undef'
11973 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11974 # Work around the forget-to-reset-the-flag bug.
11975 echo 't clr' >>$CONFIG_STATUS
11976 echo ': clr' >>$CONFIG_STATUS
11977 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11979 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11981 mv $tmp/out $tmp/in
11983 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11984 rm -f conftest.undefs
11985 mv conftest.tail conftest.undefs
11987 rm -f conftest.undefs
11989 cat >>$CONFIG_STATUS <<\_ACEOF
11990 # Let's still pretend it is `configure
' which instantiates (i.e., don't
11991 # use $as_me), people would be surprised to read:
11992 # /* config.h. Generated by config.status. */
11993 if test x
"$ac_file" = x-
; then
11994 echo "/* Generated by configure. */" >$tmp/config.h
11996 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11998 cat $tmp/in >>$tmp/config.h
12000 if test x
"$ac_file" != x-
; then
12001 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
12002 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12003 echo "$as_me: $ac_file is unchanged" >&6;}
12005 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12006 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12007 X"$ac_file" : 'X\(//\)[^/]' \| \
12008 X"$ac_file" : 'X\(//\)$' \| \
12009 X"$ac_file" : 'X\(/\)' \| \
12010 . : '\(.\)' 2>/dev/null ||
12012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12014 /^X\(\/\/\)$/{ s//\1/; q; }
12015 /^X\(\/\).*/{ s//\1/; q; }
12017 { if $as_mkdir_p; then
12022 while test ! -d "$as_dir"; do
12023 as_dirs
="$as_dir $as_dirs"
12024 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12026 X"$as_dir" : 'X\(//\)[^/]' \| \
12027 X"$as_dir" : 'X\(//\)$' \| \
12028 X"$as_dir" : 'X\(/\)' \| \
12029 . : '\(.\)' 2>/dev/null ||
12031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12033 /^X\(\/\/\)$/{ s//\1/; q; }
12034 /^X\(\/\).*/{ s//\1/; q; }
12037 test ! -n "$as_dirs" || mkdir
$as_dirs
12038 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12039 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12040 { (exit 1); exit 1; }; }; }
12043 mv $tmp/config.h
$ac_file
12047 rm -f $tmp/config.h
12049 # Compute $ac_file's index in $config_headers.
12051 for _am_header
in $config_headers :; do
12052 case $_am_header in
12053 $ac_file |
$ac_file:* )
12056 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
12059 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12060 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12061 X$ac_file : 'X\(//\)[^/]' \| \
12062 X$ac_file : 'X\(//\)$' \| \
12063 X$ac_file : 'X\(/\)' \| \
12064 . : '\(.\)' 2>/dev/null ||
12066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12068 /^X\(\/\/\)$/{ s//\1/; q; }
12069 /^X\(\/\).*/{ s//\1/; q; }
12070 s/.*/./; q'`/stamp-h
$_am_stamp_count
12073 cat >>$CONFIG_STATUS <<\_ACEOF
12076 # CONFIG_COMMANDS section.
12078 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
12079 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
12080 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12081 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
12082 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12083 X"$ac_dest" : 'X\(//\)[^/]' \| \
12084 X"$ac_dest" : 'X\(//\)$' \| \
12085 X"$ac_dest" : 'X\(/\)' \| \
12086 . : '\(.\)' 2>/dev/null ||
12088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12090 /^X\(\/\/\)$/{ s//\1/; q; }
12091 /^X\(\/\).*/{ s//\1/; q; }
12093 { if $as_mkdir_p; then
12098 while test ! -d "$as_dir"; do
12099 as_dirs
="$as_dir $as_dirs"
12100 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12102 X"$as_dir" : 'X\(//\)[^/]' \| \
12103 X"$as_dir" : 'X\(//\)$' \| \
12104 X"$as_dir" : 'X\(/\)' \| \
12105 . : '\(.\)' 2>/dev/null ||
12107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12109 /^X\(\/\/\)$/{ s//\1/; q; }
12110 /^X\(\/\).*/{ s//\1/; q; }
12113 test ! -n "$as_dirs" || mkdir
$as_dirs
12114 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12115 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12116 { (exit 1); exit 1; }; }; }
12120 if test "$ac_dir" != .
; then
12121 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12122 # A "../" for each directory in $ac_dir_suffix.
12123 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12125 ac_dir_suffix
= ac_top_builddir
=
12129 .
) # No --srcdir option. We are building in place.
12131 if test -z "$ac_top_builddir"; then
12134 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12136 [\\/]* | ?
:[\\/]* ) # Absolute path.
12137 ac_srcdir
=$srcdir$ac_dir_suffix;
12138 ac_top_srcdir
=$srcdir ;;
12139 *) # Relative path.
12140 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12141 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12144 # Do not use `cd foo && pwd` to compute absolute paths, because
12145 # the directories may not exist.
12147 .
) ac_abs_builddir
="$ac_dir";;
12150 .
) ac_abs_builddir
=`pwd`;;
12151 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
12152 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
12155 case $ac_abs_builddir in
12156 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
12158 case ${ac_top_builddir}.
in
12159 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
12160 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
12161 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
12164 case $ac_abs_builddir in
12165 .
) ac_abs_srcdir
=$ac_srcdir;;
12168 .
) ac_abs_srcdir
=$ac_abs_builddir;;
12169 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
12170 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
12173 case $ac_abs_builddir in
12174 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
12176 case $ac_top_srcdir in
12177 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
12178 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
12179 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
12184 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12185 echo "$as_me: executing $ac_dest commands" >&6;}
12187 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
12188 # Strip MF so we end up with the name of the file.
12189 mf
=`echo "$mf" | sed -e 's/:.*$//'`
12190 # Check whether this is an Automake generated Makefile or not.
12191 # We used to match only the files named `Makefile.in', but
12192 # some people rename them; so instead we look at the file content.
12193 # Grep'ing the first line is not enough: some people post-process
12194 # each Makefile.in and add a new line on top of each file to say so.
12195 # So let's grep whole file.
12196 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
12197 dirpart
=`(dirname "$mf") 2>/dev/null ||
12198 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12199 X"$mf" : 'X\(//\)[^/]' \| \
12200 X"$mf" : 'X\(//\)$' \| \
12201 X"$mf" : 'X\(/\)' \| \
12202 . : '\(.\)' 2>/dev/null ||
12204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12206 /^X\(\/\/\)$/{ s//\1/; q; }
12207 /^X\(\/\).*/{ s//\1/; q; }
12212 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
12213 # Extract the definition of DEP_FILES from the Makefile without
12215 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
12216 test -z "$DEPDIR" && continue
12217 # When using ansi2knr, U may be empty or an underscore; expand it
12218 U
=`sed -n 's/^U = //p' < "$mf"`
12219 test -d "$dirpart/$DEPDIR" || mkdir
"$dirpart/$DEPDIR"
12220 # We invoke sed twice because it is the simplest approach to
12221 # changing $(DEPDIR) to its actual value in the expansion.
12222 for file in `sed -n '
12223 /^DEP_FILES = .*\\\\$/ {
12232 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12233 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12234 # Make sure the directory exists.
12235 test -f "$dirpart/$file" && continue
12236 fdir
=`(dirname "$file") 2>/dev/null ||
12237 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12238 X"$file" : 'X\(//\)[^/]' \| \
12239 X"$file" : 'X\(//\)$' \| \
12240 X"$file" : 'X\(/\)' \| \
12241 . : '\(.\)' 2>/dev/null ||
12243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12245 /^X\(\/\/\)$/{ s//\1/; q; }
12246 /^X\(\/\).*/{ s//\1/; q; }
12248 { if $as_mkdir_p; then
12249 mkdir
-p $dirpart/$fdir
12251 as_dir
=$dirpart/$fdir
12253 while test ! -d "$as_dir"; do
12254 as_dirs
="$as_dir $as_dirs"
12255 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12257 X"$as_dir" : 'X\(//\)[^/]' \| \
12258 X"$as_dir" : 'X\(//\)$' \| \
12259 X"$as_dir" : 'X\(/\)' \| \
12260 . : '\(.\)' 2>/dev/null ||
12262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12264 /^X\(\/\/\)$/{ s//\1/; q; }
12265 /^X\(\/\).*/{ s//\1/; q; }
12268 test ! -n "$as_dirs" || mkdir
$as_dirs
12269 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12270 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12271 { (exit 1); exit 1; }; }; }
12273 # echo "creating $dirpart/$file"
12274 echo '# dummy' > "$dirpart/$file"
12282 cat >>$CONFIG_STATUS <<\_ACEOF
12284 { (exit 0); exit 0; }
12286 chmod +x
$CONFIG_STATUS
12287 ac_clean_files
=$ac_clean_files_save
12290 # configure is writing to config.log, and then calls config.status.
12291 # config.status does its own redirection, appending to config.log.
12292 # Unfortunately, on DOS this fails, as config.log is still kept open
12293 # by configure, so config.status won't be able to write to it; its
12294 # output is simply discarded. So we exec the FD to /dev/null,
12295 # effectively closing config.log, so it can be properly (re)opened and
12296 # appended to by config.status. When coming back to configure, we
12297 # need to make the FD available again.
12298 if test "$no_create" != yes; then
12300 ac_config_status_args
=
12301 test "$silent" = yes &&
12302 ac_config_status_args
="$ac_config_status_args --quiet"
12304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12307 # would make configure fail if this is the last instruction.
12308 $ac_cs_success ||
{ (exit 1); exit 1; }