Upgrade to OpenVPN 2.1.0
[tomato.git] / release / src / router / openvpn / configure
blobe3da6cb2748a415b55ba8e3d44be2a64ad9836cb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for OpenVPN 2.1.0.
5 # Report bugs to <openvpn-users@lists.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='OpenVPN'
576 PACKAGE_TARNAME='openvpn'
577 PACKAGE_VERSION='2.1.0'
578 PACKAGE_STRING='OpenVPN 2.1.0'
579 PACKAGE_BUGREPORT='openvpn-users@lists.sourceforge.net'
581 ac_unique_file="syshead.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 INSTALL_PROGRAM
668 INSTALL_SCRIPT
669 INSTALL_DATA
670 am__isrc
671 CYGPATH_W
672 PACKAGE
673 VERSION
674 ACLOCAL
675 AUTOCONF
676 AUTOMAKE
677 AUTOHEADER
678 MAKEINFO
679 install_sh
680 STRIP
681 INSTALL_STRIP_PROGRAM
682 mkdir_p
684 SET_MAKE
685 am__leading_dot
686 AMTAR
687 am__tar
688 am__untar
689 IFCONFIG
690 IPROUTE
691 ROUTE
693 CFLAGS
694 LDFLAGS
695 CPPFLAGS
696 ac_ct_CC
697 EXEEXT
698 OBJEXT
699 DEPDIR
700 am__include
701 am__quote
702 AMDEP_TRUE
703 AMDEP_FALSE
704 AMDEPBACKSLASH
705 CCDEPMODE
706 am__fastdepCC_TRUE
707 am__fastdepCC_FALSE
709 GREP
710 EGREP
711 MAN2HTML
712 LIBOBJS
713 PTHREAD_CC
714 PTHREAD_LIBS
715 PTHREAD_CFLAGS
716 TAP_ID
717 TAP_WIN32_MIN_MAJOR
718 TAP_WIN32_MIN_MINOR
719 win32datadir
720 WIN32_TRUE
721 WIN32_FALSE
722 LTLIBOBJS'
723 ac_subst_files=''
724 ac_precious_vars='build_alias
725 host_alias
726 target_alias
728 CFLAGS
729 LDFLAGS
730 LIBS
731 CPPFLAGS
733 MAN2HTML'
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
741 cache_file=/dev/null
742 exec_prefix=NONE
743 no_create=
744 no_recursion=
745 prefix=NONE
746 program_prefix=NONE
747 program_suffix=NONE
748 program_transform_name=s,x,x,
749 silent=
750 site=
751 srcdir=
752 verbose=
753 x_includes=NONE
754 x_libraries=NONE
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir='${exec_prefix}/bin'
763 sbindir='${exec_prefix}/sbin'
764 libexecdir='${exec_prefix}/libexec'
765 datarootdir='${prefix}/share'
766 datadir='${datarootdir}'
767 sysconfdir='${prefix}/etc'
768 sharedstatedir='${prefix}/com'
769 localstatedir='${prefix}/var'
770 includedir='${prefix}/include'
771 oldincludedir='/usr/include'
772 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
773 infodir='${datarootdir}/info'
774 htmldir='${docdir}'
775 dvidir='${docdir}'
776 pdfdir='${docdir}'
777 psdir='${docdir}'
778 libdir='${exec_prefix}/lib'
779 localedir='${datarootdir}/locale'
780 mandir='${datarootdir}/man'
782 ac_prev=
783 ac_dashdash=
784 for ac_option
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\$ac_option
789 ac_prev=
790 continue
793 case $ac_option in
794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 *) ac_optarg=yes ;;
796 esac
798 # Accept the important Cygnus configure options, so we can diagnose typos.
800 case $ac_dashdash$ac_option in
802 ac_dashdash=yes ;;
804 -bindir | --bindir | --bindi | --bind | --bin | --bi)
805 ac_prev=bindir ;;
806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807 bindir=$ac_optarg ;;
809 -build | --build | --buil | --bui | --bu)
810 ac_prev=build_alias ;;
811 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812 build_alias=$ac_optarg ;;
814 -cache-file | --cache-file | --cache-fil | --cache-fi \
815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816 ac_prev=cache_file ;;
817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819 cache_file=$ac_optarg ;;
821 --config-cache | -C)
822 cache_file=config.cache ;;
824 -datadir | --datadir | --datadi | --datad)
825 ac_prev=datadir ;;
826 -datadir=* | --datadir=* | --datadi=* | --datad=*)
827 datadir=$ac_optarg ;;
829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830 | --dataroo | --dataro | --datar)
831 ac_prev=datarootdir ;;
832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834 datarootdir=$ac_optarg ;;
836 -disable-* | --disable-*)
837 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_$ac_feature=no ;;
845 -docdir | --docdir | --docdi | --doc | --do)
846 ac_prev=docdir ;;
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848 docdir=$ac_optarg ;;
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851 ac_prev=dvidir ;;
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853 dvidir=$ac_optarg ;;
855 -enable-* | --enable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=\$ac_optarg ;;
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
1011 sbindir=$ac_optarg ;;
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
1022 sharedstatedir=$ac_optarg ;;
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
1027 site=$ac_optarg ;;
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1052 -with-* | --with-*)
1053 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1059 eval with_$ac_package=\$ac_optarg ;;
1061 -without-* | --without-*)
1062 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=no ;;
1070 --x)
1071 # Obsolete; use --with-x.
1072 with_x=yes ;;
1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1075 | --x-incl | --x-inc | --x-in | --x-i)
1076 ac_prev=x_includes ;;
1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1079 x_includes=$ac_optarg ;;
1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1083 ac_prev=x_libraries ;;
1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1086 x_libraries=$ac_optarg ;;
1088 -*) { echo "$as_me: error: unrecognized option: $ac_option
1089 Try \`$0 --help' for more information." >&2
1090 { (exit 1); exit 1; }; }
1093 *=*)
1094 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1098 { (exit 1); exit 1; }; }
1099 eval $ac_envvar=\$ac_optarg
1100 export $ac_envvar ;;
1103 # FIXME: should be removed in autoconf 3.0.
1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1110 esac
1111 done
1113 if test -n "$ac_prev"; then
1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1115 { echo "$as_me: error: missing argument to $ac_option" >&2
1116 { (exit 1); exit 1; }; }
1119 # Be sure to have absolute directory names.
1120 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
1125 eval ac_val=\$$ac_var
1126 case $ac_val in
1127 [\\/$]* | ?:[\\/]* ) continue;;
1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1129 esac
1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1131 { (exit 1); exit 1; }; }
1132 done
1134 # There might be people who depend on the old broken behavior: `$host'
1135 # used to hold the argument of --host etc.
1136 # FIXME: To remove some day.
1137 build=$build_alias
1138 host=$host_alias
1139 target=$target_alias
1141 # FIXME: To remove some day.
1142 if test "x$host_alias" != x; then
1143 if test "x$build_alias" = x; then
1144 cross_compiling=maybe
1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1148 cross_compiling=yes
1152 ac_tool_prefix=
1153 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155 test "$silent" = yes && exec 6>/dev/null
1158 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159 ac_ls_di=`ls -di .` &&
1160 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161 { echo "$as_me: error: Working directory cannot be determined" >&2
1162 { (exit 1); exit 1; }; }
1163 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164 { echo "$as_me: error: pwd does not report name of working directory" >&2
1165 { (exit 1); exit 1; }; }
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170 ac_srcdir_defaulted=yes
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir=`$as_dirname -- "$0" ||
1173 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174 X"$0" : 'X\(//\)[^/]' \| \
1175 X"$0" : 'X\(//\)$' \| \
1176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1177 echo X"$0" |
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179 s//\1/
1182 /^X\(\/\/\)[^/].*/{
1183 s//\1/
1186 /^X\(\/\/\)$/{
1187 s//\1/
1190 /^X\(\/\).*/{
1191 s//\1/
1194 s/.*/./; q'`
1195 srcdir=$ac_confdir
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1197 srcdir=..
1199 else
1200 ac_srcdir_defaulted=no
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1205 { (exit 1); exit 1; }; }
1207 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 ac_abs_confdir=`(
1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1210 { (exit 1); exit 1; }; }
1211 pwd)`
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 srcdir=.
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1219 case $srcdir in
1220 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 esac
1222 for ac_var in $ac_precious_vars; do
1223 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_${ac_var}_value=\$${ac_var}
1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1227 done
1230 # Report the --help message.
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1235 cat <<_ACEOF
1236 \`configure' configures OpenVPN 2.1.0 to adapt to many kinds of systems.
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1243 Defaults for the options are specified in brackets.
1245 Configuration:
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 [PREFIX]
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1267 For better control, use the options below.
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1285 --htmldir=DIR html documentation [DOCDIR]
1286 --dvidir=DIR dvi documentation [DOCDIR]
1287 --pdfdir=DIR pdf documentation [DOCDIR]
1288 --psdir=DIR ps documentation [DOCDIR]
1289 _ACEOF
1291 cat <<\_ACEOF
1293 Program names:
1294 --program-prefix=PREFIX prepend PREFIX to installed program names
1295 --program-suffix=SUFFIX append SUFFIX to installed program names
1296 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1298 System types:
1299 --build=BUILD configure for building on BUILD [guessed]
1300 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1301 --target=TARGET configure for building compilers for TARGET [HOST]
1302 _ACEOF
1305 if test -n "$ac_init_help"; then
1306 case $ac_init_help in
1307 short | recursive ) echo "Configuration of OpenVPN 2.1.0:";;
1308 esac
1309 cat <<\_ACEOF
1311 Optional Features:
1312 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1313 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1314 --disable-lzo Disable LZO compression support
1315 --disable-crypto Disable OpenSSL crypto support
1316 --disable-ssl Disable OpenSSL SSL support for TLS-based key exchange
1317 --disable-multi Disable client/server support (--mode server + client mode)
1318 --disable-server Disable server support only (but retain client support)
1319 --disable-plugins Disable plug-in support
1320 --disable-management Disable management server support
1321 --disable-pkcs11 Disable pkcs11 support
1322 --disable-socks Disable Socks support
1323 --disable-http Disable HTTP proxy support
1324 --disable-fragment Disable internal fragmentation support (--fragment)
1325 --disable-multihome Disable multi-homed UDP server support (--multihome)
1326 --disable-port-share Disable TCP server port-share support (--port-share)
1327 --disable-debug Disable debugging support (disable gremlin and verb 7+ messages)
1328 --enable-small Enable smaller executable size (disable OCC, usage message, and verb 4 parm list)
1329 --enable-pthread Enable pthread support (Experimental for OpenVPN 2.0)
1330 --enable-password-save Allow --askpass and --auth-user-pass passwords to be read from a file
1331 --enable-iproute2 Enable support for iproute2
1332 --disable-def-auth Disable deferred authentication
1333 --disable-pf Disable internal packet filter
1334 --enable-strict Enable strict compiler warnings (debugging option)
1335 --enable-pedantic Enable pedantic compiler warnings, will not generate a working executable (debugging option)
1336 --enable-profiling Enable profiling (debugging option)
1337 --enable-strict-options Enable strict options check between peers (debugging option)
1338 --disable-selinux Disable SELinux support
1339 --disable-dependency-tracking speeds up one-time build
1340 --enable-dependency-tracking do not reject slow dependency extractors
1342 Optional Packages:
1343 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1344 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1345 --with-cygwin-native Compile native win32
1346 --with-ssl-headers=DIR Crypto/SSL Include files location
1347 --with-ssl-lib=DIR Crypto/SSL Library location
1348 --with-lzo-headers=DIR LZO Include files location
1349 --with-lzo-lib=DIR LZO Library location
1350 --with-pkcs11-helper-headers=DIR pkcs11-helper Include files location
1351 --with-pkcs11-helper-lib=DIR pkcs11-helper Library location
1352 --with-ifconfig-path=PATH Path to ifconfig tool
1353 --with-iproute-path=PATH Path to iproute tool
1354 --with-route-path=PATH Path to route tool
1355 --with-mem-check=TYPE Build with debug memory checking, TYPE = dmalloc or valgrind
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1365 CPP C preprocessor
1366 MAN2HTML man2html utility
1368 Use these variables to override the choices made by `configure' or to help
1369 it to find libraries and programs with nonstandard names/locations.
1371 Report bugs to <openvpn-users@lists.sourceforge.net>.
1372 _ACEOF
1373 ac_status=$?
1376 if test "$ac_init_help" = "recursive"; then
1377 # If there are subdirs, report their specific --help.
1378 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1379 test -d "$ac_dir" || continue
1380 ac_builddir=.
1382 case "$ac_dir" in
1383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1386 # A ".." for each directory in $ac_dir_suffix.
1387 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1388 case $ac_top_builddir_sub in
1389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1391 esac ;;
1392 esac
1393 ac_abs_top_builddir=$ac_pwd
1394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1395 # for backward compatibility:
1396 ac_top_builddir=$ac_top_build_prefix
1398 case $srcdir in
1399 .) # We are building in place.
1400 ac_srcdir=.
1401 ac_top_srcdir=$ac_top_builddir_sub
1402 ac_abs_top_srcdir=$ac_pwd ;;
1403 [\\/]* | ?:[\\/]* ) # Absolute name.
1404 ac_srcdir=$srcdir$ac_dir_suffix;
1405 ac_top_srcdir=$srcdir
1406 ac_abs_top_srcdir=$srcdir ;;
1407 *) # Relative name.
1408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1409 ac_top_srcdir=$ac_top_build_prefix$srcdir
1410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411 esac
1412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414 cd "$ac_dir" || { ac_status=$?; continue; }
1415 # Check for guested configure.
1416 if test -f "$ac_srcdir/configure.gnu"; then
1417 echo &&
1418 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1419 elif test -f "$ac_srcdir/configure"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure" --help=recursive
1422 else
1423 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 fi || ac_status=$?
1425 cd "$ac_pwd" || { ac_status=$?; break; }
1426 done
1429 test -n "$ac_init_help" && exit $ac_status
1430 if $ac_init_version; then
1431 cat <<\_ACEOF
1432 OpenVPN configure 2.1.0
1433 generated by GNU Autoconf 2.61
1435 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1436 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1437 This configure script is free software; the Free Software Foundation
1438 gives unlimited permission to copy, distribute and modify it.
1439 _ACEOF
1440 exit
1442 cat >config.log <<_ACEOF
1443 This file contains any messages produced by compilers while
1444 running configure, to aid debugging if configure makes a mistake.
1446 It was created by OpenVPN $as_me 2.1.0, which was
1447 generated by GNU Autoconf 2.61. Invocation command line was
1449 $ $0 $@
1451 _ACEOF
1452 exec 5>>config.log
1454 cat <<_ASUNAME
1455 ## --------- ##
1456 ## Platform. ##
1457 ## --------- ##
1459 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1460 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1461 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1462 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1463 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1465 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1466 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1468 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1469 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1470 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1471 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1472 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1473 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1474 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1476 _ASUNAME
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 for as_dir in $PATH
1481 IFS=$as_save_IFS
1482 test -z "$as_dir" && as_dir=.
1483 echo "PATH: $as_dir"
1484 done
1485 IFS=$as_save_IFS
1487 } >&5
1489 cat >&5 <<_ACEOF
1492 ## ----------- ##
1493 ## Core tests. ##
1494 ## ----------- ##
1496 _ACEOF
1499 # Keep a trace of the command line.
1500 # Strip out --no-create and --no-recursion so they do not pile up.
1501 # Strip out --silent because we don't want to record it for future runs.
1502 # Also quote any args containing shell meta-characters.
1503 # Make two passes to allow for proper duplicate-argument suppression.
1504 ac_configure_args=
1505 ac_configure_args0=
1506 ac_configure_args1=
1507 ac_must_keep_next=false
1508 for ac_pass in 1 2
1510 for ac_arg
1512 case $ac_arg in
1513 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1515 | -silent | --silent | --silen | --sile | --sil)
1516 continue ;;
1517 *\'*)
1518 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1519 esac
1520 case $ac_pass in
1521 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1523 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1524 if test $ac_must_keep_next = true; then
1525 ac_must_keep_next=false # Got value, back to normal.
1526 else
1527 case $ac_arg in
1528 *=* | --config-cache | -C | -disable-* | --disable-* \
1529 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1530 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1531 | -with-* | --with-* | -without-* | --without-* | --x)
1532 case "$ac_configure_args0 " in
1533 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1534 esac
1536 -* ) ac_must_keep_next=true ;;
1537 esac
1539 ac_configure_args="$ac_configure_args '$ac_arg'"
1541 esac
1542 done
1543 done
1544 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1545 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1547 # When interrupted or exit'd, cleanup temporary files, and complete
1548 # config.log. We remove comments because anyway the quotes in there
1549 # would cause problems or look ugly.
1550 # WARNING: Use '\'' to represent an apostrophe within the trap.
1551 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1552 trap 'exit_status=$?
1553 # Save into config.log some information that might help in debugging.
1555 echo
1557 cat <<\_ASBOX
1558 ## ---------------- ##
1559 ## Cache variables. ##
1560 ## ---------------- ##
1561 _ASBOX
1562 echo
1563 # The following way of writing the cache mishandles newlines in values,
1565 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1566 eval ac_val=\$$ac_var
1567 case $ac_val in #(
1568 *${as_nl}*)
1569 case $ac_var in #(
1570 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1571 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1572 esac
1573 case $ac_var in #(
1574 _ | IFS | as_nl) ;; #(
1575 *) $as_unset $ac_var ;;
1576 esac ;;
1577 esac
1578 done
1579 (set) 2>&1 |
1580 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1581 *${as_nl}ac_space=\ *)
1582 sed -n \
1583 "s/'\''/'\''\\\\'\'''\''/g;
1584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1585 ;; #(
1587 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1589 esac |
1590 sort
1592 echo
1594 cat <<\_ASBOX
1595 ## ----------------- ##
1596 ## Output variables. ##
1597 ## ----------------- ##
1598 _ASBOX
1599 echo
1600 for ac_var in $ac_subst_vars
1602 eval ac_val=\$$ac_var
1603 case $ac_val in
1604 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 esac
1606 echo "$ac_var='\''$ac_val'\''"
1607 done | sort
1608 echo
1610 if test -n "$ac_subst_files"; then
1611 cat <<\_ASBOX
1612 ## ------------------- ##
1613 ## File substitutions. ##
1614 ## ------------------- ##
1615 _ASBOX
1616 echo
1617 for ac_var in $ac_subst_files
1619 eval ac_val=\$$ac_var
1620 case $ac_val in
1621 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622 esac
1623 echo "$ac_var='\''$ac_val'\''"
1624 done | sort
1625 echo
1628 if test -s confdefs.h; then
1629 cat <<\_ASBOX
1630 ## ----------- ##
1631 ## confdefs.h. ##
1632 ## ----------- ##
1633 _ASBOX
1634 echo
1635 cat confdefs.h
1636 echo
1638 test "$ac_signal" != 0 &&
1639 echo "$as_me: caught signal $ac_signal"
1640 echo "$as_me: exit $exit_status"
1641 } >&5
1642 rm -f core *.core core.conftest.* &&
1643 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1644 exit $exit_status
1646 for ac_signal in 1 2 13 15; do
1647 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1648 done
1649 ac_signal=0
1651 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1652 rm -f -r conftest* confdefs.h
1654 # Predefined preprocessor variables.
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_NAME "$PACKAGE_NAME"
1658 _ACEOF
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1663 _ACEOF
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1668 _ACEOF
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_STRING "$PACKAGE_STRING"
1673 _ACEOF
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1678 _ACEOF
1681 # Let the site file select an alternate cache file if it wants to.
1682 # Prefer explicitly selected file to automatically selected ones.
1683 if test -n "$CONFIG_SITE"; then
1684 set x "$CONFIG_SITE"
1685 elif test "x$prefix" != xNONE; then
1686 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1687 else
1688 set x "$ac_default_prefix/share/config.site" \
1689 "$ac_default_prefix/etc/config.site"
1691 shift
1692 for ac_site_file
1694 if test -r "$ac_site_file"; then
1695 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1696 echo "$as_me: loading site script $ac_site_file" >&6;}
1697 sed 's/^/| /' "$ac_site_file" >&5
1698 . "$ac_site_file"
1700 done
1702 if test -r "$cache_file"; then
1703 # Some versions of bash will fail to source /dev/null (special
1704 # files actually), so we avoid doing that.
1705 if test -f "$cache_file"; then
1706 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1707 echo "$as_me: loading cache $cache_file" >&6;}
1708 case $cache_file in
1709 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1710 *) . "./$cache_file";;
1711 esac
1713 else
1714 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1715 echo "$as_me: creating cache $cache_file" >&6;}
1716 >$cache_file
1719 # Check that the precious variables saved in the cache have kept the same
1720 # value.
1721 ac_cache_corrupted=false
1722 for ac_var in $ac_precious_vars; do
1723 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1724 eval ac_new_set=\$ac_env_${ac_var}_set
1725 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1726 eval ac_new_val=\$ac_env_${ac_var}_value
1727 case $ac_old_set,$ac_new_set in
1728 set,)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,set)
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1734 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1736 ,);;
1738 if test "x$ac_old_val" != "x$ac_new_val"; then
1739 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1740 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1741 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1742 echo "$as_me: former value: $ac_old_val" >&2;}
1743 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1744 echo "$as_me: current value: $ac_new_val" >&2;}
1745 ac_cache_corrupted=:
1746 fi;;
1747 esac
1748 # Pass precious variables to config.status.
1749 if test "$ac_new_set" = set; then
1750 case $ac_new_val in
1751 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1752 *) ac_arg=$ac_var=$ac_new_val ;;
1753 esac
1754 case " $ac_configure_args " in
1755 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1756 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1757 esac
1759 done
1760 if $ac_cache_corrupted; then
1761 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1762 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1763 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1764 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1765 { (exit 1); exit 1; }; }
1792 ac_ext=c
1793 ac_cpp='$CPP $CPPFLAGS'
1794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1799 ac_config_headers="$ac_config_headers config.h"
1803 ac_aux_dir=
1804 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1805 if test -f "$ac_dir/install-sh"; then
1806 ac_aux_dir=$ac_dir
1807 ac_install_sh="$ac_aux_dir/install-sh -c"
1808 break
1809 elif test -f "$ac_dir/install.sh"; then
1810 ac_aux_dir=$ac_dir
1811 ac_install_sh="$ac_aux_dir/install.sh -c"
1812 break
1813 elif test -f "$ac_dir/shtool"; then
1814 ac_aux_dir=$ac_dir
1815 ac_install_sh="$ac_aux_dir/shtool install -c"
1816 break
1818 done
1819 if test -z "$ac_aux_dir"; then
1820 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1821 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1822 { (exit 1); exit 1; }; }
1825 # These three variables are undocumented and unsupported,
1826 # and are intended to be withdrawn in a future Autoconf release.
1827 # They can cause serious problems if a builder's source tree is in a directory
1828 # whose full name contains unusual characters.
1829 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1830 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1831 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1834 # Make sure we can run config.sub.
1835 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1836 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1837 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1838 { (exit 1); exit 1; }; }
1840 { echo "$as_me:$LINENO: checking build system type" >&5
1841 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1842 if test "${ac_cv_build+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 ac_build_alias=$build_alias
1846 test "x$ac_build_alias" = x &&
1847 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1848 test "x$ac_build_alias" = x &&
1849 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1850 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1851 { (exit 1); exit 1; }; }
1852 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1853 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1854 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1855 { (exit 1); exit 1; }; }
1858 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1859 echo "${ECHO_T}$ac_cv_build" >&6; }
1860 case $ac_cv_build in
1861 *-*-*) ;;
1862 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1863 echo "$as_me: error: invalid value of canonical build" >&2;}
1864 { (exit 1); exit 1; }; };;
1865 esac
1866 build=$ac_cv_build
1867 ac_save_IFS=$IFS; IFS='-'
1868 set x $ac_cv_build
1869 shift
1870 build_cpu=$1
1871 build_vendor=$2
1872 shift; shift
1873 # Remember, the first character of IFS is used to create $*,
1874 # except with old shells:
1875 build_os=$*
1876 IFS=$ac_save_IFS
1877 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1880 { echo "$as_me:$LINENO: checking host system type" >&5
1881 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1882 if test "${ac_cv_host+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test "x$host_alias" = x; then
1886 ac_cv_host=$ac_cv_build
1887 else
1888 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1889 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1890 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1891 { (exit 1); exit 1; }; }
1895 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1896 echo "${ECHO_T}$ac_cv_host" >&6; }
1897 case $ac_cv_host in
1898 *-*-*) ;;
1899 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1900 echo "$as_me: error: invalid value of canonical host" >&2;}
1901 { (exit 1); exit 1; }; };;
1902 esac
1903 host=$ac_cv_host
1904 ac_save_IFS=$IFS; IFS='-'
1905 set x $ac_cv_host
1906 shift
1907 host_cpu=$1
1908 host_vendor=$2
1909 shift; shift
1910 # Remember, the first character of IFS is used to create $*,
1911 # except with old shells:
1912 host_os=$*
1913 IFS=$ac_save_IFS
1914 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1917 { echo "$as_me:$LINENO: checking target system type" >&5
1918 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1919 if test "${ac_cv_target+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 if test "x$target_alias" = x; then
1923 ac_cv_target=$ac_cv_host
1924 else
1925 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1926 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1927 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1928 { (exit 1); exit 1; }; }
1932 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1933 echo "${ECHO_T}$ac_cv_target" >&6; }
1934 case $ac_cv_target in
1935 *-*-*) ;;
1936 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1937 echo "$as_me: error: invalid value of canonical target" >&2;}
1938 { (exit 1); exit 1; }; };;
1939 esac
1940 target=$ac_cv_target
1941 ac_save_IFS=$IFS; IFS='-'
1942 set x $ac_cv_target
1943 shift
1944 target_cpu=$1
1945 target_vendor=$2
1946 shift; shift
1947 # Remember, the first character of IFS is used to create $*,
1948 # except with old shells:
1949 target_os=$*
1950 IFS=$ac_save_IFS
1951 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1954 # The aliases save the names the user supplied, while $host etc.
1955 # will get canonicalized.
1956 test -n "$target_alias" &&
1957 test "$program_prefix$program_suffix$program_transform_name" = \
1958 NONENONEs,x,x, &&
1959 program_prefix=${target_alias}-
1960 am__api_version='1.10'
1962 # Find a good install program. We prefer a C program (faster),
1963 # so one script is as good as another. But avoid the broken or
1964 # incompatible versions:
1965 # SysV /etc/install, /usr/sbin/install
1966 # SunOS /usr/etc/install
1967 # IRIX /sbin/install
1968 # AIX /bin/install
1969 # AmigaOS /C/install, which installs bootblocks on floppy discs
1970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1973 # OS/2's system install, which has a completely different semantic
1974 # ./install, which can be erroneously created by make from ./install.sh.
1975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1977 if test -z "$INSTALL"; then
1978 if test "${ac_cv_path_install+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 # Account for people who put trailing slashes in PATH elements.
1987 case $as_dir/ in
1988 ./ | .// | /cC/* | \
1989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1991 /usr/ucb/* ) ;;
1993 # OSF1 and SCO ODT 3.0 have their own names for install.
1994 # Don't use installbsd from OSF since it installs stuff as root
1995 # by default.
1996 for ac_prog in ginstall scoinst install; do
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1999 if test $ac_prog = install &&
2000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2001 # AIX install. It has an incompatible calling convention.
2003 elif test $ac_prog = install &&
2004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2005 # program-specific install script used by HP pwplus--don't use.
2007 else
2008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2009 break 3
2012 done
2013 done
2015 esac
2016 done
2017 IFS=$as_save_IFS
2021 if test "${ac_cv_path_install+set}" = set; then
2022 INSTALL=$ac_cv_path_install
2023 else
2024 # As a last resort, use the slow shell script. Don't cache a
2025 # value for INSTALL within a source directory, because that will
2026 # break other packages using the cache if that directory is
2027 # removed, or if the value is a relative name.
2028 INSTALL=$ac_install_sh
2031 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2032 echo "${ECHO_T}$INSTALL" >&6; }
2034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2035 # It thinks the first close brace ends the variable substitution.
2036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2042 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2043 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2044 # Just in case
2045 sleep 1
2046 echo timestamp > conftest.file
2047 # Do `set' in a subshell so we don't clobber the current shell's
2048 # arguments. Must try -L first in case configure is actually a
2049 # symlink; some systems play weird games with the mod time of symlinks
2050 # (eg FreeBSD returns the mod time of the symlink's containing
2051 # directory).
2052 if (
2053 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2054 if test "$*" = "X"; then
2055 # -L didn't work.
2056 set X `ls -t $srcdir/configure conftest.file`
2058 rm -f conftest.file
2059 if test "$*" != "X $srcdir/configure conftest.file" \
2060 && test "$*" != "X conftest.file $srcdir/configure"; then
2062 # If neither matched, then we have a broken ls. This can happen
2063 # if, for instance, CONFIG_SHELL is bash and it inherits a
2064 # broken ls alias from the environment. This has actually
2065 # happened. Such a system could not be considered "sane".
2066 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2067 alias in your environment" >&5
2068 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2069 alias in your environment" >&2;}
2070 { (exit 1); exit 1; }; }
2073 test "$2" = conftest.file
2075 then
2076 # Ok.
2078 else
2079 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2080 Check your system clock" >&5
2081 echo "$as_me: error: newly created file is older than distributed files!
2082 Check your system clock" >&2;}
2083 { (exit 1); exit 1; }; }
2085 { echo "$as_me:$LINENO: result: yes" >&5
2086 echo "${ECHO_T}yes" >&6; }
2087 test "$program_prefix" != NONE &&
2088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2089 # Use a double $ so make ignores it.
2090 test "$program_suffix" != NONE &&
2091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2092 # Double any \ or $. echo might interpret backslashes.
2093 # By default was `s,x,x', remove it if useless.
2094 cat <<\_ACEOF >conftest.sed
2095 s/[\\$]/&&/g;s/;s,x,x,$//
2096 _ACEOF
2097 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2098 rm -f conftest.sed
2100 # expand $ac_aux_dir to an absolute path
2101 am_aux_dir=`cd $ac_aux_dir && pwd`
2103 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2104 # Use eval to expand $SHELL
2105 if eval "$MISSING --run true"; then
2106 am_missing_run="$MISSING --run "
2107 else
2108 am_missing_run=
2109 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2110 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2113 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2114 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2115 if test -z "$MKDIR_P"; then
2116 if test "${ac_cv_path_mkdir+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_prog in mkdir gmkdir; do
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2127 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2128 'mkdir (GNU coreutils) '* | \
2129 'mkdir (coreutils) '* | \
2130 'mkdir (fileutils) '4.1*)
2131 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2132 break 3;;
2133 esac
2134 done
2135 done
2136 done
2137 IFS=$as_save_IFS
2141 if test "${ac_cv_path_mkdir+set}" = set; then
2142 MKDIR_P="$ac_cv_path_mkdir -p"
2143 else
2144 # As a last resort, use the slow shell script. Don't cache a
2145 # value for MKDIR_P within a source directory, because that will
2146 # break other packages using the cache if that directory is
2147 # removed, or if the value is a relative name.
2148 test -d ./--version && rmdir ./--version
2149 MKDIR_P="$ac_install_sh -d"
2152 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2153 echo "${ECHO_T}$MKDIR_P" >&6; }
2155 mkdir_p="$MKDIR_P"
2156 case $mkdir_p in
2157 [\\/$]* | ?:[\\/]*) ;;
2158 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2159 esac
2161 for ac_prog in gawk mawk nawk awk
2163 # Extract the first word of "$ac_prog", so it can be a program name with args.
2164 set dummy $ac_prog; ac_word=$2
2165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2167 if test "${ac_cv_prog_AWK+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test -n "$AWK"; then
2171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2172 else
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2180 ac_cv_prog_AWK="$ac_prog"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2184 done
2185 done
2186 IFS=$as_save_IFS
2190 AWK=$ac_cv_prog_AWK
2191 if test -n "$AWK"; then
2192 { echo "$as_me:$LINENO: result: $AWK" >&5
2193 echo "${ECHO_T}$AWK" >&6; }
2194 else
2195 { echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6; }
2200 test -n "$AWK" && break
2201 done
2203 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2204 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2205 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209 cat >conftest.make <<\_ACEOF
2210 SHELL = /bin/sh
2211 all:
2212 @echo '@@@%%%=$(MAKE)=@@@%%%'
2213 _ACEOF
2214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2215 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2216 *@@@%%%=?*=@@@%%%*)
2217 eval ac_cv_prog_make_${ac_make}_set=yes;;
2219 eval ac_cv_prog_make_${ac_make}_set=no;;
2220 esac
2221 rm -f conftest.make
2223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2224 { echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6; }
2226 SET_MAKE=
2227 else
2228 { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2230 SET_MAKE="MAKE=${MAKE-make}"
2233 rm -rf .tst 2>/dev/null
2234 mkdir .tst 2>/dev/null
2235 if test -d .tst; then
2236 am__leading_dot=.
2237 else
2238 am__leading_dot=_
2240 rmdir .tst 2>/dev/null
2242 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2243 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2244 # is not polluted with repeated "-I."
2245 am__isrc=' -I$(srcdir)'
2246 # test to see if srcdir already configured
2247 if test -f $srcdir/config.status; then
2248 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2249 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2250 { (exit 1); exit 1; }; }
2254 # test whether we have cygpath
2255 if test -z "$CYGPATH_W"; then
2256 if (cygpath --version) >/dev/null 2>/dev/null; then
2257 CYGPATH_W='cygpath -w'
2258 else
2259 CYGPATH_W=echo
2264 # Define the identity of the package.
2265 PACKAGE=openvpn
2266 VERSION=$PACKAGE_VERSION
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE "$PACKAGE"
2271 _ACEOF
2274 cat >>confdefs.h <<_ACEOF
2275 #define VERSION "$VERSION"
2276 _ACEOF
2278 # Some tools Automake needs.
2280 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2283 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2286 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2289 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2292 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2294 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2296 # Installed binaries are usually stripped using `strip' when the user
2297 # run `make install-strip'. However `strip' might not be the right
2298 # tool to use in cross-compilation environments, therefore Automake
2299 # will honor the `STRIP' environment variable to overrule this program.
2300 if test "$cross_compiling" != no; then
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2303 set dummy ${ac_tool_prefix}strip; ac_word=$2
2304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2306 if test "${ac_cv_prog_STRIP+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309 if test -n "$STRIP"; then
2310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2323 done
2324 done
2325 IFS=$as_save_IFS
2329 STRIP=$ac_cv_prog_STRIP
2330 if test -n "$STRIP"; then
2331 { echo "$as_me:$LINENO: result: $STRIP" >&5
2332 echo "${ECHO_T}$STRIP" >&6; }
2333 else
2334 { echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6; }
2340 if test -z "$ac_cv_prog_STRIP"; then
2341 ac_ct_STRIP=$STRIP
2342 # Extract the first word of "strip", so it can be a program name with args.
2343 set dummy strip; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 if test -n "$ac_ct_STRIP"; then
2350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_ac_ct_STRIP="strip"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2363 done
2364 done
2365 IFS=$as_save_IFS
2369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2370 if test -n "$ac_ct_STRIP"; then
2371 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2372 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2373 else
2374 { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2378 if test "x$ac_ct_STRIP" = x; then
2379 STRIP=":"
2380 else
2381 case $cross_compiling:$ac_tool_warned in
2382 yes:)
2383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2384 whose name does not start with the host triplet. If you think this
2385 configuration is useful to you, please write to autoconf@gnu.org." >&5
2386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2389 ac_tool_warned=yes ;;
2390 esac
2391 STRIP=$ac_ct_STRIP
2393 else
2394 STRIP="$ac_cv_prog_STRIP"
2398 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2400 # We need awk for the "check" target. The system "awk" is bad on
2401 # some platforms.
2402 # Always define AMTAR for backward compatibility.
2404 AMTAR=${AMTAR-"${am_missing_run}tar"}
2406 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2414 # Check whether --with-cygwin-native was given.
2415 if test "${with_cygwin_native+set}" = set; then
2416 withval=$with_cygwin_native; CYGWIN_NATIVE="${withval}"
2417 else
2418 CYGWIN_NATIVE="no"
2423 WIN32="no"
2424 CYGWIN="no"
2425 case "${host}" in
2426 *-mingw*)
2427 WIN32="yes"
2428 cross_compiling="yes"
2430 *-cygwin*)
2431 { echo "$as_me:$LINENO: checking cygwin mode to use" >&5
2432 echo $ECHO_N "checking cygwin mode to use... $ECHO_C" >&6; }
2433 if test "${CYGWIN_NATIVE}" = "yes"; then
2434 { echo "$as_me:$LINENO: result: Using native win32" >&5
2435 echo "${ECHO_T}Using native win32" >&6; }
2436 CFLAGS="${CFLAGS} -mno-cygwin"
2437 CYGWIN="yes"
2438 WIN32="yes"
2439 else
2440 { echo "$as_me:$LINENO: result: Using cygwin" >&5
2441 echo "${ECHO_T}Using cygwin" >&6; }
2446 esac
2448 # Check whether --enable-lzo was given.
2449 if test "${enable_lzo+set}" = set; then
2450 enableval=$enable_lzo; LZO="$enableval"
2451 else
2452 LZO="yes"
2457 # Check whether --enable-crypto was given.
2458 if test "${enable_crypto+set}" = set; then
2459 enableval=$enable_crypto; CRYPTO="$enableval"
2460 else
2461 CRYPTO="yes"
2466 # Check whether --enable-ssl was given.
2467 if test "${enable_ssl+set}" = set; then
2468 enableval=$enable_ssl; SSL="$enableval"
2469 else
2470 SSL="yes"
2475 # Check whether --enable-multi was given.
2476 if test "${enable_multi+set}" = set; then
2477 enableval=$enable_multi; MULTI="$enableval"
2478 else
2479 MULTI="yes"
2484 # Check whether --enable-server was given.
2485 if test "${enable_server+set}" = set; then
2486 enableval=$enable_server; MULTI_SERVER="$enableval"
2487 else
2488 MULTI_SERVER="yes"
2493 # Check whether --enable-plugins was given.
2494 if test "${enable_plugins+set}" = set; then
2495 enableval=$enable_plugins; PLUGINS="$enableval"
2496 else
2497 PLUGINS="yes"
2502 # Check whether --enable-management was given.
2503 if test "${enable_management+set}" = set; then
2504 enableval=$enable_management; MANAGEMENT="$enableval"
2505 else
2506 MANAGEMENT="yes"
2511 # Check whether --enable-pkcs11 was given.
2512 if test "${enable_pkcs11+set}" = set; then
2513 enableval=$enable_pkcs11; PKCS11="$enableval"
2514 else
2515 PKCS11="yes"
2520 # Check whether --enable-socks was given.
2521 if test "${enable_socks+set}" = set; then
2522 enableval=$enable_socks; SOCKS="$enableval"
2523 else
2524 SOCKS="yes"
2529 # Check whether --enable-http was given.
2530 if test "${enable_http+set}" = set; then
2531 enableval=$enable_http; HTTP_PROXY="$enableval"
2532 else
2533 HTTP_PROXY="yes"
2538 # Check whether --enable-fragment was given.
2539 if test "${enable_fragment+set}" = set; then
2540 enableval=$enable_fragment; FRAGMENT="$enableval"
2541 else
2542 FRAGMENT="yes"
2547 # Check whether --enable-multihome was given.
2548 if test "${enable_multihome+set}" = set; then
2549 enableval=$enable_multihome; MULTIHOME="$enableval"
2550 else
2551 MULTIHOME="yes"
2556 # Check whether --enable-port-share was given.
2557 if test "${enable_port_share+set}" = set; then
2558 enableval=$enable_port_share; PORT_SHARE="$enableval"
2559 else
2560 PORT_SHARE="yes"
2565 # Check whether --enable-debug was given.
2566 if test "${enable_debug+set}" = set; then
2567 enableval=$enable_debug; DEBUG="$enableval"
2568 else
2569 DEBUG="yes"
2574 # Check whether --enable-small was given.
2575 if test "${enable_small+set}" = set; then
2576 enableval=$enable_small; SMALL="$enableval"
2577 else
2578 SMALL="no"
2583 # Check whether --enable-pthread was given.
2584 if test "${enable_pthread+set}" = set; then
2585 enableval=$enable_pthread; PTHREAD="$enableval"
2586 else
2587 PTHREAD="no"
2592 # Check whether --enable-password-save was given.
2593 if test "${enable_password_save+set}" = set; then
2594 enableval=$enable_password_save; PASSWORD_SAVE="$enableval"
2595 else
2596 PASSWORD_SAVE="no"
2601 # Check whether --enable-iproute2 was given.
2602 if test "${enable_iproute2+set}" = set; then
2603 enableval=$enable_iproute2; test $enableval = "yes" &&
2604 cat >>confdefs.h <<\_ACEOF
2605 #define CONFIG_FEATURE_IPROUTE 1
2606 _ACEOF
2612 # Check whether --enable-def-auth was given.
2613 if test "${enable_def_auth+set}" = set; then
2614 enableval=$enable_def_auth; DEF_AUTH="$enableval"
2615 else
2616 DEF_AUTH="yes"
2621 # Check whether --enable-pf was given.
2622 if test "${enable_pf+set}" = set; then
2623 enableval=$enable_pf; PF="$enableval"
2624 else
2625 PF="yes"
2630 # Check whether --enable-strict was given.
2631 if test "${enable_strict+set}" = set; then
2632 enableval=$enable_strict; STRICT="$enableval"
2633 else
2634 STRICT="no"
2639 # Check whether --enable-pedantic was given.
2640 if test "${enable_pedantic+set}" = set; then
2641 enableval=$enable_pedantic; PEDANTIC="$enableval"
2642 else
2643 PEDANTIC="no"
2648 # Check whether --enable-profiling was given.
2649 if test "${enable_profiling+set}" = set; then
2650 enableval=$enable_profiling; PROFILE="$enableval"
2651 else
2652 PROFILE="no"
2657 # Check whether --enable-strict-options was given.
2658 if test "${enable_strict_options+set}" = set; then
2659 enableval=$enable_strict_options; STRICT_OPTIONS="$enableval"
2660 else
2661 STRICT_OPTIONS="no"
2666 # Check whether --enable-selinux was given.
2667 if test "${enable_selinux+set}" = set; then
2668 enableval=$enable_selinux; SELINUX="$enableval"
2669 else
2670 SELINUX="yes"
2676 # Check whether --with-ssl-headers was given.
2677 if test "${with_ssl_headers+set}" = set; then
2678 withval=$with_ssl_headers; CS_HDR_DIR="$withval"
2679 CPPFLAGS="$CPPFLAGS -I$withval"
2685 # Check whether --with-ssl-lib was given.
2686 if test "${with_ssl_lib+set}" = set; then
2687 withval=$with_ssl_lib; LDFLAGS="$LDFLAGS -L$withval"
2693 # Check whether --with-lzo-headers was given.
2694 if test "${with_lzo_headers+set}" = set; then
2695 withval=$with_lzo_headers; LZO_HDR_DIR="$withval"
2696 CPPFLAGS="$CPPFLAGS -I$withval"
2702 # Check whether --with-lzo-lib was given.
2703 if test "${with_lzo_lib+set}" = set; then
2704 withval=$with_lzo_lib; LDFLAGS="$LDFLAGS -L$withval"
2710 # Check whether --with-pkcs11-helper-headers was given.
2711 if test "${with_pkcs11_helper_headers+set}" = set; then
2712 withval=$with_pkcs11_helper_headers; PKCS11_HELPER_HDR_DIR="$withval"
2713 CPPFLAGS="$CPPFLAGS -I$withval"
2719 # Check whether --with-pkcs11-helper-lib was given.
2720 if test "${with_pkcs11_helper_lib+set}" = set; then
2721 withval=$with_pkcs11_helper_lib; LDFLAGS="$LDFLAGS -L$withval"
2727 # Check whether --with-ifconfig-path was given.
2728 if test "${with_ifconfig_path+set}" = set; then
2729 withval=$with_ifconfig_path; IFCONFIG="$withval"
2730 else
2731 # Extract the first word of "ifconfig", so it can be a program name with args.
2732 set dummy ifconfig; ac_word=$2
2733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735 if test "${ac_cv_path_IFCONFIG+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 case $IFCONFIG in
2739 [\\/]* | ?:[\\/]*)
2740 ac_cv_path_IFCONFIG="$IFCONFIG" # Let the user override the test with a path.
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
2745 for as_dir in $as_dummy
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2757 IFS=$as_save_IFS
2759 test -z "$ac_cv_path_IFCONFIG" && ac_cv_path_IFCONFIG="ifconfig"
2761 esac
2763 IFCONFIG=$ac_cv_path_IFCONFIG
2764 if test -n "$IFCONFIG"; then
2765 { echo "$as_me:$LINENO: result: $IFCONFIG" >&5
2766 echo "${ECHO_T}$IFCONFIG" >&6; }
2767 else
2768 { echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6; }
2777 cat >>confdefs.h <<_ACEOF
2778 #define IFCONFIG_PATH "$IFCONFIG"
2779 _ACEOF
2783 # Check whether --with-iproute-path was given.
2784 if test "${with_iproute_path+set}" = set; then
2785 withval=$with_iproute_path; IPROUTE="$withval"
2786 else
2787 # Extract the first word of "ip", so it can be a program name with args.
2788 set dummy ip; ac_word=$2
2789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2791 if test "${ac_cv_path_IPROUTE+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794 case $IPROUTE in
2795 [\\/]* | ?:[\\/]*)
2796 ac_cv_path_IPROUTE="$IPROUTE" # Let the user override the test with a path.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
2801 for as_dir in $as_dummy
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2811 done
2812 done
2813 IFS=$as_save_IFS
2815 test -z "$ac_cv_path_IPROUTE" && ac_cv_path_IPROUTE="ip"
2817 esac
2819 IPROUTE=$ac_cv_path_IPROUTE
2820 if test -n "$IPROUTE"; then
2821 { echo "$as_me:$LINENO: result: $IPROUTE" >&5
2822 echo "${ECHO_T}$IPROUTE" >&6; }
2823 else
2824 { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2833 cat >>confdefs.h <<_ACEOF
2834 #define IPROUTE_PATH "$IPROUTE"
2835 _ACEOF
2840 # Check whether --with-route-path was given.
2841 if test "${with_route_path+set}" = set; then
2842 withval=$with_route_path; ROUTE="$withval"
2843 else
2844 # Extract the first word of "route", so it can be a program name with args.
2845 set dummy route; ac_word=$2
2846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2848 if test "${ac_cv_path_ROUTE+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851 case $ROUTE in
2852 [\\/]* | ?:[\\/]*)
2853 ac_cv_path_ROUTE="$ROUTE" # Let the user override the test with a path.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
2858 for as_dir in $as_dummy
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2868 done
2869 done
2870 IFS=$as_save_IFS
2872 test -z "$ac_cv_path_ROUTE" && ac_cv_path_ROUTE="route"
2874 esac
2876 ROUTE=$ac_cv_path_ROUTE
2877 if test -n "$ROUTE"; then
2878 { echo "$as_me:$LINENO: result: $ROUTE" >&5
2879 echo "${ECHO_T}$ROUTE" >&6; }
2880 else
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2890 cat >>confdefs.h <<_ACEOF
2891 #define ROUTE_PATH "$ROUTE"
2892 _ACEOF
2896 # Check whether --with-mem-check was given.
2897 if test "${with_mem_check+set}" = set; then
2898 withval=$with_mem_check; MEMCHECK="$withval"
2903 CPPFLAGS="$CPPFLAGS -I${srcdir}"
2905 openvpn_target=$target
2906 if test $target_alias; then
2907 openvpn_target=$target_alias
2910 cat >>confdefs.h <<_ACEOF
2911 #define TARGET_ALIAS "$openvpn_target"
2912 _ACEOF
2914 case "$target" in
2915 *linux*)
2917 cat >>confdefs.h <<\_ACEOF
2918 #define TARGET_LINUX 1
2919 _ACEOF
2921 if test -z $CS_HDR_DIR && test "$CRYPTO" = "yes"; then
2922 CPPFLAGS="$CPPFLAGS $(pkg-config --cflags openssl 2>/dev/null)"
2925 *solaris*)
2927 cat >>confdefs.h <<\_ACEOF
2928 #define TARGET_SOLARIS 1
2929 _ACEOF
2932 *openbsd*)
2934 cat >>confdefs.h <<\_ACEOF
2935 #define TARGET_OPENBSD 1
2936 _ACEOF
2939 *freebsd*)
2941 cat >>confdefs.h <<\_ACEOF
2942 #define TARGET_FREEBSD 1
2943 _ACEOF
2946 *netbsd*)
2948 cat >>confdefs.h <<\_ACEOF
2949 #define TARGET_NETBSD 1
2950 _ACEOF
2953 *darwin*)
2955 cat >>confdefs.h <<\_ACEOF
2956 #define TARGET_DARWIN 1
2957 _ACEOF
2959 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
2961 *mingw*)
2963 cat >>confdefs.h <<\_ACEOF
2964 #define TARGET_WIN32 1
2965 _ACEOF
2968 LIBS="-lgdi32 $LIBS"
2971 LIBS="-lws2_32 $LIBS"
2974 LIBS="-lwininet $LIBS"
2977 LIBS="-lcrypt32 $LIBS"
2980 LIBS="-liphlpapi $LIBS"
2983 LIBS="-lwinmm $LIBS"
2986 *dragonfly*)
2988 cat >>confdefs.h <<\_ACEOF
2989 #define TARGET_DRAGONFLY 1
2990 _ACEOF
2994 esac
2996 ac_ext=c
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3006 if test "${ac_cv_prog_CC+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3023 done
3024 done
3025 IFS=$as_save_IFS
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031 { echo "$as_me:$LINENO: result: $CC" >&5
3032 echo "${ECHO_T}$CC" >&6; }
3033 else
3034 { echo "$as_me:$LINENO: result: no" >&5
3035 echo "${ECHO_T}no" >&6; }
3040 if test -z "$ac_cv_prog_CC"; then
3041 ac_ct_CC=$CC
3042 # Extract the first word of "gcc", so it can be a program name with args.
3043 set dummy gcc; ac_word=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_ac_ct_CC="gcc"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3063 done
3064 done
3065 IFS=$as_save_IFS
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 echo "${ECHO_T}$ac_ct_CC" >&6; }
3073 else
3074 { echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6; }
3078 if test "x$ac_ct_CC" = x; then
3079 CC=""
3080 else
3081 case $cross_compiling:$ac_tool_warned in
3082 yes:)
3083 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3084 whose name does not start with the host triplet. If you think this
3085 configuration is useful to you, please write to autoconf@gnu.org." >&5
3086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3087 whose name does not start with the host triplet. If you think this
3088 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3089 ac_tool_warned=yes ;;
3090 esac
3091 CC=$ac_ct_CC
3093 else
3094 CC="$ac_cv_prog_CC"
3097 if test -z "$CC"; then
3098 if test -n "$ac_tool_prefix"; then
3099 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3100 set dummy ${ac_tool_prefix}cc; ac_word=$2
3101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3103 if test "${ac_cv_prog_CC+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 ac_cv_prog_CC="${ac_tool_prefix}cc"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3120 done
3121 done
3122 IFS=$as_save_IFS
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128 { echo "$as_me:$LINENO: result: $CC" >&5
3129 echo "${ECHO_T}$CC" >&6; }
3130 else
3131 { echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6; }
3138 if test -z "$CC"; then
3139 # Extract the first word of "cc", so it can be a program name with args.
3140 set dummy cc; ac_word=$2
3141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3143 if test "${ac_cv_prog_CC+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 else
3149 ac_prog_rejected=no
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3158 ac_prog_rejected=yes
3159 continue
3161 ac_cv_prog_CC="cc"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3167 IFS=$as_save_IFS
3169 if test $ac_prog_rejected = yes; then
3170 # We found a bogon in the path, so make sure we never use it.
3171 set dummy $ac_cv_prog_CC
3172 shift
3173 if test $# != 0; then
3174 # We chose a different compiler from the bogus one.
3175 # However, it has the same basename, so the bogon will be chosen
3176 # first if we set CC to just the basename; use the full file name.
3177 shift
3178 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 { echo "$as_me:$LINENO: result: $CC" >&5
3186 echo "${ECHO_T}$CC" >&6; }
3187 else
3188 { echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6; }
3194 if test -z "$CC"; then
3195 if test -n "$ac_tool_prefix"; then
3196 for ac_prog in cl.exe
3198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3202 if test "${ac_cv_prog_CC+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 if test -n "$CC"; then
3206 ac_cv_prog_CC="$CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3221 IFS=$as_save_IFS
3225 CC=$ac_cv_prog_CC
3226 if test -n "$CC"; then
3227 { echo "$as_me:$LINENO: result: $CC" >&5
3228 echo "${ECHO_T}$CC" >&6; }
3229 else
3230 { echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6; }
3235 test -n "$CC" && break
3236 done
3238 if test -z "$CC"; then
3239 ac_ct_CC=$CC
3240 for ac_prog in cl.exe
3242 # Extract the first word of "$ac_prog", so it can be a program name with args.
3243 set dummy $ac_prog; ac_word=$2
3244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3246 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 if test -n "$ac_ct_CC"; then
3250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_prog_ac_ct_CC="$ac_prog"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3263 done
3264 done
3265 IFS=$as_save_IFS
3269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3270 if test -n "$ac_ct_CC"; then
3271 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3272 echo "${ECHO_T}$ac_ct_CC" >&6; }
3273 else
3274 { echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6; }
3279 test -n "$ac_ct_CC" && break
3280 done
3282 if test "x$ac_ct_CC" = x; then
3283 CC=""
3284 else
3285 case $cross_compiling:$ac_tool_warned in
3286 yes:)
3287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3288 whose name does not start with the host triplet. If you think this
3289 configuration is useful to you, please write to autoconf@gnu.org." >&5
3290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3291 whose name does not start with the host triplet. If you think this
3292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3293 ac_tool_warned=yes ;;
3294 esac
3295 CC=$ac_ct_CC
3302 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3303 See \`config.log' for more details." >&5
3304 echo "$as_me: error: no acceptable C compiler found in \$PATH
3305 See \`config.log' for more details." >&2;}
3306 { (exit 1); exit 1; }; }
3308 # Provide some information about the compiler.
3309 echo "$as_me:$LINENO: checking for C compiler version" >&5
3310 ac_compiler=`set X $ac_compile; echo $2`
3311 { (ac_try="$ac_compiler --version >&5"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compiler --version >&5") 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }
3321 { (ac_try="$ac_compiler -v >&5"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compiler -v >&5") 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }
3331 { (ac_try="$ac_compiler -V >&5"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_compiler -V >&5") 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3350 main ()
3354 return 0;
3356 _ACEOF
3357 ac_clean_files_save=$ac_clean_files
3358 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3359 # Try to create an executable without -o first, disregard a.out.
3360 # It will help us diagnose broken compilers, and finding out an intuition
3361 # of exeext.
3362 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3363 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3364 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3366 # List of possible output files, starting from the most likely.
3367 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3368 # only as a last resort. b.out is created by i960 compilers.
3369 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3371 # The IRIX 6 linker writes into existing files which may not be
3372 # executable, retaining their permissions. Remove them first so a
3373 # subsequent execution test works.
3374 ac_rmfiles=
3375 for ac_file in $ac_files
3377 case $ac_file in
3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3379 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3380 esac
3381 done
3382 rm -f $ac_rmfiles
3384 if { (ac_try="$ac_link_default"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_link_default") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; then
3394 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3395 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3396 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3397 # so that the user can short-circuit this test for compilers unknown to
3398 # Autoconf.
3399 for ac_file in $ac_files ''
3401 test -f "$ac_file" || continue
3402 case $ac_file in
3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3405 [ab].out )
3406 # We found the default executable, but exeext='' is most
3407 # certainly right.
3408 break;;
3409 *.* )
3410 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3411 then :; else
3412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3414 # We set ac_cv_exeext here because the later test for it is not
3415 # safe: cross compilers may not add the suffix if given an `-o'
3416 # argument, so we may need to know it at that point already.
3417 # Even if this section looks crufty: it has the advantage of
3418 # actually working.
3419 break;;
3421 break;;
3422 esac
3423 done
3424 test "$ac_cv_exeext" = no && ac_cv_exeext=
3426 else
3427 ac_file=''
3430 { echo "$as_me:$LINENO: result: $ac_file" >&5
3431 echo "${ECHO_T}$ac_file" >&6; }
3432 if test -z "$ac_file"; then
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3437 See \`config.log' for more details." >&5
3438 echo "$as_me: error: C compiler cannot create executables
3439 See \`config.log' for more details." >&2;}
3440 { (exit 77); exit 77; }; }
3443 ac_exeext=$ac_cv_exeext
3445 # Check that the compiler produces executables we can run. If not, either
3446 # the compiler is broken, or we cross compile.
3447 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3448 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3449 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3450 # If not cross compiling, check that we can run a simple program.
3451 if test "$cross_compiling" != yes; then
3452 if { ac_try='./$ac_file'
3453 { (case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_try") 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; }; then
3462 cross_compiling=no
3463 else
3464 if test "$cross_compiling" = maybe; then
3465 cross_compiling=yes
3466 else
3467 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3468 If you meant to cross compile, use \`--host'.
3469 See \`config.log' for more details." >&5
3470 echo "$as_me: error: cannot run C compiled programs.
3471 If you meant to cross compile, use \`--host'.
3472 See \`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }
3477 { echo "$as_me:$LINENO: result: yes" >&5
3478 echo "${ECHO_T}yes" >&6; }
3480 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3481 ac_clean_files=$ac_clean_files_save
3482 # Check that the compiler produces executables we can run. If not, either
3483 # the compiler is broken, or we cross compile.
3484 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3485 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3486 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3487 echo "${ECHO_T}$cross_compiling" >&6; }
3489 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3490 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3491 if { (ac_try="$ac_link"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_link") 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; then
3501 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3502 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3503 # work properly (i.e., refer to `conftest.exe'), while it won't with
3504 # `rm'.
3505 for ac_file in conftest.exe conftest conftest.*; do
3506 test -f "$ac_file" || continue
3507 case $ac_file in
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3509 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510 break;;
3511 * ) break;;
3512 esac
3513 done
3514 else
3515 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3516 See \`config.log' for more details." >&5
3517 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3518 See \`config.log' for more details." >&2;}
3519 { (exit 1); exit 1; }; }
3522 rm -f conftest$ac_cv_exeext
3523 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3524 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3526 rm -f conftest.$ac_ext
3527 EXEEXT=$ac_cv_exeext
3528 ac_exeext=$EXEEXT
3529 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3530 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3531 if test "${ac_cv_objext+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534 cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3542 main ()
3546 return 0;
3548 _ACEOF
3549 rm -f conftest.o conftest.obj
3550 if { (ac_try="$ac_compile"
3551 case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_compile") 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; then
3560 for ac_file in conftest.o conftest.obj conftest.*; do
3561 test -f "$ac_file" || continue;
3562 case $ac_file in
3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3565 break;;
3566 esac
3567 done
3568 else
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3573 See \`config.log' for more details." >&5
3574 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3575 See \`config.log' for more details." >&2;}
3576 { (exit 1); exit 1; }; }
3579 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3581 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3582 echo "${ECHO_T}$ac_cv_objext" >&6; }
3583 OBJEXT=$ac_cv_objext
3584 ac_objext=$OBJEXT
3585 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3586 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3587 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h. */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3598 main ()
3600 #ifndef __GNUC__
3601 choke me
3602 #endif
3605 return 0;
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compile") 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && {
3622 test -z "$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 } && test -s conftest.$ac_objext; then
3625 ac_compiler_gnu=yes
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 ac_compiler_gnu=no
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3637 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3638 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3639 GCC=`test $ac_compiler_gnu = yes && echo yes`
3640 ac_test_CFLAGS=${CFLAGS+set}
3641 ac_save_CFLAGS=$CFLAGS
3642 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3643 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3644 if test "${ac_cv_prog_cc_g+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 ac_save_c_werror_flag=$ac_c_werror_flag
3648 ac_c_werror_flag=yes
3649 ac_cv_prog_cc_g=no
3650 CFLAGS="-g"
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3659 main ()
3663 return 0;
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3674 ac_status=$?
3675 grep -v '^ *+' conftest.er1 >conftest.err
3676 rm -f conftest.er1
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } && {
3680 test -z "$ac_c_werror_flag" ||
3681 test ! -s conftest.err
3682 } && test -s conftest.$ac_objext; then
3683 ac_cv_prog_cc_g=yes
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3688 CFLAGS=""
3689 cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h. */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3697 main ()
3701 return 0;
3703 _ACEOF
3704 rm -f conftest.$ac_objext
3705 if { (ac_try="$ac_compile"
3706 case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_compile") 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } && {
3718 test -z "$ac_c_werror_flag" ||
3719 test ! -s conftest.err
3720 } && test -s conftest.$ac_objext; then
3722 else
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 ac_c_werror_flag=$ac_save_c_werror_flag
3727 CFLAGS="-g"
3728 cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h. */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3736 main ()
3740 return 0;
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (ac_try="$ac_compile"
3745 case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748 esac
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_compile") 2>conftest.er1
3751 ac_status=$?
3752 grep -v '^ *+' conftest.er1 >conftest.err
3753 rm -f conftest.er1
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } && {
3757 test -z "$ac_c_werror_flag" ||
3758 test ! -s conftest.err
3759 } && test -s conftest.$ac_objext; then
3760 ac_cv_prog_cc_g=yes
3761 else
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_c_werror_flag=$ac_save_c_werror_flag
3777 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3778 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3779 if test "$ac_test_CFLAGS" = set; then
3780 CFLAGS=$ac_save_CFLAGS
3781 elif test $ac_cv_prog_cc_g = yes; then
3782 if test "$GCC" = yes; then
3783 CFLAGS="-g -O2"
3784 else
3785 CFLAGS="-g"
3787 else
3788 if test "$GCC" = yes; then
3789 CFLAGS="-O2"
3790 else
3791 CFLAGS=
3794 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3795 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3796 if test "${ac_cv_prog_cc_c89+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 ac_cv_prog_cc_c89=no
3800 ac_save_CC=$CC
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <stdarg.h>
3808 #include <stdio.h>
3809 #include <sys/types.h>
3810 #include <sys/stat.h>
3811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3812 struct buf { int x; };
3813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3814 static char *e (p, i)
3815 char **p;
3816 int i;
3818 return p[i];
3820 static char *f (char * (*g) (char **, int), char **p, ...)
3822 char *s;
3823 va_list v;
3824 va_start (v,p);
3825 s = g (p, va_arg (v,int));
3826 va_end (v);
3827 return s;
3830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3831 function prototypes and stuff, but not '\xHH' hex character constants.
3832 These don't provoke an error unfortunately, instead are silently treated
3833 as 'x'. The following induces an error, until -std is added to get
3834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3835 array size at least. It's necessary to write '\x00'==0 to get something
3836 that's true only with -std. */
3837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3840 inside strings and character constants. */
3841 #define FOO(x) 'x'
3842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3844 int test (int i, double x);
3845 struct s1 {int (*f) (int a);};
3846 struct s2 {int (*f) (double a);};
3847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3848 int argc;
3849 char **argv;
3851 main ()
3853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3855 return 0;
3857 _ACEOF
3858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3861 CC="$ac_save_CC $ac_arg"
3862 rm -f conftest.$ac_objext
3863 if { (ac_try="$ac_compile"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && {
3876 test -z "$ac_c_werror_flag" ||
3877 test ! -s conftest.err
3878 } && test -s conftest.$ac_objext; then
3879 ac_cv_prog_cc_c89=$ac_arg
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3887 rm -f core conftest.err conftest.$ac_objext
3888 test "x$ac_cv_prog_cc_c89" != "xno" && break
3889 done
3890 rm -f conftest.$ac_ext
3891 CC=$ac_save_CC
3894 # AC_CACHE_VAL
3895 case "x$ac_cv_prog_cc_c89" in
3897 { echo "$as_me:$LINENO: result: none needed" >&5
3898 echo "${ECHO_T}none needed" >&6; } ;;
3899 xno)
3900 { echo "$as_me:$LINENO: result: unsupported" >&5
3901 echo "${ECHO_T}unsupported" >&6; } ;;
3903 CC="$CC $ac_cv_prog_cc_c89"
3904 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3905 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3906 esac
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914 DEPDIR="${am__leading_dot}deps"
3916 ac_config_commands="$ac_config_commands depfiles"
3919 am_make=${MAKE-make}
3920 cat > confinc << 'END'
3921 am__doit:
3922 @echo done
3923 .PHONY: am__doit
3925 # If we don't find an include directive, just comment out the code.
3926 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3927 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3928 am__include="#"
3929 am__quote=
3930 _am_result=none
3931 # First try GNU make style include.
3932 echo "include confinc" > confmf
3933 # We grep out `Entering directory' and `Leaving directory'
3934 # messages which can occur if `w' ends up in MAKEFLAGS.
3935 # In particular we don't look at `^make:' because GNU make might
3936 # be invoked under some other name (usually "gmake"), in which
3937 # case it prints its new name instead of `make'.
3938 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3939 am__include=include
3940 am__quote=
3941 _am_result=GNU
3943 # Now try BSD make style include.
3944 if test "$am__include" = "#"; then
3945 echo '.include "confinc"' > confmf
3946 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3947 am__include=.include
3948 am__quote="\""
3949 _am_result=BSD
3954 { echo "$as_me:$LINENO: result: $_am_result" >&5
3955 echo "${ECHO_T}$_am_result" >&6; }
3956 rm -f confinc confmf
3958 # Check whether --enable-dependency-tracking was given.
3959 if test "${enable_dependency_tracking+set}" = set; then
3960 enableval=$enable_dependency_tracking;
3963 if test "x$enable_dependency_tracking" != xno; then
3964 am_depcomp="$ac_aux_dir/depcomp"
3965 AMDEPBACKSLASH='\'
3967 if test "x$enable_dependency_tracking" != xno; then
3968 AMDEP_TRUE=
3969 AMDEP_FALSE='#'
3970 else
3971 AMDEP_TRUE='#'
3972 AMDEP_FALSE=
3977 depcc="$CC" am_compiler_list=
3979 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3980 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3981 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3985 # We make a subdir and do the tests there. Otherwise we can end up
3986 # making bogus files that we don't know about and never remove. For
3987 # instance it was reported that on HP-UX the gcc test will end up
3988 # making a dummy file named `D' -- because `-MD' means `put the output
3989 # in D'.
3990 mkdir conftest.dir
3991 # Copy depcomp to subdir because otherwise we won't find it if we're
3992 # using a relative directory.
3993 cp "$am_depcomp" conftest.dir
3994 cd conftest.dir
3995 # We will build objects and dependencies in a subdirectory because
3996 # it helps to detect inapplicable dependency modes. For instance
3997 # both Tru64's cc and ICC support -MD to output dependencies as a
3998 # side effect of compilation, but ICC will put the dependencies in
3999 # the current directory while Tru64 will put them in the object
4000 # directory.
4001 mkdir sub
4003 am_cv_CC_dependencies_compiler_type=none
4004 if test "$am_compiler_list" = ""; then
4005 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4007 for depmode in $am_compiler_list; do
4008 # Setup a source with many dependencies, because some compilers
4009 # like to wrap large dependency lists on column 80 (with \), and
4010 # we should not choose a depcomp mode which is confused by this.
4012 # We need to recreate these files for each test, as the compiler may
4013 # overwrite some of them when testing with obscure command lines.
4014 # This happens at least with the AIX C compiler.
4015 : > sub/conftest.c
4016 for i in 1 2 3 4 5 6; do
4017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4018 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4019 # Solaris 8's {/usr,}/bin/sh.
4020 touch sub/conftst$i.h
4021 done
4022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4024 case $depmode in
4025 nosideeffect)
4026 # after this tag, mechanisms are not by side-effect, so they'll
4027 # only be used when explicitly requested
4028 if test "x$enable_dependency_tracking" = xyes; then
4029 continue
4030 else
4031 break
4034 none) break ;;
4035 esac
4036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4037 # mode. It turns out that the SunPro C++ compiler does not properly
4038 # handle `-M -o', and we need to detect this.
4039 if depmode=$depmode \
4040 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4042 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4043 >/dev/null 2>conftest.err &&
4044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4046 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4048 # icc doesn't choke on unknown options, it will just issue warnings
4049 # or remarks (even with -Werror). So we grep stderr for any message
4050 # that says an option was ignored or not supported.
4051 # When given -MP, icc 7.0 and 7.1 complain thusly:
4052 # icc: Command line warning: ignoring option '-M'; no argument required
4053 # The diagnosis changed in icc 8.0:
4054 # icc: Command line remark: option '-MP' not supported
4055 if (grep 'ignoring option' conftest.err ||
4056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4057 am_cv_CC_dependencies_compiler_type=$depmode
4058 break
4061 done
4063 cd ..
4064 rm -rf conftest.dir
4065 else
4066 am_cv_CC_dependencies_compiler_type=none
4070 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4071 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4072 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4075 test "x$enable_dependency_tracking" != xno \
4076 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4077 am__fastdepCC_TRUE=
4078 am__fastdepCC_FALSE='#'
4079 else
4080 am__fastdepCC_TRUE='#'
4081 am__fastdepCC_FALSE=
4085 # Find a good install program. We prefer a C program (faster),
4086 # so one script is as good as another. But avoid the broken or
4087 # incompatible versions:
4088 # SysV /etc/install, /usr/sbin/install
4089 # SunOS /usr/etc/install
4090 # IRIX /sbin/install
4091 # AIX /bin/install
4092 # AmigaOS /C/install, which installs bootblocks on floppy discs
4093 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4094 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4095 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4096 # OS/2's system install, which has a completely different semantic
4097 # ./install, which can be erroneously created by make from ./install.sh.
4098 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4099 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4100 if test -z "$INSTALL"; then
4101 if test "${ac_cv_path_install+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 # Account for people who put trailing slashes in PATH elements.
4110 case $as_dir/ in
4111 ./ | .// | /cC/* | \
4112 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4113 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4114 /usr/ucb/* ) ;;
4116 # OSF1 and SCO ODT 3.0 have their own names for install.
4117 # Don't use installbsd from OSF since it installs stuff as root
4118 # by default.
4119 for ac_prog in ginstall scoinst install; do
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4122 if test $ac_prog = install &&
4123 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4124 # AIX install. It has an incompatible calling convention.
4126 elif test $ac_prog = install &&
4127 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4128 # program-specific install script used by HP pwplus--don't use.
4130 else
4131 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4132 break 3
4135 done
4136 done
4138 esac
4139 done
4140 IFS=$as_save_IFS
4144 if test "${ac_cv_path_install+set}" = set; then
4145 INSTALL=$ac_cv_path_install
4146 else
4147 # As a last resort, use the slow shell script. Don't cache a
4148 # value for INSTALL within a source directory, because that will
4149 # break other packages using the cache if that directory is
4150 # removed, or if the value is a relative name.
4151 INSTALL=$ac_install_sh
4154 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4155 echo "${ECHO_T}$INSTALL" >&6; }
4157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4158 # It thinks the first close brace ends the variable substitution.
4159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4161 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4163 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4166 ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4172 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4173 # On Suns, sometimes $CPP names a directory.
4174 if test -n "$CPP" && test -d "$CPP"; then
4175 CPP=
4177 if test -z "$CPP"; then
4178 if test "${ac_cv_prog_CPP+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 # Double quotes because CPP needs to be expanded
4182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4184 ac_preproc_ok=false
4185 for ac_c_preproc_warn_flag in '' yes
4187 # Use a header file that comes with gcc, so configuring glibc
4188 # with a fresh cross-compiler works.
4189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4190 # <limits.h> exists even on freestanding compilers.
4191 # On the NeXT, cc -E runs the code through the compiler's parser,
4192 # not just through cpp. "Syntax error" is here to catch this case.
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h. */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 #ifdef __STDC__
4200 # include <limits.h>
4201 #else
4202 # include <assert.h>
4203 #endif
4204 Syntax error
4205 _ACEOF
4206 if { (ac_try="$ac_cpp conftest.$ac_ext"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 }; then
4223 else
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 # Broken: fails on valid input.
4228 continue
4231 rm -f conftest.err conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4242 _ACEOF
4243 if { (ac_try="$ac_cpp conftest.$ac_ext"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev/null && {
4256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4257 test ! -s conftest.err
4258 }; then
4259 # Broken: success on invalid input.
4260 continue
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 # Passes both tests.
4266 ac_preproc_ok=:
4267 break
4270 rm -f conftest.err conftest.$ac_ext
4272 done
4273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274 rm -f conftest.err conftest.$ac_ext
4275 if $ac_preproc_ok; then
4276 break
4279 done
4280 ac_cv_prog_CPP=$CPP
4283 CPP=$ac_cv_prog_CPP
4284 else
4285 ac_cv_prog_CPP=$CPP
4287 { echo "$as_me:$LINENO: result: $CPP" >&5
4288 echo "${ECHO_T}$CPP" >&6; }
4289 ac_preproc_ok=false
4290 for ac_c_preproc_warn_flag in '' yes
4292 # Use a header file that comes with gcc, so configuring glibc
4293 # with a fresh cross-compiler works.
4294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4295 # <limits.h> exists even on freestanding compilers.
4296 # On the NeXT, cc -E runs the code through the compiler's parser,
4297 # not just through cpp. "Syntax error" is here to catch this case.
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h. */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 #ifdef __STDC__
4305 # include <limits.h>
4306 #else
4307 # include <assert.h>
4308 #endif
4309 Syntax error
4310 _ACEOF
4311 if { (ac_try="$ac_cpp conftest.$ac_ext"
4312 case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4318 ac_status=$?
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } >/dev/null && {
4324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4325 test ! -s conftest.err
4326 }; then
4328 else
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 # Broken: fails on valid input.
4333 continue
4336 rm -f conftest.err conftest.$ac_ext
4338 # OK, works on sane cases. Now check whether nonexistent headers
4339 # can be detected and how.
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h. */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 #include <ac_nonexistent.h>
4347 _ACEOF
4348 if { (ac_try="$ac_cpp conftest.$ac_ext"
4349 case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352 esac
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } >/dev/null && {
4361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4362 test ! -s conftest.err
4363 }; then
4364 # Broken: success on invalid input.
4365 continue
4366 else
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 # Passes both tests.
4371 ac_preproc_ok=:
4372 break
4375 rm -f conftest.err conftest.$ac_ext
4377 done
4378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4379 rm -f conftest.err conftest.$ac_ext
4380 if $ac_preproc_ok; then
4382 else
4383 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4384 See \`config.log' for more details." >&5
4385 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4386 See \`config.log' for more details." >&2;}
4387 { (exit 1); exit 1; }; }
4390 ac_ext=c
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4398 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4399 if test "${ac_cv_path_GREP+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 # Extract the first word of "grep ggrep" to use in msg output
4403 if test -z "$GREP"; then
4404 set dummy grep ggrep; ac_prog_name=$2
4405 if test "${ac_cv_path_GREP+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 ac_path_GREP_found=false
4409 # Loop through the user's path and test for each of PROGNAME-LIST
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_prog in grep ggrep; do
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4418 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4419 # Check for GNU ac_path_GREP and select it if it is found.
4420 # Check for GNU $ac_path_GREP
4421 case `"$ac_path_GREP" --version 2>&1` in
4422 *GNU*)
4423 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4425 ac_count=0
4426 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4427 while :
4429 cat "conftest.in" "conftest.in" >"conftest.tmp"
4430 mv "conftest.tmp" "conftest.in"
4431 cp "conftest.in" "conftest.nl"
4432 echo 'GREP' >> "conftest.nl"
4433 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435 ac_count=`expr $ac_count + 1`
4436 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4437 # Best one so far, save it but keep looking for a better one
4438 ac_cv_path_GREP="$ac_path_GREP"
4439 ac_path_GREP_max=$ac_count
4441 # 10*(2^10) chars as input seems more than enough
4442 test $ac_count -gt 10 && break
4443 done
4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445 esac
4448 $ac_path_GREP_found && break 3
4449 done
4450 done
4452 done
4453 IFS=$as_save_IFS
4458 GREP="$ac_cv_path_GREP"
4459 if test -z "$GREP"; then
4460 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4461 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4462 { (exit 1); exit 1; }; }
4465 else
4466 ac_cv_path_GREP=$GREP
4471 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4472 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4473 GREP="$ac_cv_path_GREP"
4476 { echo "$as_me:$LINENO: checking for egrep" >&5
4477 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4478 if test "${ac_cv_path_EGREP+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4482 then ac_cv_path_EGREP="$GREP -E"
4483 else
4484 # Extract the first word of "egrep" to use in msg output
4485 if test -z "$EGREP"; then
4486 set dummy egrep; ac_prog_name=$2
4487 if test "${ac_cv_path_EGREP+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490 ac_path_EGREP_found=false
4491 # Loop through the user's path and test for each of PROGNAME-LIST
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_prog in egrep; do
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4500 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4501 # Check for GNU ac_path_EGREP and select it if it is found.
4502 # Check for GNU $ac_path_EGREP
4503 case `"$ac_path_EGREP" --version 2>&1` in
4504 *GNU*)
4505 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4507 ac_count=0
4508 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4509 while :
4511 cat "conftest.in" "conftest.in" >"conftest.tmp"
4512 mv "conftest.tmp" "conftest.in"
4513 cp "conftest.in" "conftest.nl"
4514 echo 'EGREP' >> "conftest.nl"
4515 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517 ac_count=`expr $ac_count + 1`
4518 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4519 # Best one so far, save it but keep looking for a better one
4520 ac_cv_path_EGREP="$ac_path_EGREP"
4521 ac_path_EGREP_max=$ac_count
4523 # 10*(2^10) chars as input seems more than enough
4524 test $ac_count -gt 10 && break
4525 done
4526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527 esac
4530 $ac_path_EGREP_found && break 3
4531 done
4532 done
4534 done
4535 IFS=$as_save_IFS
4540 EGREP="$ac_cv_path_EGREP"
4541 if test -z "$EGREP"; then
4542 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4543 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4544 { (exit 1); exit 1; }; }
4547 else
4548 ac_cv_path_EGREP=$EGREP
4554 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4555 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4556 EGREP="$ac_cv_path_EGREP"
4559 if test $ac_cv_c_compiler_gnu = yes; then
4560 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4561 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4562 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 ac_pattern="Autoconf.*'x'"
4566 cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h. */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <sgtty.h>
4573 Autoconf TIOCGETP
4574 _ACEOF
4575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4576 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4577 ac_cv_prog_gcc_traditional=yes
4578 else
4579 ac_cv_prog_gcc_traditional=no
4581 rm -f conftest*
4584 if test $ac_cv_prog_gcc_traditional = no; then
4585 cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h. */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 #include <termio.h>
4592 Autoconf TCGETA
4593 _ACEOF
4594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4596 ac_cv_prog_gcc_traditional=yes
4598 rm -f conftest*
4602 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4603 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4604 if test $ac_cv_prog_gcc_traditional = yes; then
4605 CC="$CC -traditional"
4610 cat >>confdefs.h <<\_ACEOF
4611 #define _GNU_SOURCE 1
4612 _ACEOF
4616 if test "${WIN32}" = "yes"; then
4618 for ac_prog in man2html
4620 # Extract the first word of "$ac_prog", so it can be a program name with args.
4621 set dummy $ac_prog; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_MAN2HTML+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 if test -n "$MAN2HTML"; then
4628 ac_cv_prog_MAN2HTML="$MAN2HTML" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_MAN2HTML="$ac_prog"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4641 done
4642 done
4643 IFS=$as_save_IFS
4647 MAN2HTML=$ac_cv_prog_MAN2HTML
4648 if test -n "$MAN2HTML"; then
4649 { echo "$as_me:$LINENO: result: $MAN2HTML" >&5
4650 echo "${ECHO_T}$MAN2HTML" >&6; }
4651 else
4652 { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4657 test -n "$MAN2HTML" && break
4658 done
4660 test -z "${MAN2HTML}" && { { echo "$as_me:$LINENO: error: man2html is required for win32" >&5
4661 echo "$as_me: error: man2html is required for win32" >&2;}
4662 { (exit 1); exit 1; }; }
4665 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4666 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4667 if test "${ac_cv_header_stdc+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <stdlib.h>
4677 #include <stdarg.h>
4678 #include <string.h>
4679 #include <float.h>
4682 main ()
4686 return 0;
4688 _ACEOF
4689 rm -f conftest.$ac_objext
4690 if { (ac_try="$ac_compile"
4691 case "(($ac_try" in
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4694 esac
4695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696 (eval "$ac_compile") 2>conftest.er1
4697 ac_status=$?
4698 grep -v '^ *+' conftest.er1 >conftest.err
4699 rm -f conftest.er1
4700 cat conftest.err >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } && {
4703 test -z "$ac_c_werror_flag" ||
4704 test ! -s conftest.err
4705 } && test -s conftest.$ac_objext; then
4706 ac_cv_header_stdc=yes
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4711 ac_cv_header_stdc=no
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 if test $ac_cv_header_stdc = yes; then
4717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 #include <string.h>
4726 _ACEOF
4727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728 $EGREP "memchr" >/dev/null 2>&1; then
4730 else
4731 ac_cv_header_stdc=no
4733 rm -f conftest*
4737 if test $ac_cv_header_stdc = yes; then
4738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 #include <stdlib.h>
4747 _ACEOF
4748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749 $EGREP "free" >/dev/null 2>&1; then
4751 else
4752 ac_cv_header_stdc=no
4754 rm -f conftest*
4758 if test $ac_cv_header_stdc = yes; then
4759 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4760 if test "$cross_compiling" = yes; then
4762 else
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #include <ctype.h>
4770 #include <stdlib.h>
4771 #if ((' ' & 0x0FF) == 0x020)
4772 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4773 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4774 #else
4775 # define ISLOWER(c) \
4776 (('a' <= (c) && (c) <= 'i') \
4777 || ('j' <= (c) && (c) <= 'r') \
4778 || ('s' <= (c) && (c) <= 'z'))
4779 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4780 #endif
4782 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4784 main ()
4786 int i;
4787 for (i = 0; i < 256; i++)
4788 if (XOR (islower (i), ISLOWER (i))
4789 || toupper (i) != TOUPPER (i))
4790 return 2;
4791 return 0;
4793 _ACEOF
4794 rm -f conftest$ac_exeext
4795 if { (ac_try="$ac_link"
4796 case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_link") 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4805 { (case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808 esac
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_try") 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4815 else
4816 echo "$as_me: program exited with status $ac_status" >&5
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 ( exit $ac_status )
4821 ac_cv_header_stdc=no
4823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4829 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4830 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4831 if test $ac_cv_header_stdc = yes; then
4833 cat >>confdefs.h <<\_ACEOF
4834 #define STDC_HEADERS 1
4835 _ACEOF
4840 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4841 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4842 if test "${ac_cv_c_const+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4853 main ()
4855 /* FIXME: Include the comments suggested by Paul. */
4856 #ifndef __cplusplus
4857 /* Ultrix mips cc rejects this. */
4858 typedef int charset[2];
4859 const charset cs;
4860 /* SunOS 4.1.1 cc rejects this. */
4861 char const *const *pcpcc;
4862 char **ppc;
4863 /* NEC SVR4.0.2 mips cc rejects this. */
4864 struct point {int x, y;};
4865 static struct point const zero = {0,0};
4866 /* AIX XL C 1.02.0.0 rejects this.
4867 It does not let you subtract one const X* pointer from another in
4868 an arm of an if-expression whose if-part is not a constant
4869 expression */
4870 const char *g = "string";
4871 pcpcc = &g + (g ? g-g : 0);
4872 /* HPUX 7.0 cc rejects these. */
4873 ++pcpcc;
4874 ppc = (char**) pcpcc;
4875 pcpcc = (char const *const *) ppc;
4876 { /* SCO 3.2v4 cc rejects this. */
4877 char *t;
4878 char const *s = 0 ? (char *) 0 : (char const *) 0;
4880 *t++ = 0;
4881 if (s) return 0;
4883 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4884 int x[] = {25, 17};
4885 const int *foo = &x[0];
4886 ++foo;
4888 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4889 typedef const int *iptr;
4890 iptr p = 0;
4891 ++p;
4893 { /* AIX XL C 1.02.0.0 rejects this saying
4894 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4895 struct s { int j; const int *ap[3]; };
4896 struct s *b; b->j = 5;
4898 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4899 const int foo = 10;
4900 if (!foo) return 0;
4902 return !cs[0] && !zero.x;
4903 #endif
4906 return 0;
4908 _ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (ac_try="$ac_compile"
4911 case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914 esac
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_compile") 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && {
4923 test -z "$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest.$ac_objext; then
4926 ac_cv_c_const=yes
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4931 ac_cv_c_const=no
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4937 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4938 if test $ac_cv_c_const = no; then
4940 cat >>confdefs.h <<\_ACEOF
4941 #define const
4942 _ACEOF
4946 { echo "$as_me:$LINENO: checking for inline" >&5
4947 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4948 if test "${ac_cv_c_inline+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 ac_cv_c_inline=no
4952 for ac_kw in inline __inline__ __inline; do
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #ifndef __cplusplus
4960 typedef int foo_t;
4961 static $ac_kw foo_t static_foo () {return 0; }
4962 $ac_kw foo_t foo () {return 0; }
4963 #endif
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4968 case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && {
4980 test -z "$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
4983 ac_cv_c_inline=$ac_kw
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 test "$ac_cv_c_inline" != no && break
4993 done
4996 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4997 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5000 case $ac_cv_c_inline in
5001 inline | yes) ;;
5003 case $ac_cv_c_inline in
5004 no) ac_val=;;
5005 *) ac_val=$ac_cv_c_inline;;
5006 esac
5007 cat >>confdefs.h <<_ACEOF
5008 #ifndef __cplusplus
5009 #define inline $ac_val
5010 #endif
5011 _ACEOF
5013 esac
5015 { echo "$as_me:$LINENO: checking for working volatile" >&5
5016 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
5017 if test "${ac_cv_c_volatile+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5028 main ()
5031 volatile int x;
5032 int * volatile y = (int *) 0;
5033 return !x && !y;
5035 return 0;
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (ac_try="$ac_compile"
5040 case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } && {
5052 test -z "$ac_c_werror_flag" ||
5053 test ! -s conftest.err
5054 } && test -s conftest.$ac_objext; then
5055 ac_cv_c_volatile=yes
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 ac_cv_c_volatile=no
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5066 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
5067 if test $ac_cv_c_volatile = no; then
5069 cat >>confdefs.h <<\_ACEOF
5070 #define volatile
5071 _ACEOF
5075 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5085 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5086 inttypes.h stdint.h unistd.h
5088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 $ac_includes_default
5102 #include <$ac_header>
5103 _ACEOF
5104 rm -f conftest.$ac_objext
5105 if { (ac_try="$ac_compile"
5106 case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_compile") 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && {
5118 test -z "$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5120 } && test -s conftest.$ac_objext; then
5121 eval "$as_ac_Header=yes"
5122 else
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5126 eval "$as_ac_Header=no"
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 ac_res=`eval echo '${'$as_ac_Header'}'`
5132 { echo "$as_me:$LINENO: result: $ac_res" >&5
5133 echo "${ECHO_T}$ac_res" >&6; }
5134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5135 cat >>confdefs.h <<_ACEOF
5136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5137 _ACEOF
5141 done
5144 { echo "$as_me:$LINENO: checking for off_t" >&5
5145 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5146 if test "${ac_cv_type_off_t+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h. */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 $ac_includes_default
5156 typedef off_t ac__type_new_;
5158 main ()
5160 if ((ac__type_new_ *) 0)
5161 return 0;
5162 if (sizeof (ac__type_new_))
5163 return 0;
5165 return 0;
5167 _ACEOF
5168 rm -f conftest.$ac_objext
5169 if { (ac_try="$ac_compile"
5170 case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173 esac
5174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175 (eval "$ac_compile") 2>conftest.er1
5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } && {
5182 test -z "$ac_c_werror_flag" ||
5183 test ! -s conftest.err
5184 } && test -s conftest.$ac_objext; then
5185 ac_cv_type_off_t=yes
5186 else
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 ac_cv_type_off_t=no
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5196 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5197 if test $ac_cv_type_off_t = yes; then
5199 else
5201 cat >>confdefs.h <<_ACEOF
5202 #define off_t long int
5203 _ACEOF
5207 { echo "$as_me:$LINENO: checking for pid_t" >&5
5208 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5209 if test "${ac_cv_type_pid_t+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 $ac_includes_default
5219 typedef pid_t ac__type_new_;
5221 main ()
5223 if ((ac__type_new_ *) 0)
5224 return 0;
5225 if (sizeof (ac__type_new_))
5226 return 0;
5228 return 0;
5230 _ACEOF
5231 rm -f conftest.$ac_objext
5232 if { (ac_try="$ac_compile"
5233 case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236 esac
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_compile") 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && {
5245 test -z "$ac_c_werror_flag" ||
5246 test ! -s conftest.err
5247 } && test -s conftest.$ac_objext; then
5248 ac_cv_type_pid_t=yes
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 ac_cv_type_pid_t=no
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5259 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5260 if test $ac_cv_type_pid_t = yes; then
5262 else
5264 cat >>confdefs.h <<_ACEOF
5265 #define pid_t int
5266 _ACEOF
5270 { echo "$as_me:$LINENO: checking for size_t" >&5
5271 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5272 if test "${ac_cv_type_size_t+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 $ac_includes_default
5282 typedef size_t ac__type_new_;
5284 main ()
5286 if ((ac__type_new_ *) 0)
5287 return 0;
5288 if (sizeof (ac__type_new_))
5289 return 0;
5291 return 0;
5293 _ACEOF
5294 rm -f conftest.$ac_objext
5295 if { (ac_try="$ac_compile"
5296 case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299 esac
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compile") 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && {
5308 test -z "$ac_c_werror_flag" ||
5309 test ! -s conftest.err
5310 } && test -s conftest.$ac_objext; then
5311 ac_cv_type_size_t=yes
5312 else
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 ac_cv_type_size_t=no
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5322 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5323 if test $ac_cv_type_size_t = yes; then
5325 else
5327 cat >>confdefs.h <<_ACEOF
5328 #define size_t unsigned int
5329 _ACEOF
5333 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5334 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5335 if test "${ac_cv_type_uid_t+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338 cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h. */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 #include <sys/types.h>
5346 _ACEOF
5347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5348 $EGREP "uid_t" >/dev/null 2>&1; then
5349 ac_cv_type_uid_t=yes
5350 else
5351 ac_cv_type_uid_t=no
5353 rm -f conftest*
5356 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5357 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
5358 if test $ac_cv_type_uid_t = no; then
5360 cat >>confdefs.h <<\_ACEOF
5361 #define uid_t int
5362 _ACEOF
5365 cat >>confdefs.h <<\_ACEOF
5366 #define gid_t int
5367 _ACEOF
5372 { echo "$as_me:$LINENO: checking for socklen_t" >&5
5373 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
5374 if test "${ac_cv_type_socklen_t+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377 cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h. */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 #include <sys/types.h>
5384 #include <sys/socket.h>
5386 typedef socklen_t ac__type_new_;
5388 main ()
5390 if ((ac__type_new_ *) 0)
5391 return 0;
5392 if (sizeof (ac__type_new_))
5393 return 0;
5395 return 0;
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5400 case "(($ac_try" in
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && {
5412 test -z "$ac_c_werror_flag" ||
5413 test ! -s conftest.err
5414 } && test -s conftest.$ac_objext; then
5415 ac_cv_type_socklen_t=yes
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 ac_cv_type_socklen_t=no
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5426 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
5427 if test $ac_cv_type_socklen_t = yes; then
5429 else
5431 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
5432 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
5433 if test "${curl_cv_socklen_t_equiv+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5437 # Systems have either "struct sockaddr *" or
5438 # "void *" as the second argument to getpeername
5439 curl_cv_socklen_t_equiv=
5440 for arg2 in "struct sockaddr" void; do
5441 for t in int size_t unsigned long "unsigned long"; do
5442 cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h. */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5449 #ifdef _WIN32
5450 #include <windows.h>
5451 #define PREFIX1 WINSOCK_API_LINKAGE
5452 #define PREFIX2 PASCAL
5453 #else
5454 #include <sys/types.h>
5455 #include <sys/socket.h>
5456 #define PREFIX1
5457 #define PREFIX2
5458 #define SOCKET int
5459 #endif
5461 PREFIX1 int PREFIX2 getpeername (SOCKET, $arg2 *, $t *);
5464 main ()
5467 $t len;
5468 getpeername(0,0,&len);
5471 return 0;
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (ac_try="$ac_compile"
5476 case "(($ac_try" in
5477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478 *) ac_try_echo=$ac_try;;
5479 esac
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_c_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5492 curl_cv_socklen_t_equiv="$t"
5493 break
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 done
5504 done
5506 if test "x$curl_cv_socklen_t_equiv" = x; then
5507 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
5508 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
5509 { (exit 1); exit 1; }; }
5514 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
5515 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
5517 cat >>confdefs.h <<_ACEOF
5518 #define socklen_t $curl_cv_socklen_t_equiv
5519 _ACEOF
5524 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5525 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5526 if test "${ac_cv_header_time+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 #include <sys/types.h>
5536 #include <sys/time.h>
5537 #include <time.h>
5540 main ()
5542 if ((struct tm *) 0)
5543 return 0;
5545 return 0;
5547 _ACEOF
5548 rm -f conftest.$ac_objext
5549 if { (ac_try="$ac_compile"
5550 case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5553 esac
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_compile") 2>conftest.er1
5556 ac_status=$?
5557 grep -v '^ *+' conftest.er1 >conftest.err
5558 rm -f conftest.er1
5559 cat conftest.err >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && {
5562 test -z "$ac_c_werror_flag" ||
5563 test ! -s conftest.err
5564 } && test -s conftest.$ac_objext; then
5565 ac_cv_header_time=yes
5566 else
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5570 ac_cv_header_time=no
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5576 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5577 if test $ac_cv_header_time = yes; then
5579 cat >>confdefs.h <<\_ACEOF
5580 #define TIME_WITH_SYS_TIME 1
5581 _ACEOF
5585 { echo "$as_me:$LINENO: checking for ISO C 1999 vararg macro support" >&5
5586 echo $ECHO_N "checking for ISO C 1999 vararg macro support... $ECHO_C" >&6; }
5587 if test "${ax_cv_cpp_vararg_macro_iso+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590 cat >conftest.$ac_ext <<_ACEOF
5592 #define macro(a, ...) func(a, __VA_ARGS__)
5593 int func(int a, int b, int c);
5594 int test() { return macro(1, 2, 3); }
5596 _ACEOF
5597 rm -f conftest.$ac_objext
5598 if { (ac_try="$ac_compile"
5599 case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compile") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
5614 ax_cv_cpp_vararg_macro_iso=yes
5615 else
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 ax_cv_cpp_vararg_macro_iso=no
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 { echo "$as_me:$LINENO: result: $ax_cv_cpp_vararg_macro_iso" >&5
5625 echo "${ECHO_T}$ax_cv_cpp_vararg_macro_iso" >&6; }
5626 if test $ax_cv_cpp_vararg_macro_iso = yes ; then
5628 cat >>confdefs.h <<\_ACEOF
5629 #define HAVE_CPP_VARARG_MACRO_ISO 1
5630 _ACEOF
5634 { echo "$as_me:$LINENO: checking for GNU GCC vararg macro support" >&5
5635 echo $ECHO_N "checking for GNU GCC vararg macro support... $ECHO_C" >&6; }
5636 if test "${ax_cv_cpp_vararg_macro_gcc+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 cat >conftest.$ac_ext <<_ACEOF
5641 #define macro(a, b...) func(a, b)
5642 int func(int a, int b, int c);
5643 int test() { return macro(1, 2, 3); }
5645 _ACEOF
5646 rm -f conftest.$ac_objext
5647 if { (ac_try="$ac_compile"
5648 case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651 esac
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_compile") 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } && {
5660 test -z "$ac_c_werror_flag" ||
5661 test ! -s conftest.err
5662 } && test -s conftest.$ac_objext; then
5663 ax_cv_cpp_vararg_macro_gcc=yes
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 ax_cv_cpp_vararg_macro_gcc=no
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 { echo "$as_me:$LINENO: result: $ax_cv_cpp_vararg_macro_gcc" >&5
5674 echo "${ECHO_T}$ax_cv_cpp_vararg_macro_gcc" >&6; }
5675 if test $ax_cv_cpp_vararg_macro_gcc = yes ; then
5677 cat >>confdefs.h <<\_ACEOF
5678 #define HAVE_CPP_VARARG_MACRO_GCC 1
5679 _ACEOF
5684 { echo "$as_me:$LINENO: result: checking for C compiler empty array support" >&5
5685 echo "${ECHO_T}checking for C compiler empty array support" >&6; }
5686 cat >conftest.$ac_ext <<_ACEOF
5688 struct { int foo; int bar[0]; } mystruct;
5690 _ACEOF
5691 rm -f conftest.$ac_objext
5692 if { (ac_try="$ac_compile"
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_c_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest.$ac_objext; then
5710 cat >>confdefs.h <<_ACEOF
5711 #define EMPTY_ARRAY_SIZE 0
5712 _ACEOF
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5720 cat >conftest.$ac_ext <<_ACEOF
5722 struct { int foo; int bar[]; } mystruct;
5724 _ACEOF
5725 rm -f conftest.$ac_objext
5726 if { (ac_try="$ac_compile"
5727 case "(($ac_try" in
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5730 esac
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732 (eval "$ac_compile") 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && {
5739 test -z "$ac_c_werror_flag" ||
5740 test ! -s conftest.err
5741 } && test -s conftest.$ac_objext; then
5744 cat >>confdefs.h <<_ACEOF
5745 #define EMPTY_ARRAY_SIZE
5746 _ACEOF
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5754 { { echo "$as_me:$LINENO: error: C compiler is unable to creaty empty arrays" >&5
5755 echo "$as_me: error: C compiler is unable to creaty empty arrays" >&2;}
5756 { (exit 1); exit 1; }; }
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 for ac_header in fcntl.h stdlib.h stdarg.h stdio.h string.h strings.h ctype.h errno.h
5778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 ac_res=`eval echo '${'$as_ac_Header'}'`
5786 { echo "$as_me:$LINENO: result: $ac_res" >&5
5787 echo "${ECHO_T}$ac_res" >&6; }
5788 else
5789 # Is the header compilable?
5790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_includes_default
5799 #include <$ac_header>
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5803 case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 ac_header_compiler=yes
5819 else
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 ac_header_compiler=no
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5828 echo "${ECHO_T}$ac_header_compiler" >&6; }
5830 # Is the header present?
5831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #include <$ac_header>
5840 _ACEOF
5841 if { (ac_try="$ac_cpp conftest.$ac_ext"
5842 case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } >/dev/null && {
5854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 }; then
5857 ac_header_preproc=yes
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5862 ac_header_preproc=no
5865 rm -f conftest.err conftest.$ac_ext
5866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5867 echo "${ECHO_T}$ac_header_preproc" >&6; }
5869 # So? What about this header?
5870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5871 yes:no: )
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5876 ac_header_preproc=yes
5878 no:yes:* )
5879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5891 ( cat <<\_ASBOX
5892 ## -------------------------------------------------- ##
5893 ## Report this to openvpn-users@lists.sourceforge.net ##
5894 ## -------------------------------------------------- ##
5895 _ASBOX
5896 ) | sed "s/^/$as_me: WARNING: /" >&2
5898 esac
5899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 eval "$as_ac_Header=\$ac_header_preproc"
5906 ac_res=`eval echo '${'$as_ac_Header'}'`
5907 { echo "$as_me:$LINENO: result: $ac_res" >&5
5908 echo "${ECHO_T}$ac_res" >&6; }
5911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5912 cat >>confdefs.h <<_ACEOF
5913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914 _ACEOF
5918 done
5921 if test "${WIN32}" != "yes"; then
5922 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5923 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
5924 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 #include <sys/types.h>
5934 #include <sys/wait.h>
5935 #ifndef WEXITSTATUS
5936 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5937 #endif
5938 #ifndef WIFEXITED
5939 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5940 #endif
5943 main ()
5945 int s;
5946 wait (&s);
5947 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5949 return 0;
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_objext; then
5969 ac_cv_header_sys_wait_h=yes
5970 else
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_cv_header_sys_wait_h=no
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5980 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
5981 if test $ac_cv_header_sys_wait_h = yes; then
5983 cat >>confdefs.h <<\_ACEOF
5984 #define HAVE_SYS_WAIT_H 1
5985 _ACEOF
6026 for ac_header in sys/time.h sys/socket.h sys/un.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/tun/if_tun.h stropts.h sys/sockio.h netinet/in.h netinet/in_systm.h netinet/tcp.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 err.h
6028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_res=`eval echo '${'$as_ac_Header'}'`
6036 { echo "$as_me:$LINENO: result: $ac_res" >&5
6037 echo "${ECHO_T}$ac_res" >&6; }
6038 else
6039 # Is the header compilable?
6040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 $ac_includes_default
6049 #include <$ac_header>
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (ac_try="$ac_compile"
6053 case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest.$ac_objext; then
6068 ac_header_compiler=yes
6069 else
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_header_compiler=no
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6078 echo "${ECHO_T}$ac_header_compiler" >&6; }
6080 # Is the header present?
6081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h. */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <$ac_header>
6090 _ACEOF
6091 if { (ac_try="$ac_cpp conftest.$ac_ext"
6092 case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095 esac
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } >/dev/null && {
6104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 }; then
6107 ac_header_preproc=yes
6108 else
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_header_preproc=no
6115 rm -f conftest.err conftest.$ac_ext
6116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6117 echo "${ECHO_T}$ac_header_preproc" >&6; }
6119 # So? What about this header?
6120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6121 yes:no: )
6122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6126 ac_header_preproc=yes
6128 no:yes:* )
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6141 ( cat <<\_ASBOX
6142 ## -------------------------------------------------- ##
6143 ## Report this to openvpn-users@lists.sourceforge.net ##
6144 ## -------------------------------------------------- ##
6145 _ASBOX
6146 ) | sed "s/^/$as_me: WARNING: /" >&2
6148 esac
6149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 eval "$as_ac_Header=\$ac_header_preproc"
6156 ac_res=`eval echo '${'$as_ac_Header'}'`
6157 { echo "$as_me:$LINENO: result: $ac_res" >&5
6158 echo "${ECHO_T}$ac_res" >&6; }
6161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6162 cat >>confdefs.h <<_ACEOF
6163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164 _ACEOF
6168 done
6171 for ac_header in net/if.h
6173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h. */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6185 #ifdef HAVE_SYS_SOCKET_H
6186 # include <sys/socket.h>
6187 #endif
6190 #include <$ac_header>
6191 _ACEOF
6192 rm -f conftest.$ac_objext
6193 if { (ac_try="$ac_compile"
6194 case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197 esac
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_compile") 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_c_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest.$ac_objext; then
6209 eval "$as_ac_Header=yes"
6210 else
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 eval "$as_ac_Header=no"
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 ac_res=`eval echo '${'$as_ac_Header'}'`
6220 { echo "$as_me:$LINENO: result: $ac_res" >&5
6221 echo "${ECHO_T}$ac_res" >&6; }
6222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6223 cat >>confdefs.h <<_ACEOF
6224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6225 _ACEOF
6229 done
6232 for ac_header in netinet/ip.h
6234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h. */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 #ifdef HAVE_SYS_TYPES_H
6247 # include <sys/types.h>
6248 #endif
6249 #ifdef HAVE_NETINET_IN_H
6250 # include <netinet/in.h>
6251 #endif
6252 #ifdef HAVE_NETINET_IN_SYSTM_H
6253 # include <netinet/in_systm.h>
6254 #endif
6257 #include <$ac_header>
6258 _ACEOF
6259 rm -f conftest.$ac_objext
6260 if { (ac_try="$ac_compile"
6261 case "(($ac_try" in
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6264 esac
6265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_compile") 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } && {
6273 test -z "$ac_c_werror_flag" ||
6274 test ! -s conftest.err
6275 } && test -s conftest.$ac_objext; then
6276 eval "$as_ac_Header=yes"
6277 else
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 eval "$as_ac_Header=no"
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 ac_res=`eval echo '${'$as_ac_Header'}'`
6287 { echo "$as_me:$LINENO: result: $ac_res" >&5
6288 echo "${ECHO_T}$ac_res" >&6; }
6289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6290 cat >>confdefs.h <<_ACEOF
6291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6292 _ACEOF
6296 done
6299 for ac_header in netinet/if_ether.h
6301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 #ifdef HAVE_SYS_TYPES_H
6314 # include <sys/types.h>
6315 #endif
6316 #ifdef HAVE_SYS_SOCKET_H
6317 # include <sys/socket.h>
6318 #endif
6319 #ifdef HAVE_NETINET_IN_H
6320 # include <netinet/in.h>
6321 #endif
6324 #include <$ac_header>
6325 _ACEOF
6326 rm -f conftest.$ac_objext
6327 if { (ac_try="$ac_compile"
6328 case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331 esac
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_compile") 2>conftest.er1
6334 ac_status=$?
6335 grep -v '^ *+' conftest.er1 >conftest.err
6336 rm -f conftest.er1
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } && {
6340 test -z "$ac_c_werror_flag" ||
6341 test ! -s conftest.err
6342 } && test -s conftest.$ac_objext; then
6343 eval "$as_ac_Header=yes"
6344 else
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6348 eval "$as_ac_Header=no"
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 ac_res=`eval echo '${'$as_ac_Header'}'`
6354 { echo "$as_me:$LINENO: result: $ac_res" >&5
6355 echo "${ECHO_T}$ac_res" >&6; }
6356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6357 cat >>confdefs.h <<_ACEOF
6358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6359 _ACEOF
6363 done
6366 for ac_header in resolv.h
6368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 #ifdef HAVE_NETINET_IN_H
6381 # include <netinet/in.h>
6382 #endif
6385 #include <$ac_header>
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6389 case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_c_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest.$ac_objext; then
6404 eval "$as_ac_Header=yes"
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 eval "$as_ac_Header=no"
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 ac_res=`eval echo '${'$as_ac_Header'}'`
6415 { echo "$as_me:$LINENO: result: $ac_res" >&5
6416 echo "${ECHO_T}$ac_res" >&6; }
6417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6418 cat >>confdefs.h <<_ACEOF
6419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6420 _ACEOF
6424 done
6427 for ac_header in linux/errqueue.h
6429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #ifdef HAVE_LINUX_TYPES_H
6442 # include <linux/types.h>
6443 #endif
6446 #include <$ac_header>
6447 _ACEOF
6448 rm -f conftest.$ac_objext
6449 if { (ac_try="$ac_compile"
6450 case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453 esac
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_compile") 2>conftest.er1
6456 ac_status=$?
6457 grep -v '^ *+' conftest.er1 >conftest.err
6458 rm -f conftest.er1
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } && {
6462 test -z "$ac_c_werror_flag" ||
6463 test ! -s conftest.err
6464 } && test -s conftest.$ac_objext; then
6465 eval "$as_ac_Header=yes"
6466 else
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6470 eval "$as_ac_Header=no"
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 ac_res=`eval echo '${'$as_ac_Header'}'`
6476 { echo "$as_me:$LINENO: result: $ac_res" >&5
6477 echo "${ECHO_T}$ac_res" >&6; }
6478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6479 cat >>confdefs.h <<_ACEOF
6480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6481 _ACEOF
6485 done
6489 cat >confcache <<\_ACEOF
6490 # This file is a shell script that caches the results of configure
6491 # tests run on this system so they can be shared between configure
6492 # scripts and configure runs, see configure's option --config-cache.
6493 # It is not useful on other systems. If it contains results you don't
6494 # want to keep, you may remove or edit it.
6496 # config.status only pays attention to the cache file if you give it
6497 # the --recheck option to rerun configure.
6499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6501 # following values.
6503 _ACEOF
6505 # The following way of writing the cache mishandles newlines in values,
6506 # but we know of no workaround that is simple, portable, and efficient.
6507 # So, we kill variables containing newlines.
6508 # Ultrix sh set writes to stderr and can't be redirected directly,
6509 # and sets the high bit in the cache file unless we assign to the vars.
6511 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6512 eval ac_val=\$$ac_var
6513 case $ac_val in #(
6514 *${as_nl}*)
6515 case $ac_var in #(
6516 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6517 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6518 esac
6519 case $ac_var in #(
6520 _ | IFS | as_nl) ;; #(
6521 *) $as_unset $ac_var ;;
6522 esac ;;
6523 esac
6524 done
6526 (set) 2>&1 |
6527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6528 *${as_nl}ac_space=\ *)
6529 # `set' does not quote correctly, so add quotes (double-quote
6530 # substitution turns \\\\ into \\, and sed turns \\ into \).
6531 sed -n \
6532 "s/'/'\\\\''/g;
6533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6534 ;; #(
6536 # `set' quotes correctly as required by POSIX, so do not add quotes.
6537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6539 esac |
6540 sort
6542 sed '
6543 /^ac_cv_env_/b end
6544 t clear
6545 :clear
6546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6547 t end
6548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6549 :end' >>confcache
6550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6551 if test -w "$cache_file"; then
6552 test "x$cache_file" != "x/dev/null" &&
6553 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6554 echo "$as_me: updating cache $cache_file" >&6;}
6555 cat confcache >$cache_file
6556 else
6557 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6558 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6561 rm -f confcache
6563 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
6564 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
6565 if test "${ac_cv_type_in_addr_t+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h. */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 #include "syshead.h"
6576 typedef in_addr_t ac__type_new_;
6578 main ()
6580 if ((ac__type_new_ *) 0)
6581 return 0;
6582 if (sizeof (ac__type_new_))
6583 return 0;
6585 return 0;
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (ac_try="$ac_compile"
6590 case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593 esac
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_compile") 2>conftest.er1
6596 ac_status=$?
6597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } && {
6602 test -z "$ac_c_werror_flag" ||
6603 test ! -s conftest.err
6604 } && test -s conftest.$ac_objext; then
6605 ac_cv_type_in_addr_t=yes
6606 else
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6610 ac_cv_type_in_addr_t=no
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
6616 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
6617 if test $ac_cv_type_in_addr_t = yes; then
6619 else
6621 cat >>confdefs.h <<\_ACEOF
6622 #define in_addr_t uint32_t
6623 _ACEOF
6628 { echo "$as_me:$LINENO: checking for uint8_t" >&5
6629 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
6630 if test "${ac_cv_type_uint8_t+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 #include "syshead.h"
6641 typedef uint8_t ac__type_new_;
6643 main ()
6645 if ((ac__type_new_ *) 0)
6646 return 0;
6647 if (sizeof (ac__type_new_))
6648 return 0;
6650 return 0;
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_compile") 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_c_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest.$ac_objext; then
6670 ac_cv_type_uint8_t=yes
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 ac_cv_type_uint8_t=no
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6681 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
6682 if test $ac_cv_type_uint8_t = yes; then
6684 else
6686 cat >>confdefs.h <<\_ACEOF
6687 #define uint8_t unsigned char
6688 _ACEOF
6692 { echo "$as_me:$LINENO: checking for uint16_t" >&5
6693 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6694 if test "${ac_cv_type_uint16_t+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include "syshead.h"
6705 typedef uint16_t ac__type_new_;
6707 main ()
6709 if ((ac__type_new_ *) 0)
6710 return 0;
6711 if (sizeof (ac__type_new_))
6712 return 0;
6714 return 0;
6716 _ACEOF
6717 rm -f conftest.$ac_objext
6718 if { (ac_try="$ac_compile"
6719 case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722 esac
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_compile") 2>conftest.er1
6725 ac_status=$?
6726 grep -v '^ *+' conftest.er1 >conftest.err
6727 rm -f conftest.er1
6728 cat conftest.err >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } && {
6731 test -z "$ac_c_werror_flag" ||
6732 test ! -s conftest.err
6733 } && test -s conftest.$ac_objext; then
6734 ac_cv_type_uint16_t=yes
6735 else
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6739 ac_cv_type_uint16_t=no
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6745 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
6746 if test $ac_cv_type_uint16_t = yes; then
6748 else
6750 cat >>confdefs.h <<\_ACEOF
6751 #define uint16_t unsigned char
6752 _ACEOF
6756 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6757 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6758 if test "${ac_cv_type_uint32_t+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761 cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h. */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 #include "syshead.h"
6769 typedef uint32_t ac__type_new_;
6771 main ()
6773 if ((ac__type_new_ *) 0)
6774 return 0;
6775 if (sizeof (ac__type_new_))
6776 return 0;
6778 return 0;
6780 _ACEOF
6781 rm -f conftest.$ac_objext
6782 if { (ac_try="$ac_compile"
6783 case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786 esac
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 ac_cv_type_uint32_t=yes
6799 else
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 ac_cv_type_uint32_t=no
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6809 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6810 if test $ac_cv_type_uint32_t = yes; then
6812 else
6814 cat >>confdefs.h <<\_ACEOF
6815 #define uint32_t unsigned long
6816 _ACEOF
6821 { echo "$as_me:$LINENO: checking for struct tun_pi" >&5
6822 echo $ECHO_N "checking for struct tun_pi... $ECHO_C" >&6; }
6823 if test "${ac_cv_type_struct_tun_pi+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include "syshead.h"
6834 typedef struct tun_pi ac__type_new_;
6836 main ()
6838 if ((ac__type_new_ *) 0)
6839 return 0;
6840 if (sizeof (ac__type_new_))
6841 return 0;
6843 return 0;
6845 _ACEOF
6846 rm -f conftest.$ac_objext
6847 if { (ac_try="$ac_compile"
6848 case "(($ac_try" in
6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6851 esac
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853 (eval "$ac_compile") 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest.$ac_objext; then
6863 ac_cv_type_struct_tun_pi=yes
6864 else
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 ac_cv_type_struct_tun_pi=no
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_tun_pi" >&5
6874 echo "${ECHO_T}$ac_cv_type_struct_tun_pi" >&6; }
6875 if test $ac_cv_type_struct_tun_pi = yes; then
6877 cat >>confdefs.h <<\_ACEOF
6878 #define HAVE_TUN_PI 1
6879 _ACEOF
6883 { echo "$as_me:$LINENO: checking for struct iphdr" >&5
6884 echo $ECHO_N "checking for struct iphdr... $ECHO_C" >&6; }
6885 if test "${ac_cv_type_struct_iphdr+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888 cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 #include "syshead.h"
6896 typedef struct iphdr ac__type_new_;
6898 main ()
6900 if ((ac__type_new_ *) 0)
6901 return 0;
6902 if (sizeof (ac__type_new_))
6903 return 0;
6905 return 0;
6907 _ACEOF
6908 rm -f conftest.$ac_objext
6909 if { (ac_try="$ac_compile"
6910 case "(($ac_try" in
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6913 esac
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_compile") 2>conftest.er1
6916 ac_status=$?
6917 grep -v '^ *+' conftest.er1 >conftest.err
6918 rm -f conftest.er1
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } && {
6922 test -z "$ac_c_werror_flag" ||
6923 test ! -s conftest.err
6924 } && test -s conftest.$ac_objext; then
6925 ac_cv_type_struct_iphdr=yes
6926 else
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 ac_cv_type_struct_iphdr=no
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_iphdr" >&5
6936 echo "${ECHO_T}$ac_cv_type_struct_iphdr" >&6; }
6937 if test $ac_cv_type_struct_iphdr = yes; then
6939 cat >>confdefs.h <<\_ACEOF
6940 #define HAVE_IPHDR 1
6941 _ACEOF
6945 { echo "$as_me:$LINENO: checking for struct iovec" >&5
6946 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
6947 if test "${ac_cv_type_struct_iovec+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h. */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 #include "syshead.h"
6958 typedef struct iovec ac__type_new_;
6960 main ()
6962 if ((ac__type_new_ *) 0)
6963 return 0;
6964 if (sizeof (ac__type_new_))
6965 return 0;
6967 return 0;
6969 _ACEOF
6970 rm -f conftest.$ac_objext
6971 if { (ac_try="$ac_compile"
6972 case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975 esac
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_compile") 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest.$ac_objext; then
6987 ac_cv_type_struct_iovec=yes
6988 else
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 ac_cv_type_struct_iovec=no
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
6998 echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6; }
6999 if test $ac_cv_type_struct_iovec = yes; then
7001 cat >>confdefs.h <<\_ACEOF
7002 #define HAVE_IOVEC 1
7003 _ACEOF
7008 { echo "$as_me:$LINENO: checking for struct sock_extended_err" >&5
7009 echo $ECHO_N "checking for struct sock_extended_err... $ECHO_C" >&6; }
7010 if test "${ac_cv_type_struct_sock_extended_err+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h. */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 #include "syshead.h"
7021 typedef struct sock_extended_err ac__type_new_;
7023 main ()
7025 if ((ac__type_new_ *) 0)
7026 return 0;
7027 if (sizeof (ac__type_new_))
7028 return 0;
7030 return 0;
7032 _ACEOF
7033 rm -f conftest.$ac_objext
7034 if { (ac_try="$ac_compile"
7035 case "(($ac_try" in
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7038 esac
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest.$ac_objext; then
7050 ac_cv_type_struct_sock_extended_err=yes
7051 else
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 ac_cv_type_struct_sock_extended_err=no
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sock_extended_err" >&5
7061 echo "${ECHO_T}$ac_cv_type_struct_sock_extended_err" >&6; }
7062 if test $ac_cv_type_struct_sock_extended_err = yes; then
7064 cat >>confdefs.h <<\_ACEOF
7065 #define HAVE_SOCK_EXTENDED_ERR 1
7066 _ACEOF
7070 { echo "$as_me:$LINENO: checking for struct msghdr" >&5
7071 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
7072 if test "${ac_cv_type_struct_msghdr+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 cat >conftest.$ac_ext <<_ACEOF
7076 /* confdefs.h. */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7081 #include "syshead.h"
7083 typedef struct msghdr ac__type_new_;
7085 main ()
7087 if ((ac__type_new_ *) 0)
7088 return 0;
7089 if (sizeof (ac__type_new_))
7090 return 0;
7092 return 0;
7094 _ACEOF
7095 rm -f conftest.$ac_objext
7096 if { (ac_try="$ac_compile"
7097 case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7100 esac
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_compile") 2>conftest.er1
7103 ac_status=$?
7104 grep -v '^ *+' conftest.er1 >conftest.err
7105 rm -f conftest.er1
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } && {
7109 test -z "$ac_c_werror_flag" ||
7110 test ! -s conftest.err
7111 } && test -s conftest.$ac_objext; then
7112 ac_cv_type_struct_msghdr=yes
7113 else
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7117 ac_cv_type_struct_msghdr=no
7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
7123 echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6; }
7124 if test $ac_cv_type_struct_msghdr = yes; then
7126 cat >>confdefs.h <<\_ACEOF
7127 #define HAVE_MSGHDR 1
7128 _ACEOF
7132 { echo "$as_me:$LINENO: checking for struct cmsghdr" >&5
7133 echo $ECHO_N "checking for struct cmsghdr... $ECHO_C" >&6; }
7134 if test "${ac_cv_type_struct_cmsghdr+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h. */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 #include "syshead.h"
7145 typedef struct cmsghdr ac__type_new_;
7147 main ()
7149 if ((ac__type_new_ *) 0)
7150 return 0;
7151 if (sizeof (ac__type_new_))
7152 return 0;
7154 return 0;
7156 _ACEOF
7157 rm -f conftest.$ac_objext
7158 if { (ac_try="$ac_compile"
7159 case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162 esac
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.$ac_objext; then
7174 ac_cv_type_struct_cmsghdr=yes
7175 else
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7179 ac_cv_type_struct_cmsghdr=no
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsghdr" >&5
7185 echo "${ECHO_T}$ac_cv_type_struct_cmsghdr" >&6; }
7186 if test $ac_cv_type_struct_cmsghdr = yes; then
7188 cat >>confdefs.h <<\_ACEOF
7189 #define HAVE_CMSGHDR 1
7190 _ACEOF
7194 { echo "$as_me:$LINENO: checking for struct in_pktinfo" >&5
7195 echo $ECHO_N "checking for struct in_pktinfo... $ECHO_C" >&6; }
7196 if test "${ac_cv_type_struct_in_pktinfo+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199 cat >conftest.$ac_ext <<_ACEOF
7200 /* confdefs.h. */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7205 #include "syshead.h"
7207 typedef struct in_pktinfo ac__type_new_;
7209 main ()
7211 if ((ac__type_new_ *) 0)
7212 return 0;
7213 if (sizeof (ac__type_new_))
7214 return 0;
7216 return 0;
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7221 case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224 esac
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7236 ac_cv_type_struct_in_pktinfo=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 ac_cv_type_struct_in_pktinfo=no
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in_pktinfo" >&5
7247 echo "${ECHO_T}$ac_cv_type_struct_in_pktinfo" >&6; }
7248 if test $ac_cv_type_struct_in_pktinfo = yes; then
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_IN_PKTINFO 1
7252 _ACEOF
7257 { echo "$as_me:$LINENO: checking for unsigned int" >&5
7258 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
7259 if test "${ac_cv_type_unsigned_int+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7269 typedef unsigned int ac__type_new_;
7271 main ()
7273 if ((ac__type_new_ *) 0)
7274 return 0;
7275 if (sizeof (ac__type_new_))
7276 return 0;
7278 return 0;
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (ac_try="$ac_compile"
7283 case "(($ac_try" in
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_compile") 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest.$ac_objext; then
7298 ac_cv_type_unsigned_int=yes
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 ac_cv_type_unsigned_int=no
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
7309 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
7311 # The cast to long int works around a bug in the HP C Compiler
7312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7314 # This bug is HP SR number 8606223364.
7315 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
7316 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
7317 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320 if test "$cross_compiling" = yes; then
7321 # Depending upon the size, compute the lo and hi bounds.
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 $ac_includes_default
7329 typedef unsigned int ac__type_sizeof_;
7331 main ()
7333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7334 test_array [0] = 0
7337 return 0;
7339 _ACEOF
7340 rm -f conftest.$ac_objext
7341 if { (ac_try="$ac_compile"
7342 case "(($ac_try" in
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_compile") 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest.$ac_objext; then
7357 ac_lo=0 ac_mid=0
7358 while :; do
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h. */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 $ac_includes_default
7366 typedef unsigned int ac__type_sizeof_;
7368 main ()
7370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7371 test_array [0] = 0
7374 return 0;
7376 _ACEOF
7377 rm -f conftest.$ac_objext
7378 if { (ac_try="$ac_compile"
7379 case "(($ac_try" in
7380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381 *) ac_try_echo=$ac_try;;
7382 esac
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384 (eval "$ac_compile") 2>conftest.er1
7385 ac_status=$?
7386 grep -v '^ *+' conftest.er1 >conftest.err
7387 rm -f conftest.er1
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } && {
7391 test -z "$ac_c_werror_flag" ||
7392 test ! -s conftest.err
7393 } && test -s conftest.$ac_objext; then
7394 ac_hi=$ac_mid; break
7395 else
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7399 ac_lo=`expr $ac_mid + 1`
7400 if test $ac_lo -le $ac_mid; then
7401 ac_lo= ac_hi=
7402 break
7404 ac_mid=`expr 2 '*' $ac_mid + 1`
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 done
7409 else
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7420 typedef unsigned int ac__type_sizeof_;
7422 main ()
7424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7425 test_array [0] = 0
7428 return 0;
7430 _ACEOF
7431 rm -f conftest.$ac_objext
7432 if { (ac_try="$ac_compile"
7433 case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436 esac
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_compile") 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } && {
7445 test -z "$ac_c_werror_flag" ||
7446 test ! -s conftest.err
7447 } && test -s conftest.$ac_objext; then
7448 ac_hi=-1 ac_mid=-1
7449 while :; do
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7457 typedef unsigned int ac__type_sizeof_;
7459 main ()
7461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7462 test_array [0] = 0
7465 return 0;
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7470 case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473 esac
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
7485 ac_lo=$ac_mid; break
7486 else
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 ac_hi=`expr '(' $ac_mid ')' - 1`
7491 if test $ac_mid -le $ac_hi; then
7492 ac_lo= ac_hi=
7493 break
7495 ac_mid=`expr 2 '*' $ac_mid`
7498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499 done
7500 else
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 ac_lo= ac_hi=
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 # Binary search between lo and hi bounds.
7512 while test "x$ac_lo" != "x$ac_hi"; do
7513 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7514 cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h. */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7521 typedef unsigned int ac__type_sizeof_;
7523 main ()
7525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7526 test_array [0] = 0
7529 return 0;
7531 _ACEOF
7532 rm -f conftest.$ac_objext
7533 if { (ac_try="$ac_compile"
7534 case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537 esac
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_compile") 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest.$ac_objext; then
7549 ac_hi=$ac_mid
7550 else
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7554 ac_lo=`expr '(' $ac_mid ')' + 1`
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 done
7559 case $ac_lo in
7560 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
7561 '') if test "$ac_cv_type_unsigned_int" = yes; then
7562 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
7563 See \`config.log' for more details." >&5
7564 echo "$as_me: error: cannot compute sizeof (unsigned int)
7565 See \`config.log' for more details." >&2;}
7566 { (exit 77); exit 77; }; }
7567 else
7568 ac_cv_sizeof_unsigned_int=0
7569 fi ;;
7570 esac
7571 else
7572 cat >conftest.$ac_ext <<_ACEOF
7573 /* confdefs.h. */
7574 _ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7578 $ac_includes_default
7579 typedef unsigned int ac__type_sizeof_;
7580 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7581 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7582 #include <stdio.h>
7583 #include <stdlib.h>
7585 main ()
7588 FILE *f = fopen ("conftest.val", "w");
7589 if (! f)
7590 return 1;
7591 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7593 long int i = longval ();
7594 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7595 return 1;
7596 fprintf (f, "%ld\n", i);
7598 else
7600 unsigned long int i = ulongval ();
7601 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7602 return 1;
7603 fprintf (f, "%lu\n", i);
7605 return ferror (f) || fclose (f) != 0;
7608 return 0;
7610 _ACEOF
7611 rm -f conftest$ac_exeext
7612 if { (ac_try="$ac_link"
7613 case "(($ac_try" in
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7616 esac
7617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618 (eval "$ac_link") 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7622 { (case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_try") 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_cv_sizeof_unsigned_int=`cat conftest.val`
7632 else
7633 echo "$as_me: program exited with status $ac_status" >&5
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ( exit $ac_status )
7638 if test "$ac_cv_type_unsigned_int" = yes; then
7639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
7640 See \`config.log' for more details." >&5
7641 echo "$as_me: error: cannot compute sizeof (unsigned int)
7642 See \`config.log' for more details." >&2;}
7643 { (exit 77); exit 77; }; }
7644 else
7645 ac_cv_sizeof_unsigned_int=0
7648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7650 rm -f conftest.val
7652 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
7653 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
7657 cat >>confdefs.h <<_ACEOF
7658 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
7659 _ACEOF
7662 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7663 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7664 if test "${ac_cv_type_unsigned_long+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 $ac_includes_default
7674 typedef unsigned long ac__type_new_;
7676 main ()
7678 if ((ac__type_new_ *) 0)
7679 return 0;
7680 if (sizeof (ac__type_new_))
7681 return 0;
7683 return 0;
7685 _ACEOF
7686 rm -f conftest.$ac_objext
7687 if { (ac_try="$ac_compile"
7688 case "(($ac_try" in
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7691 esac
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693 (eval "$ac_compile") 2>conftest.er1
7694 ac_status=$?
7695 grep -v '^ *+' conftest.er1 >conftest.err
7696 rm -f conftest.er1
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && {
7700 test -z "$ac_c_werror_flag" ||
7701 test ! -s conftest.err
7702 } && test -s conftest.$ac_objext; then
7703 ac_cv_type_unsigned_long=yes
7704 else
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ac_cv_type_unsigned_long=no
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7714 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7716 # The cast to long int works around a bug in the HP C Compiler
7717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7719 # This bug is HP SR number 8606223364.
7720 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7721 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7722 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 if test "$cross_compiling" = yes; then
7726 # Depending upon the size, compute the lo and hi bounds.
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7733 $ac_includes_default
7734 typedef unsigned long ac__type_sizeof_;
7736 main ()
7738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7739 test_array [0] = 0
7742 return 0;
7744 _ACEOF
7745 rm -f conftest.$ac_objext
7746 if { (ac_try="$ac_compile"
7747 case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750 esac
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_compile") 2>conftest.er1
7753 ac_status=$?
7754 grep -v '^ *+' conftest.er1 >conftest.err
7755 rm -f conftest.er1
7756 cat conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } && {
7759 test -z "$ac_c_werror_flag" ||
7760 test ! -s conftest.err
7761 } && test -s conftest.$ac_objext; then
7762 ac_lo=0 ac_mid=0
7763 while :; do
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 $ac_includes_default
7771 typedef unsigned long ac__type_sizeof_;
7773 main ()
7775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7776 test_array [0] = 0
7779 return 0;
7781 _ACEOF
7782 rm -f conftest.$ac_objext
7783 if { (ac_try="$ac_compile"
7784 case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7787 esac
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_compile") 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } && {
7796 test -z "$ac_c_werror_flag" ||
7797 test ! -s conftest.err
7798 } && test -s conftest.$ac_objext; then
7799 ac_hi=$ac_mid; break
7800 else
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 ac_lo=`expr $ac_mid + 1`
7805 if test $ac_lo -le $ac_mid; then
7806 ac_lo= ac_hi=
7807 break
7809 ac_mid=`expr 2 '*' $ac_mid + 1`
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 done
7814 else
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 cat >conftest.$ac_ext <<_ACEOF
7819 /* confdefs.h. */
7820 _ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 $ac_includes_default
7825 typedef unsigned long ac__type_sizeof_;
7827 main ()
7829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7830 test_array [0] = 0
7833 return 0;
7835 _ACEOF
7836 rm -f conftest.$ac_objext
7837 if { (ac_try="$ac_compile"
7838 case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841 esac
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_compile") 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest.$ac_objext; then
7853 ac_hi=-1 ac_mid=-1
7854 while :; do
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h. */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 $ac_includes_default
7862 typedef unsigned long ac__type_sizeof_;
7864 main ()
7866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7867 test_array [0] = 0
7870 return 0;
7872 _ACEOF
7873 rm -f conftest.$ac_objext
7874 if { (ac_try="$ac_compile"
7875 case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_compile") 2>conftest.er1
7881 ac_status=$?
7882 grep -v '^ *+' conftest.er1 >conftest.err
7883 rm -f conftest.er1
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest.$ac_objext; then
7890 ac_lo=$ac_mid; break
7891 else
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7895 ac_hi=`expr '(' $ac_mid ')' - 1`
7896 if test $ac_mid -le $ac_hi; then
7897 ac_lo= ac_hi=
7898 break
7900 ac_mid=`expr 2 '*' $ac_mid`
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904 done
7905 else
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ac_lo= ac_hi=
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 # Binary search between lo and hi bounds.
7917 while test "x$ac_lo" != "x$ac_hi"; do
7918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 $ac_includes_default
7926 typedef unsigned long ac__type_sizeof_;
7928 main ()
7930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7931 test_array [0] = 0
7934 return 0;
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (ac_try="$ac_compile"
7939 case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7942 esac
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_compile") 2>conftest.er1
7945 ac_status=$?
7946 grep -v '^ *+' conftest.er1 >conftest.err
7947 rm -f conftest.er1
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && {
7951 test -z "$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest.$ac_objext; then
7954 ac_hi=$ac_mid
7955 else
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 ac_lo=`expr '(' $ac_mid ')' + 1`
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 done
7964 case $ac_lo in
7965 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7966 '') if test "$ac_cv_type_unsigned_long" = yes; then
7967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7968 See \`config.log' for more details." >&5
7969 echo "$as_me: error: cannot compute sizeof (unsigned long)
7970 See \`config.log' for more details." >&2;}
7971 { (exit 77); exit 77; }; }
7972 else
7973 ac_cv_sizeof_unsigned_long=0
7974 fi ;;
7975 esac
7976 else
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 $ac_includes_default
7984 typedef unsigned long ac__type_sizeof_;
7985 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7986 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7987 #include <stdio.h>
7988 #include <stdlib.h>
7990 main ()
7993 FILE *f = fopen ("conftest.val", "w");
7994 if (! f)
7995 return 1;
7996 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7998 long int i = longval ();
7999 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8000 return 1;
8001 fprintf (f, "%ld\n", i);
8003 else
8005 unsigned long int i = ulongval ();
8006 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8007 return 1;
8008 fprintf (f, "%lu\n", i);
8010 return ferror (f) || fclose (f) != 0;
8013 return 0;
8015 _ACEOF
8016 rm -f conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8018 case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_link") 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8027 { (case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030 esac
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_try") 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_cv_sizeof_unsigned_long=`cat conftest.val`
8037 else
8038 echo "$as_me: program exited with status $ac_status" >&5
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ( exit $ac_status )
8043 if test "$ac_cv_type_unsigned_long" = yes; then
8044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
8045 See \`config.log' for more details." >&5
8046 echo "$as_me: error: cannot compute sizeof (unsigned long)
8047 See \`config.log' for more details." >&2;}
8048 { (exit 77); exit 77; }; }
8049 else
8050 ac_cv_sizeof_unsigned_long=0
8053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8055 rm -f conftest.val
8057 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
8058 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
8062 cat >>confdefs.h <<_ACEOF
8063 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8064 _ACEOF
8068 cat >confcache <<\_ACEOF
8069 # This file is a shell script that caches the results of configure
8070 # tests run on this system so they can be shared between configure
8071 # scripts and configure runs, see configure's option --config-cache.
8072 # It is not useful on other systems. If it contains results you don't
8073 # want to keep, you may remove or edit it.
8075 # config.status only pays attention to the cache file if you give it
8076 # the --recheck option to rerun configure.
8078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8080 # following values.
8082 _ACEOF
8084 # The following way of writing the cache mishandles newlines in values,
8085 # but we know of no workaround that is simple, portable, and efficient.
8086 # So, we kill variables containing newlines.
8087 # Ultrix sh set writes to stderr and can't be redirected directly,
8088 # and sets the high bit in the cache file unless we assign to the vars.
8090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8091 eval ac_val=\$$ac_var
8092 case $ac_val in #(
8093 *${as_nl}*)
8094 case $ac_var in #(
8095 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8096 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8097 esac
8098 case $ac_var in #(
8099 _ | IFS | as_nl) ;; #(
8100 *) $as_unset $ac_var ;;
8101 esac ;;
8102 esac
8103 done
8105 (set) 2>&1 |
8106 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8107 *${as_nl}ac_space=\ *)
8108 # `set' does not quote correctly, so add quotes (double-quote
8109 # substitution turns \\\\ into \\, and sed turns \\ into \).
8110 sed -n \
8111 "s/'/'\\\\''/g;
8112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8113 ;; #(
8115 # `set' quotes correctly as required by POSIX, so do not add quotes.
8116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8118 esac |
8119 sort
8121 sed '
8122 /^ac_cv_env_/b end
8123 t clear
8124 :clear
8125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8126 t end
8127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8128 :end' >>confcache
8129 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8130 if test -w "$cache_file"; then
8131 test "x$cache_file" != "x/dev/null" &&
8132 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8133 echo "$as_me: updating cache $cache_file" >&6;}
8134 cat confcache >$cache_file
8135 else
8136 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8137 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8140 rm -f confcache
8146 for ac_func in ctime memset vsnprintf strdup
8148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8162 #define $ac_func innocuous_$ac_func
8164 /* System header to define __stub macros and hopefully few prototypes,
8165 which can conflict with char $ac_func (); below.
8166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8167 <limits.h> exists even on freestanding compilers. */
8169 #ifdef __STDC__
8170 # include <limits.h>
8171 #else
8172 # include <assert.h>
8173 #endif
8175 #undef $ac_func
8177 /* Override any GCC internal prototype to avoid an error.
8178 Use char because int might match the return type of a GCC
8179 builtin and then its argument prototype would still apply. */
8180 #ifdef __cplusplus
8181 extern "C"
8182 #endif
8183 char $ac_func ();
8184 /* The GNU C library defines this for functions which it implements
8185 to always fail with ENOSYS. Some functions are actually named
8186 something starting with __ and the normal name is an alias. */
8187 #if defined __stub_$ac_func || defined __stub___$ac_func
8188 choke me
8189 #endif
8192 main ()
8194 return $ac_func ();
8196 return 0;
8198 _ACEOF
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (ac_try="$ac_link"
8201 case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204 esac
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_link") 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } && {
8213 test -z "$ac_c_werror_flag" ||
8214 test ! -s conftest.err
8215 } && test -s conftest$ac_exeext &&
8216 $as_test_x conftest$ac_exeext; then
8217 eval "$as_ac_var=yes"
8218 else
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 eval "$as_ac_var=no"
8225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8226 conftest$ac_exeext conftest.$ac_ext
8228 ac_res=`eval echo '${'$as_ac_var'}'`
8229 { echo "$as_me:$LINENO: result: $ac_res" >&5
8230 echo "${ECHO_T}$ac_res" >&6; }
8231 if test `eval echo '${'$as_ac_var'}'` = yes; then
8232 cat >>confdefs.h <<_ACEOF
8233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8234 _ACEOF
8236 else
8237 { { echo "$as_me:$LINENO: error: Required library function not found" >&5
8238 echo "$as_me: error: Required library function not found" >&2;}
8239 { (exit 1); exit 1; }; }
8241 done
8275 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 time setsid chdir putenv getpeername unlink chsize ftruncate execve getpeereid umask
8277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283 cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h. */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8291 #define $ac_func innocuous_$ac_func
8293 /* System header to define __stub macros and hopefully few prototypes,
8294 which can conflict with char $ac_func (); below.
8295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8296 <limits.h> exists even on freestanding compilers. */
8298 #ifdef __STDC__
8299 # include <limits.h>
8300 #else
8301 # include <assert.h>
8302 #endif
8304 #undef $ac_func
8306 /* Override any GCC internal prototype to avoid an error.
8307 Use char because int might match the return type of a GCC
8308 builtin and then its argument prototype would still apply. */
8309 #ifdef __cplusplus
8310 extern "C"
8311 #endif
8312 char $ac_func ();
8313 /* The GNU C library defines this for functions which it implements
8314 to always fail with ENOSYS. Some functions are actually named
8315 something starting with __ and the normal name is an alias. */
8316 #if defined __stub_$ac_func || defined __stub___$ac_func
8317 choke me
8318 #endif
8321 main ()
8323 return $ac_func ();
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (ac_try="$ac_link"
8330 case "(($ac_try" in
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8333 esac
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335 (eval "$ac_link") 2>conftest.er1
8336 ac_status=$?
8337 grep -v '^ *+' conftest.er1 >conftest.err
8338 rm -f conftest.er1
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } && {
8342 test -z "$ac_c_werror_flag" ||
8343 test ! -s conftest.err
8344 } && test -s conftest$ac_exeext &&
8345 $as_test_x conftest$ac_exeext; then
8346 eval "$as_ac_var=yes"
8347 else
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 eval "$as_ac_var=no"
8354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8355 conftest$ac_exeext conftest.$ac_ext
8357 ac_res=`eval echo '${'$as_ac_var'}'`
8358 { echo "$as_me:$LINENO: result: $ac_res" >&5
8359 echo "${ECHO_T}$ac_res" >&6; }
8360 if test `eval echo '${'$as_ac_var'}'` = yes; then
8361 cat >>confdefs.h <<_ACEOF
8362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8363 _ACEOF
8366 done
8369 # Windows use stdcall for winsock so we cannot auto detect these
8373 if test "${WIN32}" = "yes"; then
8376 cat >>confdefs.h <<\_ACEOF
8377 #define HAVE_GETTIMEOFDAY 1
8378 _ACEOF
8382 cat >>confdefs.h <<\_ACEOF
8383 #define HAVE_SOCKET 1
8384 _ACEOF
8387 cat >>confdefs.h <<\_ACEOF
8388 #define HAVE_RECV 1
8389 _ACEOF
8392 cat >>confdefs.h <<\_ACEOF
8393 #define HAVE_RECVFROM 1
8394 _ACEOF
8397 cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_SEND 1
8399 _ACEOF
8402 cat >>confdefs.h <<\_ACEOF
8403 #define HAVE_SENDTO 1
8404 _ACEOF
8407 cat >>confdefs.h <<\_ACEOF
8408 #define HAVE_LISTEN 1
8409 _ACEOF
8412 cat >>confdefs.h <<\_ACEOF
8413 #define HAVE_ACCEPT 1
8414 _ACEOF
8417 cat >>confdefs.h <<\_ACEOF
8418 #define HAVE_CONNECT 1
8419 _ACEOF
8422 cat >>confdefs.h <<\_ACEOF
8423 #define HAVE_BIND 1
8424 _ACEOF
8427 cat >>confdefs.h <<\_ACEOF
8428 #define HAVE_SELECT 1
8429 _ACEOF
8432 cat >>confdefs.h <<\_ACEOF
8433 #define HAVE_GETHOSTBYNAME 1
8434 _ACEOF
8437 cat >>confdefs.h <<\_ACEOF
8438 #define HAVE_INET_NTOA 1
8439 _ACEOF
8442 cat >>confdefs.h <<\_ACEOF
8443 #define HAVE_SETSOCKOPT 1
8444 _ACEOF
8447 cat >>confdefs.h <<\_ACEOF
8448 #define HAVE_GETSOCKOPT 1
8449 _ACEOF
8452 cat >>confdefs.h <<\_ACEOF
8453 #define HAVE_GETSOCKNAME 1
8454 _ACEOF
8457 cat >>confdefs.h <<\_ACEOF
8458 #define HAVE_POLL 1
8459 _ACEOF
8462 else
8464 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8465 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8466 if test "${ac_cv_type_signal+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469 cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h. */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475 #include <sys/types.h>
8476 #include <signal.h>
8479 main ()
8481 return *(signal (0, 0)) (0) == 1;
8483 return 0;
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8488 case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491 esac
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_compile") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 } && test -s conftest.$ac_objext; then
8503 ac_cv_type_signal=int
8504 else
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_cv_type_signal=void
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8514 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8516 cat >>confdefs.h <<_ACEOF
8517 #define RETSIGTYPE $ac_cv_type_signal
8518 _ACEOF
8522 { echo "$as_me:$LINENO: checking for library containing socket" >&5
8523 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
8524 if test "${ac_cv_search_socket+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 ac_func_search_save_LIBS=$LIBS
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8535 /* Override any GCC internal prototype to avoid an error.
8536 Use char because int might match the return type of a GCC
8537 builtin and then its argument prototype would still apply. */
8538 #ifdef __cplusplus
8539 extern "C"
8540 #endif
8541 char socket ();
8543 main ()
8545 return socket ();
8547 return 0;
8549 _ACEOF
8550 for ac_lib in '' socket; do
8551 if test -z "$ac_lib"; then
8552 ac_res="none required"
8553 else
8554 ac_res=-l$ac_lib
8555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (ac_try="$ac_link"
8559 case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562 esac
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_link") 2>conftest.er1
8565 ac_status=$?
8566 grep -v '^ *+' conftest.er1 >conftest.err
8567 rm -f conftest.er1
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } && {
8571 test -z "$ac_c_werror_flag" ||
8572 test ! -s conftest.err
8573 } && test -s conftest$ac_exeext &&
8574 $as_test_x conftest$ac_exeext; then
8575 ac_cv_search_socket=$ac_res
8576 else
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8584 conftest$ac_exeext
8585 if test "${ac_cv_search_socket+set}" = set; then
8586 break
8588 done
8589 if test "${ac_cv_search_socket+set}" = set; then
8591 else
8592 ac_cv_search_socket=no
8594 rm conftest.$ac_ext
8595 LIBS=$ac_func_search_save_LIBS
8597 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8598 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
8599 ac_res=$ac_cv_search_socket
8600 if test "$ac_res" != no; then
8601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8606 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8607 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
8608 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611 ac_func_search_save_LIBS=$LIBS
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h. */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8619 /* Override any GCC internal prototype to avoid an error.
8620 Use char because int might match the return type of a GCC
8621 builtin and then its argument prototype would still apply. */
8622 #ifdef __cplusplus
8623 extern "C"
8624 #endif
8625 char inet_ntoa ();
8627 main ()
8629 return inet_ntoa ();
8631 return 0;
8633 _ACEOF
8634 for ac_lib in '' nsl; do
8635 if test -z "$ac_lib"; then
8636 ac_res="none required"
8637 else
8638 ac_res=-l$ac_lib
8639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (ac_try="$ac_link"
8643 case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646 esac
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_link") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest$ac_exeext &&
8658 $as_test_x conftest$ac_exeext; then
8659 ac_cv_search_inet_ntoa=$ac_res
8660 else
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8668 conftest$ac_exeext
8669 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8670 break
8672 done
8673 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8675 else
8676 ac_cv_search_inet_ntoa=no
8678 rm conftest.$ac_ext
8679 LIBS=$ac_func_search_save_LIBS
8681 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8682 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
8683 ac_res=$ac_cv_search_inet_ntoa
8684 if test "$ac_res" != no; then
8685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8690 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8691 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8692 if test "${ac_cv_search_gethostbyname+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695 ac_func_search_save_LIBS=$LIBS
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8703 /* Override any GCC internal prototype to avoid an error.
8704 Use char because int might match the return type of a GCC
8705 builtin and then its argument prototype would still apply. */
8706 #ifdef __cplusplus
8707 extern "C"
8708 #endif
8709 char gethostbyname ();
8711 main ()
8713 return gethostbyname ();
8715 return 0;
8717 _ACEOF
8718 for ac_lib in '' resolv nsl; do
8719 if test -z "$ac_lib"; then
8720 ac_res="none required"
8721 else
8722 ac_res=-l$ac_lib
8723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (ac_try="$ac_link"
8727 case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_link") 2>conftest.er1
8733 ac_status=$?
8734 grep -v '^ *+' conftest.er1 >conftest.err
8735 rm -f conftest.er1
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && {
8739 test -z "$ac_c_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest$ac_exeext &&
8742 $as_test_x conftest$ac_exeext; then
8743 ac_cv_search_gethostbyname=$ac_res
8744 else
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8752 conftest$ac_exeext
8753 if test "${ac_cv_search_gethostbyname+set}" = set; then
8754 break
8756 done
8757 if test "${ac_cv_search_gethostbyname+set}" = set; then
8759 else
8760 ac_cv_search_gethostbyname=no
8762 rm conftest.$ac_ext
8763 LIBS=$ac_func_search_save_LIBS
8765 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8766 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8767 ac_res=$ac_cv_search_gethostbyname
8768 if test "$ac_res" != no; then
8769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8775 for ac_header in vfork.h
8777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 ac_res=`eval echo '${'$as_ac_Header'}'`
8785 { echo "$as_me:$LINENO: result: $ac_res" >&5
8786 echo "${ECHO_T}$ac_res" >&6; }
8787 else
8788 # Is the header compilable?
8789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8798 #include <$ac_header>
8799 _ACEOF
8800 rm -f conftest.$ac_objext
8801 if { (ac_try="$ac_compile"
8802 case "(($ac_try" in
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8805 esac
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_compile") 2>conftest.er1
8808 ac_status=$?
8809 grep -v '^ *+' conftest.er1 >conftest.err
8810 rm -f conftest.er1
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } && {
8814 test -z "$ac_c_werror_flag" ||
8815 test ! -s conftest.err
8816 } && test -s conftest.$ac_objext; then
8817 ac_header_compiler=yes
8818 else
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8822 ac_header_compiler=no
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8827 echo "${ECHO_T}$ac_header_compiler" >&6; }
8829 # Is the header present?
8830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8832 cat >conftest.$ac_ext <<_ACEOF
8833 /* confdefs.h. */
8834 _ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8838 #include <$ac_header>
8839 _ACEOF
8840 if { (ac_try="$ac_cpp conftest.$ac_ext"
8841 case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8844 esac
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } >/dev/null && {
8853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 }; then
8856 ac_header_preproc=yes
8857 else
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_header_preproc=no
8864 rm -f conftest.err conftest.$ac_ext
8865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8866 echo "${ECHO_T}$ac_header_preproc" >&6; }
8868 # So? What about this header?
8869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8870 yes:no: )
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8875 ac_header_preproc=yes
8877 no:yes:* )
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8890 ( cat <<\_ASBOX
8891 ## -------------------------------------------------- ##
8892 ## Report this to openvpn-users@lists.sourceforge.net ##
8893 ## -------------------------------------------------- ##
8894 _ASBOX
8895 ) | sed "s/^/$as_me: WARNING: /" >&2
8897 esac
8898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903 eval "$as_ac_Header=\$ac_header_preproc"
8905 ac_res=`eval echo '${'$as_ac_Header'}'`
8906 { echo "$as_me:$LINENO: result: $ac_res" >&5
8907 echo "${ECHO_T}$ac_res" >&6; }
8910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8911 cat >>confdefs.h <<_ACEOF
8912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8913 _ACEOF
8917 done
8921 for ac_func in fork vfork
8923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929 cat >conftest.$ac_ext <<_ACEOF
8930 /* confdefs.h. */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8937 #define $ac_func innocuous_$ac_func
8939 /* System header to define __stub macros and hopefully few prototypes,
8940 which can conflict with char $ac_func (); below.
8941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942 <limits.h> exists even on freestanding compilers. */
8944 #ifdef __STDC__
8945 # include <limits.h>
8946 #else
8947 # include <assert.h>
8948 #endif
8950 #undef $ac_func
8952 /* Override any GCC internal prototype to avoid an error.
8953 Use char because int might match the return type of a GCC
8954 builtin and then its argument prototype would still apply. */
8955 #ifdef __cplusplus
8956 extern "C"
8957 #endif
8958 char $ac_func ();
8959 /* The GNU C library defines this for functions which it implements
8960 to always fail with ENOSYS. Some functions are actually named
8961 something starting with __ and the normal name is an alias. */
8962 #if defined __stub_$ac_func || defined __stub___$ac_func
8963 choke me
8964 #endif
8967 main ()
8969 return $ac_func ();
8971 return 0;
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (ac_try="$ac_link"
8976 case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8979 esac
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_link") 2>conftest.er1
8982 ac_status=$?
8983 grep -v '^ *+' conftest.er1 >conftest.err
8984 rm -f conftest.er1
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } && {
8988 test -z "$ac_c_werror_flag" ||
8989 test ! -s conftest.err
8990 } && test -s conftest$ac_exeext &&
8991 $as_test_x conftest$ac_exeext; then
8992 eval "$as_ac_var=yes"
8993 else
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 eval "$as_ac_var=no"
9000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9001 conftest$ac_exeext conftest.$ac_ext
9003 ac_res=`eval echo '${'$as_ac_var'}'`
9004 { echo "$as_me:$LINENO: result: $ac_res" >&5
9005 echo "${ECHO_T}$ac_res" >&6; }
9006 if test `eval echo '${'$as_ac_var'}'` = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9009 _ACEOF
9012 done
9014 if test "x$ac_cv_func_fork" = xyes; then
9015 { echo "$as_me:$LINENO: checking for working fork" >&5
9016 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
9017 if test "${ac_cv_func_fork_works+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020 if test "$cross_compiling" = yes; then
9021 ac_cv_func_fork_works=cross
9022 else
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 $ac_includes_default
9031 main ()
9034 /* By Ruediger Kuhlmann. */
9035 return fork () < 0;
9038 return 0;
9040 _ACEOF
9041 rm -f conftest$ac_exeext
9042 if { (ac_try="$ac_link"
9043 case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046 esac
9047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_link") 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9052 { (case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9055 esac
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_try") 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_cv_func_fork_works=yes
9062 else
9063 echo "$as_me: program exited with status $ac_status" >&5
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 ( exit $ac_status )
9068 ac_cv_func_fork_works=no
9070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9075 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9076 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
9078 else
9079 ac_cv_func_fork_works=$ac_cv_func_fork
9081 if test "x$ac_cv_func_fork_works" = xcross; then
9082 case $host in
9083 *-*-amigaos* | *-*-msdosdjgpp*)
9084 # Override, as these systems have only a dummy fork() stub
9085 ac_cv_func_fork_works=no
9088 ac_cv_func_fork_works=yes
9090 esac
9091 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9092 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9094 ac_cv_func_vfork_works=$ac_cv_func_vfork
9095 if test "x$ac_cv_func_vfork" = xyes; then
9096 { echo "$as_me:$LINENO: checking for working vfork" >&5
9097 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
9098 if test "${ac_cv_func_vfork_works+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101 if test "$cross_compiling" = yes; then
9102 ac_cv_func_vfork_works=cross
9103 else
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h. */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 /* Thanks to Paul Eggert for this test. */
9111 $ac_includes_default
9112 #include <sys/wait.h>
9113 #ifdef HAVE_VFORK_H
9114 # include <vfork.h>
9115 #endif
9116 /* On some sparc systems, changes by the child to local and incoming
9117 argument registers are propagated back to the parent. The compiler
9118 is told about this with #include <vfork.h>, but some compilers
9119 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9120 static variable whose address is put into a register that is
9121 clobbered by the vfork. */
9122 static void
9123 #ifdef __cplusplus
9124 sparc_address_test (int arg)
9125 # else
9126 sparc_address_test (arg) int arg;
9127 #endif
9129 static pid_t child;
9130 if (!child) {
9131 child = vfork ();
9132 if (child < 0) {
9133 perror ("vfork");
9134 _exit(2);
9136 if (!child) {
9137 arg = getpid();
9138 write(-1, "", 0);
9139 _exit (arg);
9145 main ()
9147 pid_t parent = getpid ();
9148 pid_t child;
9150 sparc_address_test (0);
9152 child = vfork ();
9154 if (child == 0) {
9155 /* Here is another test for sparc vfork register problems. This
9156 test uses lots of local variables, at least as many local
9157 variables as main has allocated so far including compiler
9158 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9159 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9160 reuse the register of parent for one of the local variables,
9161 since it will think that parent can't possibly be used any more
9162 in this routine. Assigning to the local variable will thus
9163 munge parent in the parent process. */
9164 pid_t
9165 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9166 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9167 /* Convince the compiler that p..p7 are live; otherwise, it might
9168 use the same hardware register for all 8 local variables. */
9169 if (p != p1 || p != p2 || p != p3 || p != p4
9170 || p != p5 || p != p6 || p != p7)
9171 _exit(1);
9173 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9174 from child file descriptors. If the child closes a descriptor
9175 before it execs or exits, this munges the parent's descriptor
9176 as well. Test for this by closing stdout in the child. */
9177 _exit(close(fileno(stdout)) != 0);
9178 } else {
9179 int status;
9180 struct stat st;
9182 while (wait(&status) != child)
9184 return (
9185 /* Was there some problem with vforking? */
9186 child < 0
9188 /* Did the child fail? (This shouldn't happen.) */
9189 || status
9191 /* Did the vfork/compiler bug occur? */
9192 || parent != getpid()
9194 /* Did the file descriptor bug occur? */
9195 || fstat(fileno(stdout), &st) != 0
9199 _ACEOF
9200 rm -f conftest$ac_exeext
9201 if { (ac_try="$ac_link"
9202 case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_link") 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9211 { (case "(($ac_try" in
9212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9214 esac
9215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216 (eval "$ac_try") 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 ac_cv_func_vfork_works=yes
9221 else
9222 echo "$as_me: program exited with status $ac_status" >&5
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 ( exit $ac_status )
9227 ac_cv_func_vfork_works=no
9229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9234 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9235 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
9238 if test "x$ac_cv_func_fork_works" = xcross; then
9239 ac_cv_func_vfork_works=$ac_cv_func_vfork
9240 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9241 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9244 if test "x$ac_cv_func_vfork_works" = xyes; then
9246 cat >>confdefs.h <<\_ACEOF
9247 #define HAVE_WORKING_VFORK 1
9248 _ACEOF
9250 else
9252 cat >>confdefs.h <<\_ACEOF
9253 #define vfork fork
9254 _ACEOF
9257 if test "x$ac_cv_func_fork_works" = xyes; then
9259 cat >>confdefs.h <<\_ACEOF
9260 #define HAVE_WORKING_FORK 1
9261 _ACEOF
9267 for ac_func in gettimeofday
9269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9283 #define $ac_func innocuous_$ac_func
9285 /* System header to define __stub macros and hopefully few prototypes,
9286 which can conflict with char $ac_func (); below.
9287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9288 <limits.h> exists even on freestanding compilers. */
9290 #ifdef __STDC__
9291 # include <limits.h>
9292 #else
9293 # include <assert.h>
9294 #endif
9296 #undef $ac_func
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char $ac_func ();
9305 /* The GNU C library defines this for functions which it implements
9306 to always fail with ENOSYS. Some functions are actually named
9307 something starting with __ and the normal name is an alias. */
9308 #if defined __stub_$ac_func || defined __stub___$ac_func
9309 choke me
9310 #endif
9313 main ()
9315 return $ac_func ();
9317 return 0;
9319 _ACEOF
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (ac_try="$ac_link"
9322 case "(($ac_try" in
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9325 esac
9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_link") 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && {
9334 test -z "$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9336 } && test -s conftest$ac_exeext &&
9337 $as_test_x conftest$ac_exeext; then
9338 eval "$as_ac_var=yes"
9339 else
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9343 eval "$as_ac_var=no"
9346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9347 conftest$ac_exeext conftest.$ac_ext
9349 ac_res=`eval echo '${'$as_ac_var'}'`
9350 { echo "$as_me:$LINENO: result: $ac_res" >&5
9351 echo "${ECHO_T}$ac_res" >&6; }
9352 if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h <<_ACEOF
9354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355 _ACEOF
9358 done
9373 for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa
9375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h. */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9389 #define $ac_func innocuous_$ac_func
9391 /* System header to define __stub macros and hopefully few prototypes,
9392 which can conflict with char $ac_func (); below.
9393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9394 <limits.h> exists even on freestanding compilers. */
9396 #ifdef __STDC__
9397 # include <limits.h>
9398 #else
9399 # include <assert.h>
9400 #endif
9402 #undef $ac_func
9404 /* Override any GCC internal prototype to avoid an error.
9405 Use char because int might match the return type of a GCC
9406 builtin and then its argument prototype would still apply. */
9407 #ifdef __cplusplus
9408 extern "C"
9409 #endif
9410 char $ac_func ();
9411 /* The GNU C library defines this for functions which it implements
9412 to always fail with ENOSYS. Some functions are actually named
9413 something starting with __ and the normal name is an alias. */
9414 #if defined __stub_$ac_func || defined __stub___$ac_func
9415 choke me
9416 #endif
9419 main ()
9421 return $ac_func ();
9423 return 0;
9425 _ACEOF
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (ac_try="$ac_link"
9428 case "(($ac_try" in
9429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430 *) ac_try_echo=$ac_try;;
9431 esac
9432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433 (eval "$ac_link") 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && {
9440 test -z "$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 } && test -s conftest$ac_exeext &&
9443 $as_test_x conftest$ac_exeext; then
9444 eval "$as_ac_var=yes"
9445 else
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9449 eval "$as_ac_var=no"
9452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453 conftest$ac_exeext conftest.$ac_ext
9455 ac_res=`eval echo '${'$as_ac_var'}'`
9456 { echo "$as_me:$LINENO: result: $ac_res" >&5
9457 echo "${ECHO_T}$ac_res" >&6; }
9458 if test `eval echo '${'$as_ac_var'}'` = yes; then
9459 cat >>confdefs.h <<_ACEOF
9460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9461 _ACEOF
9463 else
9464 { { echo "$as_me:$LINENO: error: Required library function not found" >&5
9465 echo "$as_me: error: Required library function not found" >&2;}
9466 { (exit 1); exit 1; }; }
9468 done
9476 for ac_func in setsockopt getsockopt getsockname poll sendmsg recvmsg
9478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9492 #define $ac_func innocuous_$ac_func
9494 /* System header to define __stub macros and hopefully few prototypes,
9495 which can conflict with char $ac_func (); below.
9496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9497 <limits.h> exists even on freestanding compilers. */
9499 #ifdef __STDC__
9500 # include <limits.h>
9501 #else
9502 # include <assert.h>
9503 #endif
9505 #undef $ac_func
9507 /* Override any GCC internal prototype to avoid an error.
9508 Use char because int might match the return type of a GCC
9509 builtin and then its argument prototype would still apply. */
9510 #ifdef __cplusplus
9511 extern "C"
9512 #endif
9513 char $ac_func ();
9514 /* The GNU C library defines this for functions which it implements
9515 to always fail with ENOSYS. Some functions are actually named
9516 something starting with __ and the normal name is an alias. */
9517 #if defined __stub_$ac_func || defined __stub___$ac_func
9518 choke me
9519 #endif
9522 main ()
9524 return $ac_func ();
9526 return 0;
9528 _ACEOF
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_link") 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest$ac_exeext &&
9546 $as_test_x conftest$ac_exeext; then
9547 eval "$as_ac_var=yes"
9548 else
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 eval "$as_ac_var=no"
9555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9556 conftest$ac_exeext conftest.$ac_ext
9558 ac_res=`eval echo '${'$as_ac_var'}'`
9559 { echo "$as_me:$LINENO: result: $ac_res" >&5
9560 echo "${ECHO_T}$ac_res" >&6; }
9561 if test `eval echo '${'$as_ac_var'}'` = yes; then
9562 cat >>confdefs.h <<_ACEOF
9563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9564 _ACEOF
9567 done
9572 { echo "$as_me:$LINENO: checking for working memcmp" >&5
9573 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
9574 if test "${ac_cv_func_memcmp_working+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 if test "$cross_compiling" = yes; then
9578 ac_cv_func_memcmp_working=no
9579 else
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 $ac_includes_default
9588 main ()
9591 /* Some versions of memcmp are not 8-bit clean. */
9592 char c0 = '\100', c1 = '\200', c2 = '\201';
9593 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9594 return 1;
9596 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9597 or more and with at least one buffer not starting on a 4-byte boundary.
9598 William Lewis provided this test program. */
9600 char foo[21];
9601 char bar[21];
9602 int i;
9603 for (i = 0; i < 4; i++)
9605 char *a = foo + i;
9606 char *b = bar + i;
9607 strcpy (a, "--------01111111");
9608 strcpy (b, "--------10000000");
9609 if (memcmp (a, b, 16) >= 0)
9610 return 1;
9612 return 0;
9616 return 0;
9618 _ACEOF
9619 rm -f conftest$ac_exeext
9620 if { (ac_try="$ac_link"
9621 case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_link") 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9630 { (case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_try") 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 ac_cv_func_memcmp_working=yes
9640 else
9641 echo "$as_me: program exited with status $ac_status" >&5
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 ( exit $ac_status )
9646 ac_cv_func_memcmp_working=no
9648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9653 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9654 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
9655 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9656 *" memcmp.$ac_objext "* ) ;;
9657 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9659 esac
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9670 #include <resolv.h>
9673 main ()
9676 res_init ();
9679 return 0;
9681 _ACEOF
9682 rm -f conftest.$ac_objext conftest$ac_exeext
9683 if { (ac_try="$ac_link"
9684 case "(($ac_try" in
9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9687 esac
9688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689 (eval "$ac_link") 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } && {
9696 test -z "$ac_c_werror_flag" ||
9697 test ! -s conftest.err
9698 } && test -s conftest$ac_exeext &&
9699 $as_test_x conftest$ac_exeext; then
9701 { echo "$as_me:$LINENO: result: res_init DEFINED" >&5
9702 echo "${ECHO_T}res_init DEFINED" >&6; }
9704 cat >>confdefs.h <<\_ACEOF
9705 #define HAVE_RES_INIT 1
9706 _ACEOF
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9714 { echo "$as_me:$LINENO: result: res_init UNDEFINED" >&5
9715 echo "${ECHO_T}res_init UNDEFINED" >&6; }
9719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9720 conftest$ac_exeext conftest.$ac_ext
9723 { echo "$as_me:$LINENO: checking for working epoll implementation..." >&5
9724 echo "$as_me: checking for working epoll implementation..." >&6;}
9725 OLDLDFLAGS="$LDFLAGS"
9726 LDFLAGS="$LDFLAGS -Wl,--fatal-warnings"
9727 { echo "$as_me:$LINENO: checking for epoll_create" >&5
9728 echo $ECHO_N "checking for epoll_create... $ECHO_C" >&6; }
9729 if test "${ac_cv_func_epoll_create+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h. */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 /* Define epoll_create to an innocuous variant, in case <limits.h> declares epoll_create.
9739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9740 #define epoll_create innocuous_epoll_create
9742 /* System header to define __stub macros and hopefully few prototypes,
9743 which can conflict with char epoll_create (); below.
9744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9745 <limits.h> exists even on freestanding compilers. */
9747 #ifdef __STDC__
9748 # include <limits.h>
9749 #else
9750 # include <assert.h>
9751 #endif
9753 #undef epoll_create
9755 /* Override any GCC internal prototype to avoid an error.
9756 Use char because int might match the return type of a GCC
9757 builtin and then its argument prototype would still apply. */
9758 #ifdef __cplusplus
9759 extern "C"
9760 #endif
9761 char epoll_create ();
9762 /* The GNU C library defines this for functions which it implements
9763 to always fail with ENOSYS. Some functions are actually named
9764 something starting with __ and the normal name is an alias. */
9765 #if defined __stub_epoll_create || defined __stub___epoll_create
9766 choke me
9767 #endif
9770 main ()
9772 return epoll_create ();
9774 return 0;
9776 _ACEOF
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (ac_try="$ac_link"
9779 case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782 esac
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_link") 2>conftest.er1
9785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest$ac_exeext &&
9794 $as_test_x conftest$ac_exeext; then
9795 ac_cv_func_epoll_create=yes
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_cv_func_epoll_create=no
9803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9804 conftest$ac_exeext conftest.$ac_ext
9806 { echo "$as_me:$LINENO: result: $ac_cv_func_epoll_create" >&5
9807 echo "${ECHO_T}$ac_cv_func_epoll_create" >&6; }
9808 if test $ac_cv_func_epoll_create = yes; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_EPOLL_CREATE 1
9812 _ACEOF
9816 LDFLAGS="$OLDLDFLAGS"
9819 if test "$MEMCHECK" = "valgrind"; then
9820 { echo "$as_me:$LINENO: checking for valgrind tool and Header files..." >&5
9821 echo "$as_me: checking for valgrind tool and Header files..." >&6;}
9822 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
9823 { echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
9824 echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6; }
9825 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
9829 echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6; }
9830 else
9831 # Is the header compilable?
9832 { echo "$as_me:$LINENO: checking valgrind/memcheck.h usability" >&5
9833 echo $ECHO_N "checking valgrind/memcheck.h usability... $ECHO_C" >&6; }
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h. */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9841 #include <valgrind/memcheck.h>
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (ac_try="$ac_compile"
9845 case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_compile") 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest.$ac_objext; then
9860 ac_header_compiler=yes
9861 else
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9865 ac_header_compiler=no
9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9870 echo "${ECHO_T}$ac_header_compiler" >&6; }
9872 # Is the header present?
9873 { echo "$as_me:$LINENO: checking valgrind/memcheck.h presence" >&5
9874 echo $ECHO_N "checking valgrind/memcheck.h presence... $ECHO_C" >&6; }
9875 cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h. */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 #include <valgrind/memcheck.h>
9882 _ACEOF
9883 if { (ac_try="$ac_cpp conftest.$ac_ext"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } >/dev/null && {
9896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 }; then
9899 ac_header_preproc=yes
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_header_preproc=no
9907 rm -f conftest.err conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9909 echo "${ECHO_T}$ac_header_preproc" >&6; }
9911 # So? What about this header?
9912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9913 yes:no: )
9914 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&5
9915 echo "$as_me: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&5
9917 echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&2;}
9918 ac_header_preproc=yes
9920 no:yes:* )
9921 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&5
9922 echo "$as_me: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: check for missing prerequisite headers?" >&5
9924 echo "$as_me: WARNING: valgrind/memcheck.h: check for missing prerequisite headers?" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&5
9926 echo "$as_me: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&2;}
9927 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: section \"Present But Cannot Be Compiled\"" >&5
9928 echo "$as_me: WARNING: valgrind/memcheck.h: section \"Present But Cannot Be Compiled\"" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&5
9930 echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&5
9932 echo "$as_me: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&2;}
9933 ( cat <<\_ASBOX
9934 ## -------------------------------------------------- ##
9935 ## Report this to openvpn-users@lists.sourceforge.net ##
9936 ## -------------------------------------------------- ##
9937 _ASBOX
9938 ) | sed "s/^/$as_me: WARNING: /" >&2
9940 esac
9941 { echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
9942 echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6; }
9943 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946 ac_cv_header_valgrind_memcheck_h=$ac_header_preproc
9948 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
9949 echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6; }
9952 if test $ac_cv_header_valgrind_memcheck_h = yes; then
9955 cat >>confdefs.h <<\_ACEOF
9956 #define USE_VALGRIND 1
9957 _ACEOF
9959 CFLAGS="-g -fno-inline"
9961 else
9962 { { echo "$as_me:$LINENO: error: valgrind headers not found." >&5
9963 echo "$as_me: error: valgrind headers not found." >&2;}
9964 { (exit 1); exit 1; }; }
9972 if test "$PTHREAD" = "yes"; then
9973 { echo "$as_me:$LINENO: checking for pthread support..." >&5
9974 echo "$as_me: checking for pthread support..." >&6;}
9975 { echo "$as_me:$LINENO: result: ********* WARNING: pthread support is experimental for OpenVPN 2.0" >&5
9976 echo "${ECHO_T}********* WARNING: pthread support is experimental for OpenVPN 2.0" >&6; }
9979 acx_pthread_ok=no
9981 # We used to check for pthread.h first, but this fails if pthread.h
9982 # requires special compiler flags (e.g. on True64 or Sequent).
9983 # It gets checked for in the link test anyway.
9985 # First of all, check if the user has set any of the PTHREAD_LIBS,
9986 # etcetera environment variables, and if threads linking works using
9987 # them:
9988 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9989 save_CFLAGS="$CFLAGS"
9990 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9991 save_LIBS="$LIBS"
9992 LIBS="$PTHREAD_LIBS $LIBS"
9993 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9994 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10002 /* Override any GCC internal prototype to avoid an error.
10003 Use char because int might match the return type of a GCC
10004 builtin and then its argument prototype would still apply. */
10005 #ifdef __cplusplus
10006 extern "C"
10007 #endif
10008 char pthread_join ();
10010 main ()
10012 return pthread_join ();
10014 return 0;
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (ac_try="$ac_link"
10019 case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10022 esac
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_link") 2>conftest.er1
10025 ac_status=$?
10026 grep -v '^ *+' conftest.er1 >conftest.err
10027 rm -f conftest.er1
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } && {
10031 test -z "$ac_c_werror_flag" ||
10032 test ! -s conftest.err
10033 } && test -s conftest$ac_exeext &&
10034 $as_test_x conftest$ac_exeext; then
10035 acx_pthread_ok=yes
10036 else
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10044 conftest$ac_exeext conftest.$ac_ext
10045 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
10046 echo "${ECHO_T}$acx_pthread_ok" >&6; }
10047 if test x"$acx_pthread_ok" = xno; then
10048 PTHREAD_LIBS=""
10049 PTHREAD_CFLAGS=""
10051 LIBS="$save_LIBS"
10052 CFLAGS="$save_CFLAGS"
10055 # We must check for the threads library under a number of different
10056 # names; the ordering is very important because some systems
10057 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10058 # libraries is broken (non-POSIX).
10060 # Create a list of thread flags to try. Items starting with a "-" are
10061 # C compiler flags, and other items are library names, except for "none"
10062 # which indicates that we try without any flags at all.
10064 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
10066 # The ordering *is* (sometimes) important. Some notes on the
10067 # individual items follow:
10069 # pthreads: AIX (must check this before -lpthread)
10070 # none: in case threads are in libc; should be tried before -Kthread and
10071 # other compiler flags to prevent continual compiler warnings
10072 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10073 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10074 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10075 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10076 # -pthreads: Solaris/gcc
10077 # -mthreads: Mingw32/gcc, Lynx/gcc
10078 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10079 # doesn't hurt to check since this sometimes defines pthreads too;
10080 # also defines -D_REENTRANT)
10081 # pthread: Linux, etcetera
10082 # --thread-safe: KAI C++
10084 case "$target" in
10085 *solaris*)
10087 # On Solaris (at least, for some versions), libc contains stubbed
10088 # (non-functional) versions of the pthreads routines, so link-based
10089 # tests will erroneously succeed. (We need to link with -pthread or
10090 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10091 # a function called by this macro, so we could check for that, but
10092 # who knows whether they'll stub that too in a future libc.) So,
10093 # we'll just look for -pthreads and -lpthread first:
10095 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
10097 esac
10099 if test x"$acx_pthread_ok" = xno; then
10100 for flag in $acx_pthread_flags; do
10102 case $flag in
10103 none)
10104 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
10105 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
10109 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
10110 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
10111 PTHREAD_CFLAGS="$flag"
10115 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
10116 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
10117 PTHREAD_LIBS="-l$flag"
10119 esac
10121 save_LIBS="$LIBS"
10122 save_CFLAGS="$CFLAGS"
10123 LIBS="$PTHREAD_LIBS $LIBS"
10124 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10126 # Check for various functions. We must include pthread.h,
10127 # since some functions may be macros. (On the Sequent, we
10128 # need a special flag -Kthread to make this header compile.)
10129 # We check for pthread_join because it is in -lpthread on IRIX
10130 # while pthread_create is in libc. We check for pthread_attr_init
10131 # due to DEC craziness with -lpthreads. We check for
10132 # pthread_cleanup_push because it is one of the few pthread
10133 # functions on Solaris that doesn't have a non-functional libc stub.
10134 # We try pthread_create on general principles.
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 #include <pthread.h>
10143 main ()
10145 pthread_t th; pthread_join(th, 0);
10146 pthread_attr_init(0); pthread_cleanup_push(0, 0);
10147 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
10149 return 0;
10151 _ACEOF
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_link") 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && {
10166 test -z "$ac_c_werror_flag" ||
10167 test ! -s conftest.err
10168 } && test -s conftest$ac_exeext &&
10169 $as_test_x conftest$ac_exeext; then
10170 acx_pthread_ok=yes
10171 else
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10179 conftest$ac_exeext conftest.$ac_ext
10181 LIBS="$save_LIBS"
10182 CFLAGS="$save_CFLAGS"
10184 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
10185 echo "${ECHO_T}$acx_pthread_ok" >&6; }
10186 if test "x$acx_pthread_ok" = xyes; then
10187 break;
10190 PTHREAD_LIBS=""
10191 PTHREAD_CFLAGS=""
10192 done
10195 # Various other checks:
10196 if test "x$acx_pthread_ok" = xyes; then
10197 save_LIBS="$LIBS"
10198 LIBS="$PTHREAD_LIBS $LIBS"
10199 save_CFLAGS="$CFLAGS"
10200 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10202 # Detect AIX lossage: threads are created detached by default
10203 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
10204 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
10205 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 #include <pthread.h>
10214 main ()
10216 int attr=PTHREAD_CREATE_JOINABLE;
10218 return 0;
10220 _ACEOF
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_link") 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest$ac_exeext &&
10238 $as_test_x conftest$ac_exeext; then
10239 ok=PTHREAD_CREATE_JOINABLE
10240 else
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10244 ok=unknown
10247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10248 conftest$ac_exeext conftest.$ac_ext
10249 if test x"$ok" = xunknown; then
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h. */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 #include <pthread.h>
10258 main ()
10260 int attr=PTHREAD_CREATE_UNDETACHED;
10262 return 0;
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest$ac_exeext &&
10282 $as_test_x conftest$ac_exeext; then
10283 ok=PTHREAD_CREATE_UNDETACHED
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ok=unknown
10291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10292 conftest$ac_exeext conftest.$ac_ext
10294 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
10296 cat >>confdefs.h <<\_ACEOF
10297 #define PTHREAD_CREATE_JOINABLE $ok
10298 _ACEOF
10301 { echo "$as_me:$LINENO: result: ${ok}" >&5
10302 echo "${ECHO_T}${ok}" >&6; }
10303 if test x"$ok" = xunknown; then
10304 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
10305 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
10308 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
10309 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
10310 flag=no
10311 case "$target" in
10312 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
10313 *solaris* | alpha*-osf* | *linux*) flag="-D_REENTRANT";;
10314 esac
10315 { echo "$as_me:$LINENO: result: ${flag}" >&5
10316 echo "${ECHO_T}${flag}" >&6; }
10317 if test "x$flag" != xno; then
10318 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10321 LIBS="$save_LIBS"
10322 CFLAGS="$save_CFLAGS"
10324 # More AIX lossage: must compile with cc_r
10325 # Extract the first word of "cc_r", so it can be a program name with args.
10326 set dummy cc_r; ac_word=$2
10327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10329 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332 if test -n "$PTHREAD_CC"; then
10333 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342 ac_cv_prog_PTHREAD_CC="cc_r"
10343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10346 done
10347 done
10348 IFS=$as_save_IFS
10350 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
10353 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10354 if test -n "$PTHREAD_CC"; then
10355 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
10356 echo "${ECHO_T}$PTHREAD_CC" >&6; }
10357 else
10358 { echo "$as_me:$LINENO: result: no" >&5
10359 echo "${ECHO_T}no" >&6; }
10363 else
10364 PTHREAD_CC="$CC"
10371 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10372 if test x"$acx_pthread_ok" = xyes; then
10374 case "$target" in
10375 *openbsd*)
10376 { echo "$as_me:$LINENO: result: WARNING: pthread support on OpenBSD is unstable!" >&5
10377 echo "${ECHO_T}WARNING: pthread support on OpenBSD is unstable!" >&6; }
10378 CFLAGS="$CFLAGS -pthread"
10380 esac
10381 LIBS="$PTHREAD_LIBS $LIBS"
10382 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10383 CC="$PTHREAD_CC"
10385 cat >>confdefs.h <<\_ACEOF
10386 #define USE_PTHREAD 1
10387 _ACEOF
10391 else
10392 acx_pthread_ok=no
10394 { echo "$as_me:$LINENO: result: I don't know how to build with pthread support on this platform." >&5
10395 echo "${ECHO_T}I don't know how to build with pthread support on this platform." >&6; }
10396 { { echo "$as_me:$LINENO: error: try ./configure --disable-pthread" >&5
10397 echo "$as_me: error: try ./configure --disable-pthread" >&2;}
10398 { (exit 1); exit 1; }; }
10406 if test "$MEMCHECK" = "dmalloc"; then
10407 { echo "$as_me:$LINENO: checking for dmalloc Library and Header files..." >&5
10408 echo "$as_me: checking for dmalloc Library and Header files..." >&6;}
10409 if test "${ac_cv_header_dmalloc_h+set}" = set; then
10410 { echo "$as_me:$LINENO: checking for dmalloc.h" >&5
10411 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6; }
10412 if test "${ac_cv_header_dmalloc_h+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 { echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
10416 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6; }
10417 else
10418 # Is the header compilable?
10419 { echo "$as_me:$LINENO: checking dmalloc.h usability" >&5
10420 echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6; }
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h. */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427 $ac_includes_default
10428 #include <dmalloc.h>
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (ac_try="$ac_compile"
10432 case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_compile") 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } && {
10444 test -z "$ac_c_werror_flag" ||
10445 test ! -s conftest.err
10446 } && test -s conftest.$ac_objext; then
10447 ac_header_compiler=yes
10448 else
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10452 ac_header_compiler=no
10455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10457 echo "${ECHO_T}$ac_header_compiler" >&6; }
10459 # Is the header present?
10460 { echo "$as_me:$LINENO: checking dmalloc.h presence" >&5
10461 echo $ECHO_N "checking dmalloc.h presence... $ECHO_C" >&6; }
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 #include <dmalloc.h>
10469 _ACEOF
10470 if { (ac_try="$ac_cpp conftest.$ac_ext"
10471 case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474 esac
10475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } >/dev/null && {
10483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10484 test ! -s conftest.err
10485 }; then
10486 ac_header_preproc=yes
10487 else
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_header_preproc=no
10494 rm -f conftest.err conftest.$ac_ext
10495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10496 echo "${ECHO_T}$ac_header_preproc" >&6; }
10498 # So? What about this header?
10499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10500 yes:no: )
10501 { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
10502 echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10503 { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5
10504 echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;}
10505 ac_header_preproc=yes
10507 no:yes:* )
10508 { echo "$as_me:$LINENO: WARNING: dmalloc.h: present but cannot be compiled" >&5
10509 echo "$as_me: WARNING: dmalloc.h: present but cannot be compiled" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: dmalloc.h: check for missing prerequisite headers?" >&5
10511 echo "$as_me: WARNING: dmalloc.h: check for missing prerequisite headers?" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: dmalloc.h: see the Autoconf documentation" >&5
10513 echo "$as_me: WARNING: dmalloc.h: see the Autoconf documentation" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&5
10515 echo "$as_me: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
10516 { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&5
10517 echo "$as_me: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&5
10519 echo "$as_me: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&2;}
10520 ( cat <<\_ASBOX
10521 ## -------------------------------------------------- ##
10522 ## Report this to openvpn-users@lists.sourceforge.net ##
10523 ## -------------------------------------------------- ##
10524 _ASBOX
10525 ) | sed "s/^/$as_me: WARNING: /" >&2
10527 esac
10528 { echo "$as_me:$LINENO: checking for dmalloc.h" >&5
10529 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6; }
10530 if test "${ac_cv_header_dmalloc_h+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533 ac_cv_header_dmalloc_h=$ac_header_preproc
10535 { echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
10536 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6; }
10539 if test $ac_cv_header_dmalloc_h = yes; then
10540 { echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
10541 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
10542 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545 ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-ldmalloc $LIBS"
10547 cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h. */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 char malloc ();
10562 main ()
10564 return malloc ();
10566 return 0;
10568 _ACEOF
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (ac_try="$ac_link"
10571 case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10574 esac
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_link") 2>conftest.er1
10577 ac_status=$?
10578 grep -v '^ *+' conftest.er1 >conftest.err
10579 rm -f conftest.er1
10580 cat conftest.err >&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } && {
10583 test -z "$ac_c_werror_flag" ||
10584 test ! -s conftest.err
10585 } && test -s conftest$ac_exeext &&
10586 $as_test_x conftest$ac_exeext; then
10587 ac_cv_lib_dmalloc_malloc=yes
10588 else
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_cv_lib_dmalloc_malloc=no
10595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10596 conftest$ac_exeext conftest.$ac_ext
10597 LIBS=$ac_check_lib_save_LIBS
10599 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
10600 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
10601 if test $ac_cv_lib_dmalloc_malloc = yes; then
10603 if test "$PTHREAD" = "yes"; then
10605 LIBS="-ldmallocth $LIBS"
10607 else
10609 LIBS="-ldmalloc $LIBS"
10613 cat >>confdefs.h <<\_ACEOF
10614 #define DMALLOC 1
10615 _ACEOF
10618 else
10619 { { echo "$as_me:$LINENO: error: dmalloc library not found." >&5
10620 echo "$as_me: error: dmalloc library not found." >&2;}
10621 { (exit 1); exit 1; }; }
10625 else
10626 { { echo "$as_me:$LINENO: error: dmalloc headers not found." >&5
10627 echo "$as_me: error: dmalloc headers not found." >&2;}
10628 { (exit 1); exit 1; }; }
10635 if test "${WIN32}" != "yes"; then
10636 if test "$PLUGINS" = "yes"; then
10637 { echo "$as_me:$LINENO: checking for libdl Library and Header files..." >&5
10638 echo "$as_me: checking for libdl Library and Header files..." >&6;}
10639 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10640 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10641 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10642 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10646 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10647 else
10648 # Is the header compilable?
10649 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
10650 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h. */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10657 $ac_includes_default
10658 #include <dlfcn.h>
10659 _ACEOF
10660 rm -f conftest.$ac_objext
10661 if { (ac_try="$ac_compile"
10662 case "(($ac_try" in
10663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664 *) ac_try_echo=$ac_try;;
10665 esac
10666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667 (eval "$ac_compile") 2>conftest.er1
10668 ac_status=$?
10669 grep -v '^ *+' conftest.er1 >conftest.err
10670 rm -f conftest.er1
10671 cat conftest.err >&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && {
10674 test -z "$ac_c_werror_flag" ||
10675 test ! -s conftest.err
10676 } && test -s conftest.$ac_objext; then
10677 ac_header_compiler=yes
10678 else
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_header_compiler=no
10685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10687 echo "${ECHO_T}$ac_header_compiler" >&6; }
10689 # Is the header present?
10690 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
10691 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h. */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 #include <dlfcn.h>
10699 _ACEOF
10700 if { (ac_try="$ac_cpp conftest.$ac_ext"
10701 case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704 esac
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } >/dev/null && {
10713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10714 test ! -s conftest.err
10715 }; then
10716 ac_header_preproc=yes
10717 else
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 ac_header_preproc=no
10724 rm -f conftest.err conftest.$ac_ext
10725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10726 echo "${ECHO_T}$ac_header_preproc" >&6; }
10728 # So? What about this header?
10729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10730 yes:no: )
10731 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
10732 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
10734 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
10735 ac_header_preproc=yes
10737 no:yes:* )
10738 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
10739 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
10741 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
10743 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
10745 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
10747 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
10749 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
10750 ( cat <<\_ASBOX
10751 ## -------------------------------------------------- ##
10752 ## Report this to openvpn-users@lists.sourceforge.net ##
10753 ## -------------------------------------------------- ##
10754 _ASBOX
10755 ) | sed "s/^/$as_me: WARNING: /" >&2
10757 esac
10758 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10759 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10760 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763 ac_cv_header_dlfcn_h=$ac_header_preproc
10765 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10766 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10769 if test $ac_cv_header_dlfcn_h = yes; then
10770 { echo "$as_me:$LINENO: checking for dlopen" >&5
10771 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10772 if test "${ac_cv_func_dlopen+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10783 #define dlopen innocuous_dlopen
10785 /* System header to define __stub macros and hopefully few prototypes,
10786 which can conflict with char dlopen (); below.
10787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10788 <limits.h> exists even on freestanding compilers. */
10790 #ifdef __STDC__
10791 # include <limits.h>
10792 #else
10793 # include <assert.h>
10794 #endif
10796 #undef dlopen
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10801 #ifdef __cplusplus
10802 extern "C"
10803 #endif
10804 char dlopen ();
10805 /* The GNU C library defines this for functions which it implements
10806 to always fail with ENOSYS. Some functions are actually named
10807 something starting with __ and the normal name is an alias. */
10808 #if defined __stub_dlopen || defined __stub___dlopen
10809 choke me
10810 #endif
10813 main ()
10815 return dlopen ();
10817 return 0;
10819 _ACEOF
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (ac_try="$ac_link"
10822 case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_link") 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } && {
10834 test -z "$ac_c_werror_flag" ||
10835 test ! -s conftest.err
10836 } && test -s conftest$ac_exeext &&
10837 $as_test_x conftest$ac_exeext; then
10838 ac_cv_func_dlopen=yes
10839 else
10840 echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10843 ac_cv_func_dlopen=no
10846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10847 conftest$ac_exeext conftest.$ac_ext
10849 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10850 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10851 if test $ac_cv_func_dlopen = yes; then
10853 cat >>confdefs.h <<\_ACEOF
10854 #define USE_LIBDL 1
10855 _ACEOF
10857 else
10858 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10859 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10860 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-ldl $LIBS"
10865 cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h. */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10872 /* Override any GCC internal prototype to avoid an error.
10873 Use char because int might match the return type of a GCC
10874 builtin and then its argument prototype would still apply. */
10875 #ifdef __cplusplus
10876 extern "C"
10877 #endif
10878 char dlopen ();
10880 main ()
10882 return dlopen ();
10884 return 0;
10886 _ACEOF
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (ac_try="$ac_link"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_link") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest$ac_exeext &&
10904 $as_test_x conftest$ac_exeext; then
10905 ac_cv_lib_dl_dlopen=yes
10906 else
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_cv_lib_dl_dlopen=no
10913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10914 conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10917 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10918 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10919 if test $ac_cv_lib_dl_dlopen = yes; then
10922 LIBS="-ldl $LIBS"
10925 cat >>confdefs.h <<\_ACEOF
10926 #define USE_LIBDL 1
10927 _ACEOF
10930 else
10931 { echo "$as_me:$LINENO: result: libdl library not found." >&5
10932 echo "${ECHO_T}libdl library not found." >&6; }
10938 else
10939 { echo "$as_me:$LINENO: result: libdl headers not found." >&5
10940 echo "${ECHO_T}libdl headers not found." >&6; }
10948 if test "${WIN32}" = "yes"; then
10949 if test "$PLUGINS" = "yes"; then
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10957 #include <windows.h>
10960 main ()
10963 LoadLibrary (NULL);
10966 return 0;
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (ac_try="$ac_link"
10971 case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10974 esac
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_link") 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && {
10983 test -z "$ac_c_werror_flag" ||
10984 test ! -s conftest.err
10985 } && test -s conftest$ac_exeext &&
10986 $as_test_x conftest$ac_exeext; then
10988 { echo "$as_me:$LINENO: result: LoadLibrary DEFINED" >&5
10989 echo "${ECHO_T}LoadLibrary DEFINED" >&6; }
10991 cat >>confdefs.h <<\_ACEOF
10992 #define USE_LOAD_LIBRARY 1
10993 _ACEOF
10996 else
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11001 { echo "$as_me:$LINENO: result: LoadLibrary UNDEFINED" >&5
11002 echo "${ECHO_T}LoadLibrary UNDEFINED" >&6; }
11006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11007 conftest$ac_exeext conftest.$ac_ext
11012 if test "$LZO" = "yes"; then
11013 LZO_H=""
11014 { echo "$as_me:$LINENO: checking for LZO Library and Header files..." >&5
11015 echo "$as_me: checking for LZO Library and Header files..." >&6;}
11016 if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
11017 { echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
11018 echo $ECHO_N "checking for lzo/lzo1x.h... $ECHO_C" >&6; }
11019 if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 { echo "$as_me:$LINENO: result: $ac_cv_header_lzo_lzo1x_h" >&5
11023 echo "${ECHO_T}$ac_cv_header_lzo_lzo1x_h" >&6; }
11024 else
11025 # Is the header compilable?
11026 { echo "$as_me:$LINENO: checking lzo/lzo1x.h usability" >&5
11027 echo $ECHO_N "checking lzo/lzo1x.h usability... $ECHO_C" >&6; }
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h. */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 $ac_includes_default
11035 #include <lzo/lzo1x.h>
11036 _ACEOF
11037 rm -f conftest.$ac_objext
11038 if { (ac_try="$ac_compile"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_compile") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest.$ac_objext; then
11054 ac_header_compiler=yes
11055 else
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_header_compiler=no
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11064 echo "${ECHO_T}$ac_header_compiler" >&6; }
11066 # Is the header present?
11067 { echo "$as_me:$LINENO: checking lzo/lzo1x.h presence" >&5
11068 echo $ECHO_N "checking lzo/lzo1x.h presence... $ECHO_C" >&6; }
11069 cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h. */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11075 #include <lzo/lzo1x.h>
11076 _ACEOF
11077 if { (ac_try="$ac_cpp conftest.$ac_ext"
11078 case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11081 esac
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11084 ac_status=$?
11085 grep -v '^ *+' conftest.er1 >conftest.err
11086 rm -f conftest.er1
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } >/dev/null && {
11090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11091 test ! -s conftest.err
11092 }; then
11093 ac_header_preproc=yes
11094 else
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 ac_header_preproc=no
11101 rm -f conftest.err conftest.$ac_ext
11102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11103 echo "${ECHO_T}$ac_header_preproc" >&6; }
11105 # So? What about this header?
11106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11107 yes:no: )
11108 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&5
11109 echo "$as_me: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: proceeding with the compiler's result" >&5
11111 echo "$as_me: WARNING: lzo/lzo1x.h: proceeding with the compiler's result" >&2;}
11112 ac_header_preproc=yes
11114 no:yes:* )
11115 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: present but cannot be compiled" >&5
11116 echo "$as_me: WARNING: lzo/lzo1x.h: present but cannot be compiled" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: check for missing prerequisite headers?" >&5
11118 echo "$as_me: WARNING: lzo/lzo1x.h: check for missing prerequisite headers?" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: see the Autoconf documentation" >&5
11120 echo "$as_me: WARNING: lzo/lzo1x.h: see the Autoconf documentation" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: section \"Present But Cannot Be Compiled\"" >&5
11122 echo "$as_me: WARNING: lzo/lzo1x.h: section \"Present But Cannot Be Compiled\"" >&2;}
11123 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: proceeding with the preprocessor's result" >&5
11124 echo "$as_me: WARNING: lzo/lzo1x.h: proceeding with the preprocessor's result" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: in the future, the compiler will take precedence" >&5
11126 echo "$as_me: WARNING: lzo/lzo1x.h: in the future, the compiler will take precedence" >&2;}
11127 ( cat <<\_ASBOX
11128 ## -------------------------------------------------- ##
11129 ## Report this to openvpn-users@lists.sourceforge.net ##
11130 ## -------------------------------------------------- ##
11131 _ASBOX
11132 ) | sed "s/^/$as_me: WARNING: /" >&2
11134 esac
11135 { echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
11136 echo $ECHO_N "checking for lzo/lzo1x.h... $ECHO_C" >&6; }
11137 if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140 ac_cv_header_lzo_lzo1x_h=$ac_header_preproc
11142 { echo "$as_me:$LINENO: result: $ac_cv_header_lzo_lzo1x_h" >&5
11143 echo "${ECHO_T}$ac_cv_header_lzo_lzo1x_h" >&6; }
11146 if test $ac_cv_header_lzo_lzo1x_h = yes; then
11147 LZO_H="2"
11148 lzolibs="lzo2 lzo"
11150 cat >>confdefs.h <<\_ACEOF
11151 #define LZO_HEADER_DIR 1
11152 _ACEOF
11155 else
11156 if test "${ac_cv_header_lzo1x_h+set}" = set; then
11157 { echo "$as_me:$LINENO: checking for lzo1x.h" >&5
11158 echo $ECHO_N "checking for lzo1x.h... $ECHO_C" >&6; }
11159 if test "${ac_cv_header_lzo1x_h+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 { echo "$as_me:$LINENO: result: $ac_cv_header_lzo1x_h" >&5
11163 echo "${ECHO_T}$ac_cv_header_lzo1x_h" >&6; }
11164 else
11165 # Is the header compilable?
11166 { echo "$as_me:$LINENO: checking lzo1x.h usability" >&5
11167 echo $ECHO_N "checking lzo1x.h usability... $ECHO_C" >&6; }
11168 cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h. */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 $ac_includes_default
11175 #include <lzo1x.h>
11176 _ACEOF
11177 rm -f conftest.$ac_objext
11178 if { (ac_try="$ac_compile"
11179 case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182 esac
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_compile") 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && {
11191 test -z "$ac_c_werror_flag" ||
11192 test ! -s conftest.err
11193 } && test -s conftest.$ac_objext; then
11194 ac_header_compiler=yes
11195 else
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 ac_header_compiler=no
11202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11204 echo "${ECHO_T}$ac_header_compiler" >&6; }
11206 # Is the header present?
11207 { echo "$as_me:$LINENO: checking lzo1x.h presence" >&5
11208 echo $ECHO_N "checking lzo1x.h presence... $ECHO_C" >&6; }
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 #include <lzo1x.h>
11216 _ACEOF
11217 if { (ac_try="$ac_cpp conftest.$ac_ext"
11218 case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } >/dev/null && {
11230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11231 test ! -s conftest.err
11232 }; then
11233 ac_header_preproc=yes
11234 else
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_header_preproc=no
11241 rm -f conftest.err conftest.$ac_ext
11242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243 echo "${ECHO_T}$ac_header_preproc" >&6; }
11245 # So? What about this header?
11246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11247 yes:no: )
11248 { echo "$as_me:$LINENO: WARNING: lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&5
11249 echo "$as_me: WARNING: lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: lzo1x.h: proceeding with the compiler's result" >&5
11251 echo "$as_me: WARNING: lzo1x.h: proceeding with the compiler's result" >&2;}
11252 ac_header_preproc=yes
11254 no:yes:* )
11255 { echo "$as_me:$LINENO: WARNING: lzo1x.h: present but cannot be compiled" >&5
11256 echo "$as_me: WARNING: lzo1x.h: present but cannot be compiled" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: lzo1x.h: check for missing prerequisite headers?" >&5
11258 echo "$as_me: WARNING: lzo1x.h: check for missing prerequisite headers?" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: lzo1x.h: see the Autoconf documentation" >&5
11260 echo "$as_me: WARNING: lzo1x.h: see the Autoconf documentation" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: lzo1x.h: section \"Present But Cannot Be Compiled\"" >&5
11262 echo "$as_me: WARNING: lzo1x.h: section \"Present But Cannot Be Compiled\"" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: lzo1x.h: proceeding with the preprocessor's result" >&5
11264 echo "$as_me: WARNING: lzo1x.h: proceeding with the preprocessor's result" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: lzo1x.h: in the future, the compiler will take precedence" >&5
11266 echo "$as_me: WARNING: lzo1x.h: in the future, the compiler will take precedence" >&2;}
11267 ( cat <<\_ASBOX
11268 ## -------------------------------------------------- ##
11269 ## Report this to openvpn-users@lists.sourceforge.net ##
11270 ## -------------------------------------------------- ##
11271 _ASBOX
11272 ) | sed "s/^/$as_me: WARNING: /" >&2
11274 esac
11275 { echo "$as_me:$LINENO: checking for lzo1x.h" >&5
11276 echo $ECHO_N "checking for lzo1x.h... $ECHO_C" >&6; }
11277 if test "${ac_cv_header_lzo1x_h+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280 ac_cv_header_lzo1x_h=$ac_header_preproc
11282 { echo "$as_me:$LINENO: result: $ac_cv_header_lzo1x_h" >&5
11283 echo "${ECHO_T}$ac_cv_header_lzo1x_h" >&6; }
11286 if test $ac_cv_header_lzo1x_h = yes; then
11287 LZO_H="1" ; lzolibs=lzo
11296 if test -n "$LZO_H"; then
11297 havelzolib=0
11298 for i in $lzolibs ; do
11299 if test $havelzolib = 1 ; then break ; fi
11300 as_ac_Lib=`echo "ac_cv_lib_$i''_lzo1x_1_15_compress" | $as_tr_sh`
11301 { echo "$as_me:$LINENO: checking for lzo1x_1_15_compress in -l$i" >&5
11302 echo $ECHO_N "checking for lzo1x_1_15_compress in -l$i... $ECHO_C" >&6; }
11303 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306 ac_check_lib_save_LIBS=$LIBS
11307 LIBS="-l$i $LIBS"
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11315 /* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11318 #ifdef __cplusplus
11319 extern "C"
11320 #endif
11321 char lzo1x_1_15_compress ();
11323 main ()
11325 return lzo1x_1_15_compress ();
11327 return 0;
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest$ac_exeext &&
11347 $as_test_x conftest$ac_exeext; then
11348 eval "$as_ac_Lib=yes"
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 eval "$as_ac_Lib=no"
11356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11357 conftest$ac_exeext conftest.$ac_ext
11358 LIBS=$ac_check_lib_save_LIBS
11360 ac_res=`eval echo '${'$as_ac_Lib'}'`
11361 { echo "$as_me:$LINENO: result: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11363 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11366 LIBS="-l$i $LIBS"
11369 cat >>confdefs.h <<\_ACEOF
11370 #define USE_LZO 1
11371 _ACEOF
11374 cat >>confdefs.h <<_ACEOF
11375 #define LZO_VERSION_NUM "$LZO_H"
11376 _ACEOF
11378 havelzolib=1
11383 done
11384 if test $havelzolib = 0 ; then
11385 { { echo "$as_me:$LINENO: error: LZO headers were found but LZO library was not found" >&5
11386 echo "$as_me: error: LZO headers were found but LZO library was not found" >&2;}
11387 { (exit 1); exit 1; }; }
11389 else
11390 { echo "$as_me:$LINENO: result: LZO headers were not found" >&5
11391 echo "${ECHO_T}LZO headers were not found" >&6; }
11392 { echo "$as_me:$LINENO: result: LZO library available from http://www.oberhumer.com/opensource/lzo/" >&5
11393 echo "${ECHO_T}LZO library available from http://www.oberhumer.com/opensource/lzo/" >&6; }
11394 { { echo "$as_me:$LINENO: error: Or try ./configure --disable-lzo" >&5
11395 echo "$as_me: error: Or try ./configure --disable-lzo" >&2;}
11396 { (exit 1); exit 1; }; }
11401 if test "$CRYPTO" = "yes"; then
11402 { echo "$as_me:$LINENO: checking for OpenSSL Crypto Library and Header files..." >&5
11403 echo "$as_me: checking for OpenSSL Crypto Library and Header files..." >&6;}
11404 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
11405 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
11406 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
11407 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
11411 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
11412 else
11413 # Is the header compilable?
11414 { echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
11415 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; }
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h. */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 $ac_includes_default
11423 #include <openssl/evp.h>
11424 _ACEOF
11425 rm -f conftest.$ac_objext
11426 if { (ac_try="$ac_compile"
11427 case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430 esac
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_compile") 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } && {
11439 test -z "$ac_c_werror_flag" ||
11440 test ! -s conftest.err
11441 } && test -s conftest.$ac_objext; then
11442 ac_header_compiler=yes
11443 else
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11447 ac_header_compiler=no
11450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11452 echo "${ECHO_T}$ac_header_compiler" >&6; }
11454 # Is the header present?
11455 { echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
11456 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; }
11457 cat >conftest.$ac_ext <<_ACEOF
11458 /* confdefs.h. */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 #include <openssl/evp.h>
11464 _ACEOF
11465 if { (ac_try="$ac_cpp conftest.$ac_ext"
11466 case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469 esac
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } >/dev/null && {
11478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11479 test ! -s conftest.err
11480 }; then
11481 ac_header_preproc=yes
11482 else
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 ac_header_preproc=no
11489 rm -f conftest.err conftest.$ac_ext
11490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11491 echo "${ECHO_T}$ac_header_preproc" >&6; }
11493 # So? What about this header?
11494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11495 yes:no: )
11496 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
11497 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11498 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
11499 echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
11500 ac_header_preproc=yes
11502 no:yes:* )
11503 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
11504 echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
11505 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5
11506 echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;}
11507 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
11508 echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
11509 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5
11510 echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
11512 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
11514 echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
11515 ( cat <<\_ASBOX
11516 ## -------------------------------------------------- ##
11517 ## Report this to openvpn-users@lists.sourceforge.net ##
11518 ## -------------------------------------------------- ##
11519 _ASBOX
11520 ) | sed "s/^/$as_me: WARNING: /" >&2
11522 esac
11523 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
11524 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
11525 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528 ac_cv_header_openssl_evp_h=$ac_header_preproc
11530 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
11531 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
11534 if test $ac_cv_header_openssl_evp_h = yes; then
11536 else
11537 { { echo "$as_me:$LINENO: error: OpenSSL Crypto headers not found." >&5
11538 echo "$as_me: error: OpenSSL Crypto headers not found." >&2;}
11539 { (exit 1); exit 1; }; }
11544 for lib in crypto eay32; do
11545 as_ac_Lib=`echo "ac_cv_lib_$lib''_EVP_CIPHER_CTX_init" | $as_tr_sh`
11546 { echo "$as_me:$LINENO: checking for EVP_CIPHER_CTX_init in -l$lib" >&5
11547 echo $ECHO_N "checking for EVP_CIPHER_CTX_init in -l$lib... $ECHO_C" >&6; }
11548 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551 ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-l$lib $LIBS"
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11563 #ifdef __cplusplus
11564 extern "C"
11565 #endif
11566 char EVP_CIPHER_CTX_init ();
11568 main ()
11570 return EVP_CIPHER_CTX_init ();
11572 return 0;
11574 _ACEOF
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (ac_try="$ac_link"
11577 case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_link") 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && {
11589 test -z "$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 } && test -s conftest$ac_exeext &&
11592 $as_test_x conftest$ac_exeext; then
11593 eval "$as_ac_Lib=yes"
11594 else
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 eval "$as_ac_Lib=no"
11601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602 conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11605 ac_res=`eval echo '${'$as_ac_Lib'}'`
11606 { echo "$as_me:$LINENO: result: $ac_res" >&5
11607 echo "${ECHO_T}$ac_res" >&6; }
11608 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11610 cryptofound=1
11612 LIBS="-l$lib $LIBS"
11618 done
11620 test -n "$cryptofound" || { { echo "$as_me:$LINENO: error: OpenSSL Crypto library not found." >&5
11621 echo "$as_me: error: OpenSSL Crypto library not found." >&2;}
11622 { (exit 1); exit 1; }; }
11624 { echo "$as_me:$LINENO: checking that OpenSSL Library is at least version 0.9.6" >&5
11625 echo $ECHO_N "checking that OpenSSL Library is at least version 0.9.6... $ECHO_C" >&6; }
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 #include <openssl/evp.h>
11634 #if SSLEAY_VERSION_NUMBER >= 0x00906000L
11636 #endif
11638 _ACEOF
11639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11640 $EGREP "yes" >/dev/null 2>&1; then
11642 { echo "$as_me:$LINENO: result: yes" >&5
11643 echo "${ECHO_T}yes" >&6; }
11645 cat >>confdefs.h <<\_ACEOF
11646 #define USE_CRYPTO 1
11647 _ACEOF
11650 for ac_func in EVP_CIPHER_CTX_set_key_length
11652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666 #define $ac_func innocuous_$ac_func
11668 /* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11673 #ifdef __STDC__
11674 # include <limits.h>
11675 #else
11676 # include <assert.h>
11677 #endif
11679 #undef $ac_func
11681 /* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 char $ac_func ();
11688 /* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691 #if defined __stub_$ac_func || defined __stub___$ac_func
11692 choke me
11693 #endif
11696 main ()
11698 return $ac_func ();
11700 return 0;
11702 _ACEOF
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } && {
11717 test -z "$ac_c_werror_flag" ||
11718 test ! -s conftest.err
11719 } && test -s conftest$ac_exeext &&
11720 $as_test_x conftest$ac_exeext; then
11721 eval "$as_ac_var=yes"
11722 else
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 eval "$as_ac_var=no"
11729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730 conftest$ac_exeext conftest.$ac_ext
11732 ac_res=`eval echo '${'$as_ac_var'}'`
11733 { echo "$as_me:$LINENO: result: $ac_res" >&5
11734 echo "${ECHO_T}$ac_res" >&6; }
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 _ACEOF
11741 done
11745 for ac_header in openssl/engine.h
11747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 ac_res=`eval echo '${'$as_ac_Header'}'`
11755 { echo "$as_me:$LINENO: result: $ac_res" >&5
11756 echo "${ECHO_T}$ac_res" >&6; }
11757 else
11758 # Is the header compilable?
11759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11768 #include <$ac_header>
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11787 ac_header_compiler=yes
11788 else
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_header_compiler=no
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797 echo "${ECHO_T}$ac_header_compiler" >&6; }
11799 # Is the header present?
11800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <$ac_header>
11809 _ACEOF
11810 if { (ac_try="$ac_cpp conftest.$ac_ext"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } >/dev/null && {
11823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 }; then
11826 ac_header_preproc=yes
11827 else
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11831 ac_header_preproc=no
11834 rm -f conftest.err conftest.$ac_ext
11835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11836 echo "${ECHO_T}$ac_header_preproc" >&6; }
11838 # So? What about this header?
11839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11840 yes:no: )
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11845 ac_header_preproc=yes
11847 no:yes:* )
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11860 ( cat <<\_ASBOX
11861 ## -------------------------------------------------- ##
11862 ## Report this to openvpn-users@lists.sourceforge.net ##
11863 ## -------------------------------------------------- ##
11864 _ASBOX
11865 ) | sed "s/^/$as_me: WARNING: /" >&2
11867 esac
11868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 eval "$as_ac_Header=\$ac_header_preproc"
11875 ac_res=`eval echo '${'$as_ac_Header'}'`
11876 { echo "$as_me:$LINENO: result: $ac_res" >&5
11877 echo "${ECHO_T}$ac_res" >&6; }
11880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11881 cat >>confdefs.h <<_ACEOF
11882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11883 _ACEOF
11887 done
11890 for ac_func in ENGINE_load_builtin_engines
11892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 else
11898 cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h. */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11906 #define $ac_func innocuous_$ac_func
11908 /* System header to define __stub macros and hopefully few prototypes,
11909 which can conflict with char $ac_func (); below.
11910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911 <limits.h> exists even on freestanding compilers. */
11913 #ifdef __STDC__
11914 # include <limits.h>
11915 #else
11916 # include <assert.h>
11917 #endif
11919 #undef $ac_func
11921 /* Override any GCC internal prototype to avoid an error.
11922 Use char because int might match the return type of a GCC
11923 builtin and then its argument prototype would still apply. */
11924 #ifdef __cplusplus
11925 extern "C"
11926 #endif
11927 char $ac_func ();
11928 /* The GNU C library defines this for functions which it implements
11929 to always fail with ENOSYS. Some functions are actually named
11930 something starting with __ and the normal name is an alias. */
11931 #if defined __stub_$ac_func || defined __stub___$ac_func
11932 choke me
11933 #endif
11936 main ()
11938 return $ac_func ();
11940 return 0;
11942 _ACEOF
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_link") 2>conftest.er1
11951 ac_status=$?
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } && {
11957 test -z "$ac_c_werror_flag" ||
11958 test ! -s conftest.err
11959 } && test -s conftest$ac_exeext &&
11960 $as_test_x conftest$ac_exeext; then
11961 eval "$as_ac_var=yes"
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 eval "$as_ac_var=no"
11969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11970 conftest$ac_exeext conftest.$ac_ext
11972 ac_res=`eval echo '${'$as_ac_var'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974 echo "${ECHO_T}$ac_res" >&6; }
11975 if test `eval echo '${'$as_ac_var'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978 _ACEOF
11981 done
11984 for ac_func in ENGINE_register_all_complete
11986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h. */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12000 #define $ac_func innocuous_$ac_func
12002 /* System header to define __stub macros and hopefully few prototypes,
12003 which can conflict with char $ac_func (); below.
12004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005 <limits.h> exists even on freestanding compilers. */
12007 #ifdef __STDC__
12008 # include <limits.h>
12009 #else
12010 # include <assert.h>
12011 #endif
12013 #undef $ac_func
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 char $ac_func ();
12022 /* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025 #if defined __stub_$ac_func || defined __stub___$ac_func
12026 choke me
12027 #endif
12030 main ()
12032 return $ac_func ();
12034 return 0;
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_link") 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest$ac_exeext &&
12054 $as_test_x conftest$ac_exeext; then
12055 eval "$as_ac_var=yes"
12056 else
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 eval "$as_ac_var=no"
12063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12064 conftest$ac_exeext conftest.$ac_ext
12066 ac_res=`eval echo '${'$as_ac_var'}'`
12067 { echo "$as_me:$LINENO: result: $ac_res" >&5
12068 echo "${ECHO_T}$ac_res" >&6; }
12069 if test `eval echo '${'$as_ac_var'}'` = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12072 _ACEOF
12075 done
12078 for ac_func in ENGINE_cleanup
12080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12094 #define $ac_func innocuous_$ac_func
12096 /* System header to define __stub macros and hopefully few prototypes,
12097 which can conflict with char $ac_func (); below.
12098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099 <limits.h> exists even on freestanding compilers. */
12101 #ifdef __STDC__
12102 # include <limits.h>
12103 #else
12104 # include <assert.h>
12105 #endif
12107 #undef $ac_func
12109 /* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 char $ac_func ();
12116 /* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
12119 #if defined __stub_$ac_func || defined __stub___$ac_func
12120 choke me
12121 #endif
12124 main ()
12126 return $ac_func ();
12128 return 0;
12130 _ACEOF
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_link") 2>conftest.er1
12139 ac_status=$?
12140 grep -v '^ *+' conftest.er1 >conftest.err
12141 rm -f conftest.er1
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } && {
12145 test -z "$ac_c_werror_flag" ||
12146 test ! -s conftest.err
12147 } && test -s conftest$ac_exeext &&
12148 $as_test_x conftest$ac_exeext; then
12149 eval "$as_ac_var=yes"
12150 else
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 eval "$as_ac_var=no"
12157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12158 conftest$ac_exeext conftest.$ac_ext
12160 ac_res=`eval echo '${'$as_ac_var'}'`
12161 { echo "$as_me:$LINENO: result: $ac_res" >&5
12162 echo "${ECHO_T}$ac_res" >&6; }
12163 if test `eval echo '${'$as_ac_var'}'` = yes; then
12164 cat >>confdefs.h <<_ACEOF
12165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12166 _ACEOF
12169 done
12172 else
12173 { { echo "$as_me:$LINENO: error: OpenSSL crypto Library is too old." >&5
12174 echo "$as_me: error: OpenSSL crypto Library is too old." >&2;}
12175 { (exit 1); exit 1; }; }
12178 rm -f conftest*
12182 if test "$SSL" = "yes"; then
12183 { echo "$as_me:$LINENO: checking for OpenSSL SSL Library and Header files..." >&5
12184 echo "$as_me: checking for OpenSSL SSL Library and Header files..." >&6;}
12185 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12186 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12187 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12188 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12192 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12193 else
12194 # Is the header compilable?
12195 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12196 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h. */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 $ac_includes_default
12204 #include <openssl/ssl.h>
12205 _ACEOF
12206 rm -f conftest.$ac_objext
12207 if { (ac_try="$ac_compile"
12208 case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_compile") 2>conftest.er1
12214 ac_status=$?
12215 grep -v '^ *+' conftest.er1 >conftest.err
12216 rm -f conftest.er1
12217 cat conftest.err >&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } && {
12220 test -z "$ac_c_werror_flag" ||
12221 test ! -s conftest.err
12222 } && test -s conftest.$ac_objext; then
12223 ac_header_compiler=yes
12224 else
12225 echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228 ac_header_compiler=no
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12233 echo "${ECHO_T}$ac_header_compiler" >&6; }
12235 # Is the header present?
12236 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12237 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h. */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12244 #include <openssl/ssl.h>
12245 _ACEOF
12246 if { (ac_try="$ac_cpp conftest.$ac_ext"
12247 case "(($ac_try" in
12248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249 *) ac_try_echo=$ac_try;;
12250 esac
12251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12253 ac_status=$?
12254 grep -v '^ *+' conftest.er1 >conftest.err
12255 rm -f conftest.er1
12256 cat conftest.err >&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } >/dev/null && {
12259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12260 test ! -s conftest.err
12261 }; then
12262 ac_header_preproc=yes
12263 else
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ac_header_preproc=no
12270 rm -f conftest.err conftest.$ac_ext
12271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12272 echo "${ECHO_T}$ac_header_preproc" >&6; }
12274 # So? What about this header?
12275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12276 yes:no: )
12277 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12278 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12280 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12281 ac_header_preproc=yes
12283 no:yes:* )
12284 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12285 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12287 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12289 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12291 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12293 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12295 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12296 ( cat <<\_ASBOX
12297 ## -------------------------------------------------- ##
12298 ## Report this to openvpn-users@lists.sourceforge.net ##
12299 ## -------------------------------------------------- ##
12300 _ASBOX
12301 ) | sed "s/^/$as_me: WARNING: /" >&2
12303 esac
12304 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12305 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12306 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12311 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12312 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12315 if test $ac_cv_header_openssl_ssl_h = yes; then
12317 else
12318 { { echo "$as_me:$LINENO: error: OpenSSL SSL headers not found." >&5
12319 echo "$as_me: error: OpenSSL SSL headers not found." >&2;}
12320 { (exit 1); exit 1; }; }
12326 for lib in ssl ssl32; do
12327 as_ac_Lib=`echo "ac_cv_lib_$lib''_SSL_CTX_new" | $as_tr_sh`
12328 { echo "$as_me:$LINENO: checking for SSL_CTX_new in -l$lib" >&5
12329 echo $ECHO_N "checking for SSL_CTX_new in -l$lib... $ECHO_C" >&6; }
12330 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333 ac_check_lib_save_LIBS=$LIBS
12334 LIBS="-l$lib $LIBS"
12335 cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h. */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12345 #ifdef __cplusplus
12346 extern "C"
12347 #endif
12348 char SSL_CTX_new ();
12350 main ()
12352 return SSL_CTX_new ();
12354 return 0;
12356 _ACEOF
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (ac_try="$ac_link"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_link") 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest$ac_exeext &&
12374 $as_test_x conftest$ac_exeext; then
12375 eval "$as_ac_Lib=yes"
12376 else
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 eval "$as_ac_Lib=no"
12383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12384 conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12387 ac_res=`eval echo '${'$as_ac_Lib'}'`
12388 { echo "$as_me:$LINENO: result: $ac_res" >&5
12389 echo "${ECHO_T}$ac_res" >&6; }
12390 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12392 sslfound=1
12394 LIBS="-l$lib $LIBS"
12400 done
12402 test -n "${sslfound}" || { { echo "$as_me:$LINENO: error: OpenSSL SSL library not found." >&5
12403 echo "$as_me: error: OpenSSL SSL library not found." >&2;}
12404 { (exit 1); exit 1; }; }
12406 if test "$MEMCHECK" = "ssl"; then
12407 { echo "$as_me:$LINENO: checking for Memory Debugging Capabilities in OpenSSL Library..." >&5
12408 echo "$as_me: checking for Memory Debugging Capabilities in OpenSSL Library..." >&6;}
12409 { echo "$as_me:$LINENO: checking for CRYPTO_mem_ctrl in -lssl" >&5
12410 echo $ECHO_N "checking for CRYPTO_mem_ctrl in -lssl... $ECHO_C" >&6; }
12411 if test "${ac_cv_lib_ssl_CRYPTO_mem_ctrl+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 else
12414 ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-lssl $LIBS"
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h. */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12423 /* Override any GCC internal prototype to avoid an error.
12424 Use char because int might match the return type of a GCC
12425 builtin and then its argument prototype would still apply. */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 char CRYPTO_mem_ctrl ();
12431 main ()
12433 return CRYPTO_mem_ctrl ();
12435 return 0;
12437 _ACEOF
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (ac_try="$ac_link"
12440 case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12443 esac
12444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445 (eval "$ac_link") 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } && {
12452 test -z "$ac_c_werror_flag" ||
12453 test ! -s conftest.err
12454 } && test -s conftest$ac_exeext &&
12455 $as_test_x conftest$ac_exeext; then
12456 ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes
12457 else
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
12464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12465 conftest$ac_exeext conftest.$ac_ext
12466 LIBS=$ac_check_lib_save_LIBS
12468 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
12469 echo "${ECHO_T}$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
12470 if test $ac_cv_lib_ssl_CRYPTO_mem_ctrl = yes; then
12473 cat >>confdefs.h <<\_ACEOF
12474 #define CRYPTO_MDEBUG 1
12475 _ACEOF
12477 { echo "$as_me:$LINENO: result: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
12478 echo "${ECHO_T}NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6; }
12480 else
12481 { { echo "$as_me:$LINENO: error: Memory Debugging function in OpenSSL library not found." >&5
12482 echo "$as_me: error: Memory Debugging function in OpenSSL library not found." >&2;}
12483 { (exit 1); exit 1; }; }
12490 cat >>confdefs.h <<\_ACEOF
12491 #define USE_SSL 1
12492 _ACEOF
12497 if test "$PKCS11" = "yes"; then
12498 { echo "$as_me:$LINENO: checking for pkcs11-helper Library and Header files..." >&5
12499 echo "$as_me: checking for pkcs11-helper Library and Header files..." >&6;}
12500 if test "${ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h+set}" = set; then
12501 { echo "$as_me:$LINENO: checking for pkcs11-helper-1.0/pkcs11h-core.h" >&5
12502 echo $ECHO_N "checking for pkcs11-helper-1.0/pkcs11h-core.h... $ECHO_C" >&6; }
12503 if test "${ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 { echo "$as_me:$LINENO: result: $ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&5
12507 echo "${ECHO_T}$ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&6; }
12508 else
12509 # Is the header compilable?
12510 { echo "$as_me:$LINENO: checking pkcs11-helper-1.0/pkcs11h-core.h usability" >&5
12511 echo $ECHO_N "checking pkcs11-helper-1.0/pkcs11h-core.h usability... $ECHO_C" >&6; }
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 $ac_includes_default
12519 #include <pkcs11-helper-1.0/pkcs11h-core.h>
12520 _ACEOF
12521 rm -f conftest.$ac_objext
12522 if { (ac_try="$ac_compile"
12523 case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12526 esac
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_compile") 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && {
12535 test -z "$ac_c_werror_flag" ||
12536 test ! -s conftest.err
12537 } && test -s conftest.$ac_objext; then
12538 ac_header_compiler=yes
12539 else
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 ac_header_compiler=no
12546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12548 echo "${ECHO_T}$ac_header_compiler" >&6; }
12550 # Is the header present?
12551 { echo "$as_me:$LINENO: checking pkcs11-helper-1.0/pkcs11h-core.h presence" >&5
12552 echo $ECHO_N "checking pkcs11-helper-1.0/pkcs11h-core.h presence... $ECHO_C" >&6; }
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 #include <pkcs11-helper-1.0/pkcs11h-core.h>
12560 _ACEOF
12561 if { (ac_try="$ac_cpp conftest.$ac_ext"
12562 case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12565 esac
12566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12568 ac_status=$?
12569 grep -v '^ *+' conftest.er1 >conftest.err
12570 rm -f conftest.er1
12571 cat conftest.err >&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } >/dev/null && {
12574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12575 test ! -s conftest.err
12576 }; then
12577 ac_header_preproc=yes
12578 else
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12582 ac_header_preproc=no
12585 rm -f conftest.err conftest.$ac_ext
12586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 echo "${ECHO_T}$ac_header_preproc" >&6; }
12589 # So? What about this header?
12590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12591 yes:no: )
12592 { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: accepted by the compiler, rejected by the preprocessor!" >&5
12593 echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the compiler's result" >&5
12595 echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the compiler's result" >&2;}
12596 ac_header_preproc=yes
12598 no:yes:* )
12599 { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: present but cannot be compiled" >&5
12600 echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: present but cannot be compiled" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: check for missing prerequisite headers?" >&5
12602 echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: check for missing prerequisite headers?" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: see the Autoconf documentation" >&5
12604 echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: see the Autoconf documentation" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: section \"Present But Cannot Be Compiled\"" >&5
12606 echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: section \"Present But Cannot Be Compiled\"" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the preprocessor's result" >&5
12608 echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the preprocessor's result" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: in the future, the compiler will take precedence" >&5
12610 echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: in the future, the compiler will take precedence" >&2;}
12611 ( cat <<\_ASBOX
12612 ## -------------------------------------------------- ##
12613 ## Report this to openvpn-users@lists.sourceforge.net ##
12614 ## -------------------------------------------------- ##
12615 _ASBOX
12616 ) | sed "s/^/$as_me: WARNING: /" >&2
12618 esac
12619 { echo "$as_me:$LINENO: checking for pkcs11-helper-1.0/pkcs11h-core.h" >&5
12620 echo $ECHO_N "checking for pkcs11-helper-1.0/pkcs11h-core.h... $ECHO_C" >&6; }
12621 if test "${ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 else
12624 ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h=$ac_header_preproc
12626 { echo "$as_me:$LINENO: result: $ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&5
12627 echo "${ECHO_T}$ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&6; }
12630 if test $ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h = yes; then
12631 { echo "$as_me:$LINENO: checking for pkcs11h_initialize in -lpkcs11-helper" >&5
12632 echo $ECHO_N "checking for pkcs11h_initialize in -lpkcs11-helper... $ECHO_C" >&6; }
12633 if test "${ac_cv_lib_pkcs11_helper_pkcs11h_initialize+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636 ac_check_lib_save_LIBS=$LIBS
12637 LIBS="-lpkcs11-helper $LIBS"
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h. */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char pkcs11h_initialize ();
12653 main ()
12655 return pkcs11h_initialize ();
12657 return 0;
12659 _ACEOF
12660 rm -f conftest.$ac_objext conftest$ac_exeext
12661 if { (ac_try="$ac_link"
12662 case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665 esac
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_link") 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } && {
12674 test -z "$ac_c_werror_flag" ||
12675 test ! -s conftest.err
12676 } && test -s conftest$ac_exeext &&
12677 $as_test_x conftest$ac_exeext; then
12678 ac_cv_lib_pkcs11_helper_pkcs11h_initialize=yes
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_cv_lib_pkcs11_helper_pkcs11h_initialize=no
12686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12687 conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_check_lib_save_LIBS
12690 { echo "$as_me:$LINENO: result: $ac_cv_lib_pkcs11_helper_pkcs11h_initialize" >&5
12691 echo "${ECHO_T}$ac_cv_lib_pkcs11_helper_pkcs11h_initialize" >&6; }
12692 if test $ac_cv_lib_pkcs11_helper_pkcs11h_initialize = yes; then
12695 cat >>confdefs.h <<\_ACEOF
12696 #define USE_PKCS11 1
12697 _ACEOF
12700 LIBS="-lpkcs11-helper $LIBS"
12703 else
12704 { echo "$as_me:$LINENO: result: pkcs11-helper library not found." >&5
12705 echo "${ECHO_T}pkcs11-helper library not found." >&6; }
12709 else
12710 { echo "$as_me:$LINENO: result: pkcs11-helper headers not found." >&5
12711 echo "${ECHO_T}pkcs11-helper headers not found." >&6; }
12718 if test "$MULTI" = "yes"; then
12720 cat >>confdefs.h <<\_ACEOF
12721 #define ENABLE_CLIENT_SERVER 1
12722 _ACEOF
12726 if test "$MULTI_SERVER" = "no"; then
12728 cat >>confdefs.h <<\_ACEOF
12729 #define ENABLE_CLIENT_ONLY 1
12730 _ACEOF
12734 if test "$MANAGEMENT" = "yes"; then
12736 cat >>confdefs.h <<\_ACEOF
12737 #define ENABLE_MANAGEMENT 1
12738 _ACEOF
12742 if test "$SOCKS" = "yes"; then
12744 cat >>confdefs.h <<\_ACEOF
12745 #define ENABLE_SOCKS 1
12746 _ACEOF
12750 if test "$HTTP_PROXY" = "yes"; then
12752 cat >>confdefs.h <<\_ACEOF
12753 #define ENABLE_HTTP_PROXY 1
12754 _ACEOF
12758 if test "$MULTIHOME" = "yes"; then
12760 cat >>confdefs.h <<\_ACEOF
12761 #define ENABLE_MULTIHOME 1
12762 _ACEOF
12766 if test "$DEBUG" = "yes"; then
12768 cat >>confdefs.h <<\_ACEOF
12769 #define ENABLE_DEBUG 1
12770 _ACEOF
12774 if test "$SMALL" = "yes"; then
12776 cat >>confdefs.h <<\_ACEOF
12777 #define ENABLE_SMALL 1
12778 _ACEOF
12782 if test "$FRAGMENT" = "yes"; then
12784 cat >>confdefs.h <<\_ACEOF
12785 #define ENABLE_FRAGMENT 1
12786 _ACEOF
12790 if test "$PORT_SHARE" = "yes"; then
12792 cat >>confdefs.h <<\_ACEOF
12793 #define ENABLE_PORT_SHARE 1
12794 _ACEOF
12798 if test "$DEF_AUTH" = "yes"; then
12800 cat >>confdefs.h <<\_ACEOF
12801 #define CONFIGURE_DEF_AUTH 1
12802 _ACEOF
12806 if test "$PF" = "yes"; then
12808 cat >>confdefs.h <<\_ACEOF
12809 #define CONFIGURE_PF 1
12810 _ACEOF
12814 if test "$STRICT" = "yes"; then
12815 CFLAGS="$CFLAGS -Wall -Wno-unused-parameter -Wno-unused-function"
12818 if test "$PEDANTIC" = "yes"; then
12819 CFLAGS="$CFLAGS -ansi -pedantic"
12822 if test "$PROFILE" = "yes"; then
12823 CFLAGS="$CFLAGS -pg -DENABLE_PROFILING"
12826 if test "$STRICT_OPTIONS" = "yes"; then
12828 cat >>confdefs.h <<\_ACEOF
12829 #define STRICT_OPTIONS_CHECK 1
12830 _ACEOF
12834 if test "$PASSWORD_SAVE" = "yes"; then
12836 cat >>confdefs.h <<\_ACEOF
12837 #define ENABLE_PASSWORD_SAVE 1
12838 _ACEOF
12842 if test "$SELINUX" = "yes"; then
12843 { echo "$as_me:$LINENO: checking for libselinux Library and Header files..." >&5
12844 echo "$as_me: checking for libselinux Library and Header files..." >&6;}
12845 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
12846 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
12847 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
12848 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
12852 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
12853 else
12854 # Is the header compilable?
12855 { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
12856 echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
12857 cat >conftest.$ac_ext <<_ACEOF
12858 /* confdefs.h. */
12859 _ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12863 $ac_includes_default
12864 #include <selinux/selinux.h>
12865 _ACEOF
12866 rm -f conftest.$ac_objext
12867 if { (ac_try="$ac_compile"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_compile") 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && {
12880 test -z "$ac_c_werror_flag" ||
12881 test ! -s conftest.err
12882 } && test -s conftest.$ac_objext; then
12883 ac_header_compiler=yes
12884 else
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ac_header_compiler=no
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12893 echo "${ECHO_T}$ac_header_compiler" >&6; }
12895 # Is the header present?
12896 { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
12897 echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 #include <selinux/selinux.h>
12905 _ACEOF
12906 if { (ac_try="$ac_cpp conftest.$ac_ext"
12907 case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910 esac
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12913 ac_status=$?
12914 grep -v '^ *+' conftest.er1 >conftest.err
12915 rm -f conftest.er1
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } >/dev/null && {
12919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12920 test ! -s conftest.err
12921 }; then
12922 ac_header_preproc=yes
12923 else
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 ac_header_preproc=no
12930 rm -f conftest.err conftest.$ac_ext
12931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12932 echo "${ECHO_T}$ac_header_preproc" >&6; }
12934 # So? What about this header?
12935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12936 yes:no: )
12937 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
12938 echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
12940 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
12941 ac_header_preproc=yes
12943 no:yes:* )
12944 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
12945 echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
12947 echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
12949 echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
12951 echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
12952 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
12953 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
12954 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
12955 echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
12956 ( cat <<\_ASBOX
12957 ## -------------------------------------------------- ##
12958 ## Report this to openvpn-users@lists.sourceforge.net ##
12959 ## -------------------------------------------------- ##
12960 _ASBOX
12961 ) | sed "s/^/$as_me: WARNING: /" >&2
12963 esac
12964 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
12965 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
12966 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 else
12969 ac_cv_header_selinux_selinux_h=$ac_header_preproc
12971 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
12972 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
12975 if test $ac_cv_header_selinux_selinux_h = yes; then
12976 { echo "$as_me:$LINENO: checking for setcon in -lselinux" >&5
12977 echo $ECHO_N "checking for setcon in -lselinux... $ECHO_C" >&6; }
12978 if test "${ac_cv_lib_selinux_setcon+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 ac_check_lib_save_LIBS=$LIBS
12982 LIBS="-lselinux $LIBS"
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h. */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12993 #ifdef __cplusplus
12994 extern "C"
12995 #endif
12996 char setcon ();
12998 main ()
13000 return setcon ();
13002 return 0;
13004 _ACEOF
13005 rm -f conftest.$ac_objext conftest$ac_exeext
13006 if { (ac_try="$ac_link"
13007 case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_link") 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } && {
13019 test -z "$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 } && test -s conftest$ac_exeext &&
13022 $as_test_x conftest$ac_exeext; then
13023 ac_cv_lib_selinux_setcon=yes
13024 else
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 ac_cv_lib_selinux_setcon=no
13031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13032 conftest$ac_exeext conftest.$ac_ext
13033 LIBS=$ac_check_lib_save_LIBS
13035 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setcon" >&5
13036 echo "${ECHO_T}$ac_cv_lib_selinux_setcon" >&6; }
13037 if test $ac_cv_lib_selinux_setcon = yes; then
13040 LIBS="-lselinux $LIBS"
13043 cat >>confdefs.h <<\_ACEOF
13044 #define HAVE_SETCON 1
13045 _ACEOF
13048 else
13049 { echo "$as_me:$LINENO: result: SELinux library not found." >&5
13050 echo "${ECHO_T}SELinux library not found." >&6; }
13054 else
13055 { echo "$as_me:$LINENO: result: SELinux headers not found." >&5
13056 echo "${ECHO_T}SELinux headers not found." >&6; }
13063 TAP_ID="tap0901"
13064 TAP_WIN32_MIN_MAJOR="9"
13065 TAP_WIN32_MIN_MINOR="1"
13067 cat >>confdefs.h <<_ACEOF
13068 #define TAP_ID "${TAP_ID}"
13069 _ACEOF
13072 cat >>confdefs.h <<_ACEOF
13073 #define TAP_WIN32_MIN_MAJOR ${TAP_WIN32_MIN_MAJOR}
13074 _ACEOF
13077 cat >>confdefs.h <<_ACEOF
13078 #define TAP_WIN32_MIN_MINOR ${TAP_WIN32_MIN_MINOR}
13079 _ACEOF
13085 win32datadir="\${datadir}/${PACKAGE}-win32"
13087 if test "${WIN32}" = "yes"; then
13088 WIN32_TRUE=
13089 WIN32_FALSE='#'
13090 else
13091 WIN32_TRUE='#'
13092 WIN32_FALSE=
13096 # workaround for <autoconf-2.60
13097 if test -z "${docdir}"; then
13098 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
13101 if test -z "${htmldir}"; then
13102 htmldir="\$(docdir)"
13105 # end workaround
13107 ac_config_files="$ac_config_files Makefile openvpn.spec config-win32.h images/Makefile service-win32/Makefile install-win32/Makefile install-win32/settings"
13109 cat >confcache <<\_ACEOF
13110 # This file is a shell script that caches the results of configure
13111 # tests run on this system so they can be shared between configure
13112 # scripts and configure runs, see configure's option --config-cache.
13113 # It is not useful on other systems. If it contains results you don't
13114 # want to keep, you may remove or edit it.
13116 # config.status only pays attention to the cache file if you give it
13117 # the --recheck option to rerun configure.
13119 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13120 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13121 # following values.
13123 _ACEOF
13125 # The following way of writing the cache mishandles newlines in values,
13126 # but we know of no workaround that is simple, portable, and efficient.
13127 # So, we kill variables containing newlines.
13128 # Ultrix sh set writes to stderr and can't be redirected directly,
13129 # and sets the high bit in the cache file unless we assign to the vars.
13131 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13132 eval ac_val=\$$ac_var
13133 case $ac_val in #(
13134 *${as_nl}*)
13135 case $ac_var in #(
13136 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13137 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13138 esac
13139 case $ac_var in #(
13140 _ | IFS | as_nl) ;; #(
13141 *) $as_unset $ac_var ;;
13142 esac ;;
13143 esac
13144 done
13146 (set) 2>&1 |
13147 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13148 *${as_nl}ac_space=\ *)
13149 # `set' does not quote correctly, so add quotes (double-quote
13150 # substitution turns \\\\ into \\, and sed turns \\ into \).
13151 sed -n \
13152 "s/'/'\\\\''/g;
13153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13154 ;; #(
13156 # `set' quotes correctly as required by POSIX, so do not add quotes.
13157 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13159 esac |
13160 sort
13162 sed '
13163 /^ac_cv_env_/b end
13164 t clear
13165 :clear
13166 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13167 t end
13168 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13169 :end' >>confcache
13170 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13171 if test -w "$cache_file"; then
13172 test "x$cache_file" != "x/dev/null" &&
13173 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13174 echo "$as_me: updating cache $cache_file" >&6;}
13175 cat confcache >$cache_file
13176 else
13177 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13178 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13181 rm -f confcache
13183 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13184 # Let make expand exec_prefix.
13185 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13187 DEFS=-DHAVE_CONFIG_H
13189 ac_libobjs=
13190 ac_ltlibobjs=
13191 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13192 # 1. Remove the extension, and $U if already installed.
13193 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13194 ac_i=`echo "$ac_i" | sed "$ac_script"`
13195 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13196 # will be set to the directory where LIBOBJS objects are built.
13197 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13198 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13199 done
13200 LIBOBJS=$ac_libobjs
13202 LTLIBOBJS=$ac_ltlibobjs
13205 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13206 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13207 Usually this means the macro was only invoked conditionally." >&5
13208 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13209 Usually this means the macro was only invoked conditionally." >&2;}
13210 { (exit 1); exit 1; }; }
13212 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13213 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13214 Usually this means the macro was only invoked conditionally." >&5
13215 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13216 Usually this means the macro was only invoked conditionally." >&2;}
13217 { (exit 1); exit 1; }; }
13219 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
13220 { { echo "$as_me:$LINENO: error: conditional \"WIN32\" was never defined.
13221 Usually this means the macro was only invoked conditionally." >&5
13222 echo "$as_me: error: conditional \"WIN32\" was never defined.
13223 Usually this means the macro was only invoked conditionally." >&2;}
13224 { (exit 1); exit 1; }; }
13227 : ${CONFIG_STATUS=./config.status}
13228 ac_clean_files_save=$ac_clean_files
13229 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13230 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13231 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13232 cat >$CONFIG_STATUS <<_ACEOF
13233 #! $SHELL
13234 # Generated by $as_me.
13235 # Run this file to recreate the current configuration.
13236 # Compiler output produced by configure, useful for debugging
13237 # configure, is in config.log if it exists.
13239 debug=false
13240 ac_cs_recheck=false
13241 ac_cs_silent=false
13242 SHELL=\${CONFIG_SHELL-$SHELL}
13243 _ACEOF
13245 cat >>$CONFIG_STATUS <<\_ACEOF
13246 ## --------------------- ##
13247 ## M4sh Initialization. ##
13248 ## --------------------- ##
13250 # Be more Bourne compatible
13251 DUALCASE=1; export DUALCASE # for MKS sh
13252 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13253 emulate sh
13254 NULLCMD=:
13255 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13256 # is contrary to our usage. Disable this feature.
13257 alias -g '${1+"$@"}'='"$@"'
13258 setopt NO_GLOB_SUBST
13259 else
13260 case `(set -o) 2>/dev/null` in
13261 *posix*) set -o posix ;;
13262 esac
13269 # PATH needs CR
13270 # Avoid depending upon Character Ranges.
13271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13274 as_cr_digits='0123456789'
13275 as_cr_alnum=$as_cr_Letters$as_cr_digits
13277 # The user is always right.
13278 if test "${PATH_SEPARATOR+set}" != set; then
13279 echo "#! /bin/sh" >conf$$.sh
13280 echo "exit 0" >>conf$$.sh
13281 chmod +x conf$$.sh
13282 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13283 PATH_SEPARATOR=';'
13284 else
13285 PATH_SEPARATOR=:
13287 rm -f conf$$.sh
13290 # Support unset when possible.
13291 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13292 as_unset=unset
13293 else
13294 as_unset=false
13298 # IFS
13299 # We need space, tab and new line, in precisely that order. Quoting is
13300 # there to prevent editors from complaining about space-tab.
13301 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13302 # splitting by setting IFS to empty value.)
13303 as_nl='
13305 IFS=" "" $as_nl"
13307 # Find who we are. Look in the path if we contain no directory separator.
13308 case $0 in
13309 *[\\/]* ) as_myself=$0 ;;
13310 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311 for as_dir in $PATH
13313 IFS=$as_save_IFS
13314 test -z "$as_dir" && as_dir=.
13315 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13316 done
13317 IFS=$as_save_IFS
13320 esac
13321 # We did not find ourselves, most probably we were run as `sh COMMAND'
13322 # in which case we are not to be found in the path.
13323 if test "x$as_myself" = x; then
13324 as_myself=$0
13326 if test ! -f "$as_myself"; then
13327 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13328 { (exit 1); exit 1; }
13331 # Work around bugs in pre-3.0 UWIN ksh.
13332 for as_var in ENV MAIL MAILPATH
13333 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13334 done
13335 PS1='$ '
13336 PS2='> '
13337 PS4='+ '
13339 # NLS nuisances.
13340 for as_var in \
13341 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13342 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13343 LC_TELEPHONE LC_TIME
13345 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13346 eval $as_var=C; export $as_var
13347 else
13348 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13350 done
13352 # Required to use basename.
13353 if expr a : '\(a\)' >/dev/null 2>&1 &&
13354 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13355 as_expr=expr
13356 else
13357 as_expr=false
13360 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13361 as_basename=basename
13362 else
13363 as_basename=false
13367 # Name of the executable.
13368 as_me=`$as_basename -- "$0" ||
13369 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13370 X"$0" : 'X\(//\)$' \| \
13371 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13372 echo X/"$0" |
13373 sed '/^.*\/\([^/][^/]*\)\/*$/{
13374 s//\1/
13377 /^X\/\(\/\/\)$/{
13378 s//\1/
13381 /^X\/\(\/\).*/{
13382 s//\1/
13385 s/.*/./; q'`
13387 # CDPATH.
13388 $as_unset CDPATH
13392 as_lineno_1=$LINENO
13393 as_lineno_2=$LINENO
13394 test "x$as_lineno_1" != "x$as_lineno_2" &&
13395 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13397 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13398 # uniformly replaced by the line number. The first 'sed' inserts a
13399 # line-number line after each line using $LINENO; the second 'sed'
13400 # does the real work. The second script uses 'N' to pair each
13401 # line-number line with the line containing $LINENO, and appends
13402 # trailing '-' during substitution so that $LINENO is not a special
13403 # case at line end.
13404 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13405 # scripts with optimization help from Paolo Bonzini. Blame Lee
13406 # E. McMahon (1931-1989) for sed's syntax. :-)
13407 sed -n '
13409 /[$]LINENO/=
13410 ' <$as_myself |
13411 sed '
13412 s/[$]LINENO.*/&-/
13413 t lineno
13415 :lineno
13417 :loop
13418 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13419 t loop
13420 s/-\n.*//
13421 ' >$as_me.lineno &&
13422 chmod +x "$as_me.lineno" ||
13423 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13424 { (exit 1); exit 1; }; }
13426 # Don't try to exec as it changes $[0], causing all sort of problems
13427 # (the dirname of $[0] is not the place where we might find the
13428 # original and so on. Autoconf is especially sensitive to this).
13429 . "./$as_me.lineno"
13430 # Exit status is that of the last command.
13431 exit
13435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13436 as_dirname=dirname
13437 else
13438 as_dirname=false
13441 ECHO_C= ECHO_N= ECHO_T=
13442 case `echo -n x` in
13443 -n*)
13444 case `echo 'x\c'` in
13445 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13446 *) ECHO_C='\c';;
13447 esac;;
13449 ECHO_N='-n';;
13450 esac
13452 if expr a : '\(a\)' >/dev/null 2>&1 &&
13453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13454 as_expr=expr
13455 else
13456 as_expr=false
13459 rm -f conf$$ conf$$.exe conf$$.file
13460 if test -d conf$$.dir; then
13461 rm -f conf$$.dir/conf$$.file
13462 else
13463 rm -f conf$$.dir
13464 mkdir conf$$.dir
13466 echo >conf$$.file
13467 if ln -s conf$$.file conf$$ 2>/dev/null; then
13468 as_ln_s='ln -s'
13469 # ... but there are two gotchas:
13470 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13471 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13472 # In both cases, we have to default to `cp -p'.
13473 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13474 as_ln_s='cp -p'
13475 elif ln conf$$.file conf$$ 2>/dev/null; then
13476 as_ln_s=ln
13477 else
13478 as_ln_s='cp -p'
13480 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13481 rmdir conf$$.dir 2>/dev/null
13483 if mkdir -p . 2>/dev/null; then
13484 as_mkdir_p=:
13485 else
13486 test -d ./-p && rmdir ./-p
13487 as_mkdir_p=false
13490 if test -x / >/dev/null 2>&1; then
13491 as_test_x='test -x'
13492 else
13493 if ls -dL / >/dev/null 2>&1; then
13494 as_ls_L_option=L
13495 else
13496 as_ls_L_option=
13498 as_test_x='
13499 eval sh -c '\''
13500 if test -d "$1"; then
13501 test -d "$1/.";
13502 else
13503 case $1 in
13504 -*)set "./$1";;
13505 esac;
13506 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13507 ???[sx]*):;;*)false;;esac;fi
13508 '\'' sh
13511 as_executable_p=$as_test_x
13513 # Sed expression to map a string onto a valid CPP name.
13514 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13516 # Sed expression to map a string onto a valid variable name.
13517 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13520 exec 6>&1
13522 # Save the log message, to keep $[0] and so on meaningful, and to
13523 # report actual input values of CONFIG_FILES etc. instead of their
13524 # values after options handling.
13525 ac_log="
13526 This file was extended by OpenVPN $as_me 2.1.0, which was
13527 generated by GNU Autoconf 2.61. Invocation command line was
13529 CONFIG_FILES = $CONFIG_FILES
13530 CONFIG_HEADERS = $CONFIG_HEADERS
13531 CONFIG_LINKS = $CONFIG_LINKS
13532 CONFIG_COMMANDS = $CONFIG_COMMANDS
13533 $ $0 $@
13535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13538 _ACEOF
13540 cat >>$CONFIG_STATUS <<_ACEOF
13541 # Files that config.status was made for.
13542 config_files="$ac_config_files"
13543 config_headers="$ac_config_headers"
13544 config_commands="$ac_config_commands"
13546 _ACEOF
13548 cat >>$CONFIG_STATUS <<\_ACEOF
13549 ac_cs_usage="\
13550 \`$as_me' instantiates files from templates according to the
13551 current configuration.
13553 Usage: $0 [OPTIONS] [FILE]...
13555 -h, --help print this help, then exit
13556 -V, --version print version number and configuration settings, then exit
13557 -q, --quiet do not print progress messages
13558 -d, --debug don't remove temporary files
13559 --recheck update $as_me by reconfiguring in the same conditions
13560 --file=FILE[:TEMPLATE]
13561 instantiate the configuration file FILE
13562 --header=FILE[:TEMPLATE]
13563 instantiate the configuration header FILE
13565 Configuration files:
13566 $config_files
13568 Configuration headers:
13569 $config_headers
13571 Configuration commands:
13572 $config_commands
13574 Report bugs to <bug-autoconf@gnu.org>."
13576 _ACEOF
13577 cat >>$CONFIG_STATUS <<_ACEOF
13578 ac_cs_version="\\
13579 OpenVPN config.status 2.1.0
13580 configured by $0, generated by GNU Autoconf 2.61,
13581 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13583 Copyright (C) 2006 Free Software Foundation, Inc.
13584 This config.status script is free software; the Free Software Foundation
13585 gives unlimited permission to copy, distribute and modify it."
13587 ac_pwd='$ac_pwd'
13588 srcdir='$srcdir'
13589 INSTALL='$INSTALL'
13590 MKDIR_P='$MKDIR_P'
13591 _ACEOF
13593 cat >>$CONFIG_STATUS <<\_ACEOF
13594 # If no file are specified by the user, then we need to provide default
13595 # value. By we need to know if files were specified by the user.
13596 ac_need_defaults=:
13597 while test $# != 0
13599 case $1 in
13600 --*=*)
13601 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13602 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13603 ac_shift=:
13606 ac_option=$1
13607 ac_optarg=$2
13608 ac_shift=shift
13610 esac
13612 case $ac_option in
13613 # Handling of the options.
13614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13615 ac_cs_recheck=: ;;
13616 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13617 echo "$ac_cs_version"; exit ;;
13618 --debug | --debu | --deb | --de | --d | -d )
13619 debug=: ;;
13620 --file | --fil | --fi | --f )
13621 $ac_shift
13622 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13623 ac_need_defaults=false;;
13624 --header | --heade | --head | --hea )
13625 $ac_shift
13626 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13627 ac_need_defaults=false;;
13628 --he | --h)
13629 # Conflict between --help and --header
13630 { echo "$as_me: error: ambiguous option: $1
13631 Try \`$0 --help' for more information." >&2
13632 { (exit 1); exit 1; }; };;
13633 --help | --hel | -h )
13634 echo "$ac_cs_usage"; exit ;;
13635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13636 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13637 ac_cs_silent=: ;;
13639 # This is an error.
13640 -*) { echo "$as_me: error: unrecognized option: $1
13641 Try \`$0 --help' for more information." >&2
13642 { (exit 1); exit 1; }; } ;;
13644 *) ac_config_targets="$ac_config_targets $1"
13645 ac_need_defaults=false ;;
13647 esac
13648 shift
13649 done
13651 ac_configure_extra_args=
13653 if $ac_cs_silent; then
13654 exec 6>/dev/null
13655 ac_configure_extra_args="$ac_configure_extra_args --silent"
13658 _ACEOF
13659 cat >>$CONFIG_STATUS <<_ACEOF
13660 if \$ac_cs_recheck; then
13661 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13662 CONFIG_SHELL=$SHELL
13663 export CONFIG_SHELL
13664 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13667 _ACEOF
13668 cat >>$CONFIG_STATUS <<\_ACEOF
13669 exec 5>>config.log
13671 echo
13672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13673 ## Running $as_me. ##
13674 _ASBOX
13675 echo "$ac_log"
13676 } >&5
13678 _ACEOF
13679 cat >>$CONFIG_STATUS <<_ACEOF
13681 # INIT-COMMANDS
13683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13685 _ACEOF
13687 cat >>$CONFIG_STATUS <<\_ACEOF
13689 # Handling of arguments.
13690 for ac_config_target in $ac_config_targets
13692 case $ac_config_target in
13693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13694 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13695 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13696 "openvpn.spec") CONFIG_FILES="$CONFIG_FILES openvpn.spec" ;;
13697 "config-win32.h") CONFIG_FILES="$CONFIG_FILES config-win32.h" ;;
13698 "images/Makefile") CONFIG_FILES="$CONFIG_FILES images/Makefile" ;;
13699 "service-win32/Makefile") CONFIG_FILES="$CONFIG_FILES service-win32/Makefile" ;;
13700 "install-win32/Makefile") CONFIG_FILES="$CONFIG_FILES install-win32/Makefile" ;;
13701 "install-win32/settings") CONFIG_FILES="$CONFIG_FILES install-win32/settings" ;;
13703 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13704 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13705 { (exit 1); exit 1; }; };;
13706 esac
13707 done
13710 # If the user did not use the arguments to specify the items to instantiate,
13711 # then the envvar interface is used. Set only those that are not.
13712 # We use the long form for the default assignment because of an extremely
13713 # bizarre bug on SunOS 4.1.3.
13714 if $ac_need_defaults; then
13715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13717 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13720 # Have a temporary directory for convenience. Make it in the build tree
13721 # simply because there is no reason against having it here, and in addition,
13722 # creating and moving files from /tmp can sometimes cause problems.
13723 # Hook for its removal unless debugging.
13724 # Note that there is a small window in which the directory will not be cleaned:
13725 # after its creation but before its name has been assigned to `$tmp'.
13726 $debug ||
13728 tmp=
13729 trap 'exit_status=$?
13730 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13732 trap '{ (exit 1); exit 1; }' 1 2 13 15
13734 # Create a (secure) tmp directory for tmp files.
13737 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13738 test -n "$tmp" && test -d "$tmp"
13739 } ||
13741 tmp=./conf$$-$RANDOM
13742 (umask 077 && mkdir "$tmp")
13743 } ||
13745 echo "$me: cannot create a temporary directory in ." >&2
13746 { (exit 1); exit 1; }
13750 # Set up the sed scripts for CONFIG_FILES section.
13753 # No need to generate the scripts if there are no CONFIG_FILES.
13754 # This happens for instance when ./config.status config.h
13755 if test -n "$CONFIG_FILES"; then
13757 _ACEOF
13761 ac_delim='%!_!# '
13762 for ac_last_try in false false false false false :; do
13763 cat >conf$$subs.sed <<_ACEOF
13764 SHELL!$SHELL$ac_delim
13765 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13766 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13767 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13768 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13769 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13770 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13771 exec_prefix!$exec_prefix$ac_delim
13772 prefix!$prefix$ac_delim
13773 program_transform_name!$program_transform_name$ac_delim
13774 bindir!$bindir$ac_delim
13775 sbindir!$sbindir$ac_delim
13776 libexecdir!$libexecdir$ac_delim
13777 datarootdir!$datarootdir$ac_delim
13778 datadir!$datadir$ac_delim
13779 sysconfdir!$sysconfdir$ac_delim
13780 sharedstatedir!$sharedstatedir$ac_delim
13781 localstatedir!$localstatedir$ac_delim
13782 includedir!$includedir$ac_delim
13783 oldincludedir!$oldincludedir$ac_delim
13784 docdir!$docdir$ac_delim
13785 infodir!$infodir$ac_delim
13786 htmldir!$htmldir$ac_delim
13787 dvidir!$dvidir$ac_delim
13788 pdfdir!$pdfdir$ac_delim
13789 psdir!$psdir$ac_delim
13790 libdir!$libdir$ac_delim
13791 localedir!$localedir$ac_delim
13792 mandir!$mandir$ac_delim
13793 DEFS!$DEFS$ac_delim
13794 ECHO_C!$ECHO_C$ac_delim
13795 ECHO_N!$ECHO_N$ac_delim
13796 ECHO_T!$ECHO_T$ac_delim
13797 LIBS!$LIBS$ac_delim
13798 build_alias!$build_alias$ac_delim
13799 host_alias!$host_alias$ac_delim
13800 target_alias!$target_alias$ac_delim
13801 build!$build$ac_delim
13802 build_cpu!$build_cpu$ac_delim
13803 build_vendor!$build_vendor$ac_delim
13804 build_os!$build_os$ac_delim
13805 host!$host$ac_delim
13806 host_cpu!$host_cpu$ac_delim
13807 host_vendor!$host_vendor$ac_delim
13808 host_os!$host_os$ac_delim
13809 target!$target$ac_delim
13810 target_cpu!$target_cpu$ac_delim
13811 target_vendor!$target_vendor$ac_delim
13812 target_os!$target_os$ac_delim
13813 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13814 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13815 INSTALL_DATA!$INSTALL_DATA$ac_delim
13816 am__isrc!$am__isrc$ac_delim
13817 CYGPATH_W!$CYGPATH_W$ac_delim
13818 PACKAGE!$PACKAGE$ac_delim
13819 VERSION!$VERSION$ac_delim
13820 ACLOCAL!$ACLOCAL$ac_delim
13821 AUTOCONF!$AUTOCONF$ac_delim
13822 AUTOMAKE!$AUTOMAKE$ac_delim
13823 AUTOHEADER!$AUTOHEADER$ac_delim
13824 MAKEINFO!$MAKEINFO$ac_delim
13825 install_sh!$install_sh$ac_delim
13826 STRIP!$STRIP$ac_delim
13827 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13828 mkdir_p!$mkdir_p$ac_delim
13829 AWK!$AWK$ac_delim
13830 SET_MAKE!$SET_MAKE$ac_delim
13831 am__leading_dot!$am__leading_dot$ac_delim
13832 AMTAR!$AMTAR$ac_delim
13833 am__tar!$am__tar$ac_delim
13834 am__untar!$am__untar$ac_delim
13835 IFCONFIG!$IFCONFIG$ac_delim
13836 IPROUTE!$IPROUTE$ac_delim
13837 ROUTE!$ROUTE$ac_delim
13838 CC!$CC$ac_delim
13839 CFLAGS!$CFLAGS$ac_delim
13840 LDFLAGS!$LDFLAGS$ac_delim
13841 CPPFLAGS!$CPPFLAGS$ac_delim
13842 ac_ct_CC!$ac_ct_CC$ac_delim
13843 EXEEXT!$EXEEXT$ac_delim
13844 OBJEXT!$OBJEXT$ac_delim
13845 DEPDIR!$DEPDIR$ac_delim
13846 am__include!$am__include$ac_delim
13847 am__quote!$am__quote$ac_delim
13848 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13849 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13850 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13851 CCDEPMODE!$CCDEPMODE$ac_delim
13852 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13853 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13854 CPP!$CPP$ac_delim
13855 GREP!$GREP$ac_delim
13856 EGREP!$EGREP$ac_delim
13857 MAN2HTML!$MAN2HTML$ac_delim
13858 LIBOBJS!$LIBOBJS$ac_delim
13859 PTHREAD_CC!$PTHREAD_CC$ac_delim
13860 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
13861 _ACEOF
13863 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13864 break
13865 elif $ac_last_try; then
13866 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13867 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13868 { (exit 1); exit 1; }; }
13869 else
13870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13872 done
13874 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13875 if test -n "$ac_eof"; then
13876 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13877 ac_eof=`expr $ac_eof + 1`
13880 cat >>$CONFIG_STATUS <<_ACEOF
13881 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13883 _ACEOF
13884 sed '
13885 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13886 s/^/s,@/; s/!/@,|#_!!_#|/
13889 s/'"$ac_delim"'$/,g/; t
13890 s/$/\\/; p
13891 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13892 ' >>$CONFIG_STATUS <conf$$subs.sed
13893 rm -f conf$$subs.sed
13894 cat >>$CONFIG_STATUS <<_ACEOF
13895 CEOF$ac_eof
13896 _ACEOF
13899 ac_delim='%!_!# '
13900 for ac_last_try in false false false false false :; do
13901 cat >conf$$subs.sed <<_ACEOF
13902 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
13903 TAP_ID!$TAP_ID$ac_delim
13904 TAP_WIN32_MIN_MAJOR!$TAP_WIN32_MIN_MAJOR$ac_delim
13905 TAP_WIN32_MIN_MINOR!$TAP_WIN32_MIN_MINOR$ac_delim
13906 win32datadir!$win32datadir$ac_delim
13907 WIN32_TRUE!$WIN32_TRUE$ac_delim
13908 WIN32_FALSE!$WIN32_FALSE$ac_delim
13909 LTLIBOBJS!$LTLIBOBJS$ac_delim
13910 _ACEOF
13912 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
13913 break
13914 elif $ac_last_try; then
13915 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13916 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13917 { (exit 1); exit 1; }; }
13918 else
13919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13921 done
13923 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13924 if test -n "$ac_eof"; then
13925 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13926 ac_eof=`expr $ac_eof + 1`
13929 cat >>$CONFIG_STATUS <<_ACEOF
13930 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13932 _ACEOF
13933 sed '
13934 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13935 s/^/s,@/; s/!/@,|#_!!_#|/
13938 s/'"$ac_delim"'$/,g/; t
13939 s/$/\\/; p
13940 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13941 ' >>$CONFIG_STATUS <conf$$subs.sed
13942 rm -f conf$$subs.sed
13943 cat >>$CONFIG_STATUS <<_ACEOF
13944 :end
13945 s/|#_!!_#|//g
13946 CEOF$ac_eof
13947 _ACEOF
13950 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13951 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13952 # trailing colons and then remove the whole line if VPATH becomes empty
13953 # (actually we leave an empty line to preserve line numbers).
13954 if test "x$srcdir" = x.; then
13955 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13956 s/:*\$(srcdir):*/:/
13957 s/:*\${srcdir}:*/:/
13958 s/:*@srcdir@:*/:/
13959 s/^\([^=]*=[ ]*\):*/\1/
13960 s/:*$//
13961 s/^[^=]*=[ ]*$//
13965 cat >>$CONFIG_STATUS <<\_ACEOF
13966 fi # test -n "$CONFIG_FILES"
13969 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13971 case $ac_tag in
13972 :[FHLC]) ac_mode=$ac_tag; continue;;
13973 esac
13974 case $ac_mode$ac_tag in
13975 :[FHL]*:*);;
13976 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13977 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13978 { (exit 1); exit 1; }; };;
13979 :[FH]-) ac_tag=-:-;;
13980 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13981 esac
13982 ac_save_IFS=$IFS
13983 IFS=:
13984 set x $ac_tag
13985 IFS=$ac_save_IFS
13986 shift
13987 ac_file=$1
13988 shift
13990 case $ac_mode in
13991 :L) ac_source=$1;;
13992 :[FH])
13993 ac_file_inputs=
13994 for ac_f
13996 case $ac_f in
13997 -) ac_f="$tmp/stdin";;
13998 *) # Look for the file first in the build tree, then in the source tree
13999 # (if the path is not absolute). The absolute path cannot be DOS-style,
14000 # because $ac_f cannot contain `:'.
14001 test -f "$ac_f" ||
14002 case $ac_f in
14003 [\\/$]*) false;;
14004 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14005 esac ||
14006 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14007 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14008 { (exit 1); exit 1; }; };;
14009 esac
14010 ac_file_inputs="$ac_file_inputs $ac_f"
14011 done
14013 # Let's still pretend it is `configure' which instantiates (i.e., don't
14014 # use $as_me), people would be surprised to read:
14015 # /* config.h. Generated by config.status. */
14016 configure_input="Generated from "`IFS=:
14017 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14018 if test x"$ac_file" != x-; then
14019 configure_input="$ac_file. $configure_input"
14020 { echo "$as_me:$LINENO: creating $ac_file" >&5
14021 echo "$as_me: creating $ac_file" >&6;}
14024 case $ac_tag in
14025 *:-:* | *:-) cat >"$tmp/stdin";;
14026 esac
14028 esac
14030 ac_dir=`$as_dirname -- "$ac_file" ||
14031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14032 X"$ac_file" : 'X\(//\)[^/]' \| \
14033 X"$ac_file" : 'X\(//\)$' \| \
14034 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14035 echo X"$ac_file" |
14036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14037 s//\1/
14040 /^X\(\/\/\)[^/].*/{
14041 s//\1/
14044 /^X\(\/\/\)$/{
14045 s//\1/
14048 /^X\(\/\).*/{
14049 s//\1/
14052 s/.*/./; q'`
14053 { as_dir="$ac_dir"
14054 case $as_dir in #(
14055 -*) as_dir=./$as_dir;;
14056 esac
14057 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14058 as_dirs=
14059 while :; do
14060 case $as_dir in #(
14061 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14062 *) as_qdir=$as_dir;;
14063 esac
14064 as_dirs="'$as_qdir' $as_dirs"
14065 as_dir=`$as_dirname -- "$as_dir" ||
14066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14067 X"$as_dir" : 'X\(//\)[^/]' \| \
14068 X"$as_dir" : 'X\(//\)$' \| \
14069 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14070 echo X"$as_dir" |
14071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14072 s//\1/
14075 /^X\(\/\/\)[^/].*/{
14076 s//\1/
14079 /^X\(\/\/\)$/{
14080 s//\1/
14083 /^X\(\/\).*/{
14084 s//\1/
14087 s/.*/./; q'`
14088 test -d "$as_dir" && break
14089 done
14090 test -z "$as_dirs" || eval "mkdir $as_dirs"
14091 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14092 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14093 { (exit 1); exit 1; }; }; }
14094 ac_builddir=.
14096 case "$ac_dir" in
14097 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14100 # A ".." for each directory in $ac_dir_suffix.
14101 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14102 case $ac_top_builddir_sub in
14103 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14104 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14105 esac ;;
14106 esac
14107 ac_abs_top_builddir=$ac_pwd
14108 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14109 # for backward compatibility:
14110 ac_top_builddir=$ac_top_build_prefix
14112 case $srcdir in
14113 .) # We are building in place.
14114 ac_srcdir=.
14115 ac_top_srcdir=$ac_top_builddir_sub
14116 ac_abs_top_srcdir=$ac_pwd ;;
14117 [\\/]* | ?:[\\/]* ) # Absolute name.
14118 ac_srcdir=$srcdir$ac_dir_suffix;
14119 ac_top_srcdir=$srcdir
14120 ac_abs_top_srcdir=$srcdir ;;
14121 *) # Relative name.
14122 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14123 ac_top_srcdir=$ac_top_build_prefix$srcdir
14124 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14125 esac
14126 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14129 case $ac_mode in
14132 # CONFIG_FILE
14135 case $INSTALL in
14136 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14137 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14138 esac
14139 ac_MKDIR_P=$MKDIR_P
14140 case $MKDIR_P in
14141 [\\/$]* | ?:[\\/]* ) ;;
14142 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14143 esac
14144 _ACEOF
14146 cat >>$CONFIG_STATUS <<\_ACEOF
14147 # If the template does not know about datarootdir, expand it.
14148 # FIXME: This hack should be removed a few years after 2.60.
14149 ac_datarootdir_hack=; ac_datarootdir_seen=
14151 case `sed -n '/datarootdir/ {
14155 /@datadir@/p
14156 /@docdir@/p
14157 /@infodir@/p
14158 /@localedir@/p
14159 /@mandir@/p
14160 ' $ac_file_inputs` in
14161 *datarootdir*) ac_datarootdir_seen=yes;;
14162 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14163 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14164 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14165 _ACEOF
14166 cat >>$CONFIG_STATUS <<_ACEOF
14167 ac_datarootdir_hack='
14168 s&@datadir@&$datadir&g
14169 s&@docdir@&$docdir&g
14170 s&@infodir@&$infodir&g
14171 s&@localedir@&$localedir&g
14172 s&@mandir@&$mandir&g
14173 s&\\\${datarootdir}&$datarootdir&g' ;;
14174 esac
14175 _ACEOF
14177 # Neutralize VPATH when `$srcdir' = `.'.
14178 # Shell code in configure.ac might set extrasub.
14179 # FIXME: do we really want to maintain this feature?
14180 cat >>$CONFIG_STATUS <<_ACEOF
14181 sed "$ac_vpsub
14182 $extrasub
14183 _ACEOF
14184 cat >>$CONFIG_STATUS <<\_ACEOF
14186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14187 s&@configure_input@&$configure_input&;t t
14188 s&@top_builddir@&$ac_top_builddir_sub&;t t
14189 s&@srcdir@&$ac_srcdir&;t t
14190 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14191 s&@top_srcdir@&$ac_top_srcdir&;t t
14192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14193 s&@builddir@&$ac_builddir&;t t
14194 s&@abs_builddir@&$ac_abs_builddir&;t t
14195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14196 s&@INSTALL@&$ac_INSTALL&;t t
14197 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14198 $ac_datarootdir_hack
14199 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14201 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14202 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14204 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14205 which seems to be undefined. Please make sure it is defined." >&5
14206 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14207 which seems to be undefined. Please make sure it is defined." >&2;}
14209 rm -f "$tmp/stdin"
14210 case $ac_file in
14211 -) cat "$tmp/out"; rm -f "$tmp/out";;
14212 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14213 esac
14217 # CONFIG_HEADER
14219 _ACEOF
14221 # Transform confdefs.h into a sed script `conftest.defines', that
14222 # substitutes the proper values into config.h.in to produce config.h.
14223 rm -f conftest.defines conftest.tail
14224 # First, append a space to every undef/define line, to ease matching.
14225 echo 's/$/ /' >conftest.defines
14226 # Then, protect against being on the right side of a sed subst, or in
14227 # an unquoted here document, in config.status. If some macros were
14228 # called several times there might be several #defines for the same
14229 # symbol, which is useless. But do not sort them, since the last
14230 # AC_DEFINE must be honored.
14231 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14232 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14233 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14234 # PARAMS is the parameter list in the macro definition--in most cases, it's
14235 # just an empty string.
14236 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14237 ac_dB='\\)[ (].*,\\1define\\2'
14238 ac_dC=' '
14239 ac_dD=' ,'
14241 uniq confdefs.h |
14242 sed -n '
14243 t rset
14244 :rset
14245 s/^[ ]*#[ ]*define[ ][ ]*//
14246 t ok
14249 s/[\\&,]/\\&/g
14250 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14251 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14252 ' >>conftest.defines
14254 # Remove the space that was appended to ease matching.
14255 # Then replace #undef with comments. This is necessary, for
14256 # example, in the case of _POSIX_SOURCE, which is predefined and required
14257 # on some systems where configure will not decide to define it.
14258 # (The regexp can be short, since the line contains either #define or #undef.)
14259 echo 's/ $//
14260 s,^[ #]*u.*,/* & */,' >>conftest.defines
14262 # Break up conftest.defines:
14263 ac_max_sed_lines=50
14265 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14266 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14267 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14268 # et cetera.
14269 ac_in='$ac_file_inputs'
14270 ac_out='"$tmp/out1"'
14271 ac_nxt='"$tmp/out2"'
14273 while :
14275 # Write a here document:
14276 cat >>$CONFIG_STATUS <<_ACEOF
14277 # First, check the format of the line:
14278 cat >"\$tmp/defines.sed" <<\\CEOF
14279 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14280 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14282 :def
14283 _ACEOF
14284 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14285 echo 'CEOF
14286 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14287 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14288 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14289 grep . conftest.tail >/dev/null || break
14290 rm -f conftest.defines
14291 mv conftest.tail conftest.defines
14292 done
14293 rm -f conftest.defines conftest.tail
14295 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14296 cat >>$CONFIG_STATUS <<\_ACEOF
14297 if test x"$ac_file" != x-; then
14298 echo "/* $configure_input */" >"$tmp/config.h"
14299 cat "$ac_result" >>"$tmp/config.h"
14300 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14301 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14302 echo "$as_me: $ac_file is unchanged" >&6;}
14303 else
14304 rm -f $ac_file
14305 mv "$tmp/config.h" $ac_file
14307 else
14308 echo "/* $configure_input */"
14309 cat "$ac_result"
14311 rm -f "$tmp/out12"
14312 # Compute $ac_file's index in $config_headers.
14313 _am_arg=$ac_file
14314 _am_stamp_count=1
14315 for _am_header in $config_headers :; do
14316 case $_am_header in
14317 $_am_arg | $_am_arg:* )
14318 break ;;
14320 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14321 esac
14322 done
14323 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14324 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14325 X"$_am_arg" : 'X\(//\)[^/]' \| \
14326 X"$_am_arg" : 'X\(//\)$' \| \
14327 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14328 echo X"$_am_arg" |
14329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14330 s//\1/
14333 /^X\(\/\/\)[^/].*/{
14334 s//\1/
14337 /^X\(\/\/\)$/{
14338 s//\1/
14341 /^X\(\/\).*/{
14342 s//\1/
14345 s/.*/./; q'`/stamp-h$_am_stamp_count
14348 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14349 echo "$as_me: executing $ac_file commands" >&6;}
14351 esac
14354 case $ac_file$ac_mode in
14355 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14356 # Strip MF so we end up with the name of the file.
14357 mf=`echo "$mf" | sed -e 's/:.*$//'`
14358 # Check whether this is an Automake generated Makefile or not.
14359 # We used to match only the files named `Makefile.in', but
14360 # some people rename them; so instead we look at the file content.
14361 # Grep'ing the first line is not enough: some people post-process
14362 # each Makefile.in and add a new line on top of each file to say so.
14363 # Grep'ing the whole file is not good either: AIX grep has a line
14364 # limit of 2048, but all sed's we know have understand at least 4000.
14365 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14366 dirpart=`$as_dirname -- "$mf" ||
14367 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14368 X"$mf" : 'X\(//\)[^/]' \| \
14369 X"$mf" : 'X\(//\)$' \| \
14370 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14371 echo X"$mf" |
14372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14373 s//\1/
14376 /^X\(\/\/\)[^/].*/{
14377 s//\1/
14380 /^X\(\/\/\)$/{
14381 s//\1/
14384 /^X\(\/\).*/{
14385 s//\1/
14388 s/.*/./; q'`
14389 else
14390 continue
14392 # Extract the definition of DEPDIR, am__include, and am__quote
14393 # from the Makefile without running `make'.
14394 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14395 test -z "$DEPDIR" && continue
14396 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14397 test -z "am__include" && continue
14398 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14399 # When using ansi2knr, U may be empty or an underscore; expand it
14400 U=`sed -n 's/^U = //p' < "$mf"`
14401 # Find all dependency output files, they are included files with
14402 # $(DEPDIR) in their names. We invoke sed twice because it is the
14403 # simplest approach to changing $(DEPDIR) to its actual value in the
14404 # expansion.
14405 for file in `sed -n "
14406 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14407 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14408 # Make sure the directory exists.
14409 test -f "$dirpart/$file" && continue
14410 fdir=`$as_dirname -- "$file" ||
14411 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14412 X"$file" : 'X\(//\)[^/]' \| \
14413 X"$file" : 'X\(//\)$' \| \
14414 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14415 echo X"$file" |
14416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14417 s//\1/
14420 /^X\(\/\/\)[^/].*/{
14421 s//\1/
14424 /^X\(\/\/\)$/{
14425 s//\1/
14428 /^X\(\/\).*/{
14429 s//\1/
14432 s/.*/./; q'`
14433 { as_dir=$dirpart/$fdir
14434 case $as_dir in #(
14435 -*) as_dir=./$as_dir;;
14436 esac
14437 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14438 as_dirs=
14439 while :; do
14440 case $as_dir in #(
14441 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14442 *) as_qdir=$as_dir;;
14443 esac
14444 as_dirs="'$as_qdir' $as_dirs"
14445 as_dir=`$as_dirname -- "$as_dir" ||
14446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14447 X"$as_dir" : 'X\(//\)[^/]' \| \
14448 X"$as_dir" : 'X\(//\)$' \| \
14449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14450 echo X"$as_dir" |
14451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14452 s//\1/
14455 /^X\(\/\/\)[^/].*/{
14456 s//\1/
14459 /^X\(\/\/\)$/{
14460 s//\1/
14463 /^X\(\/\).*/{
14464 s//\1/
14467 s/.*/./; q'`
14468 test -d "$as_dir" && break
14469 done
14470 test -z "$as_dirs" || eval "mkdir $as_dirs"
14471 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14472 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14473 { (exit 1); exit 1; }; }; }
14474 # echo "creating $dirpart/$file"
14475 echo '# dummy' > "$dirpart/$file"
14476 done
14477 done
14480 esac
14481 done # for ac_tag
14484 { (exit 0); exit 0; }
14485 _ACEOF
14486 chmod +x $CONFIG_STATUS
14487 ac_clean_files=$ac_clean_files_save
14490 # configure is writing to config.log, and then calls config.status.
14491 # config.status does its own redirection, appending to config.log.
14492 # Unfortunately, on DOS this fails, as config.log is still kept open
14493 # by configure, so config.status won't be able to write to it; its
14494 # output is simply discarded. So we exec the FD to /dev/null,
14495 # effectively closing config.log, so it can be properly (re)opened and
14496 # appended to by config.status. When coming back to configure, we
14497 # need to make the FD available again.
14498 if test "$no_create" != yes; then
14499 ac_cs_success=:
14500 ac_config_status_args=
14501 test "$silent" = yes &&
14502 ac_config_status_args="$ac_config_status_args --quiet"
14503 exec 5>/dev/null
14504 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14505 exec 5>>config.log
14506 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14507 # would make configure fail if this is the last instruction.
14508 $ac_cs_success || { (exit 1); exit 1; }