Extended MOTD with GUI
[tomato.git] / release / src / router / openvpn / configure
blobbb87c73659afc9ff964258a6df5b6f2a80705353
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for OpenVPN 2.3.0.
5 # Report bugs to <openvpn-users@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187 else
188 as_have_required=no
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
212 done;;
213 esac
214 as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and openvpn-users@lists.sourceforge.net
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
245 $0: have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 SHELL=${CONFIG_SHELL-/bin/sh}
542 test -n "$DJDIR" || exec 7<&0 </dev/null
543 exec 6>&1
545 # Name of the host.
546 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 # Initializations.
553 ac_default_prefix=/usr/local
554 ac_clean_files=
555 ac_config_libobj_dir=.
556 LIBOBJS=
557 cross_compiling=no
558 subdirs=
559 MFLAGS=
560 MAKEFLAGS=
562 # Identity of this package.
563 PACKAGE_NAME='OpenVPN'
564 PACKAGE_TARNAME='openvpn'
565 PACKAGE_VERSION='2.3.0'
566 PACKAGE_STRING='OpenVPN 2.3.0'
567 PACKAGE_BUGREPORT='openvpn-users@lists.sourceforge.net'
568 PACKAGE_URL=''
570 ac_unique_file="src/openvpn/syshead.h"
571 # Factoring default headers for most tests.
572 ac_includes_default="\
573 #include <stdio.h>
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
576 #endif
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
579 #endif
580 #ifdef STDC_HEADERS
581 # include <stdlib.h>
582 # include <stddef.h>
583 #else
584 # ifdef HAVE_STDLIB_H
585 # include <stdlib.h>
586 # endif
587 #endif
588 #ifdef HAVE_STRING_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 # include <memory.h>
591 # endif
592 # include <string.h>
593 #endif
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
596 #endif
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
599 #endif
600 #ifdef HAVE_STDINT_H
601 # include <stdint.h>
602 #endif
603 #ifdef HAVE_UNISTD_H
604 # include <unistd.h>
605 #endif"
607 ac_subst_vars='am__EXEEXT_FALSE
608 am__EXEEXT_TRUE
609 LTLIBOBJS
610 LIBOBJS
611 sampledir
612 plugindir
613 ENABLE_PLUGIN_DOWN_ROOT_FALSE
614 ENABLE_PLUGIN_DOWN_ROOT_TRUE
615 ENABLE_PLUGIN_AUTH_PAM_FALSE
616 ENABLE_PLUGIN_AUTH_PAM_TRUE
617 GIT_CHECKOUT_FALSE
618 GIT_CHECKOUT_TRUE
619 WIN32_FALSE
620 WIN32_TRUE
621 PLUGIN_AUTH_PAM_LIBS
622 PLUGIN_AUTH_PAM_CFLAGS
623 OPTIONAL_PKCS11_HELPER_LIBS
624 OPTIONAL_PKCS11_HELPER_CFLAGS
625 OPTIONAL_LZO_LIBS
626 OPTIONAL_LZO_CFLAGS
627 OPTIONAL_CRYPTO_LIBS
628 OPTIONAL_CRYPTO_CFLAGS
629 OPTIONAL_SELINUX_LIBS
630 OPTIONAL_DL_LIBS
631 TAP_WIN_MIN_MINOR
632 TAP_WIN_MIN_MAJOR
633 TAP_WIN_COMPONENT_ID
634 PKCS11_HELPER_LIBS
635 PKCS11_HELPER_CFLAGS
636 LZO_LIBS
637 LZO_CFLAGS
638 POLARSSL_LIBS
639 POLARSSL_CFLAGS
640 OPENSSL_SSL_LIBS
641 OPENSSL_SSL_CFLAGS
642 OPENSSL_CRYPTO_LIBS
643 OPENSSL_CRYPTO_CFLAGS
644 LIBPAM_LIBS
645 LIBPAM_CFLAGS
646 SELINUX_LIBS
647 TAP_CFLAGS
648 SOCKETS_LIBS
649 DL_LIBS
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 RANLIB
659 ac_ct_DUMPBIN
660 DUMPBIN
662 FGREP
663 LIBTOOL
664 OBJDUMP
665 DLLTOOL
668 MAN2HTML
669 NETSTAT
670 IPROUTE
671 ROUTE
672 IFCONFIG
674 LN_S
675 PKG_CONFIG_LIBDIR
676 PKG_CONFIG_PATH
677 PKG_CONFIG
678 EGREP
679 GREP
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 AMDEPBACKSLASH
685 AMDEP_FALSE
686 AMDEP_TRUE
687 am__quote
688 am__include
689 DEPDIR
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL'
766 ac_subst_files=''
767 ac_user_opts='
768 enable_option_checking
769 enable_dependency_tracking
770 enable_lzo
771 enable_lzo_stub
772 enable_crypto
773 enable_ssl
774 enable_x509_alt_username
775 enable_multi
776 enable_server
777 enable_plugins
778 enable_eurephia
779 enable_management
780 enable_pkcs11
781 enable_socks
782 enable_http_proxy
783 enable_fragment
784 enable_multihome
785 enable_port_share
786 enable_debug
787 enable_small
788 enable_password_save
789 enable_iproute2
790 enable_def_auth
791 enable_pf
792 enable_plugin_auth_pam
793 enable_plugin_down_root
794 enable_pam_dlopen
795 enable_strict
796 enable_pedantic
797 enable_strict_options
798 enable_selinux
799 enable_systemd
800 with_special_build
801 with_mem_check
802 with_crypto_library
803 with_plugindir
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 enable_libtool_lock
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
820 PKG_CONFIG
821 PKG_CONFIG_PATH
822 PKG_CONFIG_LIBDIR
823 IFCONFIG
824 ROUTE
825 IPROUTE
826 NETSTAT
827 MAN2HTML
829 TAP_CFLAGS
830 LIBPAM_CFLAGS
831 LIBPAM_LIBS
832 OPENSSL_CRYPTO_CFLAGS
833 OPENSSL_CRYPTO_LIBS
834 OPENSSL_SSL_CFLAGS
835 OPENSSL_SSL_LIBS
836 POLARSSL_CFLAGS
837 POLARSSL_LIBS
838 LZO_CFLAGS
839 LZO_LIBS
840 PKCS11_HELPER_CFLAGS
841 PKCS11_HELPER_LIBS'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used" >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures OpenVPN 2.3.0 to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445 System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 _ACEOF
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of OpenVPN 2.3.0:";;
1454 esac
1455 cat <<\_ACEOF
1457 Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --disable-dependency-tracking speeds up one-time build
1462 --enable-dependency-tracking do not reject slow dependency extractors
1463 --disable-lzo disable LZO compression support [default=yes]
1464 --enable-lzo-stub don't compile LZO compression support but still
1465 allow limited interoperability with LZO-enabled
1466 peers [default=no]
1467 --disable-crypto disable crypto support [default=yes]
1468 --disable-ssl disable SSL support for TLS-based key exchange
1469 [default=yes]
1470 --enable-x509-alt-username
1471 enable the --x509-username-field feature
1472 [default=no]
1473 --disable-multi disable client/server support (--mode server +
1474 client mode) [default=yes]
1475 --disable-server disable server support only (but retain client
1476 support) [default=yes]
1477 --disable-plugins disable plug-in support [default=yes]
1478 --disable-eurephia disable support for the eurephia plug-in
1479 [default=yes]
1480 --disable-management disable management server support [default=yes]
1481 --enable-pkcs11 enable pkcs11 support [default=no]
1482 --disable-socks disable Socks support [default=yes]
1483 --disable-http-proxy disable HTTP proxy support [default=yes]
1484 --disable-fragment disable internal fragmentation support (--fragment)
1485 [default=yes]
1486 --disable-multihome disable multi-homed UDP server support (--multihome)
1487 [default=yes]
1488 --disable-port-share disable TCP server port-share support (--port-share)
1489 [default=yes]
1490 --disable-debug disable debugging support (disable gremlin and verb
1491 7+ messages) [default=yes]
1492 --enable-small enable smaller executable size (disable OCC, usage
1493 message, and verb 4 parm list) [default=yes]
1494 --enable-password-save allow --askpass and --auth-user-pass passwords to be
1495 read from a file [default=yes]
1496 --enable-iproute2 enable support for iproute2 [default=no]
1497 --disable-def-auth disable deferred authentication [default=yes]
1498 --disable-pf disable internal packet filter [default=yes]
1499 --disable-plugin-auth-pam
1500 disable auth-pam plugin [default=platform specific]
1501 --disable-plugin-down-root
1502 disable down-root plugin [default=platform specific]
1503 --enable-pam-dlopen dlopen libpam [default=no]
1504 --enable-strict enable strict compiler warnings (debugging option)
1505 [default=no]
1506 --enable-pedantic enable pedantic compiler warnings, will not generate
1507 a working executable (debugging option) [default=no]
1508 --enable-strict-options enable strict options check between peers (debugging
1509 option) [default=no]
1510 --enable-selinux enable SELinux support [default=no]
1511 --enable-systemd enable systemd suppport [default=no]
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1518 Optional Packages:
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-special-build=STRING
1522 specify special build string
1523 --with-mem-check=TYPE build with debug memory checking,
1524 TYPE=no|dmalloc|valgrind|ssl [default=no]
1525 --with-crypto-library=library
1526 build with the given crypto library,
1527 TYPE=openssl|polarssl [default=openssl]
1528 --with-plugindir plugin directory [default=LIBDIR/openvpn]
1529 --with-pic try to use only PIC/non-PIC objects [default=use
1530 both]
1531 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1541 CPP C preprocessor
1542 PKG_CONFIG path to pkg-config utility
1543 PKG_CONFIG_PATH
1544 directories to add to pkg-config's search path
1545 PKG_CONFIG_LIBDIR
1546 path overriding pkg-config's built-in search path
1547 IFCONFIG full path to ipconfig utility
1548 ROUTE full path to route utility
1549 IPROUTE full path to ip utility
1550 NETSTAT path to netstat utility
1551 MAN2HTML path to man2html utility
1552 GIT path to git utility
1553 TAP_CFLAGS C compiler flags for tap
1554 LIBPAM_CFLAGS
1555 C compiler flags for libpam
1556 LIBPAM_LIBS linker flags for libpam
1557 OPENSSL_CRYPTO_CFLAGS
1558 C compiler flags for OPENSSL_CRYPTO, overriding pkg-config
1559 OPENSSL_CRYPTO_LIBS
1560 linker flags for OPENSSL_CRYPTO, overriding pkg-config
1561 OPENSSL_SSL_CFLAGS
1562 C compiler flags for OPENSSL_SSL, overriding pkg-config
1563 OPENSSL_SSL_LIBS
1564 linker flags for OPENSSL_SSL, overriding pkg-config
1565 POLARSSL_CFLAGS
1566 C compiler flags for polarssl
1567 POLARSSL_LIBS
1568 linker flags for polarssl
1569 LZO_CFLAGS C compiler flags for lzo
1570 LZO_LIBS linker flags for lzo
1571 PKCS11_HELPER_CFLAGS
1572 C compiler flags for PKCS11_HELPER, overriding pkg-config
1573 PKCS11_HELPER_LIBS
1574 linker flags for PKCS11_HELPER, overriding pkg-config
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1579 Report bugs to <openvpn-users@lists.sourceforge.net>.
1580 _ACEOF
1581 ac_status=$?
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 continue
1590 ac_builddir=.
1592 case "$ac_dir" in
1593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 esac ;;
1602 esac
1603 ac_abs_top_builddir=$ac_pwd
1604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir=$ac_top_build_prefix
1608 case $srcdir in
1609 .) # We are building in place.
1610 ac_srcdir=.
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
1614 ac_srcdir=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1617 *) # Relative name.
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 esac
1622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1632 else
1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 fi || ac_status=$?
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1636 done
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1641 cat <<\_ACEOF
1642 OpenVPN configure 2.3.0
1643 generated by GNU Autoconf 2.66
1645 Copyright (C) 2010 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649 exit
1652 ## ------------------------ ##
1653 ## Autoconf initialization. ##
1654 ## ------------------------ ##
1656 # ac_fn_c_try_compile LINENO
1657 # --------------------------
1658 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_compile ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext
1663 if { { ac_try="$ac_compile"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_compile") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest.$ac_objext; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1687 ac_retval=1
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 as_fn_set_status $ac_retval
1692 } # ac_fn_c_try_compile
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_cpp ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } >/dev/null && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=1
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_cpp
1731 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1734 # the include files in INCLUDES and setting the cache variable VAR
1735 # accordingly.
1736 ac_fn_c_check_header_mongrel ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if eval "test \"\${$3+set}\"" = set; then :
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval "test \"\${$3+set}\"" = set; then :
1743 $as_echo_n "(cached) " >&6
1745 eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 else
1749 # Is the header compilable?
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1751 $as_echo_n "checking $2 usability... " >&6; }
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1755 #include <$2>
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758 ac_header_compiler=yes
1759 else
1760 ac_header_compiler=no
1762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1764 $as_echo "$ac_header_compiler" >&6; }
1766 # Is the header present?
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1768 $as_echo_n "checking $2 presence... " >&6; }
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_cpp "$LINENO"; then :
1774 ac_header_preproc=yes
1775 else
1776 ac_header_preproc=no
1778 rm -f conftest.err conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1780 $as_echo "$ac_header_preproc" >&6; }
1782 # So? What about this header?
1783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1784 yes:no: )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1786 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 no:yes:* )
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1792 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1794 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1796 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1798 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 ( $as_echo "## -------------------------------------------------- ##
1802 ## Report this to openvpn-users@lists.sourceforge.net ##
1803 ## -------------------------------------------------- ##"
1804 ) | sed "s/^/$as_me: WARNING: /" >&2
1806 esac
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval "test \"\${$3+set}\"" = set; then :
1810 $as_echo_n "(cached) " >&6
1811 else
1812 eval "$3=\$ac_header_compiler"
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 } # ac_fn_c_check_header_mongrel
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1826 ac_fn_c_try_run ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1837 ac_status=$?
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1847 ac_status=$?
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=$ac_status
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860 as_fn_set_status $ac_retval
1862 } # ac_fn_c_try_run
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval "test \"\${$3+set}\"" = set; then :
1874 $as_echo_n "(cached) " >&6
1875 else
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1879 #include <$2>
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882 eval "$3=yes"
1883 else
1884 eval "$3=no"
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 } # ac_fn_c_check_header_compile
1895 # ac_fn_c_try_link LINENO
1896 # -----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_c_try_link ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext conftest$ac_exeext
1902 if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_c_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest$ac_exeext && {
1921 test "$cross_compiling" = yes ||
1922 $as_test_x conftest$ac_exeext
1923 }; then :
1924 ac_retval=0
1925 else
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=1
1931 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1932 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1933 # interfere with the next link command; also delete a directory that is
1934 # left behind by Apple's compiler. We do this before executing the actions.
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 as_fn_set_status $ac_retval
1939 } # ac_fn_c_try_link
1941 # ac_fn_c_check_func LINENO FUNC VAR
1942 # ----------------------------------
1943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1944 ac_fn_c_check_func ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval "test \"\${$3+set}\"" = set; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1956 #define $2 innocuous_$2
1958 /* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char $2 (); below.
1960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961 <limits.h> exists even on freestanding compilers. */
1963 #ifdef __STDC__
1964 # include <limits.h>
1965 #else
1966 # include <assert.h>
1967 #endif
1969 #undef $2
1971 /* Override any GCC internal prototype to avoid an error.
1972 Use char because int might match the return type of a GCC
1973 builtin and then its argument prototype would still apply. */
1974 #ifdef __cplusplus
1975 extern "C"
1976 #endif
1977 char $2 ();
1978 /* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981 #if defined __stub_$2 || defined __stub___$2
1982 choke me
1983 #endif
1986 main ()
1988 return $2 ();
1990 return 0;
1992 _ACEOF
1993 if ac_fn_c_try_link "$LINENO"; then :
1994 eval "$3=yes"
1995 else
1996 eval "$3=no"
1998 rm -f core conftest.err conftest.$ac_objext \
1999 conftest$ac_exeext conftest.$ac_ext
2001 eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2006 } # ac_fn_c_check_func
2008 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009 # -------------------------------------------
2010 # Tests whether TYPE exists after having included INCLUDES, setting cache
2011 # variable VAR accordingly.
2012 ac_fn_c_check_type ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval "test \"\${$3+set}\"" = set; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 eval "$3=no"
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2025 main ()
2027 if (sizeof ($2))
2028 return 0;
2030 return 0;
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 if (sizeof (($2)))
2041 return 0;
2043 return 0;
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2048 else
2049 eval "$3=yes"
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 } # ac_fn_c_check_type
2062 # ac_fn_c_find_intX_t LINENO BITS VAR
2063 # -----------------------------------
2064 # Finds a signed integer type with width BITS, setting cache variable VAR
2065 # accordingly.
2066 ac_fn_c_find_intX_t ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2070 $as_echo_n "checking for int$2_t... " >&6; }
2071 if eval "test \"\${$3+set}\"" = set; then :
2072 $as_echo_n "(cached) " >&6
2073 else
2074 eval "$3=no"
2075 # Order is important - never check a type that is potentially smaller
2076 # than half of the expected target width.
2077 for ac_type in int$2_t 'int' 'long int' \
2078 'long long int' 'short int' 'signed char'; do
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $ac_includes_default
2082 enum { N = $2 / 2 - 1 };
2084 main ()
2086 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2087 test_array [0] = 0
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $ac_includes_default
2097 enum { N = $2 / 2 - 1 };
2099 main ()
2101 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2102 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2103 test_array [0] = 0
2106 return 0;
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2111 else
2112 case $ac_type in #(
2113 int$2_t) :
2114 eval "$3=yes" ;; #(
2115 *) :
2116 eval "$3=\$ac_type" ;;
2117 esac
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 if eval test \"x\$"$3"\" = x"no"; then :
2124 else
2125 break
2127 done
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134 } # ac_fn_c_find_intX_t
2136 # ac_fn_c_find_uintX_t LINENO BITS VAR
2137 # ------------------------------------
2138 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2139 # accordingly.
2140 ac_fn_c_find_uintX_t ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2144 $as_echo_n "checking for uint$2_t... " >&6; }
2145 if eval "test \"\${$3+set}\"" = set; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 eval "$3=no"
2149 # Order is important - never check a type that is potentially smaller
2150 # than half of the expected target width.
2151 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2152 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2155 $ac_includes_default
2157 main ()
2159 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2160 test_array [0] = 0
2163 return 0;
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 case $ac_type in #(
2168 uint$2_t) :
2169 eval "$3=yes" ;; #(
2170 *) :
2171 eval "$3=\$ac_type" ;;
2172 esac
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 if eval test \"x\$"$3"\" = x"no"; then :
2177 else
2178 break
2180 done
2182 eval ac_res=\$$3
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2187 } # ac_fn_c_find_uintX_t
2189 # ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2190 # --------------------------------------------------------------
2191 # Tries to find the compile-time value of EXPR in a program that includes
2192 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2193 # computed
2194 ac_fn_c_compute_int ()
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 if test "$cross_compiling" = yes; then
2198 # Depending upon the size, compute the lo and hi bounds.
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2203 main ()
2205 static int test_array [1 - 2 * !(($2) >= 0)];
2206 test_array [0] = 0
2209 return 0;
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_lo=0 ac_mid=0
2214 while :; do
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2219 main ()
2221 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 test_array [0] = 0
2225 return 0;
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_hi=$ac_mid; break
2230 else
2231 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2232 if test $ac_lo -le $ac_mid; then
2233 ac_lo= ac_hi=
2234 break
2236 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 done
2240 else
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 static int test_array [1 - 2 * !(($2) < 0)];
2248 test_array [0] = 0
2251 return 0;
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255 ac_hi=-1 ac_mid=-1
2256 while :; do
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2261 main ()
2263 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2264 test_array [0] = 0
2267 return 0;
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 ac_lo=$ac_mid; break
2272 else
2273 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2274 if test $ac_mid -le $ac_hi; then
2275 ac_lo= ac_hi=
2276 break
2278 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 done
2282 else
2283 ac_lo= ac_hi=
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 # Binary search between lo and hi bounds.
2289 while test "x$ac_lo" != "x$ac_hi"; do
2290 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2295 main ()
2297 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2298 test_array [0] = 0
2301 return 0;
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2305 ac_hi=$ac_mid
2306 else
2307 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 done
2311 case $ac_lo in #((
2312 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2313 '') ac_retval=1 ;;
2314 esac
2315 else
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2319 static long int longval () { return $2; }
2320 static unsigned long int ulongval () { return $2; }
2321 #include <stdio.h>
2322 #include <stdlib.h>
2324 main ()
2327 FILE *f = fopen ("conftest.val", "w");
2328 if (! f)
2329 return 1;
2330 if (($2) < 0)
2332 long int i = longval ();
2333 if (i != ($2))
2334 return 1;
2335 fprintf (f, "%ld", i);
2337 else
2339 unsigned long int i = ulongval ();
2340 if (i != ($2))
2341 return 1;
2342 fprintf (f, "%lu", i);
2344 /* Do not output a trailing newline, as this causes \r\n confusion
2345 on some platforms. */
2346 return ferror (f) || fclose (f) != 0;
2349 return 0;
2351 _ACEOF
2352 if ac_fn_c_try_run "$LINENO"; then :
2353 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2354 else
2355 ac_retval=1
2357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2358 conftest.$ac_objext conftest.beam conftest.$ac_ext
2359 rm -f conftest.val
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363 as_fn_set_status $ac_retval
2365 } # ac_fn_c_compute_int
2367 # ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2368 # ---------------------------------------------------------------
2369 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2370 # accordingly.
2371 ac_fn_c_check_decl ()
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 as_decl_name=`echo $2|sed 's/ *(.*//'`
2375 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2377 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2378 if eval "test \"\${$3+set}\"" = set; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2385 main ()
2387 #ifndef $as_decl_name
2388 #ifdef __cplusplus
2389 (void) $as_decl_use;
2390 #else
2391 (void) $as_decl_name;
2392 #endif
2393 #endif
2396 return 0;
2398 _ACEOF
2399 if ac_fn_c_try_compile "$LINENO"; then :
2400 eval "$3=yes"
2401 else
2402 eval "$3=no"
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 eval ac_res=\$$3
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411 } # ac_fn_c_check_decl
2412 cat >config.log <<_ACEOF
2413 This file contains any messages produced by compilers while
2414 running configure, to aid debugging if configure makes a mistake.
2416 It was created by OpenVPN $as_me 2.3.0, which was
2417 generated by GNU Autoconf 2.66. Invocation command line was
2419 $ $0 $@
2421 _ACEOF
2422 exec 5>>config.log
2424 cat <<_ASUNAME
2425 ## --------- ##
2426 ## Platform. ##
2427 ## --------- ##
2429 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2430 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2431 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2432 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2433 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2435 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2436 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2438 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2439 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2440 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2441 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2442 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2443 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2444 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2446 _ASUNAME
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 $as_echo "PATH: $as_dir"
2454 done
2455 IFS=$as_save_IFS
2457 } >&5
2459 cat >&5 <<_ACEOF
2462 ## ----------- ##
2463 ## Core tests. ##
2464 ## ----------- ##
2466 _ACEOF
2469 # Keep a trace of the command line.
2470 # Strip out --no-create and --no-recursion so they do not pile up.
2471 # Strip out --silent because we don't want to record it for future runs.
2472 # Also quote any args containing shell meta-characters.
2473 # Make two passes to allow for proper duplicate-argument suppression.
2474 ac_configure_args=
2475 ac_configure_args0=
2476 ac_configure_args1=
2477 ac_must_keep_next=false
2478 for ac_pass in 1 2
2480 for ac_arg
2482 case $ac_arg in
2483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2485 | -silent | --silent | --silen | --sile | --sil)
2486 continue ;;
2487 *\'*)
2488 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2489 esac
2490 case $ac_pass in
2491 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2493 as_fn_append ac_configure_args1 " '$ac_arg'"
2494 if test $ac_must_keep_next = true; then
2495 ac_must_keep_next=false # Got value, back to normal.
2496 else
2497 case $ac_arg in
2498 *=* | --config-cache | -C | -disable-* | --disable-* \
2499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2501 | -with-* | --with-* | -without-* | --without-* | --x)
2502 case "$ac_configure_args0 " in
2503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2504 esac
2506 -* ) ac_must_keep_next=true ;;
2507 esac
2509 as_fn_append ac_configure_args " '$ac_arg'"
2511 esac
2512 done
2513 done
2514 { ac_configure_args0=; unset ac_configure_args0;}
2515 { ac_configure_args1=; unset ac_configure_args1;}
2517 # When interrupted or exit'd, cleanup temporary files, and complete
2518 # config.log. We remove comments because anyway the quotes in there
2519 # would cause problems or look ugly.
2520 # WARNING: Use '\'' to represent an apostrophe within the trap.
2521 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2522 trap 'exit_status=$?
2523 # Save into config.log some information that might help in debugging.
2525 echo
2527 $as_echo "## ---------------- ##
2528 ## Cache variables. ##
2529 ## ---------------- ##"
2530 echo
2531 # The following way of writing the cache mishandles newlines in values,
2533 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2534 eval ac_val=\$$ac_var
2535 case $ac_val in #(
2536 *${as_nl}*)
2537 case $ac_var in #(
2538 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2539 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2540 esac
2541 case $ac_var in #(
2542 _ | IFS | as_nl) ;; #(
2543 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2544 *) { eval $ac_var=; unset $ac_var;} ;;
2545 esac ;;
2546 esac
2547 done
2548 (set) 2>&1 |
2549 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2550 *${as_nl}ac_space=\ *)
2551 sed -n \
2552 "s/'\''/'\''\\\\'\'''\''/g;
2553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2554 ;; #(
2556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2558 esac |
2559 sort
2561 echo
2563 $as_echo "## ----------------- ##
2564 ## Output variables. ##
2565 ## ----------------- ##"
2566 echo
2567 for ac_var in $ac_subst_vars
2569 eval ac_val=\$$ac_var
2570 case $ac_val in
2571 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572 esac
2573 $as_echo "$ac_var='\''$ac_val'\''"
2574 done | sort
2575 echo
2577 if test -n "$ac_subst_files"; then
2578 $as_echo "## ------------------- ##
2579 ## File substitutions. ##
2580 ## ------------------- ##"
2581 echo
2582 for ac_var in $ac_subst_files
2584 eval ac_val=\$$ac_var
2585 case $ac_val in
2586 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2587 esac
2588 $as_echo "$ac_var='\''$ac_val'\''"
2589 done | sort
2590 echo
2593 if test -s confdefs.h; then
2594 $as_echo "## ----------- ##
2595 ## confdefs.h. ##
2596 ## ----------- ##"
2597 echo
2598 cat confdefs.h
2599 echo
2601 test "$ac_signal" != 0 &&
2602 $as_echo "$as_me: caught signal $ac_signal"
2603 $as_echo "$as_me: exit $exit_status"
2604 } >&5
2605 rm -f core *.core core.conftest.* &&
2606 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2607 exit $exit_status
2609 for ac_signal in 1 2 13 15; do
2610 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2611 done
2612 ac_signal=0
2614 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2615 rm -f -r conftest* confdefs.h
2617 $as_echo "/* confdefs.h */" > confdefs.h
2619 # Predefined preprocessor variables.
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_NAME "$PACKAGE_NAME"
2623 _ACEOF
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2627 _ACEOF
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2631 _ACEOF
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_STRING "$PACKAGE_STRING"
2635 _ACEOF
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2639 _ACEOF
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_URL "$PACKAGE_URL"
2643 _ACEOF
2646 # Let the site file select an alternate cache file if it wants to.
2647 # Prefer an explicitly selected file to automatically selected ones.
2648 ac_site_file1=NONE
2649 ac_site_file2=NONE
2650 if test -n "$CONFIG_SITE"; then
2651 # We do not want a PATH search for config.site.
2652 case $CONFIG_SITE in #((
2653 -*) ac_site_file1=./$CONFIG_SITE;;
2654 */*) ac_site_file1=$CONFIG_SITE;;
2655 *) ac_site_file1=./$CONFIG_SITE;;
2656 esac
2657 elif test "x$prefix" != xNONE; then
2658 ac_site_file1=$prefix/share/config.site
2659 ac_site_file2=$prefix/etc/config.site
2660 else
2661 ac_site_file1=$ac_default_prefix/share/config.site
2662 ac_site_file2=$ac_default_prefix/etc/config.site
2664 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2666 test "x$ac_site_file" = xNONE && continue
2667 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2669 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2670 sed 's/^/| /' "$ac_site_file" >&5
2671 . "$ac_site_file" \
2672 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674 as_fn_error $? "failed to load site script $ac_site_file
2675 See \`config.log' for more details" "$LINENO" 5; }
2677 done
2679 if test -r "$cache_file"; then
2680 # Some versions of bash will fail to source /dev/null (special files
2681 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2682 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2684 $as_echo "$as_me: loading cache $cache_file" >&6;}
2685 case $cache_file in
2686 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2687 *) . "./$cache_file";;
2688 esac
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2692 $as_echo "$as_me: creating cache $cache_file" >&6;}
2693 >$cache_file
2696 # Check that the precious variables saved in the cache have kept the same
2697 # value.
2698 ac_cache_corrupted=false
2699 for ac_var in $ac_precious_vars; do
2700 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2701 eval ac_new_set=\$ac_env_${ac_var}_set
2702 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2703 eval ac_new_val=\$ac_env_${ac_var}_value
2704 case $ac_old_set,$ac_new_set in
2705 set,)
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2707 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2708 ac_cache_corrupted=: ;;
2709 ,set)
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2711 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2712 ac_cache_corrupted=: ;;
2713 ,);;
2715 if test "x$ac_old_val" != "x$ac_new_val"; then
2716 # differences in whitespace do not lead to failure.
2717 ac_old_val_w=`echo x $ac_old_val`
2718 ac_new_val_w=`echo x $ac_new_val`
2719 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2721 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2722 ac_cache_corrupted=:
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2725 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2726 eval $ac_var=\$ac_old_val
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2729 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2731 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2732 fi;;
2733 esac
2734 # Pass precious variables to config.status.
2735 if test "$ac_new_set" = set; then
2736 case $ac_new_val in
2737 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2738 *) ac_arg=$ac_var=$ac_new_val ;;
2739 esac
2740 case " $ac_configure_args " in
2741 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2742 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2743 esac
2745 done
2746 if $ac_cache_corrupted; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2750 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2751 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2753 ## -------------------- ##
2754 ## Main body of script. ##
2755 ## -------------------- ##
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770 if test -z "${docdir}"; then
2771 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
2774 if test -z "${htmldir}"; then
2775 htmldir="\$(docdir)"
2780 $as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,0,0" >>confdefs.h
2783 ac_aux_dir=
2784 for ac_dir in . "$srcdir"/.; do
2785 if test -f "$ac_dir/install-sh"; then
2786 ac_aux_dir=$ac_dir
2787 ac_install_sh="$ac_aux_dir/install-sh -c"
2788 break
2789 elif test -f "$ac_dir/install.sh"; then
2790 ac_aux_dir=$ac_dir
2791 ac_install_sh="$ac_aux_dir/install.sh -c"
2792 break
2793 elif test -f "$ac_dir/shtool"; then
2794 ac_aux_dir=$ac_dir
2795 ac_install_sh="$ac_aux_dir/shtool install -c"
2796 break
2798 done
2799 if test -z "$ac_aux_dir"; then
2800 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2803 # These three variables are undocumented and unsupported,
2804 # and are intended to be withdrawn in a future Autoconf release.
2805 # They can cause serious problems if a builder's source tree is in a directory
2806 # whose full name contains unusual characters.
2807 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2808 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2809 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2812 ac_config_headers="$ac_config_headers config.h"
2816 am__api_version='1.11'
2818 # Find a good install program. We prefer a C program (faster),
2819 # so one script is as good as another. But avoid the broken or
2820 # incompatible versions:
2821 # SysV /etc/install, /usr/sbin/install
2822 # SunOS /usr/etc/install
2823 # IRIX /sbin/install
2824 # AIX /bin/install
2825 # AmigaOS /C/install, which installs bootblocks on floppy discs
2826 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2829 # OS/2's system install, which has a completely different semantic
2830 # ./install, which can be erroneously created by make from ./install.sh.
2831 # Reject install programs that cannot install multiple files.
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2833 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2834 if test -z "$INSTALL"; then
2835 if test "${ac_cv_path_install+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 # Account for people who put trailing slashes in PATH elements.
2844 case $as_dir/ in #((
2845 ./ | .// | /[cC]/* | \
2846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2847 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2848 /usr/ucb/* ) ;;
2850 # OSF1 and SCO ODT 3.0 have their own names for install.
2851 # Don't use installbsd from OSF since it installs stuff as root
2852 # by default.
2853 for ac_prog in ginstall scoinst install; do
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2856 if test $ac_prog = install &&
2857 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2858 # AIX install. It has an incompatible calling convention.
2860 elif test $ac_prog = install &&
2861 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2862 # program-specific install script used by HP pwplus--don't use.
2864 else
2865 rm -rf conftest.one conftest.two conftest.dir
2866 echo one > conftest.one
2867 echo two > conftest.two
2868 mkdir conftest.dir
2869 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2870 test -s conftest.one && test -s conftest.two &&
2871 test -s conftest.dir/conftest.one &&
2872 test -s conftest.dir/conftest.two
2873 then
2874 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2875 break 3
2879 done
2880 done
2882 esac
2884 done
2885 IFS=$as_save_IFS
2887 rm -rf conftest.one conftest.two conftest.dir
2890 if test "${ac_cv_path_install+set}" = set; then
2891 INSTALL=$ac_cv_path_install
2892 else
2893 # As a last resort, use the slow shell script. Don't cache a
2894 # value for INSTALL within a source directory, because that will
2895 # break other packages using the cache if that directory is
2896 # removed, or if the value is a relative name.
2897 INSTALL=$ac_install_sh
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2901 $as_echo "$INSTALL" >&6; }
2903 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2904 # It thinks the first close brace ends the variable substitution.
2905 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2907 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2909 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2912 $as_echo_n "checking whether build environment is sane... " >&6; }
2913 # Just in case
2914 sleep 1
2915 echo timestamp > conftest.file
2916 # Reject unsafe characters in $srcdir or the absolute working directory
2917 # name. Accept space and tab only in the latter.
2918 am_lf='
2920 case `pwd` in
2921 *[\\\"\#\$\&\'\`$am_lf]*)
2922 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2923 esac
2924 case $srcdir in
2925 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2926 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2927 esac
2929 # Do `set' in a subshell so we don't clobber the current shell's
2930 # arguments. Must try -L first in case configure is actually a
2931 # symlink; some systems play weird games with the mod time of symlinks
2932 # (eg FreeBSD returns the mod time of the symlink's containing
2933 # directory).
2934 if (
2935 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2936 if test "$*" = "X"; then
2937 # -L didn't work.
2938 set X `ls -t "$srcdir/configure" conftest.file`
2940 rm -f conftest.file
2941 if test "$*" != "X $srcdir/configure conftest.file" \
2942 && test "$*" != "X conftest.file $srcdir/configure"; then
2944 # If neither matched, then we have a broken ls. This can happen
2945 # if, for instance, CONFIG_SHELL is bash and it inherits a
2946 # broken ls alias from the environment. This has actually
2947 # happened. Such a system could not be considered "sane".
2948 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2949 alias in your environment" "$LINENO" 5
2952 test "$2" = conftest.file
2954 then
2955 # Ok.
2957 else
2958 as_fn_error $? "newly created file is older than distributed files!
2959 Check your system clock" "$LINENO" 5
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2962 $as_echo "yes" >&6; }
2963 test "$program_prefix" != NONE &&
2964 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2965 # Use a double $ so make ignores it.
2966 test "$program_suffix" != NONE &&
2967 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2968 # Double any \ or $.
2969 # By default was `s,x,x', remove it if useless.
2970 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2971 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2973 # expand $ac_aux_dir to an absolute path
2974 am_aux_dir=`cd $ac_aux_dir && pwd`
2976 if test x"${MISSING+set}" != xset; then
2977 case $am_aux_dir in
2978 *\ * | *\ *)
2979 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2981 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2982 esac
2984 # Use eval to expand $SHELL
2985 if eval "$MISSING --run true"; then
2986 am_missing_run="$MISSING --run "
2987 else
2988 am_missing_run=
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2990 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2993 if test x"${install_sh}" != xset; then
2994 case $am_aux_dir in
2995 *\ * | *\ *)
2996 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2998 install_sh="\${SHELL} $am_aux_dir/install-sh"
2999 esac
3002 # Installed binaries are usually stripped using `strip' when the user
3003 # run `make install-strip'. However `strip' might not be the right
3004 # tool to use in cross-compilation environments, therefore Automake
3005 # will honor the `STRIP' environment variable to overrule this program.
3006 if test "$cross_compiling" != no; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}strip; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_STRIP+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$STRIP"; then
3016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3029 done
3030 done
3031 IFS=$as_save_IFS
3035 STRIP=$ac_cv_prog_STRIP
3036 if test -n "$STRIP"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3038 $as_echo "$STRIP" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3046 if test -z "$ac_cv_prog_STRIP"; then
3047 ac_ct_STRIP=$STRIP
3048 # Extract the first word of "strip", so it can be a program name with args.
3049 set dummy strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$ac_ct_STRIP"; then
3056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_ac_ct_STRIP="strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3069 done
3070 done
3071 IFS=$as_save_IFS
3075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3076 if test -n "$ac_ct_STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078 $as_echo "$ac_ct_STRIP" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3084 if test "x$ac_ct_STRIP" = x; then
3085 STRIP=":"
3086 else
3087 case $cross_compiling:$ac_tool_warned in
3088 yes:)
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093 STRIP=$ac_ct_STRIP
3095 else
3096 STRIP="$ac_cv_prog_STRIP"
3100 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3104 if test -z "$MKDIR_P"; then
3105 if test "${ac_cv_path_mkdir+set}" = set; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_prog in mkdir gmkdir; do
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3116 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3117 'mkdir (GNU coreutils) '* | \
3118 'mkdir (coreutils) '* | \
3119 'mkdir (fileutils) '4.1*)
3120 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3121 break 3;;
3122 esac
3123 done
3124 done
3125 done
3126 IFS=$as_save_IFS
3130 test -d ./--version && rmdir ./--version
3131 if test "${ac_cv_path_mkdir+set}" = set; then
3132 MKDIR_P="$ac_cv_path_mkdir -p"
3133 else
3134 # As a last resort, use the slow shell script. Don't cache a
3135 # value for MKDIR_P within a source directory, because that will
3136 # break other packages using the cache if that directory is
3137 # removed, or if the value is a relative name.
3138 MKDIR_P="$ac_install_sh -d"
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3142 $as_echo "$MKDIR_P" >&6; }
3144 mkdir_p="$MKDIR_P"
3145 case $mkdir_p in
3146 [\\/$]* | ?:[\\/]*) ;;
3147 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3148 esac
3150 for ac_prog in gawk mawk nawk awk
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_AWK+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$AWK"; then
3160 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_AWK="$ac_prog"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3173 done
3174 done
3175 IFS=$as_save_IFS
3179 AWK=$ac_cv_prog_AWK
3180 if test -n "$AWK"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3182 $as_echo "$AWK" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3189 test -n "$AWK" && break
3190 done
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3193 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3194 set x ${MAKE-make}
3195 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3196 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 cat >conftest.make <<\_ACEOF
3200 SHELL = /bin/sh
3201 all:
3202 @echo '@@@%%%=$(MAKE)=@@@%%%'
3203 _ACEOF
3204 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3205 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3206 *@@@%%%=?*=@@@%%%*)
3207 eval ac_cv_prog_make_${ac_make}_set=yes;;
3209 eval ac_cv_prog_make_${ac_make}_set=no;;
3210 esac
3211 rm -f conftest.make
3213 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3215 $as_echo "yes" >&6; }
3216 SET_MAKE=
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 SET_MAKE="MAKE=${MAKE-make}"
3223 rm -rf .tst 2>/dev/null
3224 mkdir .tst 2>/dev/null
3225 if test -d .tst; then
3226 am__leading_dot=.
3227 else
3228 am__leading_dot=_
3230 rmdir .tst 2>/dev/null
3232 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3233 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3234 # is not polluted with repeated "-I."
3235 am__isrc=' -I$(srcdir)'
3236 # test to see if srcdir already configured
3237 if test -f $srcdir/config.status; then
3238 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3242 # test whether we have cygpath
3243 if test -z "$CYGPATH_W"; then
3244 if (cygpath --version) >/dev/null 2>/dev/null; then
3245 CYGPATH_W='cygpath -w'
3246 else
3247 CYGPATH_W=echo
3252 # Define the identity of the package.
3253 PACKAGE='openvpn'
3254 VERSION='2.3.0'
3257 cat >>confdefs.h <<_ACEOF
3258 #define PACKAGE "$PACKAGE"
3259 _ACEOF
3262 cat >>confdefs.h <<_ACEOF
3263 #define VERSION "$VERSION"
3264 _ACEOF
3266 # Some tools Automake needs.
3268 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3271 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3274 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3277 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3280 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3282 # We need awk for the "check" target. The system "awk" is bad on
3283 # some platforms.
3284 # Always define AMTAR for backward compatibility.
3286 AMTAR=${AMTAR-"${am_missing_run}tar"}
3288 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3294 # Make sure we can run config.sub.
3295 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3296 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3299 $as_echo_n "checking build system type... " >&6; }
3300 if test "${ac_cv_build+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 ac_build_alias=$build_alias
3304 test "x$ac_build_alias" = x &&
3305 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3306 test "x$ac_build_alias" = x &&
3307 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3308 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3309 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3313 $as_echo "$ac_cv_build" >&6; }
3314 case $ac_cv_build in
3315 *-*-*) ;;
3316 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3317 esac
3318 build=$ac_cv_build
3319 ac_save_IFS=$IFS; IFS='-'
3320 set x $ac_cv_build
3321 shift
3322 build_cpu=$1
3323 build_vendor=$2
3324 shift; shift
3325 # Remember, the first character of IFS is used to create $*,
3326 # except with old shells:
3327 build_os=$*
3328 IFS=$ac_save_IFS
3329 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3333 $as_echo_n "checking host system type... " >&6; }
3334 if test "${ac_cv_host+set}" = set; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 if test "x$host_alias" = x; then
3338 ac_cv_host=$ac_cv_build
3339 else
3340 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3341 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3346 $as_echo "$ac_cv_host" >&6; }
3347 case $ac_cv_host in
3348 *-*-*) ;;
3349 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3350 esac
3351 host=$ac_cv_host
3352 ac_save_IFS=$IFS; IFS='-'
3353 set x $ac_cv_host
3354 shift
3355 host_cpu=$1
3356 host_vendor=$2
3357 shift; shift
3358 # Remember, the first character of IFS is used to create $*,
3359 # except with old shells:
3360 host_os=$*
3361 IFS=$ac_save_IFS
3362 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3365 DEPDIR="${am__leading_dot}deps"
3367 ac_config_commands="$ac_config_commands depfiles"
3370 am_make=${MAKE-make}
3371 cat > confinc << 'END'
3372 am__doit:
3373 @echo this is the am__doit target
3374 .PHONY: am__doit
3376 # If we don't find an include directive, just comment out the code.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3378 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3379 am__include="#"
3380 am__quote=
3381 _am_result=none
3382 # First try GNU make style include.
3383 echo "include confinc" > confmf
3384 # Ignore all kinds of additional output from `make'.
3385 case `$am_make -s -f confmf 2> /dev/null` in #(
3386 *the\ am__doit\ target*)
3387 am__include=include
3388 am__quote=
3389 _am_result=GNU
3391 esac
3392 # Now try BSD make style include.
3393 if test "$am__include" = "#"; then
3394 echo '.include "confinc"' > confmf
3395 case `$am_make -s -f confmf 2> /dev/null` in #(
3396 *the\ am__doit\ target*)
3397 am__include=.include
3398 am__quote="\""
3399 _am_result=BSD
3401 esac
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3406 $as_echo "$_am_result" >&6; }
3407 rm -f confinc confmf
3409 # Check whether --enable-dependency-tracking was given.
3410 if test "${enable_dependency_tracking+set}" = set; then :
3411 enableval=$enable_dependency_tracking;
3414 if test "x$enable_dependency_tracking" != xno; then
3415 am_depcomp="$ac_aux_dir/depcomp"
3416 AMDEPBACKSLASH='\'
3418 if test "x$enable_dependency_tracking" != xno; then
3419 AMDEP_TRUE=
3420 AMDEP_FALSE='#'
3421 else
3422 AMDEP_TRUE='#'
3423 AMDEP_FALSE=
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if test "${ac_cv_prog_CC+set}" = set; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3454 done
3455 done
3456 IFS=$as_save_IFS
3460 CC=$ac_cv_prog_CC
3461 if test -n "$CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3471 if test -z "$ac_cv_prog_CC"; then
3472 ac_ct_CC=$CC
3473 # Extract the first word of "gcc", so it can be a program name with args.
3474 set dummy gcc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test -n "$ac_ct_CC"; then
3481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_ac_ct_CC="gcc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3494 done
3495 done
3496 IFS=$as_save_IFS
3500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501 if test -n "$ac_ct_CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503 $as_echo "$ac_ct_CC" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3509 if test "x$ac_ct_CC" = x; then
3510 CC=""
3511 else
3512 case $cross_compiling:$ac_tool_warned in
3513 yes:)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned=yes ;;
3517 esac
3518 CC=$ac_ct_CC
3520 else
3521 CC="$ac_cv_prog_CC"
3524 if test -z "$CC"; then
3525 if test -n "$ac_tool_prefix"; then
3526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3527 set dummy ${ac_tool_prefix}cc; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if test "${ac_cv_prog_CC+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if test -n "$CC"; then
3534 ac_cv_prog_CC="$CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543 ac_cv_prog_CC="${ac_tool_prefix}cc"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3547 done
3548 done
3549 IFS=$as_save_IFS
3553 CC=$ac_cv_prog_CC
3554 if test -n "$CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3565 if test -z "$CC"; then
3566 # Extract the first word of "cc", so it can be a program name with args.
3567 set dummy cc; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CC+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC="$CC" # Let the user override the test.
3575 else
3576 ac_prog_rejected=no
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3585 ac_prog_rejected=yes
3586 continue
3588 ac_cv_prog_CC="cc"
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 break 2
3592 done
3593 done
3594 IFS=$as_save_IFS
3596 if test $ac_prog_rejected = yes; then
3597 # We found a bogon in the path, so make sure we never use it.
3598 set dummy $ac_cv_prog_CC
3599 shift
3600 if test $# != 0; then
3601 # We chose a different compiler from the bogus one.
3602 # However, it has the same basename, so the bogon will be chosen
3603 # first if we set CC to just the basename; use the full file name.
3604 shift
3605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3610 CC=$ac_cv_prog_CC
3611 if test -n "$CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3621 if test -z "$CC"; then
3622 if test -n "$ac_tool_prefix"; then
3623 for ac_prog in cl.exe
3625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if test "${ac_cv_prog_CC+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 if test -n "$CC"; then
3633 ac_cv_prog_CC="$CC" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3646 done
3647 done
3648 IFS=$as_save_IFS
3652 CC=$ac_cv_prog_CC
3653 if test -n "$CC"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3655 $as_echo "$CC" >&6; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3662 test -n "$CC" && break
3663 done
3665 if test -z "$CC"; then
3666 ac_ct_CC=$CC
3667 for ac_prog in cl.exe
3669 # Extract the first word of "$ac_prog", so it can be a program name with args.
3670 set dummy $ac_prog; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 if test -n "$ac_ct_CC"; then
3677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3678 else
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 ac_cv_prog_ac_ct_CC="$ac_prog"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 break 2
3690 done
3691 done
3692 IFS=$as_save_IFS
3696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3697 if test -n "$ac_ct_CC"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3699 $as_echo "$ac_ct_CC" >&6; }
3700 else
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3706 test -n "$ac_ct_CC" && break
3707 done
3709 if test "x$ac_ct_CC" = x; then
3710 CC=""
3711 else
3712 case $cross_compiling:$ac_tool_warned in
3713 yes:)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3716 ac_tool_warned=yes ;;
3717 esac
3718 CC=$ac_ct_CC
3725 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error $? "no acceptable C compiler found in \$PATH
3728 See \`config.log' for more details" "$LINENO" 5; }
3730 # Provide some information about the compiler.
3731 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3732 set X $ac_compile
3733 ac_compiler=$2
3734 for ac_option in --version -v -V -qversion; do
3735 { { ac_try="$ac_compiler $ac_option >&5"
3736 case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3743 ac_status=$?
3744 if test -s conftest.err; then
3745 sed '10a\
3746 ... rest of stderr output deleted ...
3747 10q' conftest.err >conftest.er1
3748 cat conftest.er1 >&5
3750 rm -f conftest.er1 conftest.err
3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }
3753 done
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3759 main ()
3763 return 0;
3765 _ACEOF
3766 ac_clean_files_save=$ac_clean_files
3767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3768 # Try to create an executable without -o first, disregard a.out.
3769 # It will help us diagnose broken compilers, and finding out an intuition
3770 # of exeext.
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3772 $as_echo_n "checking whether the C compiler works... " >&6; }
3773 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3775 # The possible output files:
3776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3778 ac_rmfiles=
3779 for ac_file in $ac_files
3781 case $ac_file in
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3784 esac
3785 done
3786 rm -f $ac_rmfiles
3788 if { { ac_try="$ac_link_default"
3789 case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link_default") 2>&5
3796 ac_status=$?
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }; then :
3799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3800 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3801 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3802 # so that the user can short-circuit this test for compilers unknown to
3803 # Autoconf.
3804 for ac_file in $ac_files ''
3806 test -f "$ac_file" || continue
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3810 [ab].out )
3811 # We found the default executable, but exeext='' is most
3812 # certainly right.
3813 break;;
3814 *.* )
3815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3816 then :; else
3817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3819 # We set ac_cv_exeext here because the later test for it is not
3820 # safe: cross compilers may not add the suffix if given an `-o'
3821 # argument, so we may need to know it at that point already.
3822 # Even if this section looks crufty: it has the advantage of
3823 # actually working.
3824 break;;
3826 break;;
3827 esac
3828 done
3829 test "$ac_cv_exeext" = no && ac_cv_exeext=
3831 else
3832 ac_file=''
3834 if test -z "$ac_file"; then :
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error 77 "C compiler cannot create executables
3843 See \`config.log' for more details" "$LINENO" 5; }
3844 else
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3846 $as_echo "yes" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3849 $as_echo_n "checking for C compiler default output file name... " >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3851 $as_echo "$ac_file" >&6; }
3852 ac_exeext=$ac_cv_exeext
3854 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3855 ac_clean_files=$ac_clean_files_save
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3857 $as_echo_n "checking for suffix of executables... " >&6; }
3858 if { { ac_try="$ac_link"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link") 2>&5
3866 ac_status=$?
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3870 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3871 # work properly (i.e., refer to `conftest.exe'), while it won't with
3872 # `rm'.
3873 for ac_file in conftest.exe conftest conftest.*; do
3874 test -f "$ac_file" || continue
3875 case $ac_file in
3876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878 break;;
3879 * ) break;;
3880 esac
3881 done
3882 else
3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3886 See \`config.log' for more details" "$LINENO" 5; }
3888 rm -f conftest conftest$ac_cv_exeext
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3890 $as_echo "$ac_cv_exeext" >&6; }
3892 rm -f conftest.$ac_ext
3893 EXEEXT=$ac_cv_exeext
3894 ac_exeext=$EXEEXT
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 #include <stdio.h>
3899 main ()
3901 FILE *f = fopen ("conftest.out", "w");
3902 return ferror (f) || fclose (f) != 0;
3905 return 0;
3907 _ACEOF
3908 ac_clean_files="$ac_clean_files conftest.out"
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3912 $as_echo_n "checking whether we are cross compiling... " >&6; }
3913 if test "$cross_compiling" != yes; then
3914 { { ac_try="$ac_link"
3915 case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_link") 2>&5
3922 ac_status=$?
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }
3925 if { ac_try='./conftest$ac_cv_exeext'
3926 { { case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_try") 2>&5
3933 ac_status=$?
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }; }; then
3936 cross_compiling=no
3937 else
3938 if test "$cross_compiling" = maybe; then
3939 cross_compiling=yes
3940 else
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "cannot run C compiled programs.
3944 If you meant to cross compile, use \`--host'.
3945 See \`config.log' for more details" "$LINENO" 5; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3952 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3953 ac_clean_files=$ac_clean_files_save
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3963 main ()
3967 return 0;
3969 _ACEOF
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_compile") 2>&5
3979 ac_status=$?
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 for ac_file in conftest.o conftest.obj conftest.*; do
3983 test -f "$ac_file" || continue;
3984 case $ac_file in
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3987 break;;
3988 esac
3989 done
3990 else
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error $? "cannot compute suffix of object files: cannot compile
3997 See \`config.log' for more details" "$LINENO" 5; }
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4004 ac_objext=$OBJEXT
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4014 main ()
4016 #ifndef __GNUC__
4017 choke me
4018 #endif
4021 return 0;
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_compiler_gnu=yes
4026 else
4027 ac_compiler_gnu=no
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4036 GCC=yes
4037 else
4038 GCC=
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 ac_save_c_werror_flag=$ac_c_werror_flag
4048 ac_c_werror_flag=yes
4049 ac_cv_prog_cc_g=no
4050 CFLAGS="-g"
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4055 main ()
4059 return 0;
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_prog_cc_g=yes
4064 else
4065 CFLAGS=""
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4070 main ()
4074 return 0;
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4079 else
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4081 CFLAGS="-g"
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_prog_cc_g=yes
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_c_werror_flag=$ac_save_c_werror_flag
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106 CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108 if test "$GCC" = yes; then
4109 CFLAGS="-g -O2"
4110 else
4111 CFLAGS="-g"
4113 else
4114 if test "$GCC" = yes; then
4115 CFLAGS="-O2"
4116 else
4117 CFLAGS=
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 ac_cv_prog_cc_c89=no
4126 ac_save_CC=$CC
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129 #include <stdarg.h>
4130 #include <stdio.h>
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4137 char **p;
4138 int i;
4140 return p[i];
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4144 char *s;
4145 va_list v;
4146 va_start (v,p);
4147 s = g (p, va_arg (v,int));
4148 va_end (v);
4149 return s;
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4153 function prototypes and stuff, but not '\xHH' hex character constants.
4154 These don't provoke an error unfortunately, instead are silently treated
4155 as 'x'. The following induces an error, until -std is added to get
4156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4157 array size at least. It's necessary to write '\x00'==0 to get something
4158 that's true only with -std. */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162 inside strings and character constants. */
4163 #define FOO(x) 'x'
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170 int argc;
4171 char **argv;
4173 main ()
4175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4177 return 0;
4179 _ACEOF
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183 CC="$ac_save_CC $ac_arg"
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_c89=$ac_arg
4187 rm -f core conftest.err conftest.$ac_objext
4188 test "x$ac_cv_prog_cc_c89" != "xno" && break
4189 done
4190 rm -f conftest.$ac_ext
4191 CC=$ac_save_CC
4194 # AC_CACHE_VAL
4195 case "x$ac_cv_prog_cc_c89" in
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4199 xno)
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4203 CC="$CC $ac_cv_prog_cc_c89"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206 esac
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 depcc="$CC" am_compiler_list=
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4220 $as_echo_n "checking dependency style of $depcc... " >&6; }
4221 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4225 # We make a subdir and do the tests there. Otherwise we can end up
4226 # making bogus files that we don't know about and never remove. For
4227 # instance it was reported that on HP-UX the gcc test will end up
4228 # making a dummy file named `D' -- because `-MD' means `put the output
4229 # in D'.
4230 mkdir conftest.dir
4231 # Copy depcomp to subdir because otherwise we won't find it if we're
4232 # using a relative directory.
4233 cp "$am_depcomp" conftest.dir
4234 cd conftest.dir
4235 # We will build objects and dependencies in a subdirectory because
4236 # it helps to detect inapplicable dependency modes. For instance
4237 # both Tru64's cc and ICC support -MD to output dependencies as a
4238 # side effect of compilation, but ICC will put the dependencies in
4239 # the current directory while Tru64 will put them in the object
4240 # directory.
4241 mkdir sub
4243 am_cv_CC_dependencies_compiler_type=none
4244 if test "$am_compiler_list" = ""; then
4245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4247 am__universal=false
4248 case " $depcc " in #(
4249 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4250 esac
4252 for depmode in $am_compiler_list; do
4253 # Setup a source with many dependencies, because some compilers
4254 # like to wrap large dependency lists on column 80 (with \), and
4255 # we should not choose a depcomp mode which is confused by this.
4257 # We need to recreate these files for each test, as the compiler may
4258 # overwrite some of them when testing with obscure command lines.
4259 # This happens at least with the AIX C compiler.
4260 : > sub/conftest.c
4261 for i in 1 2 3 4 5 6; do
4262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4264 # Solaris 8's {/usr,}/bin/sh.
4265 touch sub/conftst$i.h
4266 done
4267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4269 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4270 # mode. It turns out that the SunPro C++ compiler does not properly
4271 # handle `-M -o', and we need to detect this. Also, some Intel
4272 # versions had trouble with output in subdirs
4273 am__obj=sub/conftest.${OBJEXT-o}
4274 am__minus_obj="-o $am__obj"
4275 case $depmode in
4276 gcc)
4277 # This depmode causes a compiler race in universal mode.
4278 test "$am__universal" = false || continue
4280 nosideeffect)
4281 # after this tag, mechanisms are not by side-effect, so they'll
4282 # only be used when explicitly requested
4283 if test "x$enable_dependency_tracking" = xyes; then
4284 continue
4285 else
4286 break
4289 msvisualcpp | msvcmsys)
4290 # This compiler won't grok `-c -o', but also, the minuso test has
4291 # not run yet. These depmodes are late enough in the game, and
4292 # so weak that their functioning should not be impacted.
4293 am__obj=conftest.${OBJEXT-o}
4294 am__minus_obj=
4296 none) break ;;
4297 esac
4298 if depmode=$depmode \
4299 source=sub/conftest.c object=$am__obj \
4300 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4301 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4302 >/dev/null 2>conftest.err &&
4303 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4304 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4305 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4306 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4307 # icc doesn't choke on unknown options, it will just issue warnings
4308 # or remarks (even with -Werror). So we grep stderr for any message
4309 # that says an option was ignored or not supported.
4310 # When given -MP, icc 7.0 and 7.1 complain thusly:
4311 # icc: Command line warning: ignoring option '-M'; no argument required
4312 # The diagnosis changed in icc 8.0:
4313 # icc: Command line remark: option '-MP' not supported
4314 if (grep 'ignoring option' conftest.err ||
4315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4316 am_cv_CC_dependencies_compiler_type=$depmode
4317 break
4320 done
4322 cd ..
4323 rm -rf conftest.dir
4324 else
4325 am_cv_CC_dependencies_compiler_type=none
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4330 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4331 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4334 test "x$enable_dependency_tracking" != xno \
4335 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4336 am__fastdepCC_TRUE=
4337 am__fastdepCC_FALSE='#'
4338 else
4339 am__fastdepCC_TRUE='#'
4340 am__fastdepCC_FALSE=
4345 ac_ext=c
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4351 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4352 # On Suns, sometimes $CPP names a directory.
4353 if test -n "$CPP" && test -d "$CPP"; then
4354 CPP=
4356 if test -z "$CPP"; then
4357 if test "${ac_cv_prog_CPP+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 # Double quotes because CPP needs to be expanded
4361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4363 ac_preproc_ok=false
4364 for ac_c_preproc_warn_flag in '' yes
4366 # Use a header file that comes with gcc, so configuring glibc
4367 # with a fresh cross-compiler works.
4368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4369 # <limits.h> exists even on freestanding compilers.
4370 # On the NeXT, cc -E runs the code through the compiler's parser,
4371 # not just through cpp. "Syntax error" is here to catch this case.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #ifdef __STDC__
4375 # include <limits.h>
4376 #else
4377 # include <assert.h>
4378 #endif
4379 Syntax error
4380 _ACEOF
4381 if ac_fn_c_try_cpp "$LINENO"; then :
4383 else
4384 # Broken: fails on valid input.
4385 continue
4387 rm -f conftest.err conftest.$ac_ext
4389 # OK, works on sane cases. Now check whether nonexistent headers
4390 # can be detected and how.
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393 #include <ac_nonexistent.h>
4394 _ACEOF
4395 if ac_fn_c_try_cpp "$LINENO"; then :
4396 # Broken: success on invalid input.
4397 continue
4398 else
4399 # Passes both tests.
4400 ac_preproc_ok=:
4401 break
4403 rm -f conftest.err conftest.$ac_ext
4405 done
4406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4407 rm -f conftest.err conftest.$ac_ext
4408 if $ac_preproc_ok; then :
4409 break
4412 done
4413 ac_cv_prog_CPP=$CPP
4416 CPP=$ac_cv_prog_CPP
4417 else
4418 ac_cv_prog_CPP=$CPP
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4421 $as_echo "$CPP" >&6; }
4422 ac_preproc_ok=false
4423 for ac_c_preproc_warn_flag in '' yes
4425 # Use a header file that comes with gcc, so configuring glibc
4426 # with a fresh cross-compiler works.
4427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 # <limits.h> exists even on freestanding compilers.
4429 # On the NeXT, cc -E runs the code through the compiler's parser,
4430 # not just through cpp. "Syntax error" is here to catch this case.
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #ifdef __STDC__
4434 # include <limits.h>
4435 #else
4436 # include <assert.h>
4437 #endif
4438 Syntax error
4439 _ACEOF
4440 if ac_fn_c_try_cpp "$LINENO"; then :
4442 else
4443 # Broken: fails on valid input.
4444 continue
4446 rm -f conftest.err conftest.$ac_ext
4448 # OK, works on sane cases. Now check whether nonexistent headers
4449 # can be detected and how.
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 #include <ac_nonexistent.h>
4453 _ACEOF
4454 if ac_fn_c_try_cpp "$LINENO"; then :
4455 # Broken: success on invalid input.
4456 continue
4457 else
4458 # Passes both tests.
4459 ac_preproc_ok=:
4460 break
4462 rm -f conftest.err conftest.$ac_ext
4464 done
4465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466 rm -f conftest.err conftest.$ac_ext
4467 if $ac_preproc_ok; then :
4469 else
4470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4472 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4473 See \`config.log' for more details" "$LINENO" 5; }
4476 ac_ext=c
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4484 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4485 if test "${ac_cv_path_GREP+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -z "$GREP"; then
4489 ac_path_GREP_found=false
4490 # Loop through the user's path and test for each of PROGNAME-LIST
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_prog in grep ggrep; do
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4499 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4500 # Check for GNU ac_path_GREP and select it if it is found.
4501 # Check for GNU $ac_path_GREP
4502 case `"$ac_path_GREP" --version 2>&1` in
4503 *GNU*)
4504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4506 ac_count=0
4507 $as_echo_n 0123456789 >"conftest.in"
4508 while :
4510 cat "conftest.in" "conftest.in" >"conftest.tmp"
4511 mv "conftest.tmp" "conftest.in"
4512 cp "conftest.in" "conftest.nl"
4513 $as_echo 'GREP' >> "conftest.nl"
4514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4516 as_fn_arith $ac_count + 1 && ac_count=$as_val
4517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4518 # Best one so far, save it but keep looking for a better one
4519 ac_cv_path_GREP="$ac_path_GREP"
4520 ac_path_GREP_max=$ac_count
4522 # 10*(2^10) chars as input seems more than enough
4523 test $ac_count -gt 10 && break
4524 done
4525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526 esac
4528 $ac_path_GREP_found && break 3
4529 done
4530 done
4531 done
4532 IFS=$as_save_IFS
4533 if test -z "$ac_cv_path_GREP"; then
4534 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 else
4537 ac_cv_path_GREP=$GREP
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4542 $as_echo "$ac_cv_path_GREP" >&6; }
4543 GREP="$ac_cv_path_GREP"
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4547 $as_echo_n "checking for egrep... " >&6; }
4548 if test "${ac_cv_path_EGREP+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4552 then ac_cv_path_EGREP="$GREP -E"
4553 else
4554 if test -z "$EGREP"; then
4555 ac_path_EGREP_found=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_prog in egrep; do
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4566 # Check for GNU ac_path_EGREP and select it if it is found.
4567 # Check for GNU $ac_path_EGREP
4568 case `"$ac_path_EGREP" --version 2>&1` in
4569 *GNU*)
4570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4572 ac_count=0
4573 $as_echo_n 0123456789 >"conftest.in"
4574 while :
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 $as_echo 'EGREP' >> "conftest.nl"
4580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4582 as_fn_arith $ac_count + 1 && ac_count=$as_val
4583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_EGREP="$ac_path_EGREP"
4586 ac_path_EGREP_max=$ac_count
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4590 done
4591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592 esac
4594 $ac_path_EGREP_found && break 3
4595 done
4596 done
4597 done
4598 IFS=$as_save_IFS
4599 if test -z "$ac_cv_path_EGREP"; then
4600 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4602 else
4603 ac_cv_path_EGREP=$EGREP
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4609 $as_echo "$ac_cv_path_EGREP" >&6; }
4610 EGREP="$ac_cv_path_EGREP"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4614 $as_echo_n "checking for ANSI C header files... " >&6; }
4615 if test "${ac_cv_header_stdc+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 #include <stdlib.h>
4621 #include <stdarg.h>
4622 #include <string.h>
4623 #include <float.h>
4626 main ()
4630 return 0;
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_cv_header_stdc=yes
4635 else
4636 ac_cv_header_stdc=no
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 if test $ac_cv_header_stdc = yes; then
4641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 #include <string.h>
4646 _ACEOF
4647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4648 $EGREP "memchr" >/dev/null 2>&1; then :
4650 else
4651 ac_cv_header_stdc=no
4653 rm -f conftest*
4657 if test $ac_cv_header_stdc = yes; then
4658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661 #include <stdlib.h>
4663 _ACEOF
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665 $EGREP "free" >/dev/null 2>&1; then :
4667 else
4668 ac_cv_header_stdc=no
4670 rm -f conftest*
4674 if test $ac_cv_header_stdc = yes; then
4675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4676 if test "$cross_compiling" = yes; then :
4678 else
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 #include <ctype.h>
4682 #include <stdlib.h>
4683 #if ((' ' & 0x0FF) == 0x020)
4684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4686 #else
4687 # define ISLOWER(c) \
4688 (('a' <= (c) && (c) <= 'i') \
4689 || ('j' <= (c) && (c) <= 'r') \
4690 || ('s' <= (c) && (c) <= 'z'))
4691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4692 #endif
4694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4696 main ()
4698 int i;
4699 for (i = 0; i < 256; i++)
4700 if (XOR (islower (i), ISLOWER (i))
4701 || toupper (i) != TOUPPER (i))
4702 return 2;
4703 return 0;
4705 _ACEOF
4706 if ac_fn_c_try_run "$LINENO"; then :
4708 else
4709 ac_cv_header_stdc=no
4711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4712 conftest.$ac_objext conftest.beam conftest.$ac_ext
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4718 $as_echo "$ac_cv_header_stdc" >&6; }
4719 if test $ac_cv_header_stdc = yes; then
4721 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4725 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4726 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4727 inttypes.h stdint.h unistd.h
4728 do :
4729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4730 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4733 cat >>confdefs.h <<_ACEOF
4734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4735 _ACEOF
4739 done
4743 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4744 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4745 MINIX=yes
4746 else
4747 MINIX=
4751 if test "$MINIX" = yes; then
4753 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4756 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4759 $as_echo "#define _MINIX 1" >>confdefs.h
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4765 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4766 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4772 # define __EXTENSIONS__ 1
4773 $ac_includes_default
4775 main ()
4779 return 0;
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4783 ac_cv_safe_to_define___extensions__=yes
4784 else
4785 ac_cv_safe_to_define___extensions__=no
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4790 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4791 test $ac_cv_safe_to_define___extensions__ = yes &&
4792 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4794 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4796 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4798 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4800 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4804 # Check whether --enable-lzo was given.
4805 if test "${enable_lzo+set}" = set; then :
4806 enableval=$enable_lzo;
4807 else
4808 enable_lzo="yes"
4813 # Check whether --enable-lzo-stub was given.
4814 if test "${enable_lzo_stub+set}" = set; then :
4815 enableval=$enable_lzo_stub;
4816 else
4817 enable_lzo_stub="no"
4822 # Check whether --enable-crypto was given.
4823 if test "${enable_crypto+set}" = set; then :
4824 enableval=$enable_crypto;
4825 else
4826 enable_crypto="yes"
4831 # Check whether --enable-ssl was given.
4832 if test "${enable_ssl+set}" = set; then :
4833 enableval=$enable_ssl;
4834 else
4835 enable_ssl="yes"
4840 # Check whether --enable-x509-alt-username was given.
4841 if test "${enable_x509_alt_username+set}" = set; then :
4842 enableval=$enable_x509_alt_username;
4843 else
4844 enable_x509_alt_username="no"
4849 # Check whether --enable-multi was given.
4850 if test "${enable_multi+set}" = set; then :
4851 enableval=$enable_multi;
4852 else
4853 enable_multi="yes"
4858 # Check whether --enable-server was given.
4859 if test "${enable_server+set}" = set; then :
4860 enableval=$enable_server;
4861 else
4862 enable_server="yes"
4867 # Check whether --enable-plugins was given.
4868 if test "${enable_plugins+set}" = set; then :
4869 enableval=$enable_plugins;
4870 else
4871 enable_plugins="yes"
4876 # Check whether --enable-eurephia was given.
4877 if test "${enable_eurephia+set}" = set; then :
4878 enableval=$enable_eurephia;
4879 else
4880 enable_eurephia="yes"
4885 # Check whether --enable-management was given.
4886 if test "${enable_management+set}" = set; then :
4887 enableval=$enable_management;
4888 else
4889 enable_management="yes"
4894 # Check whether --enable-pkcs11 was given.
4895 if test "${enable_pkcs11+set}" = set; then :
4896 enableval=$enable_pkcs11;
4897 else
4898 enable_pkcs11="no"
4903 # Check whether --enable-socks was given.
4904 if test "${enable_socks+set}" = set; then :
4905 enableval=$enable_socks;
4906 else
4907 enable_socks="yes"
4912 # Check whether --enable-http-proxy was given.
4913 if test "${enable_http_proxy+set}" = set; then :
4914 enableval=$enable_http_proxy;
4915 else
4916 enable_http_proxy="yes"
4921 # Check whether --enable-fragment was given.
4922 if test "${enable_fragment+set}" = set; then :
4923 enableval=$enable_fragment;
4924 else
4925 enable_fragment="yes"
4930 # Check whether --enable-multihome was given.
4931 if test "${enable_multihome+set}" = set; then :
4932 enableval=$enable_multihome;
4933 else
4934 enable_multihome="yes"
4939 # Check whether --enable-port-share was given.
4940 if test "${enable_port_share+set}" = set; then :
4941 enableval=$enable_port_share;
4942 else
4943 enable_port_share="yes"
4948 # Check whether --enable-debug was given.
4949 if test "${enable_debug+set}" = set; then :
4950 enableval=$enable_debug;
4951 else
4952 enable_debug="yes"
4957 # Check whether --enable-small was given.
4958 if test "${enable_small+set}" = set; then :
4959 enableval=$enable_small;
4960 else
4961 enable_small="no"
4966 # Check whether --enable-password-save was given.
4967 if test "${enable_password_save+set}" = set; then :
4968 enableval=$enable_password_save;
4969 else
4970 enable_password_save="no"
4975 # Check whether --enable-iproute2 was given.
4976 if test "${enable_iproute2+set}" = set; then :
4977 enableval=$enable_iproute2;
4978 else
4979 enable_iproute2="no"
4984 # Check whether --enable-def-auth was given.
4985 if test "${enable_def_auth+set}" = set; then :
4986 enableval=$enable_def_auth;
4987 else
4988 enable_def_auth="yes"
4993 # Check whether --enable-pf was given.
4994 if test "${enable_pf+set}" = set; then :
4995 enableval=$enable_pf;
4996 else
4997 enable_pf="yes"
5002 # Check whether --enable-plugin-auth-pam was given.
5003 if test "${enable_plugin_auth_pam+set}" = set; then :
5004 enableval=$enable_plugin_auth_pam;
5005 else
5007 case "$host" in
5008 *-*-openbsd*) enable_plugin_auth_pam="no";;
5009 *-mingw*) enable_plugin_auth_pam="no";;
5010 *) enable_plugin_auth_pam="yes";;
5011 esac
5017 # Check whether --enable-plugin-down-root was given.
5018 if test "${enable_plugin_down_root+set}" = set; then :
5019 enableval=$enable_plugin_down_root;
5020 else
5022 case "$host" in
5023 *-mingw*) enable_plugin_down_root="no";;
5024 *) enable_plugin_down_root="yes";;
5025 esac
5031 # Check whether --enable-pam-dlopen was given.
5032 if test "${enable_pam_dlopen+set}" = set; then :
5033 enableval=$enable_pam_dlopen;
5034 else
5035 enable_pam_dlopen="no"
5040 # Check whether --enable-strict was given.
5041 if test "${enable_strict+set}" = set; then :
5042 enableval=$enable_strict;
5043 else
5044 enable_strict="no"
5049 # Check whether --enable-pedantic was given.
5050 if test "${enable_pedantic+set}" = set; then :
5051 enableval=$enable_pedantic;
5052 else
5053 enable_pedantic="no"
5058 # Check whether --enable-strict-options was given.
5059 if test "${enable_strict_options+set}" = set; then :
5060 enableval=$enable_strict_options;
5061 else
5062 enable_strict_options="no"
5067 # Check whether --enable-selinux was given.
5068 if test "${enable_selinux+set}" = set; then :
5069 enableval=$enable_selinux;
5070 else
5071 enable_selinux="no"
5076 # Check whether --enable-systemd was given.
5077 if test "${enable_systemd+set}" = set; then :
5078 enableval=$enable_systemd;
5079 else
5080 enable_systemd="no"
5086 # Check whether --with-special-build was given.
5087 if test "${with_special_build+set}" = set; then :
5088 withval=$with_special_build; test -n "${withval}" &&
5089 cat >>confdefs.h <<_ACEOF
5090 #define CONFIGURE_SPECIAL_BUILD "${withval}"
5091 _ACEOF
5098 # Check whether --with-mem-check was given.
5099 if test "${with_mem_check+set}" = set; then :
5100 withval=$with_mem_check;
5101 case "${withval}" in
5102 dmalloc|valgrind|ssl|no) ;;
5103 *) as_fn_error $? "bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5104 esac
5106 else
5107 with_mem_check="no"
5113 # Check whether --with-crypto-library was given.
5114 if test "${with_crypto_library+set}" = set; then :
5115 withval=$with_crypto_library;
5116 case "${withval}" in
5117 openssl|polarssl) ;;
5118 *) as_fn_error $? "bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5119 esac
5121 else
5122 with_crypto_library="openssl"
5128 # Check whether --with-plugindir was given.
5129 if test "${with_plugindir+set}" = set; then :
5130 withval=$with_plugindir;
5131 else
5132 with_plugindir="\$(libdir)/openvpn/plugins"
5139 cat >>confdefs.h <<_ACEOF
5140 #define TARGET_ALIAS "${host}"
5141 _ACEOF
5143 case "$host" in
5144 *-*-linux*)
5146 $as_echo "#define TARGET_LINUX 1" >>confdefs.h
5149 cat >>confdefs.h <<_ACEOF
5150 #define TARGET_PREFIX "L"
5151 _ACEOF
5154 *-*-solaris*)
5156 $as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5159 cat >>confdefs.h <<_ACEOF
5160 #define TARGET_PREFIX "S"
5161 _ACEOF
5164 *-*-openbsd*)
5166 $as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5169 cat >>confdefs.h <<_ACEOF
5170 #define TARGET_PREFIX "O"
5171 _ACEOF
5174 *-*-freebsd*)
5176 $as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5179 cat >>confdefs.h <<_ACEOF
5180 #define TARGET_PREFIX "F"
5181 _ACEOF
5184 *-*-netbsd*)
5186 $as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5189 cat >>confdefs.h <<_ACEOF
5190 #define TARGET_PREFIX "N"
5191 _ACEOF
5194 *-*-darwin*)
5196 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5199 cat >>confdefs.h <<_ACEOF
5200 #define TARGET_PREFIX "M"
5201 _ACEOF
5203 have_tap_header="yes"
5204 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
5206 *-mingw*)
5208 $as_echo "#define TARGET_WIN32 1" >>confdefs.h
5211 cat >>confdefs.h <<_ACEOF
5212 #define TARGET_PREFIX "W"
5213 _ACEOF
5215 CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5216 CPPFLAGS="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
5217 WIN32=yes
5219 *-*-dragonfly*)
5221 $as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5224 cat >>confdefs.h <<_ACEOF
5225 #define TARGET_PREFIX "D"
5226 _ACEOF
5231 cat >>confdefs.h <<_ACEOF
5232 #define TARGET_PREFIX "X"
5233 _ACEOF
5235 have_tap_header="yes"
5237 esac
5246 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5247 if test -n "$ac_tool_prefix"; then
5248 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5249 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 case $PKG_CONFIG in
5256 [\\/]* | ?:[\\/]*)
5257 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5271 done
5272 done
5273 IFS=$as_save_IFS
5276 esac
5278 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5279 if test -n "$PKG_CONFIG"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5281 $as_echo "$PKG_CONFIG" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5289 if test -z "$ac_cv_path_PKG_CONFIG"; then
5290 ac_pt_PKG_CONFIG=$PKG_CONFIG
5291 # Extract the first word of "pkg-config", so it can be a program name with args.
5292 set dummy pkg-config; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 case $ac_pt_PKG_CONFIG in
5299 [\\/]* | ?:[\\/]*)
5300 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5319 esac
5321 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5322 if test -n "$ac_pt_PKG_CONFIG"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5324 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5330 if test "x$ac_pt_PKG_CONFIG" = x; then
5331 PKG_CONFIG=""
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334 yes:)
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337 ac_tool_warned=yes ;;
5338 esac
5339 PKG_CONFIG=$ac_pt_PKG_CONFIG
5341 else
5342 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5346 if test -n "$PKG_CONFIG"; then
5347 _pkg_min_version=0.9.0
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5349 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5350 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5352 $as_echo "yes" >&6; }
5353 else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5356 PKG_CONFIG=""
5359 ac_ext=c
5360 ac_cpp='$CPP $CPPFLAGS'
5361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5365 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5366 # On Suns, sometimes $CPP names a directory.
5367 if test -n "$CPP" && test -d "$CPP"; then
5368 CPP=
5370 if test -z "$CPP"; then
5371 if test "${ac_cv_prog_CPP+set}" = set; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 # Double quotes because CPP needs to be expanded
5375 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5377 ac_preproc_ok=false
5378 for ac_c_preproc_warn_flag in '' yes
5380 # Use a header file that comes with gcc, so configuring glibc
5381 # with a fresh cross-compiler works.
5382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383 # <limits.h> exists even on freestanding compilers.
5384 # On the NeXT, cc -E runs the code through the compiler's parser,
5385 # not just through cpp. "Syntax error" is here to catch this case.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #ifdef __STDC__
5389 # include <limits.h>
5390 #else
5391 # include <assert.h>
5392 #endif
5393 Syntax error
5394 _ACEOF
5395 if ac_fn_c_try_cpp "$LINENO"; then :
5397 else
5398 # Broken: fails on valid input.
5399 continue
5401 rm -f conftest.err conftest.$ac_ext
5403 # OK, works on sane cases. Now check whether nonexistent headers
5404 # can be detected and how.
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5408 _ACEOF
5409 if ac_fn_c_try_cpp "$LINENO"; then :
5410 # Broken: success on invalid input.
5411 continue
5412 else
5413 # Passes both tests.
5414 ac_preproc_ok=:
5415 break
5417 rm -f conftest.err conftest.$ac_ext
5419 done
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.$ac_ext
5422 if $ac_preproc_ok; then :
5423 break
5426 done
5427 ac_cv_prog_CPP=$CPP
5430 CPP=$ac_cv_prog_CPP
5431 else
5432 ac_cv_prog_CPP=$CPP
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5435 $as_echo "$CPP" >&6; }
5436 ac_preproc_ok=false
5437 for ac_c_preproc_warn_flag in '' yes
5439 # Use a header file that comes with gcc, so configuring glibc
5440 # with a fresh cross-compiler works.
5441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5442 # <limits.h> exists even on freestanding compilers.
5443 # On the NeXT, cc -E runs the code through the compiler's parser,
5444 # not just through cpp. "Syntax error" is here to catch this case.
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 #ifdef __STDC__
5448 # include <limits.h>
5449 #else
5450 # include <assert.h>
5451 #endif
5452 Syntax error
5453 _ACEOF
5454 if ac_fn_c_try_cpp "$LINENO"; then :
5456 else
5457 # Broken: fails on valid input.
5458 continue
5460 rm -f conftest.err conftest.$ac_ext
5462 # OK, works on sane cases. Now check whether nonexistent headers
5463 # can be detected and how.
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466 #include <ac_nonexistent.h>
5467 _ACEOF
5468 if ac_fn_c_try_cpp "$LINENO"; then :
5469 # Broken: success on invalid input.
5470 continue
5471 else
5472 # Passes both tests.
5473 ac_preproc_ok=:
5474 break
5476 rm -f conftest.err conftest.$ac_ext
5478 done
5479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5480 rm -f conftest.err conftest.$ac_ext
5481 if $ac_preproc_ok; then :
5483 else
5484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5486 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5487 See \`config.log' for more details" "$LINENO" 5; }
5490 ac_ext=c
5491 ac_cpp='$CPP $CPPFLAGS'
5492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5498 $as_echo_n "checking whether ln -s works... " >&6; }
5499 LN_S=$as_ln_s
5500 if test "$LN_S" = "ln -s"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5502 $as_echo "yes" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5505 $as_echo "no, using $LN_S" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5509 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5510 if test "${ac_cv_path_SED+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5514 for ac_i in 1 2 3 4 5 6 7; do
5515 ac_script="$ac_script$as_nl$ac_script"
5516 done
5517 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5518 { ac_script=; unset ac_script;}
5519 if test -z "$SED"; then
5520 ac_path_SED_found=false
5521 # Loop through the user's path and test for each of PROGNAME-LIST
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_prog in sed gsed; do
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5530 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5531 # Check for GNU ac_path_SED and select it if it is found.
5532 # Check for GNU $ac_path_SED
5533 case `"$ac_path_SED" --version 2>&1` in
5534 *GNU*)
5535 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5537 ac_count=0
5538 $as_echo_n 0123456789 >"conftest.in"
5539 while :
5541 cat "conftest.in" "conftest.in" >"conftest.tmp"
5542 mv "conftest.tmp" "conftest.in"
5543 cp "conftest.in" "conftest.nl"
5544 $as_echo '' >> "conftest.nl"
5545 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5547 as_fn_arith $ac_count + 1 && ac_count=$as_val
5548 if test $ac_count -gt ${ac_path_SED_max-0}; then
5549 # Best one so far, save it but keep looking for a better one
5550 ac_cv_path_SED="$ac_path_SED"
5551 ac_path_SED_max=$ac_count
5553 # 10*(2^10) chars as input seems more than enough
5554 test $ac_count -gt 10 && break
5555 done
5556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5557 esac
5559 $ac_path_SED_found && break 3
5560 done
5561 done
5562 done
5563 IFS=$as_save_IFS
5564 if test -z "$ac_cv_path_SED"; then
5565 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5567 else
5568 ac_cv_path_SED=$SED
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5573 $as_echo "$ac_cv_path_SED" >&6; }
5574 SED="$ac_cv_path_SED"
5575 rm -f conftest.sed
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5578 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5579 set x ${MAKE-make}
5580 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5581 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 cat >conftest.make <<\_ACEOF
5585 SHELL = /bin/sh
5586 all:
5587 @echo '@@@%%%=$(MAKE)=@@@%%%'
5588 _ACEOF
5589 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5590 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5591 *@@@%%%=?*=@@@%%%*)
5592 eval ac_cv_prog_make_${ac_make}_set=yes;;
5594 eval ac_cv_prog_make_${ac_make}_set=no;;
5595 esac
5596 rm -f conftest.make
5598 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5600 $as_echo "yes" >&6; }
5601 SET_MAKE=
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 SET_MAKE="MAKE=${MAKE-make}"
5612 # tests
5615 for ac_prog in ifconfig
5617 # Extract the first word of "$ac_prog", so it can be a program name with args.
5618 set dummy $ac_prog; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if test "${ac_cv_path_IFCONFIG+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 case $IFCONFIG in
5625 [\\/]* | ?:[\\/]*)
5626 ac_cv_path_IFCONFIG="$IFCONFIG" # Let the user override the test with a path.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5631 for as_dir in $as_dummy
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5641 done
5642 done
5643 IFS=$as_save_IFS
5646 esac
5648 IFCONFIG=$ac_cv_path_IFCONFIG
5649 if test -n "$IFCONFIG"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
5651 $as_echo "$IFCONFIG" >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5658 test -n "$IFCONFIG" && break
5659 done
5661 for ac_prog in route
5663 # Extract the first word of "$ac_prog", so it can be a program name with args.
5664 set dummy $ac_prog; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_path_ROUTE+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 case $ROUTE in
5671 [\\/]* | ?:[\\/]*)
5672 ac_cv_path_ROUTE="$ROUTE" # Let the user override the test with a path.
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5677 for as_dir in $as_dummy
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683 ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5689 IFS=$as_save_IFS
5692 esac
5694 ROUTE=$ac_cv_path_ROUTE
5695 if test -n "$ROUTE"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
5697 $as_echo "$ROUTE" >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5704 test -n "$ROUTE" && break
5705 done
5707 for ac_prog in ip
5709 # Extract the first word of "$ac_prog", so it can be a program name with args.
5710 set dummy $ac_prog; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if test "${ac_cv_path_IPROUTE+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 case $IPROUTE in
5717 [\\/]* | ?:[\\/]*)
5718 ac_cv_path_IPROUTE="$IPROUTE" # Let the user override the test with a path.
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5723 for as_dir in $as_dummy
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5733 done
5734 done
5735 IFS=$as_save_IFS
5738 esac
5740 IPROUTE=$ac_cv_path_IPROUTE
5741 if test -n "$IPROUTE"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
5743 $as_echo "$IPROUTE" >&6; }
5744 else
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5750 test -n "$IPROUTE" && break
5751 done
5753 for ac_prog in netstat
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_prog_NETSTAT+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$NETSTAT"; then
5763 ac_cv_prog_NETSTAT="$NETSTAT" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
5767 for as_dir in $as_dummy
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_NETSTAT="$ac_prog"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5777 done
5778 done
5779 IFS=$as_save_IFS
5783 NETSTAT=$ac_cv_prog_NETSTAT
5784 if test -n "$NETSTAT"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
5786 $as_echo "$NETSTAT" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5793 test -n "$NETSTAT" && break
5794 done
5795 test -n "$NETSTAT" || NETSTAT="netstat"
5796 # tests
5797 for ac_prog in man2html
5799 # Extract the first word of "$ac_prog", so it can be a program name with args.
5800 set dummy $ac_prog; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_prog_MAN2HTML+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 if test -n "$MAN2HTML"; then
5807 ac_cv_prog_MAN2HTML="$MAN2HTML" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_prog_MAN2HTML="$ac_prog"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5820 done
5821 done
5822 IFS=$as_save_IFS
5826 MAN2HTML=$ac_cv_prog_MAN2HTML
5827 if test -n "$MAN2HTML"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
5829 $as_echo "$MAN2HTML" >&6; }
5830 else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5836 test -n "$MAN2HTML" && break
5837 done
5839 for ac_prog in git
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy $ac_prog; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_GIT+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if test -n "$GIT"; then
5849 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_GIT="$ac_prog"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5862 done
5863 done
5864 IFS=$as_save_IFS
5868 GIT=$ac_cv_prog_GIT
5869 if test -n "$GIT"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5871 $as_echo "$GIT" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5878 test -n "$GIT" && break
5879 done
5880 # optional
5882 cat >>confdefs.h <<_ACEOF
5883 #define IFCONFIG_PATH "$IFCONFIG"
5884 _ACEOF
5887 cat >>confdefs.h <<_ACEOF
5888 #define IPROUTE_PATH "$IPROUTE"
5889 _ACEOF
5892 cat >>confdefs.h <<_ACEOF
5893 #define ROUTE_PATH "$ROUTE"
5894 _ACEOF
5898 # Libtool
5901 case `pwd` in
5902 *\ * | *\ *)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5904 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5905 esac
5909 macro_version='2.2.10'
5910 macro_revision='1.3175'
5924 ltmain="$ac_aux_dir/ltmain.sh"
5926 # Backslashify metacharacters that are still active within
5927 # double-quoted strings.
5928 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5930 # Same as above, but do not quote variable references.
5931 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5933 # Sed substitution to delay expansion of an escaped shell variable in a
5934 # double_quote_subst'ed string.
5935 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5937 # Sed substitution to delay expansion of an escaped single quote.
5938 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5940 # Sed substitution to avoid accidental globbing in evaled expressions
5941 no_glob_subst='s/\*/\\\*/g'
5943 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5944 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5945 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5948 $as_echo_n "checking how to print strings... " >&6; }
5949 # Test print first, because it will be a builtin if present.
5950 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5951 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5952 ECHO='print -r --'
5953 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5954 ECHO='printf %s\n'
5955 else
5956 # Use this function as a fallback that always works.
5957 func_fallback_echo ()
5959 eval 'cat <<_LTECHO_EOF
5961 _LTECHO_EOF'
5963 ECHO='func_fallback_echo'
5966 # func_echo_all arg...
5967 # Invoke $ECHO with all args, space-separated.
5968 func_echo_all ()
5970 $ECHO ""
5973 case "$ECHO" in
5974 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5975 $as_echo "printf" >&6; } ;;
5976 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5977 $as_echo "print -r" >&6; } ;;
5978 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5979 $as_echo "cat" >&6; } ;;
5980 esac
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5996 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5997 if test "${ac_cv_path_SED+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6001 for ac_i in 1 2 3 4 5 6 7; do
6002 ac_script="$ac_script$as_nl$ac_script"
6003 done
6004 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6005 { ac_script=; unset ac_script;}
6006 if test -z "$SED"; then
6007 ac_path_SED_found=false
6008 # Loop through the user's path and test for each of PROGNAME-LIST
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_prog in sed gsed; do
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6017 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6018 # Check for GNU ac_path_SED and select it if it is found.
6019 # Check for GNU $ac_path_SED
6020 case `"$ac_path_SED" --version 2>&1` in
6021 *GNU*)
6022 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6024 ac_count=0
6025 $as_echo_n 0123456789 >"conftest.in"
6026 while :
6028 cat "conftest.in" "conftest.in" >"conftest.tmp"
6029 mv "conftest.tmp" "conftest.in"
6030 cp "conftest.in" "conftest.nl"
6031 $as_echo '' >> "conftest.nl"
6032 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6034 as_fn_arith $ac_count + 1 && ac_count=$as_val
6035 if test $ac_count -gt ${ac_path_SED_max-0}; then
6036 # Best one so far, save it but keep looking for a better one
6037 ac_cv_path_SED="$ac_path_SED"
6038 ac_path_SED_max=$ac_count
6040 # 10*(2^10) chars as input seems more than enough
6041 test $ac_count -gt 10 && break
6042 done
6043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6044 esac
6046 $ac_path_SED_found && break 3
6047 done
6048 done
6049 done
6050 IFS=$as_save_IFS
6051 if test -z "$ac_cv_path_SED"; then
6052 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6054 else
6055 ac_cv_path_SED=$SED
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6060 $as_echo "$ac_cv_path_SED" >&6; }
6061 SED="$ac_cv_path_SED"
6062 rm -f conftest.sed
6064 test -z "$SED" && SED=sed
6065 Xsed="$SED -e 1s/^X//"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6078 $as_echo_n "checking for fgrep... " >&6; }
6079 if test "${ac_cv_path_FGREP+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6083 then ac_cv_path_FGREP="$GREP -F"
6084 else
6085 if test -z "$FGREP"; then
6086 ac_path_FGREP_found=false
6087 # Loop through the user's path and test for each of PROGNAME-LIST
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_prog in fgrep; do
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6096 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6097 # Check for GNU ac_path_FGREP and select it if it is found.
6098 # Check for GNU $ac_path_FGREP
6099 case `"$ac_path_FGREP" --version 2>&1` in
6100 *GNU*)
6101 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6103 ac_count=0
6104 $as_echo_n 0123456789 >"conftest.in"
6105 while :
6107 cat "conftest.in" "conftest.in" >"conftest.tmp"
6108 mv "conftest.tmp" "conftest.in"
6109 cp "conftest.in" "conftest.nl"
6110 $as_echo 'FGREP' >> "conftest.nl"
6111 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6113 as_fn_arith $ac_count + 1 && ac_count=$as_val
6114 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6115 # Best one so far, save it but keep looking for a better one
6116 ac_cv_path_FGREP="$ac_path_FGREP"
6117 ac_path_FGREP_max=$ac_count
6119 # 10*(2^10) chars as input seems more than enough
6120 test $ac_count -gt 10 && break
6121 done
6122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6123 esac
6125 $ac_path_FGREP_found && break 3
6126 done
6127 done
6128 done
6129 IFS=$as_save_IFS
6130 if test -z "$ac_cv_path_FGREP"; then
6131 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6133 else
6134 ac_cv_path_FGREP=$FGREP
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6140 $as_echo "$ac_cv_path_FGREP" >&6; }
6141 FGREP="$ac_cv_path_FGREP"
6144 test -z "$GREP" && GREP=grep
6164 # Check whether --with-gnu-ld was given.
6165 if test "${with_gnu_ld+set}" = set; then :
6166 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6167 else
6168 with_gnu_ld=no
6171 ac_prog=ld
6172 if test "$GCC" = yes; then
6173 # Check if gcc -print-prog-name=ld gives a path.
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6175 $as_echo_n "checking for ld used by $CC... " >&6; }
6176 case $host in
6177 *-*-mingw*)
6178 # gcc leaves a trailing carriage return which upsets mingw
6179 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6181 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6182 esac
6183 case $ac_prog in
6184 # Accept absolute paths.
6185 [\\/]* | ?:[\\/]*)
6186 re_direlt='/[^/][^/]*/\.\./'
6187 # Canonicalize the pathname of ld
6188 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6189 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6190 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6191 done
6192 test -z "$LD" && LD="$ac_prog"
6195 # If it fails, then pretend we aren't using GCC.
6196 ac_prog=ld
6199 # If it is relative, then search for the first ld in PATH.
6200 with_gnu_ld=unknown
6202 esac
6203 elif test "$with_gnu_ld" = yes; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6205 $as_echo_n "checking for GNU ld... " >&6; }
6206 else
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6208 $as_echo_n "checking for non-GNU ld... " >&6; }
6210 if test "${lt_cv_path_LD+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -z "$LD"; then
6214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6215 for ac_dir in $PATH; do
6216 IFS="$lt_save_ifs"
6217 test -z "$ac_dir" && ac_dir=.
6218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6219 lt_cv_path_LD="$ac_dir/$ac_prog"
6220 # Check to see if the program is GNU ld. I'd rather use --version,
6221 # but apparently some variants of GNU ld only accept -v.
6222 # Break only if it was the GNU/non-GNU ld that we prefer.
6223 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6224 *GNU* | *'with BFD'*)
6225 test "$with_gnu_ld" != no && break
6228 test "$with_gnu_ld" != yes && break
6230 esac
6232 done
6233 IFS="$lt_save_ifs"
6234 else
6235 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6239 LD="$lt_cv_path_LD"
6240 if test -n "$LD"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6242 $as_echo "$LD" >&6; }
6243 else
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6247 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6249 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6250 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6254 case `$LD -v 2>&1 </dev/null` in
6255 *GNU* | *'with BFD'*)
6256 lt_cv_prog_gnu_ld=yes
6259 lt_cv_prog_gnu_ld=no
6261 esac
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6264 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6265 with_gnu_ld=$lt_cv_prog_gnu_ld
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6276 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6277 if test "${lt_cv_path_NM+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 if test -n "$NM"; then
6281 # Let the user override the test.
6282 lt_cv_path_NM="$NM"
6283 else
6284 lt_nm_to_check="${ac_tool_prefix}nm"
6285 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6286 lt_nm_to_check="$lt_nm_to_check nm"
6288 for lt_tmp_nm in $lt_nm_to_check; do
6289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6290 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6291 IFS="$lt_save_ifs"
6292 test -z "$ac_dir" && ac_dir=.
6293 tmp_nm="$ac_dir/$lt_tmp_nm"
6294 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6295 # Check to see if the nm accepts a BSD-compat flag.
6296 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6297 # nm: unknown option "B" ignored
6298 # Tru64's nm complains that /dev/null is an invalid object file
6299 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6300 */dev/null* | *'Invalid file or object type'*)
6301 lt_cv_path_NM="$tmp_nm -B"
6302 break
6305 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6306 */dev/null*)
6307 lt_cv_path_NM="$tmp_nm -p"
6308 break
6311 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6312 continue # so that we can try to find one that supports BSD flags
6314 esac
6316 esac
6318 done
6319 IFS="$lt_save_ifs"
6320 done
6321 : ${lt_cv_path_NM=no}
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6325 $as_echo "$lt_cv_path_NM" >&6; }
6326 if test "$lt_cv_path_NM" != "no"; then
6327 NM="$lt_cv_path_NM"
6328 else
6329 # Didn't find any BSD compatible name lister, look for dumpbin.
6330 if test -n "$DUMPBIN"; then :
6331 # Let the user override the test.
6332 else
6333 if test -n "$ac_tool_prefix"; then
6334 for ac_prog in dumpbin "link -dump"
6336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$DUMPBIN"; then
6344 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6357 done
6358 done
6359 IFS=$as_save_IFS
6363 DUMPBIN=$ac_cv_prog_DUMPBIN
6364 if test -n "$DUMPBIN"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6366 $as_echo "$DUMPBIN" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6373 test -n "$DUMPBIN" && break
6374 done
6376 if test -z "$DUMPBIN"; then
6377 ac_ct_DUMPBIN=$DUMPBIN
6378 for ac_prog in dumpbin "link -dump"
6380 # Extract the first word of "$ac_prog", so it can be a program name with args.
6381 set dummy $ac_prog; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 if test -n "$ac_ct_DUMPBIN"; then
6388 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6401 done
6402 done
6403 IFS=$as_save_IFS
6407 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6408 if test -n "$ac_ct_DUMPBIN"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6410 $as_echo "$ac_ct_DUMPBIN" >&6; }
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6417 test -n "$ac_ct_DUMPBIN" && break
6418 done
6420 if test "x$ac_ct_DUMPBIN" = x; then
6421 DUMPBIN=":"
6422 else
6423 case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429 DUMPBIN=$ac_ct_DUMPBIN
6433 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6434 *COFF*)
6435 DUMPBIN="$DUMPBIN -symbols"
6438 DUMPBIN=:
6440 esac
6443 if test "$DUMPBIN" != ":"; then
6444 NM="$DUMPBIN"
6447 test -z "$NM" && NM=nm
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6455 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6456 if test "${lt_cv_nm_interface+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 lt_cv_nm_interface="BSD nm"
6460 echo "int some_variable = 0;" > conftest.$ac_ext
6461 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6462 (eval "$ac_compile" 2>conftest.err)
6463 cat conftest.err >&5
6464 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6465 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6466 cat conftest.err >&5
6467 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6468 cat conftest.out >&5
6469 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6470 lt_cv_nm_interface="MS dumpbin"
6472 rm -f conftest*
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6475 $as_echo "$lt_cv_nm_interface" >&6; }
6477 # find the maximum length of command line arguments
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6479 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6484 teststring="ABCD"
6486 case $build_os in
6487 msdosdjgpp*)
6488 # On DJGPP, this test can blow up pretty badly due to problems in libc
6489 # (any single argument exceeding 2000 bytes causes a buffer overrun
6490 # during glob expansion). Even if it were fixed, the result of this
6491 # check would be larger than it should be.
6492 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6495 gnu*)
6496 # Under GNU Hurd, this test is not required because there is
6497 # no limit to the length of command line arguments.
6498 # Libtool will interpret -1 as no limit whatsoever
6499 lt_cv_sys_max_cmd_len=-1;
6502 cygwin* | mingw* | cegcc*)
6503 # On Win9x/ME, this test blows up -- it succeeds, but takes
6504 # about 5 minutes as the teststring grows exponentially.
6505 # Worse, since 9x/ME are not pre-emptively multitasking,
6506 # you end up with a "frozen" computer, even though with patience
6507 # the test eventually succeeds (with a max line length of 256k).
6508 # Instead, let's just punt: use the minimum linelength reported by
6509 # all of the supported platforms: 8192 (on NT/2K/XP).
6510 lt_cv_sys_max_cmd_len=8192;
6513 mint*)
6514 # On MiNT this can take a long time and run out of memory.
6515 lt_cv_sys_max_cmd_len=8192;
6518 amigaos*)
6519 # On AmigaOS with pdksh, this test takes hours, literally.
6520 # So we just punt and use a minimum line length of 8192.
6521 lt_cv_sys_max_cmd_len=8192;
6524 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6525 # This has been around since 386BSD, at least. Likely further.
6526 if test -x /sbin/sysctl; then
6527 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6528 elif test -x /usr/sbin/sysctl; then
6529 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6530 else
6531 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6533 # And add a safety zone
6534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6538 interix*)
6539 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6540 lt_cv_sys_max_cmd_len=196608
6543 osf*)
6544 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6545 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6546 # nice to cause kernel panics so lets avoid the loop below.
6547 # First set a reasonable default.
6548 lt_cv_sys_max_cmd_len=16384
6550 if test -x /sbin/sysconfig; then
6551 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6552 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6553 esac
6556 sco3.2v5*)
6557 lt_cv_sys_max_cmd_len=102400
6559 sysv5* | sco5v6* | sysv4.2uw2*)
6560 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6561 if test -n "$kargmax"; then
6562 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6563 else
6564 lt_cv_sys_max_cmd_len=32768
6568 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6569 if test -n "$lt_cv_sys_max_cmd_len"; then
6570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6572 else
6573 # Make teststring a little bigger before we do anything with it.
6574 # a 1K string should be a reasonable start.
6575 for i in 1 2 3 4 5 6 7 8 ; do
6576 teststring=$teststring$teststring
6577 done
6578 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6579 # If test is not a shell built-in, we'll probably end up computing a
6580 # maximum length that is only half of the actual maximum length, but
6581 # we can't tell.
6582 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6583 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6584 test $i != 17 # 1/2 MB should be enough
6586 i=`expr $i + 1`
6587 teststring=$teststring$teststring
6588 done
6589 # Only check the string length outside the loop.
6590 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6591 teststring=
6592 # Add a significant safety factor because C++ compilers can tack on
6593 # massive amounts of additional arguments before passing them to the
6594 # linker. It appears as though 1/2 is a usable value.
6595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6598 esac
6602 if test -n $lt_cv_sys_max_cmd_len ; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6604 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6607 $as_echo "none" >&6; }
6609 max_cmd_len=$lt_cv_sys_max_cmd_len
6616 : ${CP="cp -f"}
6617 : ${MV="mv -f"}
6618 : ${RM="rm -f"}
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6621 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6622 # Try some XSI features
6623 xsi_shell=no
6624 ( _lt_dummy="a/b/c"
6625 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6626 = c,a/b,, \
6627 && eval 'test $(( 1 + 1 )) -eq 2 \
6628 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6629 && xsi_shell=yes
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6631 $as_echo "$xsi_shell" >&6; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6635 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6636 lt_shell_append=no
6637 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6638 >/dev/null 2>&1 \
6639 && lt_shell_append=yes
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6641 $as_echo "$lt_shell_append" >&6; }
6644 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6645 lt_unset=unset
6646 else
6647 lt_unset=false
6654 # test EBCDIC or ASCII
6655 case `echo X|tr X '\101'` in
6656 A) # ASCII based system
6657 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6658 lt_SP2NL='tr \040 \012'
6659 lt_NL2SP='tr \015\012 \040\040'
6661 *) # EBCDIC based system
6662 lt_SP2NL='tr \100 \n'
6663 lt_NL2SP='tr \r\n \100\100'
6665 esac
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6676 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6677 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 lt_cv_ld_reload_flag='-r'
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6683 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6684 reload_flag=$lt_cv_ld_reload_flag
6685 case $reload_flag in
6686 "" | " "*) ;;
6687 *) reload_flag=" $reload_flag" ;;
6688 esac
6689 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6690 case $host_os in
6691 darwin*)
6692 if test "$GCC" = yes; then
6693 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6694 else
6695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6698 esac
6708 if test -n "$ac_tool_prefix"; then
6709 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6710 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 if test -n "$OBJDUMP"; then
6717 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 break 2
6730 done
6731 done
6732 IFS=$as_save_IFS
6736 OBJDUMP=$ac_cv_prog_OBJDUMP
6737 if test -n "$OBJDUMP"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6739 $as_echo "$OBJDUMP" >&6; }
6740 else
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6747 if test -z "$ac_cv_prog_OBJDUMP"; then
6748 ac_ct_OBJDUMP=$OBJDUMP
6749 # Extract the first word of "objdump", so it can be a program name with args.
6750 set dummy objdump; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 if test -n "$ac_ct_OBJDUMP"; then
6757 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 break 2
6770 done
6771 done
6772 IFS=$as_save_IFS
6776 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6777 if test -n "$ac_ct_OBJDUMP"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6779 $as_echo "$ac_ct_OBJDUMP" >&6; }
6780 else
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6785 if test "x$ac_ct_OBJDUMP" = x; then
6786 OBJDUMP="false"
6787 else
6788 case $cross_compiling:$ac_tool_warned in
6789 yes:)
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792 ac_tool_warned=yes ;;
6793 esac
6794 OBJDUMP=$ac_ct_OBJDUMP
6796 else
6797 OBJDUMP="$ac_cv_prog_OBJDUMP"
6800 test -z "$OBJDUMP" && OBJDUMP=objdump
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6808 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6809 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 lt_cv_file_magic_cmd='$MAGIC_CMD'
6813 lt_cv_file_magic_test_file=
6814 lt_cv_deplibs_check_method='unknown'
6815 # Need to set the preceding variable on all platforms that support
6816 # interlibrary dependencies.
6817 # 'none' -- dependencies not supported.
6818 # `unknown' -- same as none, but documents that we really don't know.
6819 # 'pass_all' -- all dependencies passed with no checks.
6820 # 'test_compile' -- check by making test program.
6821 # 'file_magic [[regex]]' -- check by looking for files in library path
6822 # which responds to the $file_magic_cmd with a given extended regex.
6823 # If you have `file' or equivalent on your system and you're not sure
6824 # whether `pass_all' will *always* work, you probably want this one.
6826 case $host_os in
6827 aix[4-9]*)
6828 lt_cv_deplibs_check_method=pass_all
6831 beos*)
6832 lt_cv_deplibs_check_method=pass_all
6835 bsdi[45]*)
6836 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6837 lt_cv_file_magic_cmd='/usr/bin/file -L'
6838 lt_cv_file_magic_test_file=/shlib/libc.so
6841 cygwin*)
6842 # func_win32_libid is a shell function defined in ltmain.sh
6843 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6844 lt_cv_file_magic_cmd='func_win32_libid'
6847 mingw* | pw32*)
6848 # Base MSYS/MinGW do not provide the 'file' command needed by
6849 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6850 # unless we find 'file', for example because we are cross-compiling.
6851 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6852 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6853 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6854 lt_cv_file_magic_cmd='func_win32_libid'
6855 else
6856 # Keep this pattern in sync with the one in func_win32_libid.
6857 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6858 lt_cv_file_magic_cmd='$OBJDUMP -f'
6862 cegcc*)
6863 # use the weaker test based on 'objdump'. See mingw*.
6864 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6865 lt_cv_file_magic_cmd='$OBJDUMP -f'
6868 darwin* | rhapsody*)
6869 lt_cv_deplibs_check_method=pass_all
6872 freebsd* | dragonfly*)
6873 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6874 case $host_cpu in
6875 i*86 )
6876 # Not sure whether the presence of OpenBSD here was a mistake.
6877 # Let's accept both of them until this is cleared up.
6878 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6879 lt_cv_file_magic_cmd=/usr/bin/file
6880 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6882 esac
6883 else
6884 lt_cv_deplibs_check_method=pass_all
6888 gnu*)
6889 lt_cv_deplibs_check_method=pass_all
6892 haiku*)
6893 lt_cv_deplibs_check_method=pass_all
6896 hpux10.20* | hpux11*)
6897 lt_cv_file_magic_cmd=/usr/bin/file
6898 case $host_cpu in
6899 ia64*)
6900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6901 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6903 hppa*64*)
6904 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6905 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6909 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6911 esac
6914 interix[3-9]*)
6915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6919 irix5* | irix6* | nonstopux*)
6920 case $LD in
6921 *-32|*"-32 ") libmagic=32-bit;;
6922 *-n32|*"-n32 ") libmagic=N32;;
6923 *-64|*"-64 ") libmagic=64-bit;;
6924 *) libmagic=never-match;;
6925 esac
6926 lt_cv_deplibs_check_method=pass_all
6929 # This must be Linux ELF.
6930 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6931 lt_cv_deplibs_check_method=pass_all
6934 netbsd*)
6935 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6937 else
6938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6942 newos6*)
6943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6944 lt_cv_file_magic_cmd=/usr/bin/file
6945 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6948 *nto* | *qnx*)
6949 lt_cv_deplibs_check_method=pass_all
6952 openbsd*)
6953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6955 else
6956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6960 osf3* | osf4* | osf5*)
6961 lt_cv_deplibs_check_method=pass_all
6964 rdos*)
6965 lt_cv_deplibs_check_method=pass_all
6968 solaris*)
6969 lt_cv_deplibs_check_method=pass_all
6972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6973 lt_cv_deplibs_check_method=pass_all
6976 sysv4 | sysv4.3*)
6977 case $host_vendor in
6978 motorola)
6979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6982 ncr)
6983 lt_cv_deplibs_check_method=pass_all
6985 sequent)
6986 lt_cv_file_magic_cmd='/bin/file'
6987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6989 sni)
6990 lt_cv_file_magic_cmd='/bin/file'
6991 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6992 lt_cv_file_magic_test_file=/lib/libc.so
6994 siemens)
6995 lt_cv_deplibs_check_method=pass_all
6998 lt_cv_deplibs_check_method=pass_all
7000 esac
7003 tpf*)
7004 lt_cv_deplibs_check_method=pass_all
7006 esac
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7010 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7011 file_magic_cmd=$lt_cv_file_magic_cmd
7012 deplibs_check_method=$lt_cv_deplibs_check_method
7013 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}ar; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if test "${ac_cv_prog_AR+set}" = set; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$AR"; then
7035 ac_cv_prog_AR="$AR" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_prog_AR="${ac_tool_prefix}ar"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7048 done
7049 done
7050 IFS=$as_save_IFS
7054 AR=$ac_cv_prog_AR
7055 if test -n "$AR"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7057 $as_echo "$AR" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7065 if test -z "$ac_cv_prog_AR"; then
7066 ac_ct_AR=$AR
7067 # Extract the first word of "ar", so it can be a program name with args.
7068 set dummy ar; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$ac_ct_AR"; then
7075 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_prog_ac_ct_AR="ar"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7088 done
7089 done
7090 IFS=$as_save_IFS
7094 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7095 if test -n "$ac_ct_AR"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7097 $as_echo "$ac_ct_AR" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7103 if test "x$ac_ct_AR" = x; then
7104 AR="false"
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112 AR=$ac_ct_AR
7114 else
7115 AR="$ac_cv_prog_AR"
7118 test -z "$AR" && AR=ar
7119 test -z "$AR_FLAGS" && AR_FLAGS=cru
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}strip; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if test "${ac_cv_prog_STRIP+set}" = set; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 if test -n "$STRIP"; then
7140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7153 done
7154 done
7155 IFS=$as_save_IFS
7159 STRIP=$ac_cv_prog_STRIP
7160 if test -n "$STRIP"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7162 $as_echo "$STRIP" >&6; }
7163 else
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7170 if test -z "$ac_cv_prog_STRIP"; then
7171 ac_ct_STRIP=$STRIP
7172 # Extract the first word of "strip", so it can be a program name with args.
7173 set dummy strip; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175 $as_echo_n "checking for $ac_word... " >&6; }
7176 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 if test -n "$ac_ct_STRIP"; then
7180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_prog_ac_ct_STRIP="strip"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7193 done
7194 done
7195 IFS=$as_save_IFS
7199 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7200 if test -n "$ac_ct_STRIP"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7202 $as_echo "$ac_ct_STRIP" >&6; }
7203 else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7208 if test "x$ac_ct_STRIP" = x; then
7209 STRIP=":"
7210 else
7211 case $cross_compiling:$ac_tool_warned in
7212 yes:)
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7215 ac_tool_warned=yes ;;
7216 esac
7217 STRIP=$ac_ct_STRIP
7219 else
7220 STRIP="$ac_cv_prog_STRIP"
7223 test -z "$STRIP" && STRIP=:
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if test -n "$RANLIB"; then
7239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7252 done
7253 done
7254 IFS=$as_save_IFS
7258 RANLIB=$ac_cv_prog_RANLIB
7259 if test -n "$RANLIB"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7261 $as_echo "$RANLIB" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7269 if test -z "$ac_cv_prog_RANLIB"; then
7270 ac_ct_RANLIB=$RANLIB
7271 # Extract the first word of "ranlib", so it can be a program name with args.
7272 set dummy ranlib; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$ac_ct_RANLIB"; then
7279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_prog_ac_ct_RANLIB="ranlib"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7292 done
7293 done
7294 IFS=$as_save_IFS
7298 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7299 if test -n "$ac_ct_RANLIB"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7301 $as_echo "$ac_ct_RANLIB" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7307 if test "x$ac_ct_RANLIB" = x; then
7308 RANLIB=":"
7309 else
7310 case $cross_compiling:$ac_tool_warned in
7311 yes:)
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314 ac_tool_warned=yes ;;
7315 esac
7316 RANLIB=$ac_ct_RANLIB
7318 else
7319 RANLIB="$ac_cv_prog_RANLIB"
7322 test -z "$RANLIB" && RANLIB=:
7329 # Determine commands to create old-style static archives.
7330 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7331 old_postinstall_cmds='chmod 644 $oldlib'
7332 old_postuninstall_cmds=
7334 if test -n "$RANLIB"; then
7335 case $host_os in
7336 openbsd*)
7337 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7340 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7342 esac
7343 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7346 case $host_os in
7347 darwin*)
7348 lock_old_archive_extraction=yes ;;
7350 lock_old_archive_extraction=no ;;
7351 esac
7391 # If no C compiler was specified, use CC.
7392 LTCC=${LTCC-"$CC"}
7394 # If no C compiler flags were specified, use CFLAGS.
7395 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7397 # Allow CC to be a program name with arguments.
7398 compiler=$CC
7401 # Check for command to grab the raw symbol name followed by C symbol from nm.
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7403 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7404 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7408 # These are sane defaults that work on at least a few old systems.
7409 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7411 # Character class describing NM global symbol codes.
7412 symcode='[BCDEGRST]'
7414 # Regexp to match symbols that can be accessed directly from C.
7415 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7417 # Define system-specific variables.
7418 case $host_os in
7419 aix*)
7420 symcode='[BCDT]'
7422 cygwin* | mingw* | pw32* | cegcc*)
7423 symcode='[ABCDGISTW]'
7425 hpux*)
7426 if test "$host_cpu" = ia64; then
7427 symcode='[ABCDEGRST]'
7430 irix* | nonstopux*)
7431 symcode='[BCDEGRST]'
7433 osf*)
7434 symcode='[BCDEGQRST]'
7436 solaris*)
7437 symcode='[BDRT]'
7439 sco3.2v5*)
7440 symcode='[DT]'
7442 sysv4.2uw2*)
7443 symcode='[DT]'
7445 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7446 symcode='[ABDT]'
7448 sysv4)
7449 symcode='[DFNSTU]'
7451 esac
7453 # If we're using GNU nm, then use its standard symbol codes.
7454 case `$NM -V 2>&1` in
7455 *GNU* | *'with BFD'*)
7456 symcode='[ABCDGIRSTW]' ;;
7457 esac
7459 # Transform an extracted symbol line into a proper C declaration.
7460 # Some systems (esp. on ia64) link data and code symbols differently,
7461 # so use this general approach.
7462 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7464 # Transform an extracted symbol line into symbol name and symbol address
7465 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7466 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7468 # Handle CRLF in mingw tool chain
7469 opt_cr=
7470 case $build_os in
7471 mingw*)
7472 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7474 esac
7476 # Try without a prefix underscore, then with it.
7477 for ac_symprfx in "" "_"; do
7479 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7480 symxfrm="\\1 $ac_symprfx\\2 \\2"
7482 # Write the raw and C identifiers.
7483 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7484 # Fake it for dumpbin and say T for any non-static function
7485 # and D for any global variable.
7486 # Also find C++ and __fastcall symbols from MSVC++,
7487 # which start with @ or ?.
7488 lt_cv_sys_global_symbol_pipe="$AWK '"\
7489 " {last_section=section; section=\$ 3};"\
7490 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7491 " \$ 0!~/External *\|/{next};"\
7492 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7493 " {if(hide[section]) next};"\
7494 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7495 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7496 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7497 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7498 " ' prfx=^$ac_symprfx"
7499 else
7500 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7503 # Check to see that the pipe works correctly.
7504 pipe_works=no
7506 rm -f conftest*
7507 cat > conftest.$ac_ext <<_LT_EOF
7508 #ifdef __cplusplus
7509 extern "C" {
7510 #endif
7511 char nm_test_var;
7512 void nm_test_func(void);
7513 void nm_test_func(void){}
7514 #ifdef __cplusplus
7516 #endif
7517 int main(){nm_test_var='a';nm_test_func();return(0);}
7518 _LT_EOF
7520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7521 (eval $ac_compile) 2>&5
7522 ac_status=$?
7523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; }; then
7525 # Now try to grab the symbols.
7526 nlist=conftest.nm
7527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7528 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7529 ac_status=$?
7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531 test $ac_status = 0; } && test -s "$nlist"; then
7532 # Try sorting and uniquifying the output.
7533 if sort "$nlist" | uniq > "$nlist"T; then
7534 mv -f "$nlist"T "$nlist"
7535 else
7536 rm -f "$nlist"T
7539 # Make sure that we snagged all the symbols we need.
7540 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7541 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7542 cat <<_LT_EOF > conftest.$ac_ext
7543 #ifdef __cplusplus
7544 extern "C" {
7545 #endif
7547 _LT_EOF
7548 # Now generate the symbol file.
7549 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7551 cat <<_LT_EOF >> conftest.$ac_ext
7553 /* The mapping between symbol names and symbols. */
7554 const struct {
7555 const char *name;
7556 void *address;
7558 lt__PROGRAM__LTX_preloaded_symbols[] =
7560 { "@PROGRAM@", (void *) 0 },
7561 _LT_EOF
7562 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7563 cat <<\_LT_EOF >> conftest.$ac_ext
7564 {0, (void *) 0}
7567 /* This works around a problem in FreeBSD linker */
7568 #ifdef FREEBSD_WORKAROUND
7569 static const void *lt_preloaded_setup() {
7570 return lt__PROGRAM__LTX_preloaded_symbols;
7572 #endif
7574 #ifdef __cplusplus
7576 #endif
7577 _LT_EOF
7578 # Now try linking the two files.
7579 mv conftest.$ac_objext conftstm.$ac_objext
7580 lt_save_LIBS="$LIBS"
7581 lt_save_CFLAGS="$CFLAGS"
7582 LIBS="conftstm.$ac_objext"
7583 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7585 (eval $ac_link) 2>&5
7586 ac_status=$?
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7589 pipe_works=yes
7591 LIBS="$lt_save_LIBS"
7592 CFLAGS="$lt_save_CFLAGS"
7593 else
7594 echo "cannot find nm_test_func in $nlist" >&5
7596 else
7597 echo "cannot find nm_test_var in $nlist" >&5
7599 else
7600 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7602 else
7603 echo "$progname: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7606 rm -rf conftest* conftst*
7608 # Do not use the global_symbol_pipe unless it works.
7609 if test "$pipe_works" = yes; then
7610 break
7611 else
7612 lt_cv_sys_global_symbol_pipe=
7614 done
7618 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7619 lt_cv_sys_global_symbol_to_cdecl=
7621 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7623 $as_echo "failed" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7626 $as_echo "ok" >&6; }
7650 # Check whether --enable-libtool-lock was given.
7651 if test "${enable_libtool_lock+set}" = set; then :
7652 enableval=$enable_libtool_lock;
7655 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7657 # Some flags need to be propagated to the compiler or linker for good
7658 # libtool support.
7659 case $host in
7660 ia64-*-hpux*)
7661 # Find out which ABI we are using.
7662 echo 'int i;' > conftest.$ac_ext
7663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7664 (eval $ac_compile) 2>&5
7665 ac_status=$?
7666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7667 test $ac_status = 0; }; then
7668 case `/usr/bin/file conftest.$ac_objext` in
7669 *ELF-32*)
7670 HPUX_IA64_MODE="32"
7672 *ELF-64*)
7673 HPUX_IA64_MODE="64"
7675 esac
7677 rm -rf conftest*
7679 *-*-irix6*)
7680 # Find out which ABI we are using.
7681 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7683 (eval $ac_compile) 2>&5
7684 ac_status=$?
7685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7686 test $ac_status = 0; }; then
7687 if test "$lt_cv_prog_gnu_ld" = yes; then
7688 case `/usr/bin/file conftest.$ac_objext` in
7689 *32-bit*)
7690 LD="${LD-ld} -melf32bsmip"
7692 *N32*)
7693 LD="${LD-ld} -melf32bmipn32"
7695 *64-bit*)
7696 LD="${LD-ld} -melf64bmip"
7698 esac
7699 else
7700 case `/usr/bin/file conftest.$ac_objext` in
7701 *32-bit*)
7702 LD="${LD-ld} -32"
7704 *N32*)
7705 LD="${LD-ld} -n32"
7707 *64-bit*)
7708 LD="${LD-ld} -64"
7710 esac
7713 rm -rf conftest*
7716 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7717 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7718 # Find out which ABI we are using.
7719 echo 'int i;' > conftest.$ac_ext
7720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7721 (eval $ac_compile) 2>&5
7722 ac_status=$?
7723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7724 test $ac_status = 0; }; then
7725 case `/usr/bin/file conftest.o` in
7726 *32-bit*)
7727 case $host in
7728 x86_64-*kfreebsd*-gnu)
7729 LD="${LD-ld} -m elf_i386_fbsd"
7731 x86_64-*linux*)
7732 LD="${LD-ld} -m elf_i386"
7734 ppc64-*linux*|powerpc64-*linux*)
7735 LD="${LD-ld} -m elf32ppclinux"
7737 s390x-*linux*)
7738 LD="${LD-ld} -m elf_s390"
7740 sparc64-*linux*)
7741 LD="${LD-ld} -m elf32_sparc"
7743 esac
7745 *64-bit*)
7746 case $host in
7747 x86_64-*kfreebsd*-gnu)
7748 LD="${LD-ld} -m elf_x86_64_fbsd"
7750 x86_64-*linux*)
7751 LD="${LD-ld} -m elf_x86_64"
7753 ppc*-*linux*|powerpc*-*linux*)
7754 LD="${LD-ld} -m elf64ppc"
7756 s390*-*linux*|s390*-*tpf*)
7757 LD="${LD-ld} -m elf64_s390"
7759 sparc*-*linux*)
7760 LD="${LD-ld} -m elf64_sparc"
7762 esac
7764 esac
7766 rm -rf conftest*
7769 *-*-sco3.2v5*)
7770 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7771 SAVE_CFLAGS="$CFLAGS"
7772 CFLAGS="$CFLAGS -belf"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7774 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7775 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 ac_ext=c
7779 ac_cpp='$CPP $CPPFLAGS'
7780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7788 main ()
7792 return 0;
7794 _ACEOF
7795 if ac_fn_c_try_link "$LINENO"; then :
7796 lt_cv_cc_needs_belf=yes
7797 else
7798 lt_cv_cc_needs_belf=no
7800 rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7802 ac_ext=c
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7810 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7811 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7812 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7813 CFLAGS="$SAVE_CFLAGS"
7816 sparc*-*solaris*)
7817 # Find out which ABI we are using.
7818 echo 'int i;' > conftest.$ac_ext
7819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7820 (eval $ac_compile) 2>&5
7821 ac_status=$?
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823 test $ac_status = 0; }; then
7824 case `/usr/bin/file conftest.o` in
7825 *64-bit*)
7826 case $lt_cv_prog_gnu_ld in
7827 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7829 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7830 LD="${LD-ld} -64"
7833 esac
7835 esac
7837 rm -rf conftest*
7839 esac
7841 need_locks="$enable_libtool_lock"
7844 case $host_os in
7845 rhapsody* | darwin*)
7846 if test -n "$ac_tool_prefix"; then
7847 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7848 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 if test -n "$DSYMUTIL"; then
7855 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7868 done
7869 done
7870 IFS=$as_save_IFS
7874 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7875 if test -n "$DSYMUTIL"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7877 $as_echo "$DSYMUTIL" >&6; }
7878 else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7885 if test -z "$ac_cv_prog_DSYMUTIL"; then
7886 ac_ct_DSYMUTIL=$DSYMUTIL
7887 # Extract the first word of "dsymutil", so it can be a program name with args.
7888 set dummy dsymutil; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 if test -n "$ac_ct_DSYMUTIL"; then
7895 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7908 done
7909 done
7910 IFS=$as_save_IFS
7914 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7915 if test -n "$ac_ct_DSYMUTIL"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7917 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7923 if test "x$ac_ct_DSYMUTIL" = x; then
7924 DSYMUTIL=":"
7925 else
7926 case $cross_compiling:$ac_tool_warned in
7927 yes:)
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930 ac_tool_warned=yes ;;
7931 esac
7932 DSYMUTIL=$ac_ct_DSYMUTIL
7934 else
7935 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7938 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7940 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$NMEDIT"; then
7947 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7960 done
7961 done
7962 IFS=$as_save_IFS
7966 NMEDIT=$ac_cv_prog_NMEDIT
7967 if test -n "$NMEDIT"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7969 $as_echo "$NMEDIT" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7977 if test -z "$ac_cv_prog_NMEDIT"; then
7978 ac_ct_NMEDIT=$NMEDIT
7979 # Extract the first word of "nmedit", so it can be a program name with args.
7980 set dummy nmedit; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 if test -n "$ac_ct_NMEDIT"; then
7987 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
8000 done
8001 done
8002 IFS=$as_save_IFS
8006 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8007 if test -n "$ac_ct_NMEDIT"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8009 $as_echo "$ac_ct_NMEDIT" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8015 if test "x$ac_ct_NMEDIT" = x; then
8016 NMEDIT=":"
8017 else
8018 case $cross_compiling:$ac_tool_warned in
8019 yes:)
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022 ac_tool_warned=yes ;;
8023 esac
8024 NMEDIT=$ac_ct_NMEDIT
8026 else
8027 NMEDIT="$ac_cv_prog_NMEDIT"
8030 if test -n "$ac_tool_prefix"; then
8031 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8032 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if test "${ac_cv_prog_LIPO+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 if test -n "$LIPO"; then
8039 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8052 done
8053 done
8054 IFS=$as_save_IFS
8058 LIPO=$ac_cv_prog_LIPO
8059 if test -n "$LIPO"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8061 $as_echo "$LIPO" >&6; }
8062 else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8069 if test -z "$ac_cv_prog_LIPO"; then
8070 ac_ct_LIPO=$LIPO
8071 # Extract the first word of "lipo", so it can be a program name with args.
8072 set dummy lipo; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 if test -n "$ac_ct_LIPO"; then
8079 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_prog_ac_ct_LIPO="lipo"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8094 IFS=$as_save_IFS
8098 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8099 if test -n "$ac_ct_LIPO"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8101 $as_echo "$ac_ct_LIPO" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8107 if test "x$ac_ct_LIPO" = x; then
8108 LIPO=":"
8109 else
8110 case $cross_compiling:$ac_tool_warned in
8111 yes:)
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114 ac_tool_warned=yes ;;
8115 esac
8116 LIPO=$ac_ct_LIPO
8118 else
8119 LIPO="$ac_cv_prog_LIPO"
8122 if test -n "$ac_tool_prefix"; then
8123 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8124 set dummy ${ac_tool_prefix}otool; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 if test -n "$OTOOL"; then
8131 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8144 done
8145 done
8146 IFS=$as_save_IFS
8150 OTOOL=$ac_cv_prog_OTOOL
8151 if test -n "$OTOOL"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8153 $as_echo "$OTOOL" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 if test -z "$ac_cv_prog_OTOOL"; then
8162 ac_ct_OTOOL=$OTOOL
8163 # Extract the first word of "otool", so it can be a program name with args.
8164 set dummy otool; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 if test -n "$ac_ct_OTOOL"; then
8171 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8180 ac_cv_prog_ac_ct_OTOOL="otool"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8184 done
8185 done
8186 IFS=$as_save_IFS
8190 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8191 if test -n "$ac_ct_OTOOL"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8193 $as_echo "$ac_ct_OTOOL" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8199 if test "x$ac_ct_OTOOL" = x; then
8200 OTOOL=":"
8201 else
8202 case $cross_compiling:$ac_tool_warned in
8203 yes:)
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8206 ac_tool_warned=yes ;;
8207 esac
8208 OTOOL=$ac_ct_OTOOL
8210 else
8211 OTOOL="$ac_cv_prog_OTOOL"
8214 if test -n "$ac_tool_prefix"; then
8215 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 if test -n "$OTOOL64"; then
8223 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8236 done
8237 done
8238 IFS=$as_save_IFS
8242 OTOOL64=$ac_cv_prog_OTOOL64
8243 if test -n "$OTOOL64"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8245 $as_echo "$OTOOL64" >&6; }
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8253 if test -z "$ac_cv_prog_OTOOL64"; then
8254 ac_ct_OTOOL64=$OTOOL64
8255 # Extract the first word of "otool64", so it can be a program name with args.
8256 set dummy otool64; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 if test -n "$ac_ct_OTOOL64"; then
8263 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8264 else
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 for as_dir in $PATH
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8272 ac_cv_prog_ac_ct_OTOOL64="otool64"
8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8276 done
8277 done
8278 IFS=$as_save_IFS
8282 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8283 if test -n "$ac_ct_OTOOL64"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8285 $as_echo "$ac_ct_OTOOL64" >&6; }
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8291 if test "x$ac_ct_OTOOL64" = x; then
8292 OTOOL64=":"
8293 else
8294 case $cross_compiling:$ac_tool_warned in
8295 yes:)
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8298 ac_tool_warned=yes ;;
8299 esac
8300 OTOOL64=$ac_ct_OTOOL64
8302 else
8303 OTOOL64="$ac_cv_prog_OTOOL64"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8333 $as_echo_n "checking for -single_module linker flag... " >&6; }
8334 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 lt_cv_apple_cc_single_mod=no
8338 if test -z "${LT_MULTI_MODULE}"; then
8339 # By default we will add the -single_module flag. You can override
8340 # by either setting the environment variable LT_MULTI_MODULE
8341 # non-empty at configure time, or by adding -multi_module to the
8342 # link flags.
8343 rm -rf libconftest.dylib*
8344 echo "int foo(void){return 1;}" > conftest.c
8345 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8346 -dynamiclib -Wl,-single_module conftest.c" >&5
8347 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8348 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8349 _lt_result=$?
8350 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8351 lt_cv_apple_cc_single_mod=yes
8352 else
8353 cat conftest.err >&5
8355 rm -rf libconftest.dylib*
8356 rm -f conftest.*
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8360 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8362 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8363 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 lt_cv_ld_exported_symbols_list=no
8367 save_LDFLAGS=$LDFLAGS
8368 echo "_main" > conftest.sym
8369 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8374 main ()
8378 return 0;
8380 _ACEOF
8381 if ac_fn_c_try_link "$LINENO"; then :
8382 lt_cv_ld_exported_symbols_list=yes
8383 else
8384 lt_cv_ld_exported_symbols_list=no
8386 rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
8388 LDFLAGS="$save_LDFLAGS"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8392 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8394 $as_echo_n "checking for -force_load linker flag... " >&6; }
8395 if test "${lt_cv_ld_force_load+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 lt_cv_ld_force_load=no
8399 cat > conftest.c << _LT_EOF
8400 int forced_loaded() { return 2;}
8401 _LT_EOF
8402 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8403 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8404 echo "$AR cru libconftest.a conftest.o" >&5
8405 $AR cru libconftest.a conftest.o 2>&5
8406 echo "$RANLIB libconftest.a" >&5
8407 $RANLIB libconftest.a 2>&5
8408 cat > conftest.c << _LT_EOF
8409 int main() { return 0;}
8410 _LT_EOF
8411 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8412 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8413 _lt_result=$?
8414 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8415 lt_cv_ld_force_load=yes
8416 else
8417 cat conftest.err >&5
8419 rm -f conftest.err libconftest.a conftest conftest.c
8420 rm -rf conftest.dSYM
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8424 $as_echo "$lt_cv_ld_force_load" >&6; }
8425 case $host_os in
8426 rhapsody* | darwin1.[012])
8427 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8428 darwin1.*)
8429 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8430 darwin*) # darwin 5.x on
8431 # if running on 10.5 or later, the deployment target defaults
8432 # to the OS version, if on x86, and 10.4, the deployment
8433 # target defaults to 10.4. Don't you love it?
8434 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8435 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8436 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8437 10.[012]*)
8438 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8439 10.*)
8440 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8441 esac
8443 esac
8444 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8445 _lt_dar_single_mod='$single_module'
8447 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8448 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8449 else
8450 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8452 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8453 _lt_dsymutil='~$DSYMUTIL $lib || :'
8454 else
8455 _lt_dsymutil=
8458 esac
8460 for ac_header in dlfcn.h
8461 do :
8462 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8464 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8465 cat >>confdefs.h <<_ACEOF
8466 #define HAVE_DLFCN_H 1
8467 _ACEOF
8471 done
8477 # Set options
8478 enable_win32_dll=yes
8480 case $host in
8481 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8482 if test -n "$ac_tool_prefix"; then
8483 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}as; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if test "${ac_cv_prog_AS+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 if test -n "$AS"; then
8491 ac_cv_prog_AS="$AS" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_prog_AS="${ac_tool_prefix}as"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8504 done
8505 done
8506 IFS=$as_save_IFS
8510 AS=$ac_cv_prog_AS
8511 if test -n "$AS"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8513 $as_echo "$AS" >&6; }
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8521 if test -z "$ac_cv_prog_AS"; then
8522 ac_ct_AS=$AS
8523 # Extract the first word of "as", so it can be a program name with args.
8524 set dummy as; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 if test -n "$ac_ct_AS"; then
8531 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8536 IFS=$as_save_IFS
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8540 ac_cv_prog_ac_ct_AS="as"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 break 2
8544 done
8545 done
8546 IFS=$as_save_IFS
8550 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8551 if test -n "$ac_ct_AS"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8553 $as_echo "$ac_ct_AS" >&6; }
8554 else
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8559 if test "x$ac_ct_AS" = x; then
8560 AS="false"
8561 else
8562 case $cross_compiling:$ac_tool_warned in
8563 yes:)
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566 ac_tool_warned=yes ;;
8567 esac
8568 AS=$ac_ct_AS
8570 else
8571 AS="$ac_cv_prog_AS"
8574 if test -n "$ac_tool_prefix"; then
8575 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8576 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 if test -n "$DLLTOOL"; then
8583 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8596 done
8597 done
8598 IFS=$as_save_IFS
8602 DLLTOOL=$ac_cv_prog_DLLTOOL
8603 if test -n "$DLLTOOL"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8605 $as_echo "$DLLTOOL" >&6; }
8606 else
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8613 if test -z "$ac_cv_prog_DLLTOOL"; then
8614 ac_ct_DLLTOOL=$DLLTOOL
8615 # Extract the first word of "dlltool", so it can be a program name with args.
8616 set dummy dlltool; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 if test -n "$ac_ct_DLLTOOL"; then
8623 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8624 else
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8632 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634 break 2
8636 done
8637 done
8638 IFS=$as_save_IFS
8642 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8643 if test -n "$ac_ct_DLLTOOL"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8645 $as_echo "$ac_ct_DLLTOOL" >&6; }
8646 else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8651 if test "x$ac_ct_DLLTOOL" = x; then
8652 DLLTOOL="false"
8653 else
8654 case $cross_compiling:$ac_tool_warned in
8655 yes:)
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8658 ac_tool_warned=yes ;;
8659 esac
8660 DLLTOOL=$ac_ct_DLLTOOL
8662 else
8663 DLLTOOL="$ac_cv_prog_DLLTOOL"
8666 if test -n "$ac_tool_prefix"; then
8667 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8668 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8670 $as_echo_n "checking for $ac_word... " >&6; }
8671 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8672 $as_echo_n "(cached) " >&6
8673 else
8674 if test -n "$OBJDUMP"; then
8675 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8676 else
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 for as_dir in $PATH
8680 IFS=$as_save_IFS
8681 test -z "$as_dir" && as_dir=.
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8684 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8686 break 2
8688 done
8689 done
8690 IFS=$as_save_IFS
8694 OBJDUMP=$ac_cv_prog_OBJDUMP
8695 if test -n "$OBJDUMP"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8697 $as_echo "$OBJDUMP" >&6; }
8698 else
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 $as_echo "no" >&6; }
8705 if test -z "$ac_cv_prog_OBJDUMP"; then
8706 ac_ct_OBJDUMP=$OBJDUMP
8707 # Extract the first word of "objdump", so it can be a program name with args.
8708 set dummy objdump; ac_word=$2
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710 $as_echo_n "checking for $ac_word... " >&6; }
8711 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 if test -n "$ac_ct_OBJDUMP"; then
8715 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8716 else
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in $PATH
8720 IFS=$as_save_IFS
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8726 break 2
8728 done
8729 done
8730 IFS=$as_save_IFS
8734 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8735 if test -n "$ac_ct_OBJDUMP"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8737 $as_echo "$ac_ct_OBJDUMP" >&6; }
8738 else
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8743 if test "x$ac_ct_OBJDUMP" = x; then
8744 OBJDUMP="false"
8745 else
8746 case $cross_compiling:$ac_tool_warned in
8747 yes:)
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8750 ac_tool_warned=yes ;;
8751 esac
8752 OBJDUMP=$ac_ct_OBJDUMP
8754 else
8755 OBJDUMP="$ac_cv_prog_OBJDUMP"
8759 esac
8761 test -z "$AS" && AS=as
8767 test -z "$DLLTOOL" && DLLTOOL=dlltool
8773 test -z "$OBJDUMP" && OBJDUMP=objdump
8781 enable_dlopen=no
8785 # Check whether --enable-shared was given.
8786 if test "${enable_shared+set}" = set; then :
8787 enableval=$enable_shared; p=${PACKAGE-default}
8788 case $enableval in
8789 yes) enable_shared=yes ;;
8790 no) enable_shared=no ;;
8792 enable_shared=no
8793 # Look at the argument we got. We use all the common list separators.
8794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8795 for pkg in $enableval; do
8796 IFS="$lt_save_ifs"
8797 if test "X$pkg" = "X$p"; then
8798 enable_shared=yes
8800 done
8801 IFS="$lt_save_ifs"
8803 esac
8804 else
8805 enable_shared=yes
8816 # Check whether --enable-static was given.
8817 if test "${enable_static+set}" = set; then :
8818 enableval=$enable_static; p=${PACKAGE-default}
8819 case $enableval in
8820 yes) enable_static=yes ;;
8821 no) enable_static=no ;;
8823 enable_static=no
8824 # Look at the argument we got. We use all the common list separators.
8825 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8826 for pkg in $enableval; do
8827 IFS="$lt_save_ifs"
8828 if test "X$pkg" = "X$p"; then
8829 enable_static=yes
8831 done
8832 IFS="$lt_save_ifs"
8834 esac
8835 else
8836 enable_static=yes
8848 # Check whether --with-pic was given.
8849 if test "${with_pic+set}" = set; then :
8850 withval=$with_pic; pic_mode="$withval"
8851 else
8852 pic_mode=default
8856 test -z "$pic_mode" && pic_mode=default
8864 # Check whether --enable-fast-install was given.
8865 if test "${enable_fast_install+set}" = set; then :
8866 enableval=$enable_fast_install; p=${PACKAGE-default}
8867 case $enableval in
8868 yes) enable_fast_install=yes ;;
8869 no) enable_fast_install=no ;;
8871 enable_fast_install=no
8872 # Look at the argument we got. We use all the common list separators.
8873 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8874 for pkg in $enableval; do
8875 IFS="$lt_save_ifs"
8876 if test "X$pkg" = "X$p"; then
8877 enable_fast_install=yes
8879 done
8880 IFS="$lt_save_ifs"
8882 esac
8883 else
8884 enable_fast_install=yes
8897 # This can be used to rebuild libtool when needed
8898 LIBTOOL_DEPS="$ltmain"
8900 # Always use our own libtool.
8901 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8928 test -z "$LN_S" && LN_S="ln -s"
8943 if test -n "${ZSH_VERSION+set}" ; then
8944 setopt NO_GLOB_SUBST
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8948 $as_echo_n "checking for objdir... " >&6; }
8949 if test "${lt_cv_objdir+set}" = set; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 rm -f .libs 2>/dev/null
8953 mkdir .libs 2>/dev/null
8954 if test -d .libs; then
8955 lt_cv_objdir=.libs
8956 else
8957 # MS-DOS does not allow filenames that begin with a dot.
8958 lt_cv_objdir=_libs
8960 rmdir .libs 2>/dev/null
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8963 $as_echo "$lt_cv_objdir" >&6; }
8964 objdir=$lt_cv_objdir
8970 cat >>confdefs.h <<_ACEOF
8971 #define LT_OBJDIR "$lt_cv_objdir/"
8972 _ACEOF
8977 case $host_os in
8978 aix3*)
8979 # AIX sometimes has problems with the GCC collect2 program. For some
8980 # reason, if we set the COLLECT_NAMES environment variable, the problems
8981 # vanish in a puff of smoke.
8982 if test "X${COLLECT_NAMES+set}" != Xset; then
8983 COLLECT_NAMES=
8984 export COLLECT_NAMES
8987 esac
8989 # Global variables:
8990 ofile=libtool
8991 can_build_shared=yes
8993 # All known linkers require a `.a' archive for static linking (except MSVC,
8994 # which needs '.lib').
8995 libext=a
8997 with_gnu_ld="$lt_cv_prog_gnu_ld"
8999 old_CC="$CC"
9000 old_CFLAGS="$CFLAGS"
9002 # Set sane defaults for various variables
9003 test -z "$CC" && CC=cc
9004 test -z "$LTCC" && LTCC=$CC
9005 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9006 test -z "$LD" && LD=ld
9007 test -z "$ac_objext" && ac_objext=o
9009 for cc_temp in $compiler""; do
9010 case $cc_temp in
9011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9013 \-*) ;;
9014 *) break;;
9015 esac
9016 done
9017 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9020 # Only perform the check for file, if the check method requires it
9021 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9022 case $deplibs_check_method in
9023 file_magic*)
9024 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9026 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9027 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 case $MAGIC_CMD in
9031 [\\/*] | ?:[\\/]*)
9032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9035 lt_save_MAGIC_CMD="$MAGIC_CMD"
9036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9037 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9038 for ac_dir in $ac_dummy; do
9039 IFS="$lt_save_ifs"
9040 test -z "$ac_dir" && ac_dir=.
9041 if test -f $ac_dir/${ac_tool_prefix}file; then
9042 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9043 if test -n "$file_magic_test_file"; then
9044 case $deplibs_check_method in
9045 "file_magic "*)
9046 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9048 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9049 $EGREP "$file_magic_regex" > /dev/null; then
9051 else
9052 cat <<_LT_EOF 1>&2
9054 *** Warning: the command libtool uses to detect shared libraries,
9055 *** $file_magic_cmd, produces output that libtool cannot recognize.
9056 *** The result is that libtool may fail to recognize shared libraries
9057 *** as such. This will affect the creation of libtool libraries that
9058 *** depend on shared libraries, but programs linked with such libtool
9059 *** libraries will work regardless of this problem. Nevertheless, you
9060 *** may want to report the problem to your system manager and/or to
9061 *** bug-libtool@gnu.org
9063 _LT_EOF
9064 fi ;;
9065 esac
9067 break
9069 done
9070 IFS="$lt_save_ifs"
9071 MAGIC_CMD="$lt_save_MAGIC_CMD"
9073 esac
9076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9077 if test -n "$MAGIC_CMD"; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9079 $as_echo "$MAGIC_CMD" >&6; }
9080 else
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 $as_echo "no" >&6; }
9089 if test -z "$lt_cv_path_MAGIC_CMD"; then
9090 if test -n "$ac_tool_prefix"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9092 $as_echo_n "checking for file... " >&6; }
9093 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 case $MAGIC_CMD in
9097 [\\/*] | ?:[\\/]*)
9098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9101 lt_save_MAGIC_CMD="$MAGIC_CMD"
9102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9104 for ac_dir in $ac_dummy; do
9105 IFS="$lt_save_ifs"
9106 test -z "$ac_dir" && ac_dir=.
9107 if test -f $ac_dir/file; then
9108 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9109 if test -n "$file_magic_test_file"; then
9110 case $deplibs_check_method in
9111 "file_magic "*)
9112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9115 $EGREP "$file_magic_regex" > /dev/null; then
9117 else
9118 cat <<_LT_EOF 1>&2
9120 *** Warning: the command libtool uses to detect shared libraries,
9121 *** $file_magic_cmd, produces output that libtool cannot recognize.
9122 *** The result is that libtool may fail to recognize shared libraries
9123 *** as such. This will affect the creation of libtool libraries that
9124 *** depend on shared libraries, but programs linked with such libtool
9125 *** libraries will work regardless of this problem. Nevertheless, you
9126 *** may want to report the problem to your system manager and/or to
9127 *** bug-libtool@gnu.org
9129 _LT_EOF
9130 fi ;;
9131 esac
9133 break
9135 done
9136 IFS="$lt_save_ifs"
9137 MAGIC_CMD="$lt_save_MAGIC_CMD"
9139 esac
9142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9143 if test -n "$MAGIC_CMD"; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9145 $as_echo "$MAGIC_CMD" >&6; }
9146 else
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 $as_echo "no" >&6; }
9152 else
9153 MAGIC_CMD=:
9159 esac
9161 # Use C for the default configuration in the libtool script
9163 lt_save_CC="$CC"
9164 ac_ext=c
9165 ac_cpp='$CPP $CPPFLAGS'
9166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9171 # Source file extension for C test sources.
9172 ac_ext=c
9174 # Object file extension for compiled C test sources.
9175 objext=o
9176 objext=$objext
9178 # Code to be used in simple compile tests
9179 lt_simple_compile_test_code="int some_variable = 0;"
9181 # Code to be used in simple link tests
9182 lt_simple_link_test_code='int main(){return(0);}'
9190 # If no C compiler was specified, use CC.
9191 LTCC=${LTCC-"$CC"}
9193 # If no C compiler flags were specified, use CFLAGS.
9194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9196 # Allow CC to be a program name with arguments.
9197 compiler=$CC
9199 # Save the default compiler, since it gets overwritten when the other
9200 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9201 compiler_DEFAULT=$CC
9203 # save warnings/boilerplate of simple test code
9204 ac_outfile=conftest.$ac_objext
9205 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9206 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9207 _lt_compiler_boilerplate=`cat conftest.err`
9208 $RM conftest*
9210 ac_outfile=conftest.$ac_objext
9211 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9212 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9213 _lt_linker_boilerplate=`cat conftest.err`
9214 $RM -r conftest*
9217 ## CAVEAT EMPTOR:
9218 ## There is no encapsulation within the following macros, do not change
9219 ## the running order or otherwise move them around unless you know exactly
9220 ## what you are doing...
9221 if test -n "$compiler"; then
9223 lt_prog_compiler_no_builtin_flag=
9225 if test "$GCC" = yes; then
9226 case $cc_basename in
9227 nvcc*)
9228 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9230 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9231 esac
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9234 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9235 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 lt_cv_prog_compiler_rtti_exceptions=no
9239 ac_outfile=conftest.$ac_objext
9240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9241 lt_compiler_flag="-fno-rtti -fno-exceptions"
9242 # Insert the option either (1) after the last *FLAGS variable, or
9243 # (2) before a word containing "conftest.", or (3) at the end.
9244 # Note that $ac_compile itself does not contain backslashes and begins
9245 # with a dollar sign (not a hyphen), so the echo should work correctly.
9246 # The option is referenced via a variable to avoid confusing sed.
9247 lt_compile=`echo "$ac_compile" | $SED \
9248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9250 -e 's:$: $lt_compiler_flag:'`
9251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9252 (eval "$lt_compile" 2>conftest.err)
9253 ac_status=$?
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 if (exit $ac_status) && test -s "$ac_outfile"; then
9257 # The compiler can only warn and ignore the option if not recognized
9258 # So say no if there are warnings other than the usual output.
9259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9262 lt_cv_prog_compiler_rtti_exceptions=yes
9265 $RM conftest*
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9269 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9271 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9272 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9273 else
9284 lt_prog_compiler_wl=
9285 lt_prog_compiler_pic=
9286 lt_prog_compiler_static=
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9289 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9291 if test "$GCC" = yes; then
9292 lt_prog_compiler_wl='-Wl,'
9293 lt_prog_compiler_static='-static'
9295 case $host_os in
9296 aix*)
9297 # All AIX code is PIC.
9298 if test "$host_cpu" = ia64; then
9299 # AIX 5 now supports IA64 processor
9300 lt_prog_compiler_static='-Bstatic'
9304 amigaos*)
9305 case $host_cpu in
9306 powerpc)
9307 # see comment about AmigaOS4 .so support
9308 lt_prog_compiler_pic='-fPIC'
9310 m68k)
9311 # FIXME: we need at least 68020 code to build shared libraries, but
9312 # adding the `-m68020' flag to GCC prevents building anything better,
9313 # like `-m68040'.
9314 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9316 esac
9319 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9320 # PIC is the default for these OSes.
9323 mingw* | cygwin* | pw32* | os2* | cegcc*)
9324 # This hack is so that the source file can tell whether it is being
9325 # built for inclusion in a dll (and should export symbols for example).
9326 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9327 # (--disable-auto-import) libraries
9328 lt_prog_compiler_pic='-DDLL_EXPORT'
9331 darwin* | rhapsody*)
9332 # PIC is the default on this platform
9333 # Common symbols not allowed in MH_DYLIB files
9334 lt_prog_compiler_pic='-fno-common'
9337 haiku*)
9338 # PIC is the default for Haiku.
9339 # The "-static" flag exists, but is broken.
9340 lt_prog_compiler_static=
9343 hpux*)
9344 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9345 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9346 # sets the default TLS model and affects inlining.
9347 case $host_cpu in
9348 hppa*64*)
9349 # +Z the default
9352 lt_prog_compiler_pic='-fPIC'
9354 esac
9357 interix[3-9]*)
9358 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9359 # Instead, we relocate shared libraries at runtime.
9362 msdosdjgpp*)
9363 # Just because we use GCC doesn't mean we suddenly get shared libraries
9364 # on systems that don't support them.
9365 lt_prog_compiler_can_build_shared=no
9366 enable_shared=no
9369 *nto* | *qnx*)
9370 # QNX uses GNU C++, but need to define -shared option too, otherwise
9371 # it will coredump.
9372 lt_prog_compiler_pic='-fPIC -shared'
9375 sysv4*MP*)
9376 if test -d /usr/nec; then
9377 lt_prog_compiler_pic=-Kconform_pic
9382 lt_prog_compiler_pic='-fPIC'
9384 esac
9386 case $cc_basename in
9387 nvcc*) # Cuda Compiler Driver 2.2
9388 lt_prog_compiler_wl='-Xlinker '
9389 lt_prog_compiler_pic='-Xcompiler -fPIC'
9391 esac
9392 else
9393 # PORTME Check for flag to pass linker flags through the system compiler.
9394 case $host_os in
9395 aix*)
9396 lt_prog_compiler_wl='-Wl,'
9397 if test "$host_cpu" = ia64; then
9398 # AIX 5 now supports IA64 processor
9399 lt_prog_compiler_static='-Bstatic'
9400 else
9401 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9405 mingw* | cygwin* | pw32* | os2* | cegcc*)
9406 # This hack is so that the source file can tell whether it is being
9407 # built for inclusion in a dll (and should export symbols for example).
9408 lt_prog_compiler_pic='-DDLL_EXPORT'
9411 hpux9* | hpux10* | hpux11*)
9412 lt_prog_compiler_wl='-Wl,'
9413 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9414 # not for PA HP-UX.
9415 case $host_cpu in
9416 hppa*64*|ia64*)
9417 # +Z the default
9420 lt_prog_compiler_pic='+Z'
9422 esac
9423 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9424 lt_prog_compiler_static='${wl}-a ${wl}archive'
9427 irix5* | irix6* | nonstopux*)
9428 lt_prog_compiler_wl='-Wl,'
9429 # PIC (with -KPIC) is the default.
9430 lt_prog_compiler_static='-non_shared'
9433 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9434 case $cc_basename in
9435 # old Intel for x86_64 which still supported -KPIC.
9436 ecc*)
9437 lt_prog_compiler_wl='-Wl,'
9438 lt_prog_compiler_pic='-KPIC'
9439 lt_prog_compiler_static='-static'
9441 # icc used to be incompatible with GCC.
9442 # ICC 10 doesn't accept -KPIC any more.
9443 icc* | ifort*)
9444 lt_prog_compiler_wl='-Wl,'
9445 lt_prog_compiler_pic='-fPIC'
9446 lt_prog_compiler_static='-static'
9448 # Lahey Fortran 8.1.
9449 lf95*)
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_pic='--shared'
9452 lt_prog_compiler_static='--static'
9454 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9455 # Portland Group compilers (*not* the Pentium gcc compiler,
9456 # which looks to be a dead project)
9457 lt_prog_compiler_wl='-Wl,'
9458 lt_prog_compiler_pic='-fpic'
9459 lt_prog_compiler_static='-Bstatic'
9461 ccc*)
9462 lt_prog_compiler_wl='-Wl,'
9463 # All Alpha code is PIC.
9464 lt_prog_compiler_static='-non_shared'
9466 xl* | bgxl* | bgf* | mpixl*)
9467 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9468 lt_prog_compiler_wl='-Wl,'
9469 lt_prog_compiler_pic='-qpic'
9470 lt_prog_compiler_static='-qstaticlink'
9473 case `$CC -V 2>&1 | sed 5q` in
9474 *Sun\ F* | *Sun*Fortran*)
9475 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9476 lt_prog_compiler_pic='-KPIC'
9477 lt_prog_compiler_static='-Bstatic'
9478 lt_prog_compiler_wl=''
9480 *Sun\ C*)
9481 # Sun C 5.9
9482 lt_prog_compiler_pic='-KPIC'
9483 lt_prog_compiler_static='-Bstatic'
9484 lt_prog_compiler_wl='-Wl,'
9486 esac
9488 esac
9491 newsos6)
9492 lt_prog_compiler_pic='-KPIC'
9493 lt_prog_compiler_static='-Bstatic'
9496 *nto* | *qnx*)
9497 # QNX uses GNU C++, but need to define -shared option too, otherwise
9498 # it will coredump.
9499 lt_prog_compiler_pic='-fPIC -shared'
9502 osf3* | osf4* | osf5*)
9503 lt_prog_compiler_wl='-Wl,'
9504 # All OSF/1 code is PIC.
9505 lt_prog_compiler_static='-non_shared'
9508 rdos*)
9509 lt_prog_compiler_static='-non_shared'
9512 solaris*)
9513 lt_prog_compiler_pic='-KPIC'
9514 lt_prog_compiler_static='-Bstatic'
9515 case $cc_basename in
9516 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9517 lt_prog_compiler_wl='-Qoption ld ';;
9519 lt_prog_compiler_wl='-Wl,';;
9520 esac
9523 sunos4*)
9524 lt_prog_compiler_wl='-Qoption ld '
9525 lt_prog_compiler_pic='-PIC'
9526 lt_prog_compiler_static='-Bstatic'
9529 sysv4 | sysv4.2uw2* | sysv4.3*)
9530 lt_prog_compiler_wl='-Wl,'
9531 lt_prog_compiler_pic='-KPIC'
9532 lt_prog_compiler_static='-Bstatic'
9535 sysv4*MP*)
9536 if test -d /usr/nec ;then
9537 lt_prog_compiler_pic='-Kconform_pic'
9538 lt_prog_compiler_static='-Bstatic'
9542 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9543 lt_prog_compiler_wl='-Wl,'
9544 lt_prog_compiler_pic='-KPIC'
9545 lt_prog_compiler_static='-Bstatic'
9548 unicos*)
9549 lt_prog_compiler_wl='-Wl,'
9550 lt_prog_compiler_can_build_shared=no
9553 uts4*)
9554 lt_prog_compiler_pic='-pic'
9555 lt_prog_compiler_static='-Bstatic'
9559 lt_prog_compiler_can_build_shared=no
9561 esac
9564 case $host_os in
9565 # For platforms which do not support PIC, -DPIC is meaningless:
9566 *djgpp*)
9567 lt_prog_compiler_pic=
9570 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9572 esac
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9574 $as_echo "$lt_prog_compiler_pic" >&6; }
9582 # Check to make sure the PIC flag actually works.
9584 if test -n "$lt_prog_compiler_pic"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9586 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9587 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 lt_cv_prog_compiler_pic_works=no
9591 ac_outfile=conftest.$ac_objext
9592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9593 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9594 # Insert the option either (1) after the last *FLAGS variable, or
9595 # (2) before a word containing "conftest.", or (3) at the end.
9596 # Note that $ac_compile itself does not contain backslashes and begins
9597 # with a dollar sign (not a hyphen), so the echo should work correctly.
9598 # The option is referenced via a variable to avoid confusing sed.
9599 lt_compile=`echo "$ac_compile" | $SED \
9600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9602 -e 's:$: $lt_compiler_flag:'`
9603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9604 (eval "$lt_compile" 2>conftest.err)
9605 ac_status=$?
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 if (exit $ac_status) && test -s "$ac_outfile"; then
9609 # The compiler can only warn and ignore the option if not recognized
9610 # So say no if there are warnings other than the usual output.
9611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9613 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9614 lt_cv_prog_compiler_pic_works=yes
9617 $RM conftest*
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9621 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9623 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9624 case $lt_prog_compiler_pic in
9625 "" | " "*) ;;
9626 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9627 esac
9628 else
9629 lt_prog_compiler_pic=
9630 lt_prog_compiler_can_build_shared=no
9641 # Check to make sure the static flag actually works.
9643 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9645 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9646 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 lt_cv_prog_compiler_static_works=no
9650 save_LDFLAGS="$LDFLAGS"
9651 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9652 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9654 # The linker can only warn and ignore the option if not recognized
9655 # So say no if there are warnings
9656 if test -s conftest.err; then
9657 # Append any errors to the config.log.
9658 cat conftest.err 1>&5
9659 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9661 if diff conftest.exp conftest.er2 >/dev/null; then
9662 lt_cv_prog_compiler_static_works=yes
9664 else
9665 lt_cv_prog_compiler_static_works=yes
9668 $RM -r conftest*
9669 LDFLAGS="$save_LDFLAGS"
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9673 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9675 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9677 else
9678 lt_prog_compiler_static=
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9688 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9689 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 lt_cv_prog_compiler_c_o=no
9693 $RM -r conftest 2>/dev/null
9694 mkdir conftest
9695 cd conftest
9696 mkdir out
9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699 lt_compiler_flag="-o out/conftest2.$ac_objext"
9700 # Insert the option either (1) after the last *FLAGS variable, or
9701 # (2) before a word containing "conftest.", or (3) at the end.
9702 # Note that $ac_compile itself does not contain backslashes and begins
9703 # with a dollar sign (not a hyphen), so the echo should work correctly.
9704 lt_compile=`echo "$ac_compile" | $SED \
9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9707 -e 's:$: $lt_compiler_flag:'`
9708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9709 (eval "$lt_compile" 2>out/conftest.err)
9710 ac_status=$?
9711 cat out/conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9714 then
9715 # The compiler can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9720 lt_cv_prog_compiler_c_o=yes
9723 chmod u+w . 2>&5
9724 $RM conftest*
9725 # SGI C++ compiler will create directory out/ii_files/ for
9726 # template instantiation
9727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9728 $RM out/* && rmdir out
9729 cd ..
9730 $RM -r conftest
9731 $RM conftest*
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9735 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9744 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 lt_cv_prog_compiler_c_o=no
9748 $RM -r conftest 2>/dev/null
9749 mkdir conftest
9750 cd conftest
9751 mkdir out
9752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754 lt_compiler_flag="-o out/conftest2.$ac_objext"
9755 # Insert the option either (1) after the last *FLAGS variable, or
9756 # (2) before a word containing "conftest.", or (3) at the end.
9757 # Note that $ac_compile itself does not contain backslashes and begins
9758 # with a dollar sign (not a hyphen), so the echo should work correctly.
9759 lt_compile=`echo "$ac_compile" | $SED \
9760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9762 -e 's:$: $lt_compiler_flag:'`
9763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9764 (eval "$lt_compile" 2>out/conftest.err)
9765 ac_status=$?
9766 cat out/conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9769 then
9770 # The compiler can only warn and ignore the option if not recognized
9771 # So say no if there are warnings
9772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9775 lt_cv_prog_compiler_c_o=yes
9778 chmod u+w . 2>&5
9779 $RM conftest*
9780 # SGI C++ compiler will create directory out/ii_files/ for
9781 # template instantiation
9782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9783 $RM out/* && rmdir out
9784 cd ..
9785 $RM -r conftest
9786 $RM conftest*
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9790 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9795 hard_links="nottested"
9796 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9797 # do not overwrite the value of need_locks provided by the user
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9799 $as_echo_n "checking if we can lock with hard links... " >&6; }
9800 hard_links=yes
9801 $RM conftest*
9802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9803 touch conftest.a
9804 ln conftest.a conftest.b 2>&5 || hard_links=no
9805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9807 $as_echo "$hard_links" >&6; }
9808 if test "$hard_links" = no; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9810 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9811 need_locks=warn
9813 else
9814 need_locks=no
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9823 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9825 runpath_var=
9826 allow_undefined_flag=
9827 always_export_symbols=no
9828 archive_cmds=
9829 archive_expsym_cmds=
9830 compiler_needs_object=no
9831 enable_shared_with_static_runtimes=no
9832 export_dynamic_flag_spec=
9833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9834 hardcode_automatic=no
9835 hardcode_direct=no
9836 hardcode_direct_absolute=no
9837 hardcode_libdir_flag_spec=
9838 hardcode_libdir_flag_spec_ld=
9839 hardcode_libdir_separator=
9840 hardcode_minus_L=no
9841 hardcode_shlibpath_var=unsupported
9842 inherit_rpath=no
9843 link_all_deplibs=unknown
9844 module_cmds=
9845 module_expsym_cmds=
9846 old_archive_from_new_cmds=
9847 old_archive_from_expsyms_cmds=
9848 thread_safe_flag_spec=
9849 whole_archive_flag_spec=
9850 # include_expsyms should be a list of space-separated symbols to be *always*
9851 # included in the symbol list
9852 include_expsyms=
9853 # exclude_expsyms can be an extended regexp of symbols to exclude
9854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9856 # as well as any symbol that contains `d'.
9857 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9859 # platforms (ab)use it in PIC code, but their linkers get confused if
9860 # the symbol is explicitly referenced. Since portable code cannot
9861 # rely on this symbol name, it's probably fine to never include it in
9862 # preloaded symbol tables.
9863 # Exclude shared library initialization/finalization symbols.
9864 extract_expsyms_cmds=
9866 case $host_os in
9867 cygwin* | mingw* | pw32* | cegcc*)
9868 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9869 # When not using gcc, we currently assume that we are using
9870 # Microsoft Visual C++.
9871 if test "$GCC" != yes; then
9872 with_gnu_ld=no
9875 interix*)
9876 # we just hope/assume this is gcc and not c89 (= MSVC++)
9877 with_gnu_ld=yes
9879 openbsd*)
9880 with_gnu_ld=no
9882 esac
9884 ld_shlibs=yes
9886 # On some targets, GNU ld is compatible enough with the native linker
9887 # that we're better off using the native interface for both.
9888 lt_use_gnu_ld_interface=no
9889 if test "$with_gnu_ld" = yes; then
9890 case $host_os in
9891 aix*)
9892 # The AIX port of GNU ld has always aspired to compatibility
9893 # with the native linker. However, as the warning in the GNU ld
9894 # block says, versions before 2.19.5* couldn't really create working
9895 # shared libraries, regardless of the interface used.
9896 case `$LD -v 2>&1` in
9897 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9898 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9899 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9901 lt_use_gnu_ld_interface=yes
9903 esac
9906 lt_use_gnu_ld_interface=yes
9908 esac
9911 if test "$lt_use_gnu_ld_interface" = yes; then
9912 # If archive_cmds runs LD, not CC, wlarc should be empty
9913 wlarc='${wl}'
9915 # Set some defaults for GNU ld with shared library support. These
9916 # are reset later if shared libraries are not supported. Putting them
9917 # here allows them to be overridden if necessary.
9918 runpath_var=LD_RUN_PATH
9919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9920 export_dynamic_flag_spec='${wl}--export-dynamic'
9921 # ancient GNU ld didn't support --whole-archive et. al.
9922 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9923 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9924 else
9925 whole_archive_flag_spec=
9927 supports_anon_versioning=no
9928 case `$LD -v 2>&1` in
9929 *GNU\ gold*) supports_anon_versioning=yes ;;
9930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9933 *\ 2.11.*) ;; # other 2.11 versions
9934 *) supports_anon_versioning=yes ;;
9935 esac
9937 # See if GNU ld supports shared libraries.
9938 case $host_os in
9939 aix[3-9]*)
9940 # On AIX/PPC, the GNU linker is very broken
9941 if test "$host_cpu" != ia64; then
9942 ld_shlibs=no
9943 cat <<_LT_EOF 1>&2
9945 *** Warning: the GNU linker, at least up to release 2.19, is reported
9946 *** to be unable to reliably create shared libraries on AIX.
9947 *** Therefore, libtool is disabling shared libraries support. If you
9948 *** really care for shared libraries, you may want to install binutils
9949 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9950 *** You will then need to restart the configuration process.
9952 _LT_EOF
9956 amigaos*)
9957 case $host_cpu in
9958 powerpc)
9959 # see comment about AmigaOS4 .so support
9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9961 archive_expsym_cmds=''
9963 m68k)
9964 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9965 hardcode_libdir_flag_spec='-L$libdir'
9966 hardcode_minus_L=yes
9968 esac
9971 beos*)
9972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9973 allow_undefined_flag=unsupported
9974 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9975 # support --undefined. This deserves some investigation. FIXME
9976 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9977 else
9978 ld_shlibs=no
9982 cygwin* | mingw* | pw32* | cegcc*)
9983 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9984 # as there is no search path for DLLs.
9985 hardcode_libdir_flag_spec='-L$libdir'
9986 export_dynamic_flag_spec='${wl}--export-all-symbols'
9987 allow_undefined_flag=unsupported
9988 always_export_symbols=no
9989 enable_shared_with_static_runtimes=yes
9990 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9992 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9994 # If the export-symbols file already is a .def file (1st line
9995 # is EXPORTS), use it as is; otherwise, prepend...
9996 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9997 cp $export_symbols $output_objdir/$soname.def;
9998 else
9999 echo EXPORTS > $output_objdir/$soname.def;
10000 cat $export_symbols >> $output_objdir/$soname.def;
10002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10003 else
10004 ld_shlibs=no
10008 haiku*)
10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 link_all_deplibs=yes
10013 interix[3-9]*)
10014 hardcode_direct=no
10015 hardcode_shlibpath_var=no
10016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10017 export_dynamic_flag_spec='${wl}-E'
10018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10019 # Instead, shared libraries are loaded at an image base (0x10000000 by
10020 # default) and relocated if they conflict, which is a slow very memory
10021 # consuming and fragmenting process. To avoid this, we pick a random,
10022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10024 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10025 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10028 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10029 tmp_diet=no
10030 if test "$host_os" = linux-dietlibc; then
10031 case $cc_basename in
10032 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10033 esac
10035 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10036 && test "$tmp_diet" = no
10037 then
10038 tmp_addflag=
10039 tmp_sharedflag='-shared'
10040 case $cc_basename,$host_cpu in
10041 pgcc*) # Portland Group C compiler
10042 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10043 tmp_addflag=' $pic_flag'
10045 pgf77* | pgf90* | pgf95* | pgfortran*)
10046 # Portland Group f77 and f90 compilers
10047 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10048 tmp_addflag=' $pic_flag -Mnomain' ;;
10049 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10050 tmp_addflag=' -i_dynamic' ;;
10051 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10052 tmp_addflag=' -i_dynamic -nofor_main' ;;
10053 ifc* | ifort*) # Intel Fortran compiler
10054 tmp_addflag=' -nofor_main' ;;
10055 lf95*) # Lahey Fortran 8.1
10056 whole_archive_flag_spec=
10057 tmp_sharedflag='--shared' ;;
10058 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10059 tmp_sharedflag='-qmkshrobj'
10060 tmp_addflag= ;;
10061 nvcc*) # Cuda Compiler Driver 2.2
10062 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10063 compiler_needs_object=yes
10065 esac
10066 case `$CC -V 2>&1 | sed 5q` in
10067 *Sun\ C*) # Sun C 5.9
10068 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10069 compiler_needs_object=yes
10070 tmp_sharedflag='-G' ;;
10071 *Sun\ F*) # Sun Fortran 8.3
10072 tmp_sharedflag='-G' ;;
10073 esac
10074 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076 if test "x$supports_anon_versioning" = xyes; then
10077 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10079 echo "local: *; };" >> $output_objdir/$libname.ver~
10080 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10083 case $cc_basename in
10084 xlf* | bgf* | bgxlf* | mpixlf*)
10085 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10086 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10087 hardcode_libdir_flag_spec=
10088 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10089 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10090 if test "x$supports_anon_versioning" = xyes; then
10091 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10093 echo "local: *; };" >> $output_objdir/$libname.ver~
10094 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10097 esac
10098 else
10099 ld_shlibs=no
10103 netbsd*)
10104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10105 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10106 wlarc=
10107 else
10108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10113 solaris*)
10114 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10115 ld_shlibs=no
10116 cat <<_LT_EOF 1>&2
10118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10119 *** create shared libraries on Solaris systems. Therefore, libtool
10120 *** is disabling shared libraries support. We urge you to upgrade GNU
10121 *** binutils to release 2.9.1 or newer. Another option is to modify
10122 *** your PATH or compiler configuration so that the native linker is
10123 *** used, and then restart.
10125 _LT_EOF
10126 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10129 else
10130 ld_shlibs=no
10134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10135 case `$LD -v 2>&1` in
10136 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10137 ld_shlibs=no
10138 cat <<_LT_EOF 1>&2
10140 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10141 *** reliably create shared libraries on SCO systems. Therefore, libtool
10142 *** is disabling shared libraries support. We urge you to upgrade GNU
10143 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10144 *** your PATH or compiler configuration so that the native linker is
10145 *** used, and then restart.
10147 _LT_EOF
10150 # For security reasons, it is highly recommended that you always
10151 # use absolute paths for naming shared libraries, and exclude the
10152 # DT_RUNPATH tag from executables and libraries. But doing so
10153 # requires that you compile everything twice, which is a pain.
10154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10158 else
10159 ld_shlibs=no
10162 esac
10165 sunos4*)
10166 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10167 wlarc=
10168 hardcode_direct=yes
10169 hardcode_shlibpath_var=no
10173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10176 else
10177 ld_shlibs=no
10180 esac
10182 if test "$ld_shlibs" = no; then
10183 runpath_var=
10184 hardcode_libdir_flag_spec=
10185 export_dynamic_flag_spec=
10186 whole_archive_flag_spec=
10188 else
10189 # PORTME fill in a description of your system's linker (not GNU ld)
10190 case $host_os in
10191 aix3*)
10192 allow_undefined_flag=unsupported
10193 always_export_symbols=yes
10194 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10195 # Note: this linker hardcodes the directories in LIBPATH if there
10196 # are no directories specified by -L.
10197 hardcode_minus_L=yes
10198 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10199 # Neither direct hardcoding nor static linking is supported with a
10200 # broken collect2.
10201 hardcode_direct=unsupported
10205 aix[4-9]*)
10206 if test "$host_cpu" = ia64; then
10207 # On IA64, the linker does run time linking by default, so we don't
10208 # have to do anything special.
10209 aix_use_runtimelinking=no
10210 exp_sym_flag='-Bexport'
10211 no_entry_flag=""
10212 else
10213 # If we're using GNU nm, then we don't want the "-C" option.
10214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10215 # Also, AIX nm treats weak defined symbols like other global
10216 # defined symbols, whereas GNU nm marks them as "W".
10217 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10218 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10219 else
10220 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10222 aix_use_runtimelinking=no
10224 # Test if we are trying to use run time linking or normal
10225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10226 # need to do runtime linking.
10227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10228 for ld_flag in $LDFLAGS; do
10229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10230 aix_use_runtimelinking=yes
10231 break
10233 done
10235 esac
10237 exp_sym_flag='-bexport'
10238 no_entry_flag='-bnoentry'
10241 # When large executables or shared objects are built, AIX ld can
10242 # have problems creating the table of contents. If linking a library
10243 # or program results in "error TOC overflow" add -mminimal-toc to
10244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10247 archive_cmds=''
10248 hardcode_direct=yes
10249 hardcode_direct_absolute=yes
10250 hardcode_libdir_separator=':'
10251 link_all_deplibs=yes
10252 file_list_spec='${wl}-f,'
10254 if test "$GCC" = yes; then
10255 case $host_os in aix4.[012]|aix4.[012].*)
10256 # We only want to do this on AIX 4.2 and lower, the check
10257 # below for broken collect2 doesn't work under 4.3+
10258 collect2name=`${CC} -print-prog-name=collect2`
10259 if test -f "$collect2name" &&
10260 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10261 then
10262 # We have reworked collect2
10264 else
10265 # We have old collect2
10266 hardcode_direct=unsupported
10267 # It fails to find uninstalled libraries when the uninstalled
10268 # path is not listed in the libpath. Setting hardcode_minus_L
10269 # to unsupported forces relinking
10270 hardcode_minus_L=yes
10271 hardcode_libdir_flag_spec='-L$libdir'
10272 hardcode_libdir_separator=
10275 esac
10276 shared_flag='-shared'
10277 if test "$aix_use_runtimelinking" = yes; then
10278 shared_flag="$shared_flag "'${wl}-G'
10280 else
10281 # not using gcc
10282 if test "$host_cpu" = ia64; then
10283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10284 # chokes on -Wl,-G. The following line is correct:
10285 shared_flag='-G'
10286 else
10287 if test "$aix_use_runtimelinking" = yes; then
10288 shared_flag='${wl}-G'
10289 else
10290 shared_flag='${wl}-bM:SRE'
10295 export_dynamic_flag_spec='${wl}-bexpall'
10296 # It seems that -bexpall does not export symbols beginning with
10297 # underscore (_), so it is better to generate a list of symbols to export.
10298 always_export_symbols=yes
10299 if test "$aix_use_runtimelinking" = yes; then
10300 # Warning - without using the other runtime loading flags (-brtl),
10301 # -berok will link without error, but may produce a broken library.
10302 allow_undefined_flag='-berok'
10303 # Determine the default libpath from the value encoded in an
10304 # empty executable.
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10309 main ()
10313 return 0;
10315 _ACEOF
10316 if ac_fn_c_try_link "$LINENO"; then :
10318 lt_aix_libpath_sed='
10319 /Import File Strings/,/^$/ {
10320 /^0/ {
10321 s/^0 *\(.*\)$/\1/
10325 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10326 # Check for a 64-bit object if we didn't find anything.
10327 if test -z "$aix_libpath"; then
10328 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10331 rm -f core conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10335 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10336 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10337 else
10338 if test "$host_cpu" = ia64; then
10339 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10340 allow_undefined_flag="-z nodefs"
10341 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10342 else
10343 # Determine the default libpath from the value encoded in an
10344 # empty executable.
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10349 main ()
10353 return 0;
10355 _ACEOF
10356 if ac_fn_c_try_link "$LINENO"; then :
10358 lt_aix_libpath_sed='
10359 /Import File Strings/,/^$/ {
10360 /^0/ {
10361 s/^0 *\(.*\)$/\1/
10365 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10366 # Check for a 64-bit object if we didn't find anything.
10367 if test -z "$aix_libpath"; then
10368 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10376 # Warning - without using the other run time loading flags,
10377 # -berok will link without error, but may produce a broken library.
10378 no_undefined_flag=' ${wl}-bernotok'
10379 allow_undefined_flag=' ${wl}-berok'
10380 if test "$with_gnu_ld" = yes; then
10381 # We only use this code for GNU lds that support --whole-archive.
10382 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10383 else
10384 # Exported symbols can be pulled into shared objects from archives
10385 whole_archive_flag_spec='$convenience'
10387 archive_cmds_need_lc=yes
10388 # This is similar to how AIX traditionally builds its shared libraries.
10389 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10394 amigaos*)
10395 case $host_cpu in
10396 powerpc)
10397 # see comment about AmigaOS4 .so support
10398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10399 archive_expsym_cmds=''
10401 m68k)
10402 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10403 hardcode_libdir_flag_spec='-L$libdir'
10404 hardcode_minus_L=yes
10406 esac
10409 bsdi[45]*)
10410 export_dynamic_flag_spec=-rdynamic
10413 cygwin* | mingw* | pw32* | cegcc*)
10414 # When not using gcc, we currently assume that we are using
10415 # Microsoft Visual C++.
10416 # hardcode_libdir_flag_spec is actually meaningless, as there is
10417 # no search path for DLLs.
10418 hardcode_libdir_flag_spec=' '
10419 allow_undefined_flag=unsupported
10420 # Tell ltmain to make .lib files, not .a files.
10421 libext=lib
10422 # Tell ltmain to make .dll files, not .so files.
10423 shrext_cmds=".dll"
10424 # FIXME: Setting linknames here is a bad hack.
10425 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10426 # The linker will automatically build a .lib file if we build a DLL.
10427 old_archive_from_new_cmds='true'
10428 # FIXME: Should let the user specify the lib program.
10429 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10430 fix_srcfile_path='`cygpath -w "$srcfile"`'
10431 enable_shared_with_static_runtimes=yes
10434 darwin* | rhapsody*)
10437 archive_cmds_need_lc=no
10438 hardcode_direct=no
10439 hardcode_automatic=yes
10440 hardcode_shlibpath_var=unsupported
10441 if test "$lt_cv_ld_force_load" = "yes"; then
10442 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10443 else
10444 whole_archive_flag_spec=''
10446 link_all_deplibs=yes
10447 allow_undefined_flag="$_lt_dar_allow_undefined"
10448 case $cc_basename in
10449 ifort*) _lt_dar_can_shared=yes ;;
10450 *) _lt_dar_can_shared=$GCC ;;
10451 esac
10452 if test "$_lt_dar_can_shared" = "yes"; then
10453 output_verbose_link_cmd=func_echo_all
10454 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10455 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10456 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10457 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10459 else
10460 ld_shlibs=no
10465 dgux*)
10466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_libdir_flag_spec='-L$libdir'
10468 hardcode_shlibpath_var=no
10471 freebsd1*)
10472 ld_shlibs=no
10475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10476 # support. Future versions do this automatically, but an explicit c++rt0.o
10477 # does not break anything, and helps significantly (at the cost of a little
10478 # extra space).
10479 freebsd2.2*)
10480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10481 hardcode_libdir_flag_spec='-R$libdir'
10482 hardcode_direct=yes
10483 hardcode_shlibpath_var=no
10486 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10487 freebsd2*)
10488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10489 hardcode_direct=yes
10490 hardcode_minus_L=yes
10491 hardcode_shlibpath_var=no
10494 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10495 freebsd* | dragonfly*)
10496 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10497 hardcode_libdir_flag_spec='-R$libdir'
10498 hardcode_direct=yes
10499 hardcode_shlibpath_var=no
10502 hpux9*)
10503 if test "$GCC" = yes; then
10504 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10505 else
10506 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10509 hardcode_libdir_separator=:
10510 hardcode_direct=yes
10512 # hardcode_minus_L: Not really in the search PATH,
10513 # but as the default location of the library.
10514 hardcode_minus_L=yes
10515 export_dynamic_flag_spec='${wl}-E'
10518 hpux10*)
10519 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10520 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10521 else
10522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10524 if test "$with_gnu_ld" = no; then
10525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10526 hardcode_libdir_flag_spec_ld='+b $libdir'
10527 hardcode_libdir_separator=:
10528 hardcode_direct=yes
10529 hardcode_direct_absolute=yes
10530 export_dynamic_flag_spec='${wl}-E'
10531 # hardcode_minus_L: Not really in the search PATH,
10532 # but as the default location of the library.
10533 hardcode_minus_L=yes
10537 hpux11*)
10538 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10539 case $host_cpu in
10540 hppa*64*)
10541 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 ia64*)
10544 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10547 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10549 esac
10550 else
10551 case $host_cpu in
10552 hppa*64*)
10553 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10555 ia64*)
10556 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10560 # Older versions of the 11.00 compiler do not understand -b yet
10561 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10563 $as_echo_n "checking if $CC understands -b... " >&6; }
10564 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 lt_cv_prog_compiler__b=no
10568 save_LDFLAGS="$LDFLAGS"
10569 LDFLAGS="$LDFLAGS -b"
10570 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10572 # The linker can only warn and ignore the option if not recognized
10573 # So say no if there are warnings
10574 if test -s conftest.err; then
10575 # Append any errors to the config.log.
10576 cat conftest.err 1>&5
10577 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10579 if diff conftest.exp conftest.er2 >/dev/null; then
10580 lt_cv_prog_compiler__b=yes
10582 else
10583 lt_cv_prog_compiler__b=yes
10586 $RM -r conftest*
10587 LDFLAGS="$save_LDFLAGS"
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10591 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10593 if test x"$lt_cv_prog_compiler__b" = xyes; then
10594 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10595 else
10596 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10600 esac
10602 if test "$with_gnu_ld" = no; then
10603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10604 hardcode_libdir_separator=:
10606 case $host_cpu in
10607 hppa*64*|ia64*)
10608 hardcode_direct=no
10609 hardcode_shlibpath_var=no
10612 hardcode_direct=yes
10613 hardcode_direct_absolute=yes
10614 export_dynamic_flag_spec='${wl}-E'
10616 # hardcode_minus_L: Not really in the search PATH,
10617 # but as the default location of the library.
10618 hardcode_minus_L=yes
10620 esac
10624 irix5* | irix6* | nonstopux*)
10625 if test "$GCC" = yes; then
10626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10627 # Try to use the -exported_symbol ld option, if it does not
10628 # work, assume that -exports_file does not work either and
10629 # implicitly export all symbols.
10630 save_LDFLAGS="$LDFLAGS"
10631 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 int foo(void) {}
10635 _ACEOF
10636 if ac_fn_c_try_link "$LINENO"; then :
10637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10640 rm -f core conftest.err conftest.$ac_objext \
10641 conftest$ac_exeext conftest.$ac_ext
10642 LDFLAGS="$save_LDFLAGS"
10643 else
10644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10647 archive_cmds_need_lc='no'
10648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10649 hardcode_libdir_separator=:
10650 inherit_rpath=yes
10651 link_all_deplibs=yes
10654 netbsd*)
10655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10657 else
10658 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10660 hardcode_libdir_flag_spec='-R$libdir'
10661 hardcode_direct=yes
10662 hardcode_shlibpath_var=no
10665 newsos6)
10666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10667 hardcode_direct=yes
10668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10669 hardcode_libdir_separator=:
10670 hardcode_shlibpath_var=no
10673 *nto* | *qnx*)
10676 openbsd*)
10677 if test -f /usr/libexec/ld.so; then
10678 hardcode_direct=yes
10679 hardcode_shlibpath_var=no
10680 hardcode_direct_absolute=yes
10681 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10682 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10683 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10684 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10685 export_dynamic_flag_spec='${wl}-E'
10686 else
10687 case $host_os in
10688 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10690 hardcode_libdir_flag_spec='-R$libdir'
10693 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10694 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10696 esac
10698 else
10699 ld_shlibs=no
10703 os2*)
10704 hardcode_libdir_flag_spec='-L$libdir'
10705 hardcode_minus_L=yes
10706 allow_undefined_flag=unsupported
10707 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10708 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10711 osf3*)
10712 if test "$GCC" = yes; then
10713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10714 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10715 else
10716 allow_undefined_flag=' -expect_unresolved \*'
10717 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10719 archive_cmds_need_lc='no'
10720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10721 hardcode_libdir_separator=:
10724 osf4* | osf5*) # as osf3* with the addition of -msym flag
10725 if test "$GCC" = yes; then
10726 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10727 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729 else
10730 allow_undefined_flag=' -expect_unresolved \*'
10731 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10732 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10733 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10735 # Both c and cxx compiler support -rpath directly
10736 hardcode_libdir_flag_spec='-rpath $libdir'
10738 archive_cmds_need_lc='no'
10739 hardcode_libdir_separator=:
10742 solaris*)
10743 no_undefined_flag=' -z defs'
10744 if test "$GCC" = yes; then
10745 wlarc='${wl}'
10746 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10748 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10749 else
10750 case `$CC -V 2>&1` in
10751 *"Compilers 5.0"*)
10752 wlarc=''
10753 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10755 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10758 wlarc='${wl}'
10759 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10761 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10763 esac
10765 hardcode_libdir_flag_spec='-R$libdir'
10766 hardcode_shlibpath_var=no
10767 case $host_os in
10768 solaris2.[0-5] | solaris2.[0-5].*) ;;
10770 # The compiler driver will combine and reorder linker options,
10771 # but understands `-z linker_flag'. GCC discards it without `$wl',
10772 # but is careful enough not to reorder.
10773 # Supported since Solaris 2.6 (maybe 2.5.1?)
10774 if test "$GCC" = yes; then
10775 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10776 else
10777 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10780 esac
10781 link_all_deplibs=yes
10784 sunos4*)
10785 if test "x$host_vendor" = xsequent; then
10786 # Use $CC to link under sequent, because it throws in some extra .o
10787 # files that make .init and .fini sections work.
10788 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10789 else
10790 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10792 hardcode_libdir_flag_spec='-L$libdir'
10793 hardcode_direct=yes
10794 hardcode_minus_L=yes
10795 hardcode_shlibpath_var=no
10798 sysv4)
10799 case $host_vendor in
10800 sni)
10801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10802 hardcode_direct=yes # is this really true???
10804 siemens)
10805 ## LD is ld it makes a PLAMLIB
10806 ## CC just makes a GrossModule.
10807 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10808 reload_cmds='$CC -r -o $output$reload_objs'
10809 hardcode_direct=no
10811 motorola)
10812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10813 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10815 esac
10816 runpath_var='LD_RUN_PATH'
10817 hardcode_shlibpath_var=no
10820 sysv4.3*)
10821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822 hardcode_shlibpath_var=no
10823 export_dynamic_flag_spec='-Bexport'
10826 sysv4*MP*)
10827 if test -d /usr/nec; then
10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829 hardcode_shlibpath_var=no
10830 runpath_var=LD_RUN_PATH
10831 hardcode_runpath_var=yes
10832 ld_shlibs=yes
10836 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10837 no_undefined_flag='${wl}-z,text'
10838 archive_cmds_need_lc=no
10839 hardcode_shlibpath_var=no
10840 runpath_var='LD_RUN_PATH'
10842 if test "$GCC" = yes; then
10843 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10844 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10845 else
10846 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10847 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 sysv5* | sco3.2v5* | sco5v6*)
10852 # Note: We can NOT use -z defs as we might desire, because we do not
10853 # link with -lc, and that would cause any symbols used from libc to
10854 # always be unresolved, which means just about no library would
10855 # ever link correctly. If we're not using GNU ld we use -z text
10856 # though, which does catch some bad symbols but isn't as heavy-handed
10857 # as -z defs.
10858 no_undefined_flag='${wl}-z,text'
10859 allow_undefined_flag='${wl}-z,nodefs'
10860 archive_cmds_need_lc=no
10861 hardcode_shlibpath_var=no
10862 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10863 hardcode_libdir_separator=':'
10864 link_all_deplibs=yes
10865 export_dynamic_flag_spec='${wl}-Bexport'
10866 runpath_var='LD_RUN_PATH'
10868 if test "$GCC" = yes; then
10869 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10871 else
10872 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10873 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10877 uts4*)
10878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10879 hardcode_libdir_flag_spec='-L$libdir'
10880 hardcode_shlibpath_var=no
10884 ld_shlibs=no
10886 esac
10888 if test x$host_vendor = xsni; then
10889 case $host in
10890 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10891 export_dynamic_flag_spec='${wl}-Blargedynsym'
10893 esac
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10898 $as_echo "$ld_shlibs" >&6; }
10899 test "$ld_shlibs" = no && can_build_shared=no
10901 with_gnu_ld=$with_gnu_ld
10918 # Do we need to explicitly link libc?
10920 case "x$archive_cmds_need_lc" in
10921 x|xyes)
10922 # Assume -lc should be added
10923 archive_cmds_need_lc=yes
10925 if test "$enable_shared" = yes && test "$GCC" = yes; then
10926 case $archive_cmds in
10927 *'~'*)
10928 # FIXME: we may have to deal with multi-command sequences.
10930 '$CC '*)
10931 # Test whether the compiler implicitly links with -lc since on some
10932 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10933 # to ld, don't add -lc before -lgcc.
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10935 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10936 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 $RM conftest*
10940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10943 (eval $ac_compile) 2>&5
10944 ac_status=$?
10945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10946 test $ac_status = 0; } 2>conftest.err; then
10947 soname=conftest
10948 lib=conftest
10949 libobjs=conftest.$ac_objext
10950 deplibs=
10951 wl=$lt_prog_compiler_wl
10952 pic_flag=$lt_prog_compiler_pic
10953 compiler_flags=-v
10954 linker_flags=-v
10955 verstring=
10956 output_objdir=.
10957 libname=conftest
10958 lt_save_allow_undefined_flag=$allow_undefined_flag
10959 allow_undefined_flag=
10960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10961 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10962 ac_status=$?
10963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10964 test $ac_status = 0; }
10965 then
10966 lt_cv_archive_cmds_need_lc=no
10967 else
10968 lt_cv_archive_cmds_need_lc=yes
10970 allow_undefined_flag=$lt_save_allow_undefined_flag
10971 else
10972 cat conftest.err 1>&5
10974 $RM conftest*
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10978 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10979 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10981 esac
10984 esac
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11143 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11145 if test "$GCC" = yes; then
11146 case $host_os in
11147 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11148 *) lt_awk_arg="/^libraries:/" ;;
11149 esac
11150 case $host_os in
11151 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11152 *) lt_sed_strip_eq="s,=/,/,g" ;;
11153 esac
11154 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11155 case $lt_search_path_spec in
11156 *\;*)
11157 # if the path contains ";" then we assume it to be the separator
11158 # otherwise default to the standard path separator (i.e. ":") - it is
11159 # assumed that no part of a normal pathname contains ";" but that should
11160 # okay in the real world where ";" in dirpaths is itself problematic.
11161 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11164 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11166 esac
11167 # Ok, now we have the path, separated by spaces, we can step through it
11168 # and add multilib dir if necessary.
11169 lt_tmp_lt_search_path_spec=
11170 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11171 for lt_sys_path in $lt_search_path_spec; do
11172 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11173 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11174 else
11175 test -d "$lt_sys_path" && \
11176 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11178 done
11179 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11180 BEGIN {RS=" "; FS="/|\n";} {
11181 lt_foo="";
11182 lt_count=0;
11183 for (lt_i = NF; lt_i > 0; lt_i--) {
11184 if ($lt_i != "" && $lt_i != ".") {
11185 if ($lt_i == "..") {
11186 lt_count++;
11187 } else {
11188 if (lt_count == 0) {
11189 lt_foo="/" $lt_i lt_foo;
11190 } else {
11191 lt_count--;
11196 if (lt_foo != "") { lt_freq[lt_foo]++; }
11197 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11199 # AWK program above erroneously prepends '/' to C:/dos/paths
11200 # for these hosts.
11201 case $host_os in
11202 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11203 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11204 esac
11205 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11206 else
11207 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11209 library_names_spec=
11210 libname_spec='lib$name'
11211 soname_spec=
11212 shrext_cmds=".so"
11213 postinstall_cmds=
11214 postuninstall_cmds=
11215 finish_cmds=
11216 finish_eval=
11217 shlibpath_var=
11218 shlibpath_overrides_runpath=unknown
11219 version_type=none
11220 dynamic_linker="$host_os ld.so"
11221 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11222 need_lib_prefix=unknown
11223 hardcode_into_libs=no
11225 # when you set need_version to no, make sure it does not cause -set_version
11226 # flags to be left without arguments
11227 need_version=unknown
11229 case $host_os in
11230 aix3*)
11231 version_type=linux
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11233 shlibpath_var=LIBPATH
11235 # AIX 3 has no versioning support, so we append a major version to the name.
11236 soname_spec='${libname}${release}${shared_ext}$major'
11239 aix[4-9]*)
11240 version_type=linux
11241 need_lib_prefix=no
11242 need_version=no
11243 hardcode_into_libs=yes
11244 if test "$host_cpu" = ia64; then
11245 # AIX 5 supports IA64
11246 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11247 shlibpath_var=LD_LIBRARY_PATH
11248 else
11249 # With GCC up to 2.95.x, collect2 would create an import file
11250 # for dependence libraries. The import file would start with
11251 # the line `#! .'. This would cause the generated library to
11252 # depend on `.', always an invalid library. This was fixed in
11253 # development snapshots of GCC prior to 3.0.
11254 case $host_os in
11255 aix4 | aix4.[01] | aix4.[01].*)
11256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11257 echo ' yes '
11258 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11260 else
11261 can_build_shared=no
11264 esac
11265 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11266 # soname into executable. Probably we can add versioning support to
11267 # collect2, so additional links can be useful in future.
11268 if test "$aix_use_runtimelinking" = yes; then
11269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11270 # instead of lib<name>.a to let people know that these are not
11271 # typical AIX shared libraries.
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 else
11274 # We preserve .a as extension for shared libraries through AIX4.2
11275 # and later when we are not doing run time linking.
11276 library_names_spec='${libname}${release}.a $libname.a'
11277 soname_spec='${libname}${release}${shared_ext}$major'
11279 shlibpath_var=LIBPATH
11283 amigaos*)
11284 case $host_cpu in
11285 powerpc)
11286 # Since July 2007 AmigaOS4 officially supports .so libraries.
11287 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11290 m68k)
11291 library_names_spec='$libname.ixlibrary $libname.a'
11292 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11293 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11295 esac
11298 beos*)
11299 library_names_spec='${libname}${shared_ext}'
11300 dynamic_linker="$host_os ld.so"
11301 shlibpath_var=LIBRARY_PATH
11304 bsdi[45]*)
11305 version_type=linux
11306 need_version=no
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308 soname_spec='${libname}${release}${shared_ext}$major'
11309 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11310 shlibpath_var=LD_LIBRARY_PATH
11311 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11312 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11313 # the default ld.so.conf also contains /usr/contrib/lib and
11314 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11315 # libtool to hard-code these into programs
11318 cygwin* | mingw* | pw32* | cegcc*)
11319 version_type=windows
11320 shrext_cmds=".dll"
11321 need_version=no
11322 need_lib_prefix=no
11324 case $GCC,$host_os in
11325 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11326 library_names_spec='$libname.dll.a'
11327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11328 postinstall_cmds='base_file=`basename \${file}`~
11329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11330 dldir=$destdir/`dirname \$dlpath`~
11331 test -d \$dldir || mkdir -p \$dldir~
11332 $install_prog $dir/$dlname \$dldir/$dlname~
11333 chmod a+x \$dldir/$dlname~
11334 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11335 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11337 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11338 dlpath=$dir/\$dldll~
11339 $RM \$dlpath'
11340 shlibpath_overrides_runpath=yes
11342 case $host_os in
11343 cygwin*)
11344 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11345 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11347 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11349 mingw* | cegcc*)
11350 # MinGW DLLs use traditional 'lib' prefix
11351 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11353 pw32*)
11354 # pw32 DLLs use 'pw' prefix rather than 'lib'
11355 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11357 esac
11361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11363 esac
11364 dynamic_linker='Win32 ld.exe'
11365 # FIXME: first we should search . and the directory the executable is in
11366 shlibpath_var=PATH
11369 darwin* | rhapsody*)
11370 dynamic_linker="$host_os dyld"
11371 version_type=darwin
11372 need_lib_prefix=no
11373 need_version=no
11374 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11375 soname_spec='${libname}${release}${major}$shared_ext'
11376 shlibpath_overrides_runpath=yes
11377 shlibpath_var=DYLD_LIBRARY_PATH
11378 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11384 dgux*)
11385 version_type=linux
11386 need_lib_prefix=no
11387 need_version=no
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 shlibpath_var=LD_LIBRARY_PATH
11393 freebsd1*)
11394 dynamic_linker=no
11397 freebsd* | dragonfly*)
11398 # DragonFly does not have aout. When/if they implement a new
11399 # versioning mechanism, adjust this.
11400 if test -x /usr/bin/objformat; then
11401 objformat=`/usr/bin/objformat`
11402 else
11403 case $host_os in
11404 freebsd[123]*) objformat=aout ;;
11405 *) objformat=elf ;;
11406 esac
11408 version_type=freebsd-$objformat
11409 case $version_type in
11410 freebsd-elf*)
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11412 need_version=no
11413 need_lib_prefix=no
11415 freebsd-*)
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11417 need_version=yes
11419 esac
11420 shlibpath_var=LD_LIBRARY_PATH
11421 case $host_os in
11422 freebsd2*)
11423 shlibpath_overrides_runpath=yes
11425 freebsd3.[01]* | freebsdelf3.[01]*)
11426 shlibpath_overrides_runpath=yes
11427 hardcode_into_libs=yes
11429 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11430 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11431 shlibpath_overrides_runpath=no
11432 hardcode_into_libs=yes
11434 *) # from 4.6 on, and DragonFly
11435 shlibpath_overrides_runpath=yes
11436 hardcode_into_libs=yes
11438 esac
11441 gnu*)
11442 version_type=linux
11443 need_lib_prefix=no
11444 need_version=no
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 hardcode_into_libs=yes
11451 haiku*)
11452 version_type=linux
11453 need_lib_prefix=no
11454 need_version=no
11455 dynamic_linker="$host_os runtime_loader"
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 shlibpath_var=LIBRARY_PATH
11459 shlibpath_overrides_runpath=yes
11460 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11461 hardcode_into_libs=yes
11464 hpux9* | hpux10* | hpux11*)
11465 # Give a soname corresponding to the major version so that dld.sl refuses to
11466 # link against other versions.
11467 version_type=sunos
11468 need_lib_prefix=no
11469 need_version=no
11470 case $host_cpu in
11471 ia64*)
11472 shrext_cmds='.so'
11473 hardcode_into_libs=yes
11474 dynamic_linker="$host_os dld.so"
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11479 if test "X$HPUX_IA64_MODE" = X32; then
11480 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11481 else
11482 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11486 hppa*64*)
11487 shrext_cmds='.sl'
11488 hardcode_into_libs=yes
11489 dynamic_linker="$host_os dld.sl"
11490 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11498 shrext_cmds='.sl'
11499 dynamic_linker="$host_os dld.sl"
11500 shlibpath_var=SHLIB_PATH
11501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503 soname_spec='${libname}${release}${shared_ext}$major'
11505 esac
11506 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11507 postinstall_cmds='chmod 555 $lib'
11508 # or fails outright, so override atomically:
11509 install_override_mode=555
11512 interix[3-9]*)
11513 version_type=linux
11514 need_lib_prefix=no
11515 need_version=no
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath=no
11521 hardcode_into_libs=yes
11524 irix5* | irix6* | nonstopux*)
11525 case $host_os in
11526 nonstopux*) version_type=nonstopux ;;
11528 if test "$lt_cv_prog_gnu_ld" = yes; then
11529 version_type=linux
11530 else
11531 version_type=irix
11532 fi ;;
11533 esac
11534 need_lib_prefix=no
11535 need_version=no
11536 soname_spec='${libname}${release}${shared_ext}$major'
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11538 case $host_os in
11539 irix5* | nonstopux*)
11540 libsuff= shlibsuff=
11543 case $LD in # libtool.m4 will add one of these switches to LD
11544 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11545 libsuff= shlibsuff= libmagic=32-bit;;
11546 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11547 libsuff=32 shlibsuff=N32 libmagic=N32;;
11548 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11549 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11550 *) libsuff= shlibsuff= libmagic=never-match;;
11551 esac
11553 esac
11554 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11555 shlibpath_overrides_runpath=no
11556 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11557 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11558 hardcode_into_libs=yes
11561 # No shared lib support for Linux oldld, aout, or coff.
11562 linux*oldld* | linux*aout* | linux*coff*)
11563 dynamic_linker=no
11566 # This must be Linux ELF.
11567 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11568 version_type=linux
11569 need_lib_prefix=no
11570 need_version=no
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 soname_spec='${libname}${release}${shared_ext}$major'
11573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=no
11577 # Some binutils ld are patched to set DT_RUNPATH
11578 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 lt_cv_shlibpath_overrides_runpath=no
11582 save_LDFLAGS=$LDFLAGS
11583 save_libdir=$libdir
11584 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11585 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11590 main ()
11594 return 0;
11596 _ACEOF
11597 if ac_fn_c_try_link "$LINENO"; then :
11598 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11599 lt_cv_shlibpath_overrides_runpath=yes
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LDFLAGS=$save_LDFLAGS
11605 libdir=$save_libdir
11609 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11611 # This implies no fast_install, which is unacceptable.
11612 # Some rework will be needed to allow for fast_install
11613 # before this can be enabled.
11614 hardcode_into_libs=yes
11616 # Add ABI-specific directories to the system library path.
11617 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11619 # Append ld.so.conf contents to the search path
11620 if test -f /etc/ld.so.conf; then
11621 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11622 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11626 # We used to test for /lib/ld.so.1 and disable shared libraries on
11627 # powerpc, because MkLinux only supported shared libraries with the
11628 # GNU dynamic linker. Since this was broken with cross compilers,
11629 # most powerpc-linux boxes support dynamic linking these days and
11630 # people can always --disable-shared, the test was removed, and we
11631 # assume the GNU/Linux dynamic linker is in use.
11632 dynamic_linker='GNU/Linux ld.so'
11635 netbsd*)
11636 version_type=sunos
11637 need_lib_prefix=no
11638 need_version=no
11639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11642 dynamic_linker='NetBSD (a.out) ld.so'
11643 else
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 dynamic_linker='NetBSD ld.elf_so'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 shlibpath_overrides_runpath=yes
11650 hardcode_into_libs=yes
11653 newsos6)
11654 version_type=linux
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 shlibpath_overrides_runpath=yes
11660 *nto* | *qnx*)
11661 version_type=qnx
11662 need_lib_prefix=no
11663 need_version=no
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=no
11668 hardcode_into_libs=yes
11669 dynamic_linker='ldqnx.so'
11672 openbsd*)
11673 version_type=sunos
11674 sys_lib_dlsearch_path_spec="/usr/lib"
11675 need_lib_prefix=no
11676 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11677 case $host_os in
11678 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11679 *) need_version=no ;;
11680 esac
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11683 shlibpath_var=LD_LIBRARY_PATH
11684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11685 case $host_os in
11686 openbsd2.[89] | openbsd2.[89].*)
11687 shlibpath_overrides_runpath=no
11690 shlibpath_overrides_runpath=yes
11692 esac
11693 else
11694 shlibpath_overrides_runpath=yes
11698 os2*)
11699 libname_spec='$name'
11700 shrext_cmds=".dll"
11701 need_lib_prefix=no
11702 library_names_spec='$libname${shared_ext} $libname.a'
11703 dynamic_linker='OS/2 ld.exe'
11704 shlibpath_var=LIBPATH
11707 osf3* | osf4* | osf5*)
11708 version_type=osf
11709 need_lib_prefix=no
11710 need_version=no
11711 soname_spec='${libname}${release}${shared_ext}$major'
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11715 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11718 rdos*)
11719 dynamic_linker=no
11722 solaris*)
11723 version_type=linux
11724 need_lib_prefix=no
11725 need_version=no
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=yes
11730 hardcode_into_libs=yes
11731 # ldd complains unless libraries are executable
11732 postinstall_cmds='chmod +x $lib'
11735 sunos4*)
11736 version_type=sunos
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11738 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 if test "$with_gnu_ld" = yes; then
11742 need_lib_prefix=no
11744 need_version=yes
11747 sysv4 | sysv4.3*)
11748 version_type=linux
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750 soname_spec='${libname}${release}${shared_ext}$major'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 case $host_vendor in
11753 sni)
11754 shlibpath_overrides_runpath=no
11755 need_lib_prefix=no
11756 runpath_var=LD_RUN_PATH
11758 siemens)
11759 need_lib_prefix=no
11761 motorola)
11762 need_lib_prefix=no
11763 need_version=no
11764 shlibpath_overrides_runpath=no
11765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11767 esac
11770 sysv4*MP*)
11771 if test -d /usr/nec ;then
11772 version_type=linux
11773 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11774 soname_spec='$libname${shared_ext}.$major'
11775 shlibpath_var=LD_LIBRARY_PATH
11779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11780 version_type=freebsd-elf
11781 need_lib_prefix=no
11782 need_version=no
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11784 soname_spec='${libname}${release}${shared_ext}$major'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 shlibpath_overrides_runpath=yes
11787 hardcode_into_libs=yes
11788 if test "$with_gnu_ld" = yes; then
11789 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11790 else
11791 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11792 case $host_os in
11793 sco3.2v5*)
11794 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11796 esac
11798 sys_lib_dlsearch_path_spec='/usr/lib'
11801 tpf*)
11802 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11803 version_type=linux
11804 need_lib_prefix=no
11805 need_version=no
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11812 uts4*)
11813 version_type=linux
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815 soname_spec='${libname}${release}${shared_ext}$major'
11816 shlibpath_var=LD_LIBRARY_PATH
11820 dynamic_linker=no
11822 esac
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11824 $as_echo "$dynamic_linker" >&6; }
11825 test "$dynamic_linker" = no && can_build_shared=no
11827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11828 if test "$GCC" = yes; then
11829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11832 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11833 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11835 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11836 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11931 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11932 hardcode_action=
11933 if test -n "$hardcode_libdir_flag_spec" ||
11934 test -n "$runpath_var" ||
11935 test "X$hardcode_automatic" = "Xyes" ; then
11937 # We can hardcode non-existent directories.
11938 if test "$hardcode_direct" != no &&
11939 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11940 # have to relink, otherwise we might link with an installed library
11941 # when we should be linking with a yet-to-be-installed one
11942 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11943 test "$hardcode_minus_L" != no; then
11944 # Linking always hardcodes the temporary library directory.
11945 hardcode_action=relink
11946 else
11947 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11948 hardcode_action=immediate
11950 else
11951 # We cannot hardcode anything, or else we can only hardcode existing
11952 # directories.
11953 hardcode_action=unsupported
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11956 $as_echo "$hardcode_action" >&6; }
11958 if test "$hardcode_action" = relink ||
11959 test "$inherit_rpath" = yes; then
11960 # Fast installation is not supported
11961 enable_fast_install=no
11962 elif test "$shlibpath_overrides_runpath" = yes ||
11963 test "$enable_shared" = no; then
11964 # Fast installation is not necessary
11965 enable_fast_install=needless
11973 if test "x$enable_dlopen" != xyes; then
11974 enable_dlopen=unknown
11975 enable_dlopen_self=unknown
11976 enable_dlopen_self_static=unknown
11977 else
11978 lt_cv_dlopen=no
11979 lt_cv_dlopen_libs=
11981 case $host_os in
11982 beos*)
11983 lt_cv_dlopen="load_add_on"
11984 lt_cv_dlopen_libs=
11985 lt_cv_dlopen_self=yes
11988 mingw* | pw32* | cegcc*)
11989 lt_cv_dlopen="LoadLibrary"
11990 lt_cv_dlopen_libs=
11993 cygwin*)
11994 lt_cv_dlopen="dlopen"
11995 lt_cv_dlopen_libs=
11998 darwin*)
11999 # if libdl is installed we need to link against it
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12001 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12002 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 ac_check_lib_save_LIBS=$LIBS
12006 LIBS="-ldl $LIBS"
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char dlopen ();
12018 main ()
12020 return dlopen ();
12022 return 0;
12024 _ACEOF
12025 if ac_fn_c_try_link "$LINENO"; then :
12026 ac_cv_lib_dl_dlopen=yes
12027 else
12028 ac_cv_lib_dl_dlopen=no
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032 LIBS=$ac_check_lib_save_LIBS
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12035 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12036 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12038 else
12040 lt_cv_dlopen="dyld"
12041 lt_cv_dlopen_libs=
12042 lt_cv_dlopen_self=yes
12049 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12050 if test "x$ac_cv_func_shl_load" = x""yes; then :
12051 lt_cv_dlopen="shl_load"
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12054 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12055 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-ldld $LIBS"
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char shl_load ();
12071 main ()
12073 return shl_load ();
12075 return 0;
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_lib_dld_shl_load=yes
12080 else
12081 ac_cv_lib_dld_shl_load=no
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12088 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12089 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12090 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12091 else
12092 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12093 if test "x$ac_cv_func_dlopen" = x""yes; then :
12094 lt_cv_dlopen="dlopen"
12095 else
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12097 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-ldl $LIBS"
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char dlopen ();
12114 main ()
12116 return dlopen ();
12118 return 0;
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122 ac_cv_lib_dl_dlopen=yes
12123 else
12124 ac_cv_lib_dl_dlopen=no
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12131 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12132 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12136 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12137 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-lsvld $LIBS"
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 char dlopen ();
12153 main ()
12155 return dlopen ();
12157 return 0;
12159 _ACEOF
12160 if ac_fn_c_try_link "$LINENO"; then :
12161 ac_cv_lib_svld_dlopen=yes
12162 else
12163 ac_cv_lib_svld_dlopen=no
12165 rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12170 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12171 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12175 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12176 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-ldld $LIBS"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 char dld_link ();
12192 main ()
12194 return dld_link ();
12196 return 0;
12198 _ACEOF
12199 if ac_fn_c_try_link "$LINENO"; then :
12200 ac_cv_lib_dld_dld_link=yes
12201 else
12202 ac_cv_lib_dld_dld_link=no
12204 rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12209 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12210 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12211 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12230 esac
12232 if test "x$lt_cv_dlopen" != xno; then
12233 enable_dlopen=yes
12234 else
12235 enable_dlopen=no
12238 case $lt_cv_dlopen in
12239 dlopen)
12240 save_CPPFLAGS="$CPPFLAGS"
12241 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12243 save_LDFLAGS="$LDFLAGS"
12244 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12246 save_LIBS="$LIBS"
12247 LIBS="$lt_cv_dlopen_libs $LIBS"
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12250 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12251 if test "${lt_cv_dlopen_self+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 if test "$cross_compiling" = yes; then :
12255 lt_cv_dlopen_self=cross
12256 else
12257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12258 lt_status=$lt_dlunknown
12259 cat > conftest.$ac_ext <<_LT_EOF
12260 #line $LINENO "configure"
12261 #include "confdefs.h"
12263 #if HAVE_DLFCN_H
12264 #include <dlfcn.h>
12265 #endif
12267 #include <stdio.h>
12269 #ifdef RTLD_GLOBAL
12270 # define LT_DLGLOBAL RTLD_GLOBAL
12271 #else
12272 # ifdef DL_GLOBAL
12273 # define LT_DLGLOBAL DL_GLOBAL
12274 # else
12275 # define LT_DLGLOBAL 0
12276 # endif
12277 #endif
12279 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12280 find out it does not work in some platform. */
12281 #ifndef LT_DLLAZY_OR_NOW
12282 # ifdef RTLD_LAZY
12283 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12284 # else
12285 # ifdef DL_LAZY
12286 # define LT_DLLAZY_OR_NOW DL_LAZY
12287 # else
12288 # ifdef RTLD_NOW
12289 # define LT_DLLAZY_OR_NOW RTLD_NOW
12290 # else
12291 # ifdef DL_NOW
12292 # define LT_DLLAZY_OR_NOW DL_NOW
12293 # else
12294 # define LT_DLLAZY_OR_NOW 0
12295 # endif
12296 # endif
12297 # endif
12298 # endif
12299 #endif
12301 /* When -fvisbility=hidden is used, assume the code has been annotated
12302 correspondingly for the symbols needed. */
12303 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12304 void fnord () __attribute__((visibility("default")));
12305 #endif
12307 void fnord () { int i=42; }
12308 int main ()
12310 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12311 int status = $lt_dlunknown;
12313 if (self)
12315 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12316 else
12318 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12319 else puts (dlerror ());
12321 /* dlclose (self); */
12323 else
12324 puts (dlerror ());
12326 return status;
12328 _LT_EOF
12329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12330 (eval $ac_link) 2>&5
12331 ac_status=$?
12332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12333 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12334 (./conftest; exit; ) >&5 2>/dev/null
12335 lt_status=$?
12336 case x$lt_status in
12337 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12338 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12339 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12340 esac
12341 else :
12342 # compilation failed
12343 lt_cv_dlopen_self=no
12346 rm -fr conftest*
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12351 $as_echo "$lt_cv_dlopen_self" >&6; }
12353 if test "x$lt_cv_dlopen_self" = xyes; then
12354 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12356 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12357 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 if test "$cross_compiling" = yes; then :
12361 lt_cv_dlopen_self_static=cross
12362 else
12363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12364 lt_status=$lt_dlunknown
12365 cat > conftest.$ac_ext <<_LT_EOF
12366 #line $LINENO "configure"
12367 #include "confdefs.h"
12369 #if HAVE_DLFCN_H
12370 #include <dlfcn.h>
12371 #endif
12373 #include <stdio.h>
12375 #ifdef RTLD_GLOBAL
12376 # define LT_DLGLOBAL RTLD_GLOBAL
12377 #else
12378 # ifdef DL_GLOBAL
12379 # define LT_DLGLOBAL DL_GLOBAL
12380 # else
12381 # define LT_DLGLOBAL 0
12382 # endif
12383 #endif
12385 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12386 find out it does not work in some platform. */
12387 #ifndef LT_DLLAZY_OR_NOW
12388 # ifdef RTLD_LAZY
12389 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12390 # else
12391 # ifdef DL_LAZY
12392 # define LT_DLLAZY_OR_NOW DL_LAZY
12393 # else
12394 # ifdef RTLD_NOW
12395 # define LT_DLLAZY_OR_NOW RTLD_NOW
12396 # else
12397 # ifdef DL_NOW
12398 # define LT_DLLAZY_OR_NOW DL_NOW
12399 # else
12400 # define LT_DLLAZY_OR_NOW 0
12401 # endif
12402 # endif
12403 # endif
12404 # endif
12405 #endif
12407 /* When -fvisbility=hidden is used, assume the code has been annotated
12408 correspondingly for the symbols needed. */
12409 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12410 void fnord () __attribute__((visibility("default")));
12411 #endif
12413 void fnord () { int i=42; }
12414 int main ()
12416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12417 int status = $lt_dlunknown;
12419 if (self)
12421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12422 else
12424 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12425 else puts (dlerror ());
12427 /* dlclose (self); */
12429 else
12430 puts (dlerror ());
12432 return status;
12434 _LT_EOF
12435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12436 (eval $ac_link) 2>&5
12437 ac_status=$?
12438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12439 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12440 (./conftest; exit; ) >&5 2>/dev/null
12441 lt_status=$?
12442 case x$lt_status in
12443 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12444 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12445 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12446 esac
12447 else :
12448 # compilation failed
12449 lt_cv_dlopen_self_static=no
12452 rm -fr conftest*
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12457 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12460 CPPFLAGS="$save_CPPFLAGS"
12461 LDFLAGS="$save_LDFLAGS"
12462 LIBS="$save_LIBS"
12464 esac
12466 case $lt_cv_dlopen_self in
12467 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12468 *) enable_dlopen_self=unknown ;;
12469 esac
12471 case $lt_cv_dlopen_self_static in
12472 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12473 *) enable_dlopen_self_static=unknown ;;
12474 esac
12493 striplib=
12494 old_striplib=
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12496 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12497 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12498 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12499 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12501 $as_echo "yes" >&6; }
12502 else
12503 # FIXME - insert some real tests, host_os isn't really good enough
12504 case $host_os in
12505 darwin*)
12506 if test -n "$STRIP" ; then
12507 striplib="$STRIP -x"
12508 old_striplib="$STRIP -S"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12510 $as_echo "yes" >&6; }
12511 else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12520 esac
12534 # Report which library types will actually be built
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12536 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12538 $as_echo "$can_build_shared" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12541 $as_echo_n "checking whether to build shared libraries... " >&6; }
12542 test "$can_build_shared" = "no" && enable_shared=no
12544 # On AIX, shared libraries and static libraries use the same namespace, and
12545 # are all built from PIC.
12546 case $host_os in
12547 aix3*)
12548 test "$enable_shared" = yes && enable_static=no
12549 if test -n "$RANLIB"; then
12550 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12551 postinstall_cmds='$RANLIB $lib'
12555 aix[4-9]*)
12556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12557 test "$enable_shared" = yes && enable_static=no
12560 esac
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12562 $as_echo "$enable_shared" >&6; }
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12565 $as_echo_n "checking whether to build static libraries... " >&6; }
12566 # Make sure either enable_shared or enable_static is yes.
12567 test "$enable_shared" = yes || enable_static=yes
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12569 $as_echo "$enable_static" >&6; }
12575 ac_ext=c
12576 ac_cpp='$CPP $CPPFLAGS'
12577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12581 CC="$lt_save_CC"
12595 ac_config_commands="$ac_config_commands libtool"
12600 # Only expand once:
12603 if test -n "$ac_tool_prefix"; then
12604 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12605 set dummy ${ac_tool_prefix}windres; ac_word=$2
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607 $as_echo_n "checking for $ac_word... " >&6; }
12608 if test "${ac_cv_prog_RC+set}" = set; then :
12609 $as_echo_n "(cached) " >&6
12610 else
12611 if test -n "$RC"; then
12612 ac_cv_prog_RC="$RC" # Let the user override the test.
12613 else
12614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12617 IFS=$as_save_IFS
12618 test -z "$as_dir" && as_dir=.
12619 for ac_exec_ext in '' $ac_executable_extensions; do
12620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12621 ac_cv_prog_RC="${ac_tool_prefix}windres"
12622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 break 2
12625 done
12626 done
12627 IFS=$as_save_IFS
12631 RC=$ac_cv_prog_RC
12632 if test -n "$RC"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12634 $as_echo "$RC" >&6; }
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12642 if test -z "$ac_cv_prog_RC"; then
12643 ac_ct_RC=$RC
12644 # Extract the first word of "windres", so it can be a program name with args.
12645 set dummy windres; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 if test -n "$ac_ct_RC"; then
12652 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12653 else
12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655 for as_dir in $PATH
12657 IFS=$as_save_IFS
12658 test -z "$as_dir" && as_dir=.
12659 for ac_exec_ext in '' $ac_executable_extensions; do
12660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12661 ac_cv_prog_ac_ct_RC="windres"
12662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663 break 2
12665 done
12666 done
12667 IFS=$as_save_IFS
12671 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12672 if test -n "$ac_ct_RC"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12674 $as_echo "$ac_ct_RC" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12680 if test "x$ac_ct_RC" = x; then
12681 RC=""
12682 else
12683 case $cross_compiling:$ac_tool_warned in
12684 yes:)
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12687 ac_tool_warned=yes ;;
12688 esac
12689 RC=$ac_ct_RC
12691 else
12692 RC="$ac_cv_prog_RC"
12698 # Source file extension for RC test sources.
12699 ac_ext=rc
12701 # Object file extension for compiled RC test sources.
12702 objext=o
12703 objext_RC=$objext
12705 # Code to be used in simple compile tests
12706 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12708 # Code to be used in simple link tests
12709 lt_simple_link_test_code="$lt_simple_compile_test_code"
12711 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12718 # If no C compiler was specified, use CC.
12719 LTCC=${LTCC-"$CC"}
12721 # If no C compiler flags were specified, use CFLAGS.
12722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12724 # Allow CC to be a program name with arguments.
12725 compiler=$CC
12728 # save warnings/boilerplate of simple test code
12729 ac_outfile=conftest.$ac_objext
12730 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12732 _lt_compiler_boilerplate=`cat conftest.err`
12733 $RM conftest*
12735 ac_outfile=conftest.$ac_objext
12736 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12738 _lt_linker_boilerplate=`cat conftest.err`
12739 $RM -r conftest*
12742 # Allow CC to be a program name with arguments.
12743 lt_save_CC="$CC"
12744 lt_save_GCC=$GCC
12745 GCC=
12746 CC=${RC-"windres"}
12747 compiler=$CC
12748 compiler_RC=$CC
12749 for cc_temp in $compiler""; do
12750 case $cc_temp in
12751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12753 \-*) ;;
12754 *) break;;
12755 esac
12756 done
12757 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12759 lt_cv_prog_compiler_c_o_RC=yes
12761 if test -n "$compiler"; then
12768 GCC=$lt_save_GCC
12769 ac_ext=c
12770 ac_cpp='$CPP $CPPFLAGS'
12771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12775 CC="$lt_save_CC"
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12780 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12781 if test "${ac_cv_c_const+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12788 main ()
12790 /* FIXME: Include the comments suggested by Paul. */
12791 #ifndef __cplusplus
12792 /* Ultrix mips cc rejects this. */
12793 typedef int charset[2];
12794 const charset cs;
12795 /* SunOS 4.1.1 cc rejects this. */
12796 char const *const *pcpcc;
12797 char **ppc;
12798 /* NEC SVR4.0.2 mips cc rejects this. */
12799 struct point {int x, y;};
12800 static struct point const zero = {0,0};
12801 /* AIX XL C 1.02.0.0 rejects this.
12802 It does not let you subtract one const X* pointer from another in
12803 an arm of an if-expression whose if-part is not a constant
12804 expression */
12805 const char *g = "string";
12806 pcpcc = &g + (g ? g-g : 0);
12807 /* HPUX 7.0 cc rejects these. */
12808 ++pcpcc;
12809 ppc = (char**) pcpcc;
12810 pcpcc = (char const *const *) ppc;
12811 { /* SCO 3.2v4 cc rejects this. */
12812 char *t;
12813 char const *s = 0 ? (char *) 0 : (char const *) 0;
12815 *t++ = 0;
12816 if (s) return 0;
12818 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12819 int x[] = {25, 17};
12820 const int *foo = &x[0];
12821 ++foo;
12823 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12824 typedef const int *iptr;
12825 iptr p = 0;
12826 ++p;
12828 { /* AIX XL C 1.02.0.0 rejects this saying
12829 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12830 struct s { int j; const int *ap[3]; };
12831 struct s *b; b->j = 5;
12833 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12834 const int foo = 10;
12835 if (!foo) return 0;
12837 return !cs[0] && !zero.x;
12838 #endif
12841 return 0;
12843 _ACEOF
12844 if ac_fn_c_try_compile "$LINENO"; then :
12845 ac_cv_c_const=yes
12846 else
12847 ac_cv_c_const=no
12849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12852 $as_echo "$ac_cv_c_const" >&6; }
12853 if test $ac_cv_c_const = no; then
12855 $as_echo "#define const /**/" >>confdefs.h
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12860 $as_echo_n "checking for inline... " >&6; }
12861 if test "${ac_cv_c_inline+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 ac_cv_c_inline=no
12865 for ac_kw in inline __inline__ __inline; do
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 #ifndef __cplusplus
12869 typedef int foo_t;
12870 static $ac_kw foo_t static_foo () {return 0; }
12871 $ac_kw foo_t foo () {return 0; }
12872 #endif
12874 _ACEOF
12875 if ac_fn_c_try_compile "$LINENO"; then :
12876 ac_cv_c_inline=$ac_kw
12878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12879 test "$ac_cv_c_inline" != no && break
12880 done
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12884 $as_echo "$ac_cv_c_inline" >&6; }
12886 case $ac_cv_c_inline in
12887 inline | yes) ;;
12889 case $ac_cv_c_inline in
12890 no) ac_val=;;
12891 *) ac_val=$ac_cv_c_inline;;
12892 esac
12893 cat >>confdefs.h <<_ACEOF
12894 #ifndef __cplusplus
12895 #define inline $ac_val
12896 #endif
12897 _ACEOF
12899 esac
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12902 $as_echo_n "checking for working volatile... " >&6; }
12903 if test "${ac_cv_c_volatile+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12910 main ()
12913 volatile int x;
12914 int * volatile y = (int *) 0;
12915 return !x && !y;
12917 return 0;
12919 _ACEOF
12920 if ac_fn_c_try_compile "$LINENO"; then :
12921 ac_cv_c_volatile=yes
12922 else
12923 ac_cv_c_volatile=no
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
12928 $as_echo "$ac_cv_c_volatile" >&6; }
12929 if test $ac_cv_c_volatile = no; then
12931 $as_echo "#define volatile /**/" >>confdefs.h
12935 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12936 if test "x$ac_cv_type_off_t" = x""yes; then :
12938 else
12940 cat >>confdefs.h <<_ACEOF
12941 #define off_t long int
12942 _ACEOF
12946 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12947 if test "x$ac_cv_type_pid_t" = x""yes; then :
12949 else
12951 cat >>confdefs.h <<_ACEOF
12952 #define pid_t int
12953 _ACEOF
12957 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12958 if test "x$ac_cv_type_size_t" = x""yes; then :
12960 else
12962 cat >>confdefs.h <<_ACEOF
12963 #define size_t unsigned int
12964 _ACEOF
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12969 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12970 if test "${ac_cv_type_uid_t+set}" = set; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 #include <sys/types.h>
12977 _ACEOF
12978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12979 $EGREP "uid_t" >/dev/null 2>&1; then :
12980 ac_cv_type_uid_t=yes
12981 else
12982 ac_cv_type_uid_t=no
12984 rm -f conftest*
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12988 $as_echo "$ac_cv_type_uid_t" >&6; }
12989 if test $ac_cv_type_uid_t = no; then
12991 $as_echo "#define uid_t int" >>confdefs.h
12994 $as_echo "#define gid_t int" >>confdefs.h
12998 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
12999 case $ac_cv_c_int8_t in #(
13000 no|yes) ;; #(
13003 cat >>confdefs.h <<_ACEOF
13004 #define int8_t $ac_cv_c_int8_t
13005 _ACEOF
13007 esac
13009 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
13010 case $ac_cv_c_int16_t in #(
13011 no|yes) ;; #(
13014 cat >>confdefs.h <<_ACEOF
13015 #define int16_t $ac_cv_c_int16_t
13016 _ACEOF
13018 esac
13020 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13021 case $ac_cv_c_int32_t in #(
13022 no|yes) ;; #(
13025 cat >>confdefs.h <<_ACEOF
13026 #define int32_t $ac_cv_c_int32_t
13027 _ACEOF
13029 esac
13031 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13032 case $ac_cv_c_int64_t in #(
13033 no|yes) ;; #(
13036 cat >>confdefs.h <<_ACEOF
13037 #define int64_t $ac_cv_c_int64_t
13038 _ACEOF
13040 esac
13042 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13043 case $ac_cv_c_uint8_t in #(
13044 no|yes) ;; #(
13047 $as_echo "#define _UINT8_T 1" >>confdefs.h
13050 cat >>confdefs.h <<_ACEOF
13051 #define uint8_t $ac_cv_c_uint8_t
13052 _ACEOF
13054 esac
13056 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13057 case $ac_cv_c_uint16_t in #(
13058 no|yes) ;; #(
13062 cat >>confdefs.h <<_ACEOF
13063 #define uint16_t $ac_cv_c_uint16_t
13064 _ACEOF
13066 esac
13068 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13069 case $ac_cv_c_uint32_t in #(
13070 no|yes) ;; #(
13073 $as_echo "#define _UINT32_T 1" >>confdefs.h
13076 cat >>confdefs.h <<_ACEOF
13077 #define uint32_t $ac_cv_c_uint32_t
13078 _ACEOF
13080 esac
13082 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13083 case $ac_cv_c_uint64_t in #(
13084 no|yes) ;; #(
13087 $as_echo "#define _UINT64_T 1" >>confdefs.h
13090 cat >>confdefs.h <<_ACEOF
13091 #define uint64_t $ac_cv_c_uint64_t
13092 _ACEOF
13094 esac
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13097 $as_echo_n "checking return type of signal handlers... " >&6; }
13098 if test "${ac_cv_type_signal+set}" = set; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13103 #include <sys/types.h>
13104 #include <signal.h>
13107 main ()
13109 return *(signal (0, 0)) (0) == 1;
13111 return 0;
13113 _ACEOF
13114 if ac_fn_c_try_compile "$LINENO"; then :
13115 ac_cv_type_signal=int
13116 else
13117 ac_cv_type_signal=void
13119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13122 $as_echo "$ac_cv_type_signal" >&6; }
13124 cat >>confdefs.h <<_ACEOF
13125 #define RETSIGTYPE $ac_cv_type_signal
13126 _ACEOF
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
13130 $as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
13131 if test "${ax_cv_cpp_vararg_macro_iso+set}" = set; then :
13132 $as_echo_n "(cached) " >&6
13133 else
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13137 #define macro(a, ...) func(a, __VA_ARGS__)
13138 int func(int a, int b, int c);
13141 main ()
13144 int i = macro(1, 2, 3);
13148 return 0;
13150 _ACEOF
13151 if ac_fn_c_try_compile "$LINENO"; then :
13152 ax_cv_cpp_vararg_macro_iso=yes
13153 else
13154 ax_cv_cpp_vararg_macro_iso=no
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
13161 $as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
13162 if test "x$ax_cv_cpp_vararg_macro_iso" = x""yes; then :
13164 $as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
13169 $as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
13170 if test "${ax_cv_cpp_vararg_macro_gcc+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13176 #define macro(a, b...) func(a, b)
13177 int func(int a, int b, int c);
13180 main ()
13183 int i = macro(1, 2, 3);
13187 return 0;
13189 _ACEOF
13190 if ac_fn_c_try_compile "$LINENO"; then :
13191 ax_cv_cpp_vararg_macro_gcc=yes
13192 else
13193 ax_cv_cpp_vararg_macro_gcc=no
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
13200 $as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
13201 if test "x$ax_cv_cpp_vararg_macro_gcc" = x""yes; then :
13203 $as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
13208 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13209 #include <sys/types.h>
13210 #ifdef WIN32
13211 #include <ws2tcpip.h>
13212 #else
13213 #include <sys/socket.h>
13214 #endif
13218 if test "x$ac_cv_type_socklen_t" = x""yes; then :
13220 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13223 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13224 if test "${ax_cv_socklen_t_equiv+set}" = set; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13228 #AS_CASE is not supported on <autoconf-2.60
13229 case "${host}" in
13230 *-mingw*) ax_cv_socklen_t_equiv=int ;;
13232 # Systems have either "struct sockaddr *" or
13233 # "void *" as the second argument to getpeername
13234 for arg2 in "struct sockaddr" void; do
13235 for t in int size_t unsigned long "unsigned long"; do
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13239 #include <sys/types.h>
13240 #include <sys/socket.h>
13241 int getpeername (int, $arg2 *, $t *);
13244 main ()
13247 $t len;
13248 getpeername(0,0,&len);
13252 return 0;
13254 _ACEOF
13255 if ac_fn_c_try_compile "$LINENO"; then :
13256 ax_cv_socklen_t_equiv="$t"; break
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 done
13261 test -n "$ax_cv_socklen_t_equiv" && break
13262 done
13264 esac
13266 if test "x$ax_cv_socklen_t_equiv" = x""; then :
13267 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13268 else
13270 cat >>confdefs.h <<_ACEOF
13271 #define socklen_t $ax_cv_socklen_t_equiv
13272 _ACEOF
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
13279 $as_echo "$ax_cv_socklen_t_equiv" >&6; }
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
13286 $as_echo_n "checking for C compiler empty array size... " >&6; }
13287 if test "${ax_cv_c_empty_array+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13294 main ()
13297 struct { int foo; int bar[0]; } mystruct;
13301 return 0;
13303 _ACEOF
13304 if ac_fn_c_try_compile "$LINENO"; then :
13305 ax_cv_c_empty_array=0
13306 else
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13311 main ()
13314 struct { int foo; int bar[]; } mystruct;
13318 return 0;
13320 _ACEOF
13321 if ac_fn_c_try_compile "$LINENO"; then :
13322 ax_cv_c_empty_array=
13323 else
13324 as_fn_error $? "C compiler is unable to creaty empty arrays" "$LINENO" 5
13327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
13334 $as_echo "$ax_cv_c_empty_array" >&6; }
13335 cat >>confdefs.h <<_ACEOF
13336 #define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
13337 _ACEOF
13339 # The cast to long int works around a bug in the HP C Compiler
13340 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13341 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13342 # This bug is HP SR number 8606223364.
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
13344 $as_echo_n "checking size of unsigned int... " >&6; }
13345 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
13350 else
13351 if test "$ac_cv_type_unsigned_int" = yes; then
13352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13354 as_fn_error 77 "cannot compute sizeof (unsigned int)
13355 See \`config.log' for more details" "$LINENO" 5; }
13356 else
13357 ac_cv_sizeof_unsigned_int=0
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
13363 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
13367 cat >>confdefs.h <<_ACEOF
13368 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
13369 _ACEOF
13372 # The cast to long int works around a bug in the HP C Compiler
13373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13375 # This bug is HP SR number 8606223364.
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13377 $as_echo_n "checking size of unsigned long... " >&6; }
13378 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
13383 else
13384 if test "$ac_cv_type_unsigned_long" = yes; then
13385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13387 as_fn_error 77 "cannot compute sizeof (unsigned long)
13388 See \`config.log' for more details" "$LINENO" 5; }
13389 else
13390 ac_cv_sizeof_unsigned_long=0
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13396 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13400 cat >>confdefs.h <<_ACEOF
13401 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13402 _ACEOF
13405 for ac_header in \
13406 stdio.h stdarg.h stdbool.h limits.h \
13407 time.h errno.h fcntl.h io.h direct.h \
13408 ctype.h sys/types.h sys/socket.h \
13409 signal.h unistd.h dlfcn.h \
13410 netinet/in.h netinet/in_systm.h \
13411 netinet/tcp.h arpa/inet.h netdb.h \
13412 windows.h winsock2.h ws2tcpip.h \
13414 do :
13415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13416 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13417 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13418 cat >>confdefs.h <<_ACEOF
13419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13420 _ACEOF
13424 done
13426 for ac_header in \
13427 sys/time.h sys/ioctl.h sys/stat.h \
13428 sys/mman.h sys/file.h sys/wait.h \
13429 unistd.h signal.h libgen.h stropts.h \
13430 syslog.h pwd.h grp.h \
13431 sys/sockio.h sys/uio.h linux/sockios.h \
13432 linux/types.h sys/poll.h sys/epoll.h err.h \
13434 do :
13435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13436 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13437 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13438 cat >>confdefs.h <<_ACEOF
13439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13440 _ACEOF
13444 done
13447 SOCKET_INCLUDES="
13448 #ifdef HAVE_STDLIB_H
13449 #include <stdlib.h>
13450 #endif
13451 #ifdef HAVE_SYS_TYPES_H
13452 #include <sys/types.h>
13453 #endif
13454 #ifdef HAVE_SYS_SOCKET_H
13455 #include <sys/socket.h>
13456 #endif
13457 #ifdef HAVE_NETINET_IN_H
13458 #include <netinet/in.h>
13459 #endif
13460 #ifdef HAVE_WINDOWS_H
13461 #include <windows.h>
13462 #endif
13463 #ifdef HAVE_WINSOCK2_H
13464 #include <winsock2.h>
13465 #endif
13466 #ifdef HAVE_WS2TCPIP_H
13467 #include <ws2tcpip.h>
13468 #endif
13469 #ifdef HAVE_NETINET_IN_SYSTM_H
13470 #include <netinet/in_systm.h>
13471 #endif
13472 #ifdef HAVE_NETINET_IP_H
13473 #include <netinet/ip.h>
13474 #endif
13477 for ac_header in net/if.h netinet/ip.h netinet/if_ether.h resolv.h sys/un.h
13478 do :
13479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13480 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
13483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13484 cat >>confdefs.h <<_ACEOF
13485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13486 _ACEOF
13490 done
13493 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
13496 if test "x$ac_cv_type_in_addr_t" = x""yes; then :
13498 cat >>confdefs.h <<_ACEOF
13499 #define HAVE_IN_ADDR_T 1
13500 _ACEOF
13503 else
13505 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13509 ac_fn_c_check_type "$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
13512 if test "x$ac_cv_type_struct_iphdr" = x""yes; then :
13514 $as_echo "#define HAVE_IPHDR 1" >>confdefs.h
13518 ac_fn_c_check_type "$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES}
13521 if test "x$ac_cv_type_struct_sock_extended_err" = x""yes; then :
13523 $as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
13527 ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
13530 if test "x$ac_cv_type_struct_msghdr" = x""yes; then :
13532 $as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
13536 ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
13539 if test "x$ac_cv_type_struct_cmsghdr" = x""yes; then :
13541 $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
13545 ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
13548 if test "x$ac_cv_type_struct_in_pktinfo" = x""yes; then :
13550 $as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
13554 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
13557 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
13559 else
13560 as_fn_error $? "struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
13563 ac_fn_c_check_decl "$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
13566 if test "x$ac_cv_have_decl_SO_MARK" = x""yes; then :
13567 ac_have_decl=1
13568 else
13569 ac_have_decl=0
13572 cat >>confdefs.h <<_ACEOF
13573 #define HAVE_DECL_SO_MARK $ac_have_decl
13574 _ACEOF
13577 ac_fn_c_check_decl "$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
13578 #ifdef HAVE_SIGNAL_H
13579 #include <signal.h>
13580 #endif
13584 if test "x$ac_cv_have_decl_SIGHUP" = x""yes; then :
13585 ac_have_decl=1
13586 else
13587 ac_have_decl=0
13590 cat >>confdefs.h <<_ACEOF
13591 #define HAVE_DECL_SIGHUP $ac_have_decl
13592 _ACEOF
13593 if test $ac_have_decl = 1; then :
13595 else
13597 $as_echo "#define SIGHUP 1" >>confdefs.h
13601 ac_fn_c_check_decl "$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
13602 #ifdef HAVE_SIGNAL_H
13603 #include <signal.h>
13604 #endif
13608 if test "x$ac_cv_have_decl_SIGINT" = x""yes; then :
13609 ac_have_decl=1
13610 else
13611 ac_have_decl=0
13614 cat >>confdefs.h <<_ACEOF
13615 #define HAVE_DECL_SIGINT $ac_have_decl
13616 _ACEOF
13617 if test $ac_have_decl = 1; then :
13619 else
13621 $as_echo "#define SIGINT 2" >>confdefs.h
13625 ac_fn_c_check_decl "$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
13626 #ifdef HAVE_SIGNAL_H
13627 #include <signal.h>
13628 #endif
13632 if test "x$ac_cv_have_decl_SIGUSR1" = x""yes; then :
13633 ac_have_decl=1
13634 else
13635 ac_have_decl=0
13638 cat >>confdefs.h <<_ACEOF
13639 #define HAVE_DECL_SIGUSR1 $ac_have_decl
13640 _ACEOF
13641 if test $ac_have_decl = 1; then :
13643 else
13645 $as_echo "#define SIGUSR1 10" >>confdefs.h
13649 ac_fn_c_check_decl "$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
13650 #ifdef HAVE_SIGNAL_H
13651 #include <signal.h>
13652 #endif
13656 if test "x$ac_cv_have_decl_SIGUSR2" = x""yes; then :
13657 ac_have_decl=1
13658 else
13659 ac_have_decl=0
13662 cat >>confdefs.h <<_ACEOF
13663 #define HAVE_DECL_SIGUSR2 $ac_have_decl
13664 _ACEOF
13665 if test $ac_have_decl = 1; then :
13667 else
13669 $as_echo "#define SIGUSR2 12" >>confdefs.h
13673 ac_fn_c_check_decl "$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
13674 #ifdef HAVE_SIGNAL_H
13675 #include <signal.h>
13676 #endif
13680 if test "x$ac_cv_have_decl_SIGTERM" = x""yes; then :
13681 ac_have_decl=1
13682 else
13683 ac_have_decl=0
13686 cat >>confdefs.h <<_ACEOF
13687 #define HAVE_DECL_SIGTERM $ac_have_decl
13688 _ACEOF
13689 if test $ac_have_decl = 1; then :
13691 else
13693 $as_echo "#define SIGTERM 15" >>confdefs.h
13698 for ac_header in vfork.h
13699 do :
13700 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13701 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13702 cat >>confdefs.h <<_ACEOF
13703 #define HAVE_VFORK_H 1
13704 _ACEOF
13708 done
13710 for ac_func in fork vfork
13711 do :
13712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13713 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13714 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13715 cat >>confdefs.h <<_ACEOF
13716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13717 _ACEOF
13720 done
13722 if test "x$ac_cv_func_fork" = xyes; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13724 $as_echo_n "checking for working fork... " >&6; }
13725 if test "${ac_cv_func_fork_works+set}" = set; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 if test "$cross_compiling" = yes; then :
13729 ac_cv_func_fork_works=cross
13730 else
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 $ac_includes_default
13735 main ()
13738 /* By Ruediger Kuhlmann. */
13739 return fork () < 0;
13742 return 0;
13744 _ACEOF
13745 if ac_fn_c_try_run "$LINENO"; then :
13746 ac_cv_func_fork_works=yes
13747 else
13748 ac_cv_func_fork_works=no
13750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13751 conftest.$ac_objext conftest.beam conftest.$ac_ext
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13756 $as_echo "$ac_cv_func_fork_works" >&6; }
13758 else
13759 ac_cv_func_fork_works=$ac_cv_func_fork
13761 if test "x$ac_cv_func_fork_works" = xcross; then
13762 case $host in
13763 *-*-amigaos* | *-*-msdosdjgpp*)
13764 # Override, as these systems have only a dummy fork() stub
13765 ac_cv_func_fork_works=no
13768 ac_cv_func_fork_works=yes
13770 esac
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13772 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13774 ac_cv_func_vfork_works=$ac_cv_func_vfork
13775 if test "x$ac_cv_func_vfork" = xyes; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13777 $as_echo_n "checking for working vfork... " >&6; }
13778 if test "${ac_cv_func_vfork_works+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 if test "$cross_compiling" = yes; then :
13782 ac_cv_func_vfork_works=cross
13783 else
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 /* Thanks to Paul Eggert for this test. */
13787 $ac_includes_default
13788 #include <sys/wait.h>
13789 #ifdef HAVE_VFORK_H
13790 # include <vfork.h>
13791 #endif
13792 /* On some sparc systems, changes by the child to local and incoming
13793 argument registers are propagated back to the parent. The compiler
13794 is told about this with #include <vfork.h>, but some compilers
13795 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13796 static variable whose address is put into a register that is
13797 clobbered by the vfork. */
13798 static void
13799 #ifdef __cplusplus
13800 sparc_address_test (int arg)
13801 # else
13802 sparc_address_test (arg) int arg;
13803 #endif
13805 static pid_t child;
13806 if (!child) {
13807 child = vfork ();
13808 if (child < 0) {
13809 perror ("vfork");
13810 _exit(2);
13812 if (!child) {
13813 arg = getpid();
13814 write(-1, "", 0);
13815 _exit (arg);
13821 main ()
13823 pid_t parent = getpid ();
13824 pid_t child;
13826 sparc_address_test (0);
13828 child = vfork ();
13830 if (child == 0) {
13831 /* Here is another test for sparc vfork register problems. This
13832 test uses lots of local variables, at least as many local
13833 variables as main has allocated so far including compiler
13834 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13835 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13836 reuse the register of parent for one of the local variables,
13837 since it will think that parent can't possibly be used any more
13838 in this routine. Assigning to the local variable will thus
13839 munge parent in the parent process. */
13840 pid_t
13841 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13842 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13843 /* Convince the compiler that p..p7 are live; otherwise, it might
13844 use the same hardware register for all 8 local variables. */
13845 if (p != p1 || p != p2 || p != p3 || p != p4
13846 || p != p5 || p != p6 || p != p7)
13847 _exit(1);
13849 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13850 from child file descriptors. If the child closes a descriptor
13851 before it execs or exits, this munges the parent's descriptor
13852 as well. Test for this by closing stdout in the child. */
13853 _exit(close(fileno(stdout)) != 0);
13854 } else {
13855 int status;
13856 struct stat st;
13858 while (wait(&status) != child)
13860 return (
13861 /* Was there some problem with vforking? */
13862 child < 0
13864 /* Did the child fail? (This shouldn't happen.) */
13865 || status
13867 /* Did the vfork/compiler bug occur? */
13868 || parent != getpid()
13870 /* Did the file descriptor bug occur? */
13871 || fstat(fileno(stdout), &st) != 0
13875 _ACEOF
13876 if ac_fn_c_try_run "$LINENO"; then :
13877 ac_cv_func_vfork_works=yes
13878 else
13879 ac_cv_func_vfork_works=no
13881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13882 conftest.$ac_objext conftest.beam conftest.$ac_ext
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13887 $as_echo "$ac_cv_func_vfork_works" >&6; }
13890 if test "x$ac_cv_func_fork_works" = xcross; then
13891 ac_cv_func_vfork_works=$ac_cv_func_vfork
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13893 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13896 if test "x$ac_cv_func_vfork_works" = xyes; then
13898 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13900 else
13902 $as_echo "#define vfork fork" >>confdefs.h
13905 if test "x$ac_cv_func_fork_works" = xyes; then
13907 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13912 for ac_func in \
13913 daemon chroot getpwnam setuid nice system getpid dup dup2 \
13914 getpass strerror syslog openlog mlockall getgrnam setgid \
13915 setgroups stat flock readv writev time gettimeofday \
13916 ctime memset vsnprintf strdup \
13917 setsid chdir putenv getpeername unlink \
13918 chsize ftruncate execve getpeereid umask basename dirname access \
13919 epoll_create \
13921 do :
13922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13923 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13924 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13925 cat >>confdefs.h <<_ACEOF
13926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13927 _ACEOF
13930 done
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13934 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13938 ac_check_lib_save_LIBS=$LIBS
13939 LIBS="-ldl $LIBS"
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13943 /* Override any GCC internal prototype to avoid an error.
13944 Use char because int might match the return type of a GCC
13945 builtin and then its argument prototype would still apply. */
13946 #ifdef __cplusplus
13947 extern "C"
13948 #endif
13949 char dlopen ();
13951 main ()
13953 return dlopen ();
13955 return 0;
13957 _ACEOF
13958 if ac_fn_c_try_link "$LINENO"; then :
13959 ac_cv_lib_dl_dlopen=yes
13960 else
13961 ac_cv_lib_dl_dlopen=no
13963 rm -f core conftest.err conftest.$ac_objext \
13964 conftest$ac_exeext conftest.$ac_ext
13965 LIBS=$ac_check_lib_save_LIBS
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13968 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13969 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13970 DL_LIBS="-ldl"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
13977 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
13978 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 ac_check_lib_save_LIBS=$LIBS
13982 LIBS="-lnsl $LIBS"
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13986 /* Override any GCC internal prototype to avoid an error.
13987 Use char because int might match the return type of a GCC
13988 builtin and then its argument prototype would still apply. */
13989 #ifdef __cplusplus
13990 extern "C"
13991 #endif
13992 char inet_ntoa ();
13994 main ()
13996 return inet_ntoa ();
13998 return 0;
14000 _ACEOF
14001 if ac_fn_c_try_link "$LINENO"; then :
14002 ac_cv_lib_nsl_inet_ntoa=yes
14003 else
14004 ac_cv_lib_nsl_inet_ntoa=no
14006 rm -f core conftest.err conftest.$ac_objext \
14007 conftest$ac_exeext conftest.$ac_ext
14008 LIBS=$ac_check_lib_save_LIBS
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
14011 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
14012 if test "x$ac_cv_lib_nsl_inet_ntoa" = x""yes; then :
14013 SOCKETS_LIBS="${SOCKETS_LIBS} -lnsl"
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14018 $as_echo_n "checking for socket in -lsocket... " >&6; }
14019 if test "${ac_cv_lib_socket_socket+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022 ac_check_lib_save_LIBS=$LIBS
14023 LIBS="-lsocket $LIBS"
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h. */
14027 /* Override any GCC internal prototype to avoid an error.
14028 Use char because int might match the return type of a GCC
14029 builtin and then its argument prototype would still apply. */
14030 #ifdef __cplusplus
14031 extern "C"
14032 #endif
14033 char socket ();
14035 main ()
14037 return socket ();
14039 return 0;
14041 _ACEOF
14042 if ac_fn_c_try_link "$LINENO"; then :
14043 ac_cv_lib_socket_socket=yes
14044 else
14045 ac_cv_lib_socket_socket=no
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049 LIBS=$ac_check_lib_save_LIBS
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14052 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14053 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
14054 SOCKETS_LIBS="${SOCKETS_LIBS} -lsocket"
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
14059 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
14060 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 ac_check_lib_save_LIBS=$LIBS
14064 LIBS="-lresolv $LIBS"
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14068 /* Override any GCC internal prototype to avoid an error.
14069 Use char because int might match the return type of a GCC
14070 builtin and then its argument prototype would still apply. */
14071 #ifdef __cplusplus
14072 extern "C"
14073 #endif
14074 char gethostbyname ();
14076 main ()
14078 return gethostbyname ();
14080 return 0;
14082 _ACEOF
14083 if ac_fn_c_try_link "$LINENO"; then :
14084 ac_cv_lib_resolv_gethostbyname=yes
14085 else
14086 ac_cv_lib_resolv_gethostbyname=no
14088 rm -f core conftest.err conftest.$ac_objext \
14089 conftest$ac_exeext conftest.$ac_ext
14090 LIBS=$ac_check_lib_save_LIBS
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
14093 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
14094 if test "x$ac_cv_lib_resolv_gethostbyname" = x""yes; then :
14095 SOCKETS_LIBS="${SOCKETS_LIBS} -lresolv"
14101 old_LIBS="${LIBS}"
14102 LIBS="${LIBS} ${SOCKETS_LIBS}"
14103 for ac_func in sendmsg recvmsg inet_ntop inet_pton
14104 do :
14105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14107 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14108 cat >>confdefs.h <<_ACEOF
14109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14110 _ACEOF
14113 done
14115 for ac_func in res_init
14116 do :
14117 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
14118 if test "x$ac_cv_func_res_init" = x""yes; then :
14119 cat >>confdefs.h <<_ACEOF
14120 #define HAVE_RES_INIT 1
14121 _ACEOF
14124 done
14126 # Windows use stdcall for winsock so we cannot auto detect these
14129 if test "${WIN32}" = "yes"; then
14132 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
14136 $as_echo "#define HAVE_RECV 1" >>confdefs.h
14140 $as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
14144 $as_echo "#define HAVE_SEND 1" >>confdefs.h
14148 $as_echo "#define HAVE_SENDTO 1" >>confdefs.h
14152 $as_echo "#define HAVE_LISTEN 1" >>confdefs.h
14156 $as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
14160 $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
14164 $as_echo "#define HAVE_BIND 1" >>confdefs.h
14168 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
14172 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
14176 $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
14180 $as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
14184 $as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
14188 $as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
14192 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14195 else
14196 for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa
14197 do :
14198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14200 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14201 cat >>confdefs.h <<_ACEOF
14202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14203 _ACEOF
14205 else
14206 as_fn_error $? "Required library function not found" "$LINENO" 5
14209 done
14211 for ac_func in setsockopt getsockopt getsockname poll
14212 do :
14213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14216 cat >>confdefs.h <<_ACEOF
14217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14218 _ACEOF
14221 done
14224 LIBS="${old_LIBS}"
14227 old_CFLAGS="${CFLAGS}"
14228 CFLAGS="${CFLAGS} ${TAP_CFLAGS}"
14229 for ac_header in \
14230 net/if_tun.h net/tun/if_tun.h \
14231 linux/if_tun.h \
14232 tap-windows.h \
14234 do :
14235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14236 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14238 cat >>confdefs.h <<_ACEOF
14239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14240 _ACEOF
14241 have_tap_header="yes"
14245 done
14247 ac_fn_c_check_decl "$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
14248 #ifdef HAVE_LINUX_IF_TUN_H
14249 #include <linux/if_tun.h>
14250 #endif
14254 if test "x$ac_cv_have_decl_TUNSETPERSIST" = x""yes; then :
14255 ac_have_decl=1
14256 else
14257 ac_have_decl=0
14260 cat >>confdefs.h <<_ACEOF
14261 #define HAVE_DECL_TUNSETPERSIST $ac_have_decl
14262 _ACEOF
14263 if test $ac_have_decl = 1; then :
14265 $as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
14269 CFLAGS="${old_CFLAGS}"
14270 test "${have_tap_header}" = "yes" || as_fn_error $? "no tap header could be found" "$LINENO" 5
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
14273 $as_echo_n "checking for setcon in -lselinux... " >&6; }
14274 if test "${ac_cv_lib_selinux_setcon+set}" = set; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 ac_check_lib_save_LIBS=$LIBS
14278 LIBS="-lselinux $LIBS"
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14282 /* Override any GCC internal prototype to avoid an error.
14283 Use char because int might match the return type of a GCC
14284 builtin and then its argument prototype would still apply. */
14285 #ifdef __cplusplus
14286 extern "C"
14287 #endif
14288 char setcon ();
14290 main ()
14292 return setcon ();
14294 return 0;
14296 _ACEOF
14297 if ac_fn_c_try_link "$LINENO"; then :
14298 ac_cv_lib_selinux_setcon=yes
14299 else
14300 ac_cv_lib_selinux_setcon=no
14302 rm -f core conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
14307 $as_echo "$ac_cv_lib_selinux_setcon" >&6; }
14308 if test "x$ac_cv_lib_selinux_setcon" = x""yes; then :
14309 SELINUX_LIBS="-lselinux"
14317 if test -z "${LIBPAM_LIBS}"; then
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
14319 $as_echo_n "checking for pam_start in -lpam... " >&6; }
14320 if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 ac_check_lib_save_LIBS=$LIBS
14324 LIBS="-lpam $LIBS"
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14328 /* Override any GCC internal prototype to avoid an error.
14329 Use char because int might match the return type of a GCC
14330 builtin and then its argument prototype would still apply. */
14331 #ifdef __cplusplus
14332 extern "C"
14333 #endif
14334 char pam_start ();
14336 main ()
14338 return pam_start ();
14340 return 0;
14342 _ACEOF
14343 if ac_fn_c_try_link "$LINENO"; then :
14344 ac_cv_lib_pam_pam_start=yes
14345 else
14346 ac_cv_lib_pam_pam_start=no
14348 rm -f core conftest.err conftest.$ac_objext \
14349 conftest$ac_exeext conftest.$ac_ext
14350 LIBS=$ac_check_lib_save_LIBS
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
14353 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
14354 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
14355 LIBPAM_LIBS="-lpam"
14361 case "${with_mem_check}" in
14362 valgrind)
14363 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
14364 if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
14366 CFLAGS="${CFLAGS} -g -fno-inline"
14368 $as_echo "#define USE_VALGRIND 1" >>confdefs.h
14371 else
14372 as_fn_error $? "valgrind headers not found." "$LINENO" 5
14378 dmalloc)
14379 ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
14380 if test "x$ac_cv_header_dmalloc_h" = x""yes; then :
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
14382 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
14383 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 ac_check_lib_save_LIBS=$LIBS
14387 LIBS="-ldmalloc $LIBS"
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14391 /* Override any GCC internal prototype to avoid an error.
14392 Use char because int might match the return type of a GCC
14393 builtin and then its argument prototype would still apply. */
14394 #ifdef __cplusplus
14395 extern "C"
14396 #endif
14397 char malloc ();
14399 main ()
14401 return malloc ();
14403 return 0;
14405 _ACEOF
14406 if ac_fn_c_try_link "$LINENO"; then :
14407 ac_cv_lib_dmalloc_malloc=yes
14408 else
14409 ac_cv_lib_dmalloc_malloc=no
14411 rm -f core conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
14413 LIBS=$ac_check_lib_save_LIBS
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
14416 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
14417 if test "x$ac_cv_lib_dmalloc_malloc" = x""yes; then :
14419 LIBS="${LIBS} -ldmalloc"
14421 $as_echo "#define DMALLOC 1" >>confdefs.h
14424 else
14425 as_fn_error $? "dmalloc library not found." "$LINENO" 5
14429 else
14430 as_fn_error $? "dmalloc headers not found." "$LINENO" 5
14436 ssl)
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
14438 $as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
14439 if test "${ac_cv_lib_ssl_CRYPTO_mem_ctrl+set}" = set; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 ac_check_lib_save_LIBS=$LIBS
14443 LIBS="-lssl $LIBS"
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14447 /* Override any GCC internal prototype to avoid an error.
14448 Use char because int might match the return type of a GCC
14449 builtin and then its argument prototype would still apply. */
14450 #ifdef __cplusplus
14451 extern "C"
14452 #endif
14453 char CRYPTO_mem_ctrl ();
14455 main ()
14457 return CRYPTO_mem_ctrl ();
14459 return 0;
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"; then :
14463 ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes
14464 else
14465 ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
14467 rm -f core conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469 LIBS=$ac_check_lib_save_LIBS
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
14472 $as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
14473 if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = x""yes; then :
14476 $as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
14479 $as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
14481 else
14482 as_fn_error $? "Memory Debugging function in OpenSSL library not found." "$LINENO" 5
14487 esac
14490 pkg_failed=no
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5
14492 $as_echo_n "checking for OPENSSL_CRYPTO... " >&6; }
14494 if test -n "$OPENSSL_CRYPTO_CFLAGS"; then
14495 pkg_cv_OPENSSL_CRYPTO_CFLAGS="$OPENSSL_CRYPTO_CFLAGS"
14496 elif test -n "$PKG_CONFIG"; then
14497 if test -n "$PKG_CONFIG" && \
14498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
14499 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
14500 ac_status=$?
14501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14502 test $ac_status = 0; }; then
14503 pkg_cv_OPENSSL_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null`
14504 test "x$?" != "x0" && pkg_failed=yes
14505 else
14506 pkg_failed=yes
14508 else
14509 pkg_failed=untried
14511 if test -n "$OPENSSL_CRYPTO_LIBS"; then
14512 pkg_cv_OPENSSL_CRYPTO_LIBS="$OPENSSL_CRYPTO_LIBS"
14513 elif test -n "$PKG_CONFIG"; then
14514 if test -n "$PKG_CONFIG" && \
14515 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
14516 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
14517 ac_status=$?
14518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14519 test $ac_status = 0; }; then
14520 pkg_cv_OPENSSL_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null`
14521 test "x$?" != "x0" && pkg_failed=yes
14522 else
14523 pkg_failed=yes
14525 else
14526 pkg_failed=untried
14531 if test $pkg_failed = yes; then
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14535 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14536 _pkg_short_errors_supported=yes
14537 else
14538 _pkg_short_errors_supported=no
14540 if test $_pkg_short_errors_supported = yes; then
14541 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
14542 else
14543 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
14545 # Put the nasty error message in config.log where it belongs
14546 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
14549 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
14550 if test "${ac_cv_lib_crypto_RSA_new+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14552 else
14553 ac_check_lib_save_LIBS=$LIBS
14554 LIBS="-lcrypto $LIBS"
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14558 /* Override any GCC internal prototype to avoid an error.
14559 Use char because int might match the return type of a GCC
14560 builtin and then its argument prototype would still apply. */
14561 #ifdef __cplusplus
14562 extern "C"
14563 #endif
14564 char RSA_new ();
14566 main ()
14568 return RSA_new ();
14570 return 0;
14572 _ACEOF
14573 if ac_fn_c_try_link "$LINENO"; then :
14574 ac_cv_lib_crypto_RSA_new=yes
14575 else
14576 ac_cv_lib_crypto_RSA_new=no
14578 rm -f core conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14580 LIBS=$ac_check_lib_save_LIBS
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
14583 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
14584 if test "x$ac_cv_lib_crypto_RSA_new" = x""yes; then :
14586 have_openssl_crypto="yes"
14587 OPENSSL_CRYPTO_LIBS="-lcrypto"
14593 elif test $pkg_failed = untried; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14595 $as_echo "no" >&6; }
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
14597 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
14598 if test "${ac_cv_lib_crypto_RSA_new+set}" = set; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-lcrypto $LIBS"
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14606 /* Override any GCC internal prototype to avoid an error.
14607 Use char because int might match the return type of a GCC
14608 builtin and then its argument prototype would still apply. */
14609 #ifdef __cplusplus
14610 extern "C"
14611 #endif
14612 char RSA_new ();
14614 main ()
14616 return RSA_new ();
14618 return 0;
14620 _ACEOF
14621 if ac_fn_c_try_link "$LINENO"; then :
14622 ac_cv_lib_crypto_RSA_new=yes
14623 else
14624 ac_cv_lib_crypto_RSA_new=no
14626 rm -f core conftest.err conftest.$ac_objext \
14627 conftest$ac_exeext conftest.$ac_ext
14628 LIBS=$ac_check_lib_save_LIBS
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
14631 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
14632 if test "x$ac_cv_lib_crypto_RSA_new" = x""yes; then :
14634 have_openssl_crypto="yes"
14635 OPENSSL_CRYPTO_LIBS="-lcrypto"
14641 else
14642 OPENSSL_CRYPTO_CFLAGS=$pkg_cv_OPENSSL_CRYPTO_CFLAGS
14643 OPENSSL_CRYPTO_LIBS=$pkg_cv_OPENSSL_CRYPTO_LIBS
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14645 $as_echo "yes" >&6; }
14646 have_openssl_crypto="yes"
14650 pkg_failed=no
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5
14652 $as_echo_n "checking for OPENSSL_SSL... " >&6; }
14654 if test -n "$OPENSSL_SSL_CFLAGS"; then
14655 pkg_cv_OPENSSL_SSL_CFLAGS="$OPENSSL_SSL_CFLAGS"
14656 elif test -n "$PKG_CONFIG"; then
14657 if test -n "$PKG_CONFIG" && \
14658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
14659 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
14660 ac_status=$?
14661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14662 test $ac_status = 0; }; then
14663 pkg_cv_OPENSSL_SSL_CFLAGS=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null`
14664 test "x$?" != "x0" && pkg_failed=yes
14665 else
14666 pkg_failed=yes
14668 else
14669 pkg_failed=untried
14671 if test -n "$OPENSSL_SSL_LIBS"; then
14672 pkg_cv_OPENSSL_SSL_LIBS="$OPENSSL_SSL_LIBS"
14673 elif test -n "$PKG_CONFIG"; then
14674 if test -n "$PKG_CONFIG" && \
14675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
14676 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
14677 ac_status=$?
14678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679 test $ac_status = 0; }; then
14680 pkg_cv_OPENSSL_SSL_LIBS=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null`
14681 test "x$?" != "x0" && pkg_failed=yes
14682 else
14683 pkg_failed=yes
14685 else
14686 pkg_failed=untried
14691 if test $pkg_failed = yes; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14695 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14696 _pkg_short_errors_supported=yes
14697 else
14698 _pkg_short_errors_supported=no
14700 if test $_pkg_short_errors_supported = yes; then
14701 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
14702 else
14703 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
14705 # Put the nasty error message in config.log where it belongs
14706 echo "$OPENSSL_SSL_PKG_ERRORS" >&5
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
14709 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
14710 if test "${ac_cv_lib_ssl_SSL_CTX_new+set}" = set; then :
14711 $as_echo_n "(cached) " >&6
14712 else
14713 ac_check_lib_save_LIBS=$LIBS
14714 LIBS="-lssl $LIBS"
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14718 /* Override any GCC internal prototype to avoid an error.
14719 Use char because int might match the return type of a GCC
14720 builtin and then its argument prototype would still apply. */
14721 #ifdef __cplusplus
14722 extern "C"
14723 #endif
14724 char SSL_CTX_new ();
14726 main ()
14728 return SSL_CTX_new ();
14730 return 0;
14732 _ACEOF
14733 if ac_fn_c_try_link "$LINENO"; then :
14734 ac_cv_lib_ssl_SSL_CTX_new=yes
14735 else
14736 ac_cv_lib_ssl_SSL_CTX_new=no
14738 rm -f core conftest.err conftest.$ac_objext \
14739 conftest$ac_exeext conftest.$ac_ext
14740 LIBS=$ac_check_lib_save_LIBS
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
14743 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
14744 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = x""yes; then :
14746 have_openssl_ssl="yes"
14747 OPENSSL_SSL_LIBS="-lssl"
14753 elif test $pkg_failed = untried; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755 $as_echo "no" >&6; }
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
14757 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
14758 if test "${ac_cv_lib_ssl_SSL_CTX_new+set}" = set; then :
14759 $as_echo_n "(cached) " >&6
14760 else
14761 ac_check_lib_save_LIBS=$LIBS
14762 LIBS="-lssl $LIBS"
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14766 /* Override any GCC internal prototype to avoid an error.
14767 Use char because int might match the return type of a GCC
14768 builtin and then its argument prototype would still apply. */
14769 #ifdef __cplusplus
14770 extern "C"
14771 #endif
14772 char SSL_CTX_new ();
14774 main ()
14776 return SSL_CTX_new ();
14778 return 0;
14780 _ACEOF
14781 if ac_fn_c_try_link "$LINENO"; then :
14782 ac_cv_lib_ssl_SSL_CTX_new=yes
14783 else
14784 ac_cv_lib_ssl_SSL_CTX_new=no
14786 rm -f core conftest.err conftest.$ac_objext \
14787 conftest$ac_exeext conftest.$ac_ext
14788 LIBS=$ac_check_lib_save_LIBS
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
14791 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
14792 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = x""yes; then :
14794 have_openssl_ssl="yes"
14795 OPENSSL_SSL_LIBS="-lssl"
14801 else
14802 OPENSSL_SSL_CFLAGS=$pkg_cv_OPENSSL_SSL_CFLAGS
14803 OPENSSL_SSL_LIBS=$pkg_cv_OPENSSL_SSL_LIBS
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14805 $as_echo "yes" >&6; }
14806 have_openssl_ssl="yes"
14809 if test "${have_openssl_crypto}" = "yes"; then
14810 saved_CFLAGS="${CFLAGS}"
14811 saved_LIBS="${LIBS}"
14812 CFLAGS="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
14813 LIBS="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
14814 for ac_func in EVP_CIPHER_CTX_set_key_length
14815 do :
14816 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
14817 if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = x""yes; then :
14818 cat >>confdefs.h <<_ACEOF
14819 #define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
14820 _ACEOF
14823 done
14825 have_openssl_engine="yes"
14826 for ac_func in \
14827 ENGINE_load_builtin_engines \
14828 ENGINE_register_all_complete \
14829 ENGINE_cleanup \
14831 do :
14832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14833 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14834 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14835 cat >>confdefs.h <<_ACEOF
14836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14837 _ACEOF
14839 else
14840 have_openssl_engine="no"; break
14843 done
14846 CFLAGS="${saved_CFLAGS}"
14847 LIBS="${saved_LIBS}"
14852 have_polarssl_ssl="yes"
14853 have_polarssl_crypto="yes"
14854 if test -z "${POLARSSL_LIBS}"; then
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
14856 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
14857 if test "${ac_cv_lib_polarssl_ssl_init+set}" = set; then :
14858 $as_echo_n "(cached) " >&6
14859 else
14860 ac_check_lib_save_LIBS=$LIBS
14861 LIBS="-lpolarssl $LIBS"
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14865 /* Override any GCC internal prototype to avoid an error.
14866 Use char because int might match the return type of a GCC
14867 builtin and then its argument prototype would still apply. */
14868 #ifdef __cplusplus
14869 extern "C"
14870 #endif
14871 char ssl_init ();
14873 main ()
14875 return ssl_init ();
14877 return 0;
14879 _ACEOF
14880 if ac_fn_c_try_link "$LINENO"; then :
14881 ac_cv_lib_polarssl_ssl_init=yes
14882 else
14883 ac_cv_lib_polarssl_ssl_init=no
14885 rm -f core conftest.err conftest.$ac_objext \
14886 conftest$ac_exeext conftest.$ac_ext
14887 LIBS=$ac_check_lib_save_LIBS
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
14890 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
14891 if test "x$ac_cv_lib_polarssl_ssl_init" = x""yes; then :
14892 POLARSSL_LIBS="-lpolarssl"
14893 else
14895 have_polarssl_ssl="no"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5
14897 $as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; }
14898 if test "${ac_cv_lib_polarssl_aes_crypt_cbc+set}" = set; then :
14899 $as_echo_n "(cached) " >&6
14900 else
14901 ac_check_lib_save_LIBS=$LIBS
14902 LIBS="-lpolarssl $LIBS"
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14906 /* Override any GCC internal prototype to avoid an error.
14907 Use char because int might match the return type of a GCC
14908 builtin and then its argument prototype would still apply. */
14909 #ifdef __cplusplus
14910 extern "C"
14911 #endif
14912 char aes_crypt_cbc ();
14914 main ()
14916 return aes_crypt_cbc ();
14918 return 0;
14920 _ACEOF
14921 if ac_fn_c_try_link "$LINENO"; then :
14922 ac_cv_lib_polarssl_aes_crypt_cbc=yes
14923 else
14924 ac_cv_lib_polarssl_aes_crypt_cbc=no
14926 rm -f core conftest.err conftest.$ac_objext \
14927 conftest$ac_exeext conftest.$ac_ext
14928 LIBS=$ac_check_lib_save_LIBS
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5
14931 $as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; }
14932 if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = x""yes; then :
14933 cat >>confdefs.h <<_ACEOF
14934 #define HAVE_LIBPOLARSSL 1
14935 _ACEOF
14937 LIBS="-lpolarssl $LIBS"
14939 else
14940 have_polarssl_crypto="no"
14950 if test "${with_crypto_library}" = "polarssl" ; then
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5
14952 $as_echo_n "checking polarssl version... " >&6; }
14953 old_CFLAGS="${CFLAGS}"
14954 CFLAGS="${POLARSSL_CFLAGS} ${CFLAGS}"
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14958 #include <polarssl/version.h>
14961 main ()
14964 #if POLARSSL_VERSION_NUMBER < 0x01010000
14965 #error invalid version
14966 #endif
14970 return 0;
14972 _ACEOF
14973 if ac_fn_c_try_compile "$LINENO"; then :
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14975 $as_echo "ok" >&6; }
14976 else
14977 as_fn_error $? "invalid polarssl version" "$LINENO" 5
14980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981 CFLAGS="${old_CFLAGS}"
14986 have_lzo="yes"
14987 if test -z "${LZO_LIBS}"; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
14989 $as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
14990 if test "${ac_cv_lib_lzo2_lzo1x_1_15_compress+set}" = set; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 ac_check_lib_save_LIBS=$LIBS
14994 LIBS="-llzo2 $LIBS"
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14998 /* Override any GCC internal prototype to avoid an error.
14999 Use char because int might match the return type of a GCC
15000 builtin and then its argument prototype would still apply. */
15001 #ifdef __cplusplus
15002 extern "C"
15003 #endif
15004 char lzo1x_1_15_compress ();
15006 main ()
15008 return lzo1x_1_15_compress ();
15010 return 0;
15012 _ACEOF
15013 if ac_fn_c_try_link "$LINENO"; then :
15014 ac_cv_lib_lzo2_lzo1x_1_15_compress=yes
15015 else
15016 ac_cv_lib_lzo2_lzo1x_1_15_compress=no
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020 LIBS=$ac_check_lib_save_LIBS
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
15023 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
15024 if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = x""yes; then :
15025 LZO_LIBS="-llzo2"
15026 else
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
15028 $as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
15029 if test "${ac_cv_lib_lzo_lzo1x_1_15_compress+set}" = set; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 ac_check_lib_save_LIBS=$LIBS
15033 LIBS="-llzo $LIBS"
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15037 /* Override any GCC internal prototype to avoid an error.
15038 Use char because int might match the return type of a GCC
15039 builtin and then its argument prototype would still apply. */
15040 #ifdef __cplusplus
15041 extern "C"
15042 #endif
15043 char lzo1x_1_15_compress ();
15045 main ()
15047 return lzo1x_1_15_compress ();
15049 return 0;
15051 _ACEOF
15052 if ac_fn_c_try_link "$LINENO"; then :
15053 ac_cv_lib_lzo_lzo1x_1_15_compress=yes
15054 else
15055 ac_cv_lib_lzo_lzo1x_1_15_compress=no
15057 rm -f core conftest.err conftest.$ac_objext \
15058 conftest$ac_exeext conftest.$ac_ext
15059 LIBS=$ac_check_lib_save_LIBS
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
15062 $as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
15063 if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = x""yes; then :
15064 LZO_LIBS="-llzo"
15065 else
15066 have_lzo="no"
15074 if test "${have_lzo}" = "yes"; then
15075 saved_CFLAGS="${CFLAGS}"
15076 CFLAGS="${CFLAGS} ${LZO_CFLAGS}"
15077 for ac_header in lzo/lzoutil.h
15078 do :
15079 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
15080 if test "x$ac_cv_header_lzo_lzoutil_h" = x""yes; then :
15081 cat >>confdefs.h <<_ACEOF
15082 #define HAVE_LZO_LZOUTIL_H 1
15083 _ACEOF
15085 else
15086 for ac_header in lzoutil.h
15087 do :
15088 ac_fn_c_check_header_mongrel "$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
15089 if test "x$ac_cv_header_lzoutil_h" = x""yes; then :
15090 cat >>confdefs.h <<_ACEOF
15091 #define HAVE_LZOUTIL_H 1
15092 _ACEOF
15094 else
15095 as_fn_error $? "lzoutil.h is missing" "$LINENO" 5
15099 done
15104 done
15106 for ac_header in lzo/lzo1x.h
15107 do :
15108 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
15109 if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
15110 cat >>confdefs.h <<_ACEOF
15111 #define HAVE_LZO_LZO1X_H 1
15112 _ACEOF
15114 else
15115 for ac_header in lzo1x.h
15116 do :
15117 ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
15118 if test "x$ac_cv_header_lzo1x_h" = x""yes; then :
15119 cat >>confdefs.h <<_ACEOF
15120 #define HAVE_LZO1X_H 1
15121 _ACEOF
15123 else
15124 as_fn_error $? "lzo1x.h is missing" "$LINENO" 5
15128 done
15133 done
15135 CFLAGS="${saved_CFLAGS}"
15139 pkg_failed=no
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15141 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15143 if test -n "$PKCS11_HELPER_CFLAGS"; then
15144 pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS"
15145 elif test -n "$PKG_CONFIG"; then
15146 if test -n "$PKG_CONFIG" && \
15147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.02\""; } >&5
15148 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.02") 2>&5
15149 ac_status=$?
15150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15151 test $ac_status = 0; }; then
15152 pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.02" 2>/dev/null`
15153 test "x$?" != "x0" && pkg_failed=yes
15154 else
15155 pkg_failed=yes
15157 else
15158 pkg_failed=untried
15160 if test -n "$PKCS11_HELPER_LIBS"; then
15161 pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS"
15162 elif test -n "$PKG_CONFIG"; then
15163 if test -n "$PKG_CONFIG" && \
15164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.02\""; } >&5
15165 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.02") 2>&5
15166 ac_status=$?
15167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15168 test $ac_status = 0; }; then
15169 pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.02" 2>/dev/null`
15170 test "x$?" != "x0" && pkg_failed=yes
15171 else
15172 pkg_failed=yes
15174 else
15175 pkg_failed=untried
15180 if test $pkg_failed = yes; then
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15182 $as_echo "no" >&6; }
15184 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15185 _pkg_short_errors_supported=yes
15186 else
15187 _pkg_short_errors_supported=no
15189 if test $_pkg_short_errors_supported = yes; then
15190 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.02" 2>&1`
15191 else
15192 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.02" 2>&1`
15194 # Put the nasty error message in config.log where it belongs
15195 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15199 elif test $pkg_failed = untried; then
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15201 $as_echo "no" >&6; }
15204 else
15205 PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS
15206 PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15208 $as_echo "yes" >&6; }
15209 have_pkcs11_helper="yes"
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
15213 $as_echo_n "checking git checkout... " >&6; }
15214 GIT_CHECKOUT="no"
15215 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
15217 $as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
15219 GIT_CHECKOUT="yes"
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
15222 $as_echo "${GIT_CHECKOUT}" >&6; }
15224 if test -n "${SP_PLATFORM_WINDOWS}"; then
15226 cat >>confdefs.h <<_ACEOF
15227 #define PATH_SEPARATOR '\\\\'
15228 _ACEOF
15231 cat >>confdefs.h <<_ACEOF
15232 #define PATH_SEPARATOR_STR "\\\\"
15233 _ACEOF
15235 else
15237 cat >>confdefs.h <<_ACEOF
15238 #define PATH_SEPARATOR '/'
15239 _ACEOF
15242 cat >>confdefs.h <<_ACEOF
15243 #define PATH_SEPARATOR_STR "/"
15244 _ACEOF
15248 if test "${enable_x509_alt_username}" = "yes"; then
15249 if test "${with_crypto_library}" = "polarssl" ; then
15250 as_fn_error $? "PolarSSL does not support the --x509-username-field feature" "$LINENO" 5
15254 $as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
15258 test "${ac_cv_header_sys_uio_h}" = "yes" &&
15259 $as_echo "#define HAVE_IOVEC 1" >>confdefs.h
15261 test "${enable_multi}" = "yes" &&
15262 $as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
15264 test "${enable_server}" = "no" &&
15265 $as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
15267 test "${enable_management}" = "yes" &&
15268 $as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
15270 test "${enable_socks}" = "yes" &&
15271 $as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
15273 test "${enable_http_proxy}" = "yes" &&
15274 $as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
15276 test "${enable_multihome}" = "yes" &&
15277 $as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
15279 test "${enable_debug}" = "yes" &&
15280 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
15282 test "${enable_small}" = "yes" &&
15283 $as_echo "#define ENABLE_SMALL 1" >>confdefs.h
15285 test "${enable_fragment}" = "yes" &&
15286 $as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
15288 test "${enable_port_share}" = "yes" &&
15289 $as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
15291 test "${enable_def_auth}" = "yes" &&
15292 $as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
15294 test "${enable_pf}" = "yes" &&
15295 $as_echo "#define ENABLE_PF 1" >>confdefs.h
15297 test "${enable_strict_options}" = "yes" &&
15298 $as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
15300 test "${enable_password_save}" = "yes" &&
15301 $as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h
15303 test "${enable_systemd}" = "yes" &&
15304 $as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
15307 case "${with_crypto_library}" in
15308 openssl)
15309 have_crypto_crypto="${have_openssl_crypto}"
15310 have_crypto_ssl="${have_openssl_ssl}"
15311 CRYPTO_CRYPTO_CFLAGS="${OPENSSL_CRYPTO_CFLAGS}"
15312 CRYPTO_CRYPTO_LIBS="${OPENSSL_CRYPTO_LIBS}"
15313 CRYPTO_SSL_CFLAGS="${OPENSSL_SSL_CFLAGS}"
15314 CRYPTO_SSL_LIBS="${OPENSSL_SSL_LIBS}"
15316 $as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
15318 test "${have_openssl_engine}" = "yes" &&
15319 $as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
15322 polarssl)
15323 have_crypto_crypto="${have_polarssl_crypto}"
15324 have_crypto_ssl="${have_polarssl_ssl}"
15325 CRYPTO_CRYPTO_CFLAGS="${POLARSSL_CFLAGS}"
15326 CRYPTO_CRYPTO_LIBS="${POLARSSL_LIBS}"
15328 $as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h
15331 esac
15333 if test "${enable_ssl}" = "yes"; then
15334 test "${enable_crypto}" != "yes" && as_fn_error $? "crypto must be enabled for ssl" "$LINENO" 5
15335 test "${have_crypto_ssl}" != "yes" && as_fn_error $? "${with_ssl_library} ssl is required but missing" "$LINENO" 5
15336 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
15337 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
15339 $as_echo "#define ENABLE_SSL 1" >>confdefs.h
15343 if test "${enable_crypto}" = "yes"; then
15344 test "${have_crypto_crypto}" != "yes" && as_fn_error $? "${with_crypto_library} crypto is required but missing" "$LINENO" 5
15345 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
15346 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
15348 $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
15352 if test "${enable_plugins}" = "yes"; then
15353 OPTIONAL_DL_LIBS="${DL_LIBS}"
15355 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
15357 test "${enable_eurephia}" = "yes" &&
15358 $as_echo "#define ENABLE_EUREPHIA 1" >>confdefs.h
15360 else
15361 enable_plugin_auth_pam="no"
15362 enable_plugin_down_root="no"
15365 if test "${enable_iproute2}" = "yes"; then
15366 test -z "${IPROUTE}" && as_fn_error $? "ip utility is required but missing" "$LINENO" 5
15368 $as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
15370 else
15371 if test "${WIN32}" != "yes"; then
15372 test -z "${ROUTE}" && as_fn_error $? "route utility is required but missing" "$LINENO" 5
15373 test -z "${IFCONFIG}" && as_fn_error $? "ifconfig utility is required but missing" "$LINENO" 5
15377 if test "${enable_selinux}" = "yes"; then
15378 test -z "${SELINUX_LIBS}" && as_fn_error $? "libselinux required but missing" "$LINENO" 5
15379 OPTIONAL_SELINUX_LIBS="${SELINUX_LIBS}"
15381 $as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
15385 if test "${enable_lzo}" = "yes"; then
15386 test "${have_lzo}" != "yes" && as_fn_error $? "lzo enabled but missing" "$LINENO" 5
15387 OPTIONAL_LZO_CFLAGS="${LZO_CFLAGS}"
15388 OPTIONAL_LZO_LIBS="${LZO_LIBS}"
15390 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
15393 if test "${enable_lzo_stub}" = "yes"; then
15394 test "${enable_lzo}" = "yes" && as_fn_error $? "Cannot have both lzo stub and lzo enabled" "$LINENO" 5
15396 $as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h
15399 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
15403 if test "${enable_pkcs11}" = "yes"; then
15404 test "${have_pkcs11_helper}" != "yes" && as_fn_error $? "PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
15405 test "${enable_ssl}" != "yes" && as_fn_error $? "PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5
15406 OPTIONAL_PKCS11_HELPER_CFLAGS="${PKCS11_HELPER_CFLAGS}"
15407 OPTIONAL_PKCS11_HELPER_LIBS="${PKCS11_HELPER_LIBS}"
15409 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
15413 if test "${enable_pedantic}" = "yes"; then
15414 enable_strict="yes"
15415 CFLAGS="${CFLAGS} -pedantic"
15416 test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi"
15418 if test "${enable_strict}" = "yes"; then
15419 CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
15422 if test "${WIN32}" = "yes"; then
15423 test -z "${MAN2HTML}" && as_fn_error $? "man2html is required for win32" "$LINENO" 5
15426 if test "${enable_plugin_auth_pam}" = "yes"; then
15427 PLUGIN_AUTH_PAM_CFLAGS="${LIBPAM_CFLAGS}"
15428 if test "${enable_pam_dlopen}" = "yes"; then
15430 $as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
15432 PLUGIN_AUTH_PAM_LIBS="${DL_LIBS}"
15433 else
15434 test -z "${LIBPAM_LIBS}" && as_fn_error $? "libpam required but missing" "$LINENO" 5
15435 PLUGIN_AUTH_PAM_LIBS="${LIBPAM_LIBS}"
15439 CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
15441 cat >>confdefs.h <<_ACEOF
15442 #define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
15443 _ACEOF
15446 TAP_WIN_COMPONENT_ID="tap0901"
15447 TAP_WIN_MIN_MAJOR="9"
15448 TAP_WIN_MIN_MINOR="9"
15450 cat >>confdefs.h <<_ACEOF
15451 #define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
15452 _ACEOF
15455 cat >>confdefs.h <<_ACEOF
15456 #define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
15457 _ACEOF
15460 cat >>confdefs.h <<_ACEOF
15461 #define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
15462 _ACEOF
15480 if test "${WIN32}" = "yes"; then
15481 WIN32_TRUE=
15482 WIN32_FALSE='#'
15483 else
15484 WIN32_TRUE='#'
15485 WIN32_FALSE=
15488 if test "${GIT_CHECKOUT}" = "yes"; then
15489 GIT_CHECKOUT_TRUE=
15490 GIT_CHECKOUT_FALSE='#'
15491 else
15492 GIT_CHECKOUT_TRUE='#'
15493 GIT_CHECKOUT_FALSE=
15496 if test "${enable_plugin_auth_pam}" = "yes"; then
15497 ENABLE_PLUGIN_AUTH_PAM_TRUE=
15498 ENABLE_PLUGIN_AUTH_PAM_FALSE='#'
15499 else
15500 ENABLE_PLUGIN_AUTH_PAM_TRUE='#'
15501 ENABLE_PLUGIN_AUTH_PAM_FALSE=
15504 if test "${enable_plugin_down_root}" = "yes"; then
15505 ENABLE_PLUGIN_DOWN_ROOT_TRUE=
15506 ENABLE_PLUGIN_DOWN_ROOT_FALSE='#'
15507 else
15508 ENABLE_PLUGIN_DOWN_ROOT_TRUE='#'
15509 ENABLE_PLUGIN_DOWN_ROOT_FALSE=
15513 plugindir="${with_plugindir}"
15514 sampledir="\$(docdir)/sample"
15518 ac_config_files="$ac_config_files version.sh Makefile build/Makefile build/msvc/Makefile build/msvc/msvc-generate/Makefile distro/Makefile distro/rpm/Makefile distro/rpm/openvpn.spec include/Makefile src/Makefile src/compat/Makefile src/openvpn/Makefile src/openvpnserv/Makefile src/plugins/Makefile src/plugins/auth-pam/Makefile src/plugins/down-root/Makefile tests/Makefile sample/Makefile doc/Makefile"
15520 ac_config_files="$ac_config_files tests/t_client.sh"
15522 cat >confcache <<\_ACEOF
15523 # This file is a shell script that caches the results of configure
15524 # tests run on this system so they can be shared between configure
15525 # scripts and configure runs, see configure's option --config-cache.
15526 # It is not useful on other systems. If it contains results you don't
15527 # want to keep, you may remove or edit it.
15529 # config.status only pays attention to the cache file if you give it
15530 # the --recheck option to rerun configure.
15532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15534 # following values.
15536 _ACEOF
15538 # The following way of writing the cache mishandles newlines in values,
15539 # but we know of no workaround that is simple, portable, and efficient.
15540 # So, we kill variables containing newlines.
15541 # Ultrix sh set writes to stderr and can't be redirected directly,
15542 # and sets the high bit in the cache file unless we assign to the vars.
15544 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15545 eval ac_val=\$$ac_var
15546 case $ac_val in #(
15547 *${as_nl}*)
15548 case $ac_var in #(
15549 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15550 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15551 esac
15552 case $ac_var in #(
15553 _ | IFS | as_nl) ;; #(
15554 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15555 *) { eval $ac_var=; unset $ac_var;} ;;
15556 esac ;;
15557 esac
15558 done
15560 (set) 2>&1 |
15561 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15562 *${as_nl}ac_space=\ *)
15563 # `set' does not quote correctly, so add quotes: double-quote
15564 # substitution turns \\\\ into \\, and sed turns \\ into \.
15565 sed -n \
15566 "s/'/'\\\\''/g;
15567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15568 ;; #(
15570 # `set' quotes correctly as required by POSIX, so do not add quotes.
15571 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15573 esac |
15574 sort
15576 sed '
15577 /^ac_cv_env_/b end
15578 t clear
15579 :clear
15580 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15581 t end
15582 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15583 :end' >>confcache
15584 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15585 if test -w "$cache_file"; then
15586 test "x$cache_file" != "x/dev/null" &&
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15588 $as_echo "$as_me: updating cache $cache_file" >&6;}
15589 cat confcache >$cache_file
15590 else
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15592 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15595 rm -f confcache
15597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15598 # Let make expand exec_prefix.
15599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15601 DEFS=-DHAVE_CONFIG_H
15603 ac_libobjs=
15604 ac_ltlibobjs=
15606 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15607 # 1. Remove the extension, and $U if already installed.
15608 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15609 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15610 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15611 # will be set to the directory where LIBOBJS objects are built.
15612 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15613 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15614 done
15615 LIBOBJS=$ac_libobjs
15617 LTLIBOBJS=$ac_ltlibobjs
15620 if test -n "$EXEEXT"; then
15621 am__EXEEXT_TRUE=
15622 am__EXEEXT_FALSE='#'
15623 else
15624 am__EXEEXT_TRUE='#'
15625 am__EXEEXT_FALSE=
15628 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15629 as_fn_error $? "conditional \"AMDEP\" was never defined.
15630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15632 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15633 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15636 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
15637 as_fn_error $? "conditional \"WIN32\" was never defined.
15638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15640 if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
15641 as_fn_error $? "conditional \"GIT_CHECKOUT\" was never defined.
15642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15644 if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
15645 as_fn_error $? "conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
15646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15648 if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
15649 as_fn_error $? "conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
15650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15653 : ${CONFIG_STATUS=./config.status}
15654 ac_write_fail=0
15655 ac_clean_files_save=$ac_clean_files
15656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15659 as_write_fail=0
15660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15661 #! $SHELL
15662 # Generated by $as_me.
15663 # Run this file to recreate the current configuration.
15664 # Compiler output produced by configure, useful for debugging
15665 # configure, is in config.log if it exists.
15667 debug=false
15668 ac_cs_recheck=false
15669 ac_cs_silent=false
15671 SHELL=\${CONFIG_SHELL-$SHELL}
15672 export SHELL
15673 _ASEOF
15674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15675 ## -------------------- ##
15676 ## M4sh Initialization. ##
15677 ## -------------------- ##
15679 # Be more Bourne compatible
15680 DUALCASE=1; export DUALCASE # for MKS sh
15681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15682 emulate sh
15683 NULLCMD=:
15684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15685 # is contrary to our usage. Disable this feature.
15686 alias -g '${1+"$@"}'='"$@"'
15687 setopt NO_GLOB_SUBST
15688 else
15689 case `(set -o) 2>/dev/null` in #(
15690 *posix*) :
15691 set -o posix ;; #(
15692 *) :
15694 esac
15698 as_nl='
15700 export as_nl
15701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15705 # Prefer a ksh shell builtin over an external printf program on Solaris,
15706 # but without wasting forks for bash or zsh.
15707 if test -z "$BASH_VERSION$ZSH_VERSION" \
15708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15709 as_echo='print -r --'
15710 as_echo_n='print -rn --'
15711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15712 as_echo='printf %s\n'
15713 as_echo_n='printf %s'
15714 else
15715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15717 as_echo_n='/usr/ucb/echo -n'
15718 else
15719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15720 as_echo_n_body='eval
15721 arg=$1;
15722 case $arg in #(
15723 *"$as_nl"*)
15724 expr "X$arg" : "X\\(.*\\)$as_nl";
15725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15726 esac;
15727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15729 export as_echo_n_body
15730 as_echo_n='sh -c $as_echo_n_body as_echo'
15732 export as_echo_body
15733 as_echo='sh -c $as_echo_body as_echo'
15736 # The user is always right.
15737 if test "${PATH_SEPARATOR+set}" != set; then
15738 PATH_SEPARATOR=:
15739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15741 PATH_SEPARATOR=';'
15746 # IFS
15747 # We need space, tab and new line, in precisely that order. Quoting is
15748 # there to prevent editors from complaining about space-tab.
15749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15750 # splitting by setting IFS to empty value.)
15751 IFS=" "" $as_nl"
15753 # Find who we are. Look in the path if we contain no directory separator.
15754 case $0 in #((
15755 *[\\/]* ) as_myself=$0 ;;
15756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15757 for as_dir in $PATH
15759 IFS=$as_save_IFS
15760 test -z "$as_dir" && as_dir=.
15761 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15762 done
15763 IFS=$as_save_IFS
15766 esac
15767 # We did not find ourselves, most probably we were run as `sh COMMAND'
15768 # in which case we are not to be found in the path.
15769 if test "x$as_myself" = x; then
15770 as_myself=$0
15772 if test ! -f "$as_myself"; then
15773 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15774 exit 1
15777 # Unset variables that we do not need and which cause bugs (e.g. in
15778 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15779 # suppresses any "Segmentation fault" message there. '((' could
15780 # trigger a bug in pdksh 5.2.14.
15781 for as_var in BASH_ENV ENV MAIL MAILPATH
15782 do eval test x\${$as_var+set} = xset \
15783 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15784 done
15785 PS1='$ '
15786 PS2='> '
15787 PS4='+ '
15789 # NLS nuisances.
15790 LC_ALL=C
15791 export LC_ALL
15792 LANGUAGE=C
15793 export LANGUAGE
15795 # CDPATH.
15796 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15799 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15800 # ----------------------------------------
15801 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15802 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15803 # script with STATUS, using 1 if that was 0.
15804 as_fn_error ()
15806 as_status=$1; test $as_status -eq 0 && as_status=1
15807 if test "$4"; then
15808 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15809 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15811 $as_echo "$as_me: error: $2" >&2
15812 as_fn_exit $as_status
15813 } # as_fn_error
15816 # as_fn_set_status STATUS
15817 # -----------------------
15818 # Set $? to STATUS, without forking.
15819 as_fn_set_status ()
15821 return $1
15822 } # as_fn_set_status
15824 # as_fn_exit STATUS
15825 # -----------------
15826 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15827 as_fn_exit ()
15829 set +e
15830 as_fn_set_status $1
15831 exit $1
15832 } # as_fn_exit
15834 # as_fn_unset ax_cv_socklen_t_equiv
15835 # ---------------------------------
15836 # Portably unset VAR.
15837 as_fn_unset ()
15839 { eval $1=; unset $1;}
15841 as_unset=as_fn_unset
15842 # as_fn_append ax_cv_socklen_t_equiv VALUE
15843 # ----------------------------------------
15844 # Append the text in VALUE to the end of the definition contained in VAR. Take
15845 # advantage of any shell optimizations that allow amortized linear growth over
15846 # repeated appends, instead of the typical quadratic growth present in naive
15847 # implementations.
15848 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15849 eval 'as_fn_append ()
15851 eval $1+=\$2
15853 else
15854 as_fn_append ()
15856 eval $1=\$$1\$2
15858 fi # as_fn_append
15860 # as_fn_arith ARG...
15861 # ------------------
15862 # Perform arithmetic evaluation on the ARGs, and store the result in the
15863 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15864 # must be portable across $(()) and expr.
15865 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15866 eval 'as_fn_arith ()
15868 as_val=$(( $* ))
15870 else
15871 as_fn_arith ()
15873 as_val=`expr "$@" || test $? -eq 1`
15875 fi # as_fn_arith
15878 if expr a : '\(a\)' >/dev/null 2>&1 &&
15879 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15880 as_expr=expr
15881 else
15882 as_expr=false
15885 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15886 as_basename=basename
15887 else
15888 as_basename=false
15891 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15892 as_dirname=dirname
15893 else
15894 as_dirname=false
15897 as_me=`$as_basename -- "$0" ||
15898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15899 X"$0" : 'X\(//\)$' \| \
15900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15901 $as_echo X/"$0" |
15902 sed '/^.*\/\([^/][^/]*\)\/*$/{
15903 s//\1/
15906 /^X\/\(\/\/\)$/{
15907 s//\1/
15910 /^X\/\(\/\).*/{
15911 s//\1/
15914 s/.*/./; q'`
15916 # Avoid depending upon Character Ranges.
15917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15920 as_cr_digits='0123456789'
15921 as_cr_alnum=$as_cr_Letters$as_cr_digits
15923 ECHO_C= ECHO_N= ECHO_T=
15924 case `echo -n x` in #(((((
15925 -n*)
15926 case `echo 'xy\c'` in
15927 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15928 xy) ECHO_C='\c';;
15929 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15930 ECHO_T=' ';;
15931 esac;;
15933 ECHO_N='-n';;
15934 esac
15936 rm -f conf$$ conf$$.exe conf$$.file
15937 if test -d conf$$.dir; then
15938 rm -f conf$$.dir/conf$$.file
15939 else
15940 rm -f conf$$.dir
15941 mkdir conf$$.dir 2>/dev/null
15943 if (echo >conf$$.file) 2>/dev/null; then
15944 if ln -s conf$$.file conf$$ 2>/dev/null; then
15945 as_ln_s='ln -s'
15946 # ... but there are two gotchas:
15947 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15948 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15949 # In both cases, we have to default to `cp -p'.
15950 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15951 as_ln_s='cp -p'
15952 elif ln conf$$.file conf$$ 2>/dev/null; then
15953 as_ln_s=ln
15954 else
15955 as_ln_s='cp -p'
15957 else
15958 as_ln_s='cp -p'
15960 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15961 rmdir conf$$.dir 2>/dev/null
15964 # as_fn_mkdir_p
15965 # -------------
15966 # Create "$as_dir" as a directory, including parents if necessary.
15967 as_fn_mkdir_p ()
15970 case $as_dir in #(
15971 -*) as_dir=./$as_dir;;
15972 esac
15973 test -d "$as_dir" || eval $as_mkdir_p || {
15974 as_dirs=
15975 while :; do
15976 case $as_dir in #(
15977 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15978 *) as_qdir=$as_dir;;
15979 esac
15980 as_dirs="'$as_qdir' $as_dirs"
15981 as_dir=`$as_dirname -- "$as_dir" ||
15982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15983 X"$as_dir" : 'X\(//\)[^/]' \| \
15984 X"$as_dir" : 'X\(//\)$' \| \
15985 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15986 $as_echo X"$as_dir" |
15987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15988 s//\1/
15991 /^X\(\/\/\)[^/].*/{
15992 s//\1/
15995 /^X\(\/\/\)$/{
15996 s//\1/
15999 /^X\(\/\).*/{
16000 s//\1/
16003 s/.*/./; q'`
16004 test -d "$as_dir" && break
16005 done
16006 test -z "$as_dirs" || eval "mkdir $as_dirs"
16007 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16010 } # as_fn_mkdir_p
16011 if mkdir -p . 2>/dev/null; then
16012 as_mkdir_p='mkdir -p "$as_dir"'
16013 else
16014 test -d ./-p && rmdir ./-p
16015 as_mkdir_p=false
16018 if test -x / >/dev/null 2>&1; then
16019 as_test_x='test -x'
16020 else
16021 if ls -dL / >/dev/null 2>&1; then
16022 as_ls_L_option=L
16023 else
16024 as_ls_L_option=
16026 as_test_x='
16027 eval sh -c '\''
16028 if test -d "$1"; then
16029 test -d "$1/.";
16030 else
16031 case $1 in #(
16032 -*)set "./$1";;
16033 esac;
16034 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16035 ???[sx]*):;;*)false;;esac;fi
16036 '\'' sh
16039 as_executable_p=$as_test_x
16041 # Sed expression to map a string onto a valid CPP name.
16042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16044 # Sed expression to map a string onto a valid variable name.
16045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16048 exec 6>&1
16049 ## ----------------------------------- ##
16050 ## Main body of $CONFIG_STATUS script. ##
16051 ## ----------------------------------- ##
16052 _ASEOF
16053 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 # Save the log message, to keep $0 and so on meaningful, and to
16057 # report actual input values of CONFIG_FILES etc. instead of their
16058 # values after options handling.
16059 ac_log="
16060 This file was extended by OpenVPN $as_me 2.3.0, which was
16061 generated by GNU Autoconf 2.66. Invocation command line was
16063 CONFIG_FILES = $CONFIG_FILES
16064 CONFIG_HEADERS = $CONFIG_HEADERS
16065 CONFIG_LINKS = $CONFIG_LINKS
16066 CONFIG_COMMANDS = $CONFIG_COMMANDS
16067 $ $0 $@
16069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16072 _ACEOF
16074 case $ac_config_files in *"
16075 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16076 esac
16078 case $ac_config_headers in *"
16079 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16080 esac
16083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16084 # Files that config.status was made for.
16085 config_files="$ac_config_files"
16086 config_headers="$ac_config_headers"
16087 config_commands="$ac_config_commands"
16089 _ACEOF
16091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16092 ac_cs_usage="\
16093 \`$as_me' instantiates files and other configuration actions
16094 from templates according to the current configuration. Unless the files
16095 and actions are specified as TAGs, all are instantiated by default.
16097 Usage: $0 [OPTION]... [TAG]...
16099 -h, --help print this help, then exit
16100 -V, --version print version number and configuration settings, then exit
16101 --config print configuration, then exit
16102 -q, --quiet, --silent
16103 do not print progress messages
16104 -d, --debug don't remove temporary files
16105 --recheck update $as_me by reconfiguring in the same conditions
16106 --file=FILE[:TEMPLATE]
16107 instantiate the configuration file FILE
16108 --header=FILE[:TEMPLATE]
16109 instantiate the configuration header FILE
16111 Configuration files:
16112 $config_files
16114 Configuration headers:
16115 $config_headers
16117 Configuration commands:
16118 $config_commands
16120 Report bugs to <openvpn-users@lists.sourceforge.net>."
16122 _ACEOF
16123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16124 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16125 ac_cs_version="\\
16126 OpenVPN config.status 2.3.0
16127 configured by $0, generated by GNU Autoconf 2.66,
16128 with options \\"\$ac_cs_config\\"
16130 Copyright (C) 2010 Free Software Foundation, Inc.
16131 This config.status script is free software; the Free Software Foundation
16132 gives unlimited permission to copy, distribute and modify it."
16134 ac_pwd='$ac_pwd'
16135 srcdir='$srcdir'
16136 INSTALL='$INSTALL'
16137 MKDIR_P='$MKDIR_P'
16138 AWK='$AWK'
16139 test -n "\$AWK" || AWK=awk
16140 _ACEOF
16142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16143 # The default lists apply if the user does not specify any file.
16144 ac_need_defaults=:
16145 while test $# != 0
16147 case $1 in
16148 --*=*)
16149 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16150 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16151 ac_shift=:
16154 ac_option=$1
16155 ac_optarg=$2
16156 ac_shift=shift
16158 esac
16160 case $ac_option in
16161 # Handling of the options.
16162 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16163 ac_cs_recheck=: ;;
16164 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16165 $as_echo "$ac_cs_version"; exit ;;
16166 --config | --confi | --conf | --con | --co | --c )
16167 $as_echo "$ac_cs_config"; exit ;;
16168 --debug | --debu | --deb | --de | --d | -d )
16169 debug=: ;;
16170 --file | --fil | --fi | --f )
16171 $ac_shift
16172 case $ac_optarg in
16173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16174 esac
16175 as_fn_append CONFIG_FILES " '$ac_optarg'"
16176 ac_need_defaults=false;;
16177 --header | --heade | --head | --hea )
16178 $ac_shift
16179 case $ac_optarg in
16180 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16181 esac
16182 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16183 ac_need_defaults=false;;
16184 --he | --h)
16185 # Conflict between --help and --header
16186 as_fn_error $? "ambiguous option: \`$1'
16187 Try \`$0 --help' for more information.";;
16188 --help | --hel | -h )
16189 $as_echo "$ac_cs_usage"; exit ;;
16190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16191 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16192 ac_cs_silent=: ;;
16194 # This is an error.
16195 -*) as_fn_error $? "unrecognized option: \`$1'
16196 Try \`$0 --help' for more information." ;;
16198 *) as_fn_append ac_config_targets " $1"
16199 ac_need_defaults=false ;;
16201 esac
16202 shift
16203 done
16205 ac_configure_extra_args=
16207 if $ac_cs_silent; then
16208 exec 6>/dev/null
16209 ac_configure_extra_args="$ac_configure_extra_args --silent"
16212 _ACEOF
16213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16214 if \$ac_cs_recheck; then
16215 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16216 shift
16217 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16218 CONFIG_SHELL='$SHELL'
16219 export CONFIG_SHELL
16220 exec "\$@"
16223 _ACEOF
16224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16225 exec 5>>config.log
16227 echo
16228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16229 ## Running $as_me. ##
16230 _ASBOX
16231 $as_echo "$ac_log"
16232 } >&5
16234 _ACEOF
16235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16237 # INIT-COMMANDS
16239 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16242 # The HP-UX ksh and POSIX shell print the target directory to stdout
16243 # if CDPATH is set.
16244 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16246 sed_quote_subst='$sed_quote_subst'
16247 double_quote_subst='$double_quote_subst'
16248 delay_variable_subst='$delay_variable_subst'
16249 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16250 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16251 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16252 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16253 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16254 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16255 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16256 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16257 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16258 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16259 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16260 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16261 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16262 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16263 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16264 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16265 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16266 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16267 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16268 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16269 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16270 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16271 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16272 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16273 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16274 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16275 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16276 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16277 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16278 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16279 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16280 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16281 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16282 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16283 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16284 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16285 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16286 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16287 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16288 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16289 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16290 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16291 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16292 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16293 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16294 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16295 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16296 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16297 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16298 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16299 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16300 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16301 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16302 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16303 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16304 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16305 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16306 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16307 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16308 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16309 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16310 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16311 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16312 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16313 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16314 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16315 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16316 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16317 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16318 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16319 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16320 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16321 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16322 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16323 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16324 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16325 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16326 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16327 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16328 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16329 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16330 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16331 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16332 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16333 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16334 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16335 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16336 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16337 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16338 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16339 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16340 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16341 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16342 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16343 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16344 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16345 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16346 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16347 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16348 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16349 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16350 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16351 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16352 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16353 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16354 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16355 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16356 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16357 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16358 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16359 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16360 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16361 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16362 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16363 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16364 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16365 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16366 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16367 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16368 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16369 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16370 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16371 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
16372 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
16373 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
16374 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16375 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
16376 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
16377 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
16378 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
16379 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
16380 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
16381 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
16382 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
16383 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
16384 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16385 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16386 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
16387 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
16388 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
16389 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16390 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16391 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
16392 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16393 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
16394 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16395 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16396 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16397 hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
16398 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
16399 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
16400 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
16401 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
16402 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
16403 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
16404 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
16405 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
16406 fix_srcfile_path_RC='`$ECHO "$fix_srcfile_path_RC" | $SED "$delay_single_quote_subst"`'
16407 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
16408 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
16409 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16410 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16411 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16412 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
16413 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
16415 LTCC='$LTCC'
16416 LTCFLAGS='$LTCFLAGS'
16417 compiler='$compiler_DEFAULT'
16419 # A function that is used when there is no print builtin or printf.
16420 func_fallback_echo ()
16422 eval 'cat <<_LTECHO_EOF
16424 _LTECHO_EOF'
16427 # Quote evaled strings.
16428 for var in AS \
16429 DLLTOOL \
16430 OBJDUMP \
16431 SHELL \
16432 ECHO \
16433 SED \
16434 GREP \
16435 EGREP \
16436 FGREP \
16437 LD \
16438 NM \
16439 LN_S \
16440 lt_SP2NL \
16441 lt_NL2SP \
16442 reload_flag \
16443 deplibs_check_method \
16444 file_magic_cmd \
16445 AR \
16446 AR_FLAGS \
16447 STRIP \
16448 RANLIB \
16449 CC \
16450 CFLAGS \
16451 compiler \
16452 lt_cv_sys_global_symbol_pipe \
16453 lt_cv_sys_global_symbol_to_cdecl \
16454 lt_cv_sys_global_symbol_to_c_name_address \
16455 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16456 lt_prog_compiler_no_builtin_flag \
16457 lt_prog_compiler_wl \
16458 lt_prog_compiler_pic \
16459 lt_prog_compiler_static \
16460 lt_cv_prog_compiler_c_o \
16461 need_locks \
16462 DSYMUTIL \
16463 NMEDIT \
16464 LIPO \
16465 OTOOL \
16466 OTOOL64 \
16467 shrext_cmds \
16468 export_dynamic_flag_spec \
16469 whole_archive_flag_spec \
16470 compiler_needs_object \
16471 with_gnu_ld \
16472 allow_undefined_flag \
16473 no_undefined_flag \
16474 hardcode_libdir_flag_spec \
16475 hardcode_libdir_flag_spec_ld \
16476 hardcode_libdir_separator \
16477 fix_srcfile_path \
16478 exclude_expsyms \
16479 include_expsyms \
16480 file_list_spec \
16481 variables_saved_for_relink \
16482 libname_spec \
16483 library_names_spec \
16484 soname_spec \
16485 install_override_mode \
16486 finish_eval \
16487 old_striplib \
16488 striplib \
16489 LD_RC \
16490 reload_flag_RC \
16491 compiler_RC \
16492 lt_prog_compiler_no_builtin_flag_RC \
16493 lt_prog_compiler_wl_RC \
16494 lt_prog_compiler_pic_RC \
16495 lt_prog_compiler_static_RC \
16496 lt_cv_prog_compiler_c_o_RC \
16497 export_dynamic_flag_spec_RC \
16498 whole_archive_flag_spec_RC \
16499 compiler_needs_object_RC \
16500 with_gnu_ld_RC \
16501 allow_undefined_flag_RC \
16502 no_undefined_flag_RC \
16503 hardcode_libdir_flag_spec_RC \
16504 hardcode_libdir_flag_spec_ld_RC \
16505 hardcode_libdir_separator_RC \
16506 fix_srcfile_path_RC \
16507 exclude_expsyms_RC \
16508 include_expsyms_RC \
16509 file_list_spec_RC; do
16510 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16511 *[\\\\\\\`\\"\\\$]*)
16512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16517 esac
16518 done
16520 # Double-quote double-evaled strings.
16521 for var in reload_cmds \
16522 old_postinstall_cmds \
16523 old_postuninstall_cmds \
16524 old_archive_cmds \
16525 extract_expsyms_cmds \
16526 old_archive_from_new_cmds \
16527 old_archive_from_expsyms_cmds \
16528 archive_cmds \
16529 archive_expsym_cmds \
16530 module_cmds \
16531 module_expsym_cmds \
16532 export_symbols_cmds \
16533 prelink_cmds \
16534 postinstall_cmds \
16535 postuninstall_cmds \
16536 finish_cmds \
16537 sys_lib_search_path_spec \
16538 sys_lib_dlsearch_path_spec \
16539 reload_cmds_RC \
16540 old_archive_cmds_RC \
16541 old_archive_from_new_cmds_RC \
16542 old_archive_from_expsyms_cmds_RC \
16543 archive_cmds_RC \
16544 archive_expsym_cmds_RC \
16545 module_cmds_RC \
16546 module_expsym_cmds_RC \
16547 export_symbols_cmds_RC \
16548 prelink_cmds_RC; do
16549 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16550 *[\\\\\\\`\\"\\\$]*)
16551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16556 esac
16557 done
16559 ac_aux_dir='$ac_aux_dir'
16560 xsi_shell='$xsi_shell'
16561 lt_shell_append='$lt_shell_append'
16563 # See if we are running on zsh, and set the options which allow our
16564 # commands through without removal of \ escapes INIT.
16565 if test -n "\${ZSH_VERSION+set}" ; then
16566 setopt NO_GLOB_SUBST
16570 PACKAGE='$PACKAGE'
16571 VERSION='$VERSION'
16572 TIMESTAMP='$TIMESTAMP'
16573 RM='$RM'
16574 ofile='$ofile'
16581 _ACEOF
16583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16585 # Handling of arguments.
16586 for ac_config_target in $ac_config_targets
16588 case $ac_config_target in
16589 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16590 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16591 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16592 "version.sh") CONFIG_FILES="$CONFIG_FILES version.sh" ;;
16593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16594 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
16595 "build/msvc/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/Makefile" ;;
16596 "build/msvc/msvc-generate/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
16597 "distro/Makefile") CONFIG_FILES="$CONFIG_FILES distro/Makefile" ;;
16598 "distro/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES distro/rpm/Makefile" ;;
16599 "distro/rpm/openvpn.spec") CONFIG_FILES="$CONFIG_FILES distro/rpm/openvpn.spec" ;;
16600 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16601 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16602 "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
16603 "src/openvpn/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpn/Makefile" ;;
16604 "src/openvpnserv/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpnserv/Makefile" ;;
16605 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
16606 "src/plugins/auth-pam/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
16607 "src/plugins/down-root/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
16608 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16609 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16610 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16611 "tests/t_client.sh") CONFIG_FILES="$CONFIG_FILES tests/t_client.sh" ;;
16613 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16614 esac
16615 done
16618 # If the user did not use the arguments to specify the items to instantiate,
16619 # then the envvar interface is used. Set only those that are not.
16620 # We use the long form for the default assignment because of an extremely
16621 # bizarre bug on SunOS 4.1.3.
16622 if $ac_need_defaults; then
16623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16625 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16628 # Have a temporary directory for convenience. Make it in the build tree
16629 # simply because there is no reason against having it here, and in addition,
16630 # creating and moving files from /tmp can sometimes cause problems.
16631 # Hook for its removal unless debugging.
16632 # Note that there is a small window in which the directory will not be cleaned:
16633 # after its creation but before its name has been assigned to `$tmp'.
16634 $debug ||
16636 tmp=
16637 trap 'exit_status=$?
16638 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16640 trap 'as_fn_exit 1' 1 2 13 15
16642 # Create a (secure) tmp directory for tmp files.
16645 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16646 test -n "$tmp" && test -d "$tmp"
16647 } ||
16649 tmp=./conf$$-$RANDOM
16650 (umask 077 && mkdir "$tmp")
16651 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16653 # Set up the scripts for CONFIG_FILES section.
16654 # No need to generate them if there are no CONFIG_FILES.
16655 # This happens for instance with `./config.status config.h'.
16656 if test -n "$CONFIG_FILES"; then
16659 ac_cr=`echo X | tr X '\015'`
16660 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16661 # But we know of no other shell where ac_cr would be empty at this
16662 # point, so we can use a bashism as a fallback.
16663 if test "x$ac_cr" = x; then
16664 eval ac_cr=\$\'\\r\'
16666 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16667 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16668 ac_cs_awk_cr='\\r'
16669 else
16670 ac_cs_awk_cr=$ac_cr
16673 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16674 _ACEOF
16678 echo "cat >conf$$subs.awk <<_ACEOF" &&
16679 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16680 echo "_ACEOF"
16681 } >conf$$subs.sh ||
16682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16683 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16684 ac_delim='%!_!# '
16685 for ac_last_try in false false false false false :; do
16686 . ./conf$$subs.sh ||
16687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16689 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16690 if test $ac_delim_n = $ac_delim_num; then
16691 break
16692 elif $ac_last_try; then
16693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16694 else
16695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16697 done
16698 rm -f conf$$subs.sh
16700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16701 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16702 _ACEOF
16703 sed -n '
16705 s/^/S["/; s/!.*/"]=/
16708 s/^[^!]*!//
16709 :repl
16710 t repl
16711 s/'"$ac_delim"'$//
16712 t delim
16715 s/\(.\{148\}\)..*/\1/
16716 t more1
16717 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16720 b repl
16721 :more1
16722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16725 s/.\{148\}//
16726 t nl
16727 :delim
16729 s/\(.\{148\}\)..*/\1/
16730 t more2
16731 s/["\\]/\\&/g; s/^/"/; s/$/"/
16734 :more2
16735 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16738 s/.\{148\}//
16739 t delim
16740 ' <conf$$subs.awk | sed '
16741 /^[^""]/{
16743 s/\n//
16745 ' >>$CONFIG_STATUS || ac_write_fail=1
16746 rm -f conf$$subs.awk
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 _ACAWK
16749 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16750 for (key in S) S_is_set[key] = 1
16751 FS = "\a"
16755 line = $ 0
16756 nfields = split(line, field, "@")
16757 substed = 0
16758 len = length(field[1])
16759 for (i = 2; i < nfields; i++) {
16760 key = field[i]
16761 keylen = length(key)
16762 if (S_is_set[key]) {
16763 value = S[key]
16764 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16765 len += length(value) + length(field[++i])
16766 substed = 1
16767 } else
16768 len += 1 + keylen
16771 print line
16774 _ACAWK
16775 _ACEOF
16776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16777 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16778 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16779 else
16781 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16782 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16783 _ACEOF
16785 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16786 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16787 # trailing colons and then remove the whole line if VPATH becomes empty
16788 # (actually we leave an empty line to preserve line numbers).
16789 if test "x$srcdir" = x.; then
16790 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16792 s///
16793 s/^/:/
16794 s/[ ]*$/:/
16795 s/:\$(srcdir):/:/g
16796 s/:\${srcdir}:/:/g
16797 s/:@srcdir@:/:/g
16798 s/^:*//
16799 s/:*$//
16801 s/\(=[ ]*\).*/\1/
16803 s/\n//
16804 s/^[^=]*=[ ]*$//
16808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16809 fi # test -n "$CONFIG_FILES"
16811 # Set up the scripts for CONFIG_HEADERS section.
16812 # No need to generate them if there are no CONFIG_HEADERS.
16813 # This happens for instance with `./config.status Makefile'.
16814 if test -n "$CONFIG_HEADERS"; then
16815 cat >"$tmp/defines.awk" <<\_ACAWK ||
16816 BEGIN {
16817 _ACEOF
16819 # Transform confdefs.h into an awk script `defines.awk', embedded as
16820 # here-document in config.status, that substitutes the proper values into
16821 # config.h.in to produce config.h.
16823 # Create a delimiter string that does not exist in confdefs.h, to ease
16824 # handling of long lines.
16825 ac_delim='%!_!# '
16826 for ac_last_try in false false :; do
16827 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16828 if test -z "$ac_t"; then
16829 break
16830 elif $ac_last_try; then
16831 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16832 else
16833 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16835 done
16837 # For the awk script, D is an array of macro values keyed by name,
16838 # likewise P contains macro parameters if any. Preserve backslash
16839 # newline sequences.
16841 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16842 sed -n '
16843 s/.\{148\}/&'"$ac_delim"'/g
16844 t rset
16845 :rset
16846 s/^[ ]*#[ ]*define[ ][ ]*/ /
16847 t def
16849 :def
16850 s/\\$//
16851 t bsnl
16852 s/["\\]/\\&/g
16853 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16854 D["\1"]=" \3"/p
16855 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16857 :bsnl
16858 s/["\\]/\\&/g
16859 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16860 D["\1"]=" \3\\\\\\n"\\/p
16861 t cont
16862 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16863 t cont
16865 :cont
16867 s/.\{148\}/&'"$ac_delim"'/g
16868 t clear
16869 :clear
16870 s/\\$//
16871 t bsnlc
16872 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16874 :bsnlc
16875 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16876 b cont
16877 ' <confdefs.h | sed '
16878 s/'"$ac_delim"'/"\\\
16879 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16882 for (key in D) D_is_set[key] = 1
16883 FS = "\a"
16885 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16886 line = \$ 0
16887 split(line, arg, " ")
16888 if (arg[1] == "#") {
16889 defundef = arg[2]
16890 mac1 = arg[3]
16891 } else {
16892 defundef = substr(arg[1], 2)
16893 mac1 = arg[2]
16895 split(mac1, mac2, "(") #)
16896 macro = mac2[1]
16897 prefix = substr(line, 1, index(line, defundef) - 1)
16898 if (D_is_set[macro]) {
16899 # Preserve the white space surrounding the "#".
16900 print prefix "define", macro P[macro] D[macro]
16901 next
16902 } else {
16903 # Replace #undef with comments. This is necessary, for example,
16904 # in the case of _POSIX_SOURCE, which is predefined and required
16905 # on some systems where configure will not decide to define it.
16906 if (defundef == "undef") {
16907 print "/*", prefix defundef, macro, "*/"
16908 next
16912 { print }
16913 _ACAWK
16914 _ACEOF
16915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16916 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16917 fi # test -n "$CONFIG_HEADERS"
16920 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16921 shift
16922 for ac_tag
16924 case $ac_tag in
16925 :[FHLC]) ac_mode=$ac_tag; continue;;
16926 esac
16927 case $ac_mode$ac_tag in
16928 :[FHL]*:*);;
16929 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16930 :[FH]-) ac_tag=-:-;;
16931 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16932 esac
16933 ac_save_IFS=$IFS
16934 IFS=:
16935 set x $ac_tag
16936 IFS=$ac_save_IFS
16937 shift
16938 ac_file=$1
16939 shift
16941 case $ac_mode in
16942 :L) ac_source=$1;;
16943 :[FH])
16944 ac_file_inputs=
16945 for ac_f
16947 case $ac_f in
16948 -) ac_f="$tmp/stdin";;
16949 *) # Look for the file first in the build tree, then in the source tree
16950 # (if the path is not absolute). The absolute path cannot be DOS-style,
16951 # because $ac_f cannot contain `:'.
16952 test -f "$ac_f" ||
16953 case $ac_f in
16954 [\\/$]*) false;;
16955 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16956 esac ||
16957 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16958 esac
16959 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16960 as_fn_append ac_file_inputs " '$ac_f'"
16961 done
16963 # Let's still pretend it is `configure' which instantiates (i.e., don't
16964 # use $as_me), people would be surprised to read:
16965 # /* config.h. Generated by config.status. */
16966 configure_input='Generated from '`
16967 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16968 `' by configure.'
16969 if test x"$ac_file" != x-; then
16970 configure_input="$ac_file. $configure_input"
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16972 $as_echo "$as_me: creating $ac_file" >&6;}
16974 # Neutralize special characters interpreted by sed in replacement strings.
16975 case $configure_input in #(
16976 *\&* | *\|* | *\\* )
16977 ac_sed_conf_input=`$as_echo "$configure_input" |
16978 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16979 *) ac_sed_conf_input=$configure_input;;
16980 esac
16982 case $ac_tag in
16983 *:-:* | *:-) cat >"$tmp/stdin" \
16984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16985 esac
16987 esac
16989 ac_dir=`$as_dirname -- "$ac_file" ||
16990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16991 X"$ac_file" : 'X\(//\)[^/]' \| \
16992 X"$ac_file" : 'X\(//\)$' \| \
16993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16994 $as_echo X"$ac_file" |
16995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16996 s//\1/
16999 /^X\(\/\/\)[^/].*/{
17000 s//\1/
17003 /^X\(\/\/\)$/{
17004 s//\1/
17007 /^X\(\/\).*/{
17008 s//\1/
17011 s/.*/./; q'`
17012 as_dir="$ac_dir"; as_fn_mkdir_p
17013 ac_builddir=.
17015 case "$ac_dir" in
17016 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17018 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17019 # A ".." for each directory in $ac_dir_suffix.
17020 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17021 case $ac_top_builddir_sub in
17022 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17023 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17024 esac ;;
17025 esac
17026 ac_abs_top_builddir=$ac_pwd
17027 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17028 # for backward compatibility:
17029 ac_top_builddir=$ac_top_build_prefix
17031 case $srcdir in
17032 .) # We are building in place.
17033 ac_srcdir=.
17034 ac_top_srcdir=$ac_top_builddir_sub
17035 ac_abs_top_srcdir=$ac_pwd ;;
17036 [\\/]* | ?:[\\/]* ) # Absolute name.
17037 ac_srcdir=$srcdir$ac_dir_suffix;
17038 ac_top_srcdir=$srcdir
17039 ac_abs_top_srcdir=$srcdir ;;
17040 *) # Relative name.
17041 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17042 ac_top_srcdir=$ac_top_build_prefix$srcdir
17043 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17044 esac
17045 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17048 case $ac_mode in
17051 # CONFIG_FILE
17054 case $INSTALL in
17055 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17056 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17057 esac
17058 ac_MKDIR_P=$MKDIR_P
17059 case $MKDIR_P in
17060 [\\/$]* | ?:[\\/]* ) ;;
17061 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17062 esac
17063 _ACEOF
17065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17066 # If the template does not know about datarootdir, expand it.
17067 # FIXME: This hack should be removed a few years after 2.60.
17068 ac_datarootdir_hack=; ac_datarootdir_seen=
17069 ac_sed_dataroot='
17070 /datarootdir/ {
17074 /@datadir@/p
17075 /@docdir@/p
17076 /@infodir@/p
17077 /@localedir@/p
17078 /@mandir@/p'
17079 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17080 *datarootdir*) ac_datarootdir_seen=yes;;
17081 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17083 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17084 _ACEOF
17085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17086 ac_datarootdir_hack='
17087 s&@datadir@&$datadir&g
17088 s&@docdir@&$docdir&g
17089 s&@infodir@&$infodir&g
17090 s&@localedir@&$localedir&g
17091 s&@mandir@&$mandir&g
17092 s&\\\${datarootdir}&$datarootdir&g' ;;
17093 esac
17094 _ACEOF
17096 # Neutralize VPATH when `$srcdir' = `.'.
17097 # Shell code in configure.ac might set extrasub.
17098 # FIXME: do we really want to maintain this feature?
17099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17100 ac_sed_extra="$ac_vpsub
17101 $extrasub
17102 _ACEOF
17103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17106 s|@configure_input@|$ac_sed_conf_input|;t t
17107 s&@top_builddir@&$ac_top_builddir_sub&;t t
17108 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17109 s&@srcdir@&$ac_srcdir&;t t
17110 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17111 s&@top_srcdir@&$ac_top_srcdir&;t t
17112 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17113 s&@builddir@&$ac_builddir&;t t
17114 s&@abs_builddir@&$ac_abs_builddir&;t t
17115 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17116 s&@INSTALL@&$ac_INSTALL&;t t
17117 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17118 $ac_datarootdir_hack
17120 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17123 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17124 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17125 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17127 which seems to be undefined. Please make sure it is defined" >&5
17128 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17129 which seems to be undefined. Please make sure it is defined" >&2;}
17131 rm -f "$tmp/stdin"
17132 case $ac_file in
17133 -) cat "$tmp/out" && rm -f "$tmp/out";;
17134 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17135 esac \
17136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17140 # CONFIG_HEADER
17142 if test x"$ac_file" != x-; then
17144 $as_echo "/* $configure_input */" \
17145 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17146 } >"$tmp/config.h" \
17147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17148 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17150 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17151 else
17152 rm -f "$ac_file"
17153 mv "$tmp/config.h" "$ac_file" \
17154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17156 else
17157 $as_echo "/* $configure_input */" \
17158 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17159 || as_fn_error $? "could not create -" "$LINENO" 5
17161 # Compute "$ac_file"'s index in $config_headers.
17162 _am_arg="$ac_file"
17163 _am_stamp_count=1
17164 for _am_header in $config_headers :; do
17165 case $_am_header in
17166 $_am_arg | $_am_arg:* )
17167 break ;;
17169 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17170 esac
17171 done
17172 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17173 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17174 X"$_am_arg" : 'X\(//\)[^/]' \| \
17175 X"$_am_arg" : 'X\(//\)$' \| \
17176 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17177 $as_echo X"$_am_arg" |
17178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17179 s//\1/
17182 /^X\(\/\/\)[^/].*/{
17183 s//\1/
17186 /^X\(\/\/\)$/{
17187 s//\1/
17190 /^X\(\/\).*/{
17191 s//\1/
17194 s/.*/./; q'`/stamp-h$_am_stamp_count
17197 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17198 $as_echo "$as_me: executing $ac_file commands" >&6;}
17200 esac
17203 case $ac_file$ac_mode in
17204 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17205 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17206 # are listed without --file. Let's play safe and only enable the eval
17207 # if we detect the quoting.
17208 case $CONFIG_FILES in
17209 *\'*) eval set x "$CONFIG_FILES" ;;
17210 *) set x $CONFIG_FILES ;;
17211 esac
17212 shift
17213 for mf
17215 # Strip MF so we end up with the name of the file.
17216 mf=`echo "$mf" | sed -e 's/:.*$//'`
17217 # Check whether this is an Automake generated Makefile or not.
17218 # We used to match only the files named `Makefile.in', but
17219 # some people rename them; so instead we look at the file content.
17220 # Grep'ing the first line is not enough: some people post-process
17221 # each Makefile.in and add a new line on top of each file to say so.
17222 # Grep'ing the whole file is not good either: AIX grep has a line
17223 # limit of 2048, but all sed's we know have understand at least 4000.
17224 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17225 dirpart=`$as_dirname -- "$mf" ||
17226 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17227 X"$mf" : 'X\(//\)[^/]' \| \
17228 X"$mf" : 'X\(//\)$' \| \
17229 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17230 $as_echo X"$mf" |
17231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17232 s//\1/
17235 /^X\(\/\/\)[^/].*/{
17236 s//\1/
17239 /^X\(\/\/\)$/{
17240 s//\1/
17243 /^X\(\/\).*/{
17244 s//\1/
17247 s/.*/./; q'`
17248 else
17249 continue
17251 # Extract the definition of DEPDIR, am__include, and am__quote
17252 # from the Makefile without running `make'.
17253 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17254 test -z "$DEPDIR" && continue
17255 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17256 test -z "am__include" && continue
17257 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17258 # When using ansi2knr, U may be empty or an underscore; expand it
17259 U=`sed -n 's/^U = //p' < "$mf"`
17260 # Find all dependency output files, they are included files with
17261 # $(DEPDIR) in their names. We invoke sed twice because it is the
17262 # simplest approach to changing $(DEPDIR) to its actual value in the
17263 # expansion.
17264 for file in `sed -n "
17265 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17266 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17267 # Make sure the directory exists.
17268 test -f "$dirpart/$file" && continue
17269 fdir=`$as_dirname -- "$file" ||
17270 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17271 X"$file" : 'X\(//\)[^/]' \| \
17272 X"$file" : 'X\(//\)$' \| \
17273 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17274 $as_echo X"$file" |
17275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17276 s//\1/
17279 /^X\(\/\/\)[^/].*/{
17280 s//\1/
17283 /^X\(\/\/\)$/{
17284 s//\1/
17287 /^X\(\/\).*/{
17288 s//\1/
17291 s/.*/./; q'`
17292 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17293 # echo "creating $dirpart/$file"
17294 echo '# dummy' > "$dirpart/$file"
17295 done
17296 done
17299 "libtool":C)
17301 # See if we are running on zsh, and set the options which allow our
17302 # commands through without removal of \ escapes.
17303 if test -n "${ZSH_VERSION+set}" ; then
17304 setopt NO_GLOB_SUBST
17307 cfgfile="${ofile}T"
17308 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17309 $RM "$cfgfile"
17311 cat <<_LT_EOF >> "$cfgfile"
17312 #! $SHELL
17314 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17315 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17317 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17319 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17320 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17321 # Inc.
17322 # Written by Gordon Matzigkeit, 1996
17324 # This file is part of GNU Libtool.
17326 # GNU Libtool is free software; you can redistribute it and/or
17327 # modify it under the terms of the GNU General Public License as
17328 # published by the Free Software Foundation; either version 2 of
17329 # the License, or (at your option) any later version.
17331 # As a special exception to the GNU General Public License,
17332 # if you distribute this file as part of a program or library that
17333 # is built using GNU Libtool, you may include this file under the
17334 # same distribution terms that you use for the rest of that program.
17336 # GNU Libtool is distributed in the hope that it will be useful,
17337 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17338 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17339 # GNU General Public License for more details.
17341 # You should have received a copy of the GNU General Public License
17342 # along with GNU Libtool; see the file COPYING. If not, a copy
17343 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17344 # obtained by writing to the Free Software Foundation, Inc.,
17345 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17348 # The names of the tagged configurations supported by this script.
17349 available_tags="RC "
17351 # ### BEGIN LIBTOOL CONFIG
17353 # Which release of libtool.m4 was used?
17354 macro_version=$macro_version
17355 macro_revision=$macro_revision
17357 # Assembler program.
17358 AS=$lt_AS
17360 # DLL creation program.
17361 DLLTOOL=$lt_DLLTOOL
17363 # Object dumper program.
17364 OBJDUMP=$lt_OBJDUMP
17366 # Whether or not to build shared libraries.
17367 build_libtool_libs=$enable_shared
17369 # Whether or not to build static libraries.
17370 build_old_libs=$enable_static
17372 # What type of objects to build.
17373 pic_mode=$pic_mode
17375 # Whether or not to optimize for fast installation.
17376 fast_install=$enable_fast_install
17378 # Shell to use when invoking shell scripts.
17379 SHELL=$lt_SHELL
17381 # An echo program that protects backslashes.
17382 ECHO=$lt_ECHO
17384 # The host system.
17385 host_alias=$host_alias
17386 host=$host
17387 host_os=$host_os
17389 # The build system.
17390 build_alias=$build_alias
17391 build=$build
17392 build_os=$build_os
17394 # A sed program that does not truncate output.
17395 SED=$lt_SED
17397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17398 Xsed="\$SED -e 1s/^X//"
17400 # A grep program that handles long lines.
17401 GREP=$lt_GREP
17403 # An ERE matcher.
17404 EGREP=$lt_EGREP
17406 # A literal string matcher.
17407 FGREP=$lt_FGREP
17409 # A BSD- or MS-compatible name lister.
17410 NM=$lt_NM
17412 # Whether we need soft or hard links.
17413 LN_S=$lt_LN_S
17415 # What is the maximum length of a command?
17416 max_cmd_len=$max_cmd_len
17418 # Object file suffix (normally "o").
17419 objext=$ac_objext
17421 # Executable file suffix (normally "").
17422 exeext=$exeext
17424 # whether the shell understands "unset".
17425 lt_unset=$lt_unset
17427 # turn spaces into newlines.
17428 SP2NL=$lt_lt_SP2NL
17430 # turn newlines into spaces.
17431 NL2SP=$lt_lt_NL2SP
17433 # Method to check whether dependent libraries are shared objects.
17434 deplibs_check_method=$lt_deplibs_check_method
17436 # Command to use when deplibs_check_method == "file_magic".
17437 file_magic_cmd=$lt_file_magic_cmd
17439 # The archiver.
17440 AR=$lt_AR
17441 AR_FLAGS=$lt_AR_FLAGS
17443 # A symbol stripping program.
17444 STRIP=$lt_STRIP
17446 # Commands used to install an old-style archive.
17447 RANLIB=$lt_RANLIB
17448 old_postinstall_cmds=$lt_old_postinstall_cmds
17449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17451 # Whether to use a lock for old archive extraction.
17452 lock_old_archive_extraction=$lock_old_archive_extraction
17454 # A C compiler.
17455 LTCC=$lt_CC
17457 # LTCC compiler flags.
17458 LTCFLAGS=$lt_CFLAGS
17460 # Take the output of nm and produce a listing of raw symbols and C names.
17461 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17463 # Transform the output of nm in a proper C declaration.
17464 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17466 # Transform the output of nm in a C name address pair.
17467 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17469 # Transform the output of nm in a C name address pair when lib prefix is needed.
17470 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17472 # The name of the directory that contains temporary libtool files.
17473 objdir=$objdir
17475 # Used to examine libraries when file_magic_cmd begins with "file".
17476 MAGIC_CMD=$MAGIC_CMD
17478 # Must we lock files when doing compilation?
17479 need_locks=$lt_need_locks
17481 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17482 DSYMUTIL=$lt_DSYMUTIL
17484 # Tool to change global to local symbols on Mac OS X.
17485 NMEDIT=$lt_NMEDIT
17487 # Tool to manipulate fat objects and archives on Mac OS X.
17488 LIPO=$lt_LIPO
17490 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17491 OTOOL=$lt_OTOOL
17493 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17494 OTOOL64=$lt_OTOOL64
17496 # Old archive suffix (normally "a").
17497 libext=$libext
17499 # Shared library suffix (normally ".so").
17500 shrext_cmds=$lt_shrext_cmds
17502 # The commands to extract the exported symbol list from a shared archive.
17503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17505 # Variables whose values should be saved in libtool wrapper scripts and
17506 # restored at link time.
17507 variables_saved_for_relink=$lt_variables_saved_for_relink
17509 # Do we need the "lib" prefix for modules?
17510 need_lib_prefix=$need_lib_prefix
17512 # Do we need a version for libraries?
17513 need_version=$need_version
17515 # Library versioning type.
17516 version_type=$version_type
17518 # Shared library runtime path variable.
17519 runpath_var=$runpath_var
17521 # Shared library path variable.
17522 shlibpath_var=$shlibpath_var
17524 # Is shlibpath searched before the hard-coded library search path?
17525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17527 # Format of library name prefix.
17528 libname_spec=$lt_libname_spec
17530 # List of archive names. First name is the real one, the rest are links.
17531 # The last name is the one that the linker finds with -lNAME
17532 library_names_spec=$lt_library_names_spec
17534 # The coded name of the library, if different from the real name.
17535 soname_spec=$lt_soname_spec
17537 # Permission mode override for installation of shared libraries.
17538 install_override_mode=$lt_install_override_mode
17540 # Command to use after installation of a shared archive.
17541 postinstall_cmds=$lt_postinstall_cmds
17543 # Command to use after uninstallation of a shared archive.
17544 postuninstall_cmds=$lt_postuninstall_cmds
17546 # Commands used to finish a libtool library installation in a directory.
17547 finish_cmds=$lt_finish_cmds
17549 # As "finish_cmds", except a single script fragment to be evaled but
17550 # not shown.
17551 finish_eval=$lt_finish_eval
17553 # Whether we should hardcode library paths into libraries.
17554 hardcode_into_libs=$hardcode_into_libs
17556 # Compile-time system search path for libraries.
17557 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17559 # Run-time system search path for libraries.
17560 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17562 # Whether dlopen is supported.
17563 dlopen_support=$enable_dlopen
17565 # Whether dlopen of programs is supported.
17566 dlopen_self=$enable_dlopen_self
17568 # Whether dlopen of statically linked programs is supported.
17569 dlopen_self_static=$enable_dlopen_self_static
17571 # Commands to strip libraries.
17572 old_striplib=$lt_old_striplib
17573 striplib=$lt_striplib
17576 # The linker used to build libraries.
17577 LD=$lt_LD
17579 # How to create reloadable object files.
17580 reload_flag=$lt_reload_flag
17581 reload_cmds=$lt_reload_cmds
17583 # Commands used to build an old-style archive.
17584 old_archive_cmds=$lt_old_archive_cmds
17586 # A language specific compiler.
17587 CC=$lt_compiler
17589 # Is the compiler the GNU compiler?
17590 with_gcc=$GCC
17592 # Compiler flag to turn off builtin functions.
17593 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17595 # How to pass a linker flag through the compiler.
17596 wl=$lt_lt_prog_compiler_wl
17598 # Additional compiler flags for building library objects.
17599 pic_flag=$lt_lt_prog_compiler_pic
17601 # Compiler flag to prevent dynamic linking.
17602 link_static_flag=$lt_lt_prog_compiler_static
17604 # Does compiler simultaneously support -c and -o options?
17605 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17607 # Whether or not to add -lc for building shared libraries.
17608 build_libtool_need_lc=$archive_cmds_need_lc
17610 # Whether or not to disallow shared libs when runtime libs are static.
17611 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17613 # Compiler flag to allow reflexive dlopens.
17614 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17616 # Compiler flag to generate shared objects directly from archives.
17617 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17619 # Whether the compiler copes with passing no objects directly.
17620 compiler_needs_object=$lt_compiler_needs_object
17622 # Create an old-style archive from a shared archive.
17623 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17625 # Create a temporary old-style archive to link instead of a shared archive.
17626 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17628 # Commands used to build a shared archive.
17629 archive_cmds=$lt_archive_cmds
17630 archive_expsym_cmds=$lt_archive_expsym_cmds
17632 # Commands used to build a loadable module if different from building
17633 # a shared archive.
17634 module_cmds=$lt_module_cmds
17635 module_expsym_cmds=$lt_module_expsym_cmds
17637 # Whether we are building with GNU ld or not.
17638 with_gnu_ld=$lt_with_gnu_ld
17640 # Flag that allows shared libraries with undefined symbols to be built.
17641 allow_undefined_flag=$lt_allow_undefined_flag
17643 # Flag that enforces no undefined symbols.
17644 no_undefined_flag=$lt_no_undefined_flag
17646 # Flag to hardcode \$libdir into a binary during linking.
17647 # This must work even if \$libdir does not exist
17648 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17650 # If ld is used when linking, flag to hardcode \$libdir into a binary
17651 # during linking. This must work even if \$libdir does not exist.
17652 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17654 # Whether we need a single "-rpath" flag with a separated argument.
17655 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17657 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17658 # DIR into the resulting binary.
17659 hardcode_direct=$hardcode_direct
17661 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17662 # DIR into the resulting binary and the resulting library dependency is
17663 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17664 # library is relocated.
17665 hardcode_direct_absolute=$hardcode_direct_absolute
17667 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17668 # into the resulting binary.
17669 hardcode_minus_L=$hardcode_minus_L
17671 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17672 # into the resulting binary.
17673 hardcode_shlibpath_var=$hardcode_shlibpath_var
17675 # Set to "yes" if building a shared library automatically hardcodes DIR
17676 # into the library and all subsequent libraries and executables linked
17677 # against it.
17678 hardcode_automatic=$hardcode_automatic
17680 # Set to yes if linker adds runtime paths of dependent libraries
17681 # to runtime path list.
17682 inherit_rpath=$inherit_rpath
17684 # Whether libtool must link a program against all its dependency libraries.
17685 link_all_deplibs=$link_all_deplibs
17687 # Fix the shell variable \$srcfile for the compiler.
17688 fix_srcfile_path=$lt_fix_srcfile_path
17690 # Set to "yes" if exported symbols are required.
17691 always_export_symbols=$always_export_symbols
17693 # The commands to list exported symbols.
17694 export_symbols_cmds=$lt_export_symbols_cmds
17696 # Symbols that should not be listed in the preloaded symbols.
17697 exclude_expsyms=$lt_exclude_expsyms
17699 # Symbols that must always be exported.
17700 include_expsyms=$lt_include_expsyms
17702 # Commands necessary for linking programs (against libraries) with templates.
17703 prelink_cmds=$lt_prelink_cmds
17705 # Specify filename containing input files.
17706 file_list_spec=$lt_file_list_spec
17708 # How to hardcode a shared library path into an executable.
17709 hardcode_action=$hardcode_action
17711 # ### END LIBTOOL CONFIG
17713 _LT_EOF
17715 case $host_os in
17716 aix3*)
17717 cat <<\_LT_EOF >> "$cfgfile"
17718 # AIX sometimes has problems with the GCC collect2 program. For some
17719 # reason, if we set the COLLECT_NAMES environment variable, the problems
17720 # vanish in a puff of smoke.
17721 if test "X${COLLECT_NAMES+set}" != Xset; then
17722 COLLECT_NAMES=
17723 export COLLECT_NAMES
17725 _LT_EOF
17727 esac
17730 ltmain="$ac_aux_dir/ltmain.sh"
17733 # We use sed instead of cat because bash on DJGPP gets confused if
17734 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17735 # text mode, it properly converts lines to CR/LF. This bash problem
17736 # is reportedly fixed, but why not run on old versions too?
17737 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17738 || (rm -f "$cfgfile"; exit 1)
17740 case $xsi_shell in
17741 yes)
17742 cat << \_LT_EOF >> "$cfgfile"
17744 # func_dirname file append nondir_replacement
17745 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17746 # otherwise set result to NONDIR_REPLACEMENT.
17747 func_dirname ()
17749 case ${1} in
17750 */*) func_dirname_result="${1%/*}${2}" ;;
17751 * ) func_dirname_result="${3}" ;;
17752 esac
17755 # func_basename file
17756 func_basename ()
17758 func_basename_result="${1##*/}"
17761 # func_dirname_and_basename file append nondir_replacement
17762 # perform func_basename and func_dirname in a single function
17763 # call:
17764 # dirname: Compute the dirname of FILE. If nonempty,
17765 # add APPEND to the result, otherwise set result
17766 # to NONDIR_REPLACEMENT.
17767 # value returned in "$func_dirname_result"
17768 # basename: Compute filename of FILE.
17769 # value retuned in "$func_basename_result"
17770 # Implementation must be kept synchronized with func_dirname
17771 # and func_basename. For efficiency, we do not delegate to
17772 # those functions but instead duplicate the functionality here.
17773 func_dirname_and_basename ()
17775 case ${1} in
17776 */*) func_dirname_result="${1%/*}${2}" ;;
17777 * ) func_dirname_result="${3}" ;;
17778 esac
17779 func_basename_result="${1##*/}"
17782 # func_stripname prefix suffix name
17783 # strip PREFIX and SUFFIX off of NAME.
17784 # PREFIX and SUFFIX must not contain globbing or regex special
17785 # characters, hashes, percent signs, but SUFFIX may contain a leading
17786 # dot (in which case that matches only a dot).
17787 func_stripname ()
17789 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17790 # positional parameters, so assign one to ordinary parameter first.
17791 func_stripname_result=${3}
17792 func_stripname_result=${func_stripname_result#"${1}"}
17793 func_stripname_result=${func_stripname_result%"${2}"}
17796 # func_opt_split
17797 func_opt_split ()
17799 func_opt_split_opt=${1%%=*}
17800 func_opt_split_arg=${1#*=}
17803 # func_lo2o object
17804 func_lo2o ()
17806 case ${1} in
17807 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17808 *) func_lo2o_result=${1} ;;
17809 esac
17812 # func_xform libobj-or-source
17813 func_xform ()
17815 func_xform_result=${1%.*}.lo
17818 # func_arith arithmetic-term...
17819 func_arith ()
17821 func_arith_result=$(( $* ))
17824 # func_len string
17825 # STRING may not start with a hyphen.
17826 func_len ()
17828 func_len_result=${#1}
17831 _LT_EOF
17833 *) # Bourne compatible functions.
17834 cat << \_LT_EOF >> "$cfgfile"
17836 # func_dirname file append nondir_replacement
17837 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17838 # otherwise set result to NONDIR_REPLACEMENT.
17839 func_dirname ()
17841 # Extract subdirectory from the argument.
17842 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17843 if test "X$func_dirname_result" = "X${1}"; then
17844 func_dirname_result="${3}"
17845 else
17846 func_dirname_result="$func_dirname_result${2}"
17850 # func_basename file
17851 func_basename ()
17853 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17857 # func_stripname prefix suffix name
17858 # strip PREFIX and SUFFIX off of NAME.
17859 # PREFIX and SUFFIX must not contain globbing or regex special
17860 # characters, hashes, percent signs, but SUFFIX may contain a leading
17861 # dot (in which case that matches only a dot).
17862 # func_strip_suffix prefix name
17863 func_stripname ()
17865 case ${2} in
17866 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17867 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17868 esac
17871 # sed scripts:
17872 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17873 my_sed_long_arg='1s/^-[^=]*=//'
17875 # func_opt_split
17876 func_opt_split ()
17878 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17879 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17882 # func_lo2o object
17883 func_lo2o ()
17885 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17888 # func_xform libobj-or-source
17889 func_xform ()
17891 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17894 # func_arith arithmetic-term...
17895 func_arith ()
17897 func_arith_result=`expr "$@"`
17900 # func_len string
17901 # STRING may not start with a hyphen.
17902 func_len ()
17904 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17907 _LT_EOF
17908 esac
17910 case $lt_shell_append in
17911 yes)
17912 cat << \_LT_EOF >> "$cfgfile"
17914 # func_append var value
17915 # Append VALUE to the end of shell variable VAR.
17916 func_append ()
17918 eval "$1+=\$2"
17920 _LT_EOF
17923 cat << \_LT_EOF >> "$cfgfile"
17925 # func_append var value
17926 # Append VALUE to the end of shell variable VAR.
17927 func_append ()
17929 eval "$1=\$$1\$2"
17932 _LT_EOF
17934 esac
17937 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17938 || (rm -f "$cfgfile"; exit 1)
17940 mv -f "$cfgfile" "$ofile" ||
17941 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17942 chmod +x "$ofile"
17945 cat <<_LT_EOF >> "$ofile"
17947 # ### BEGIN LIBTOOL TAG CONFIG: RC
17949 # The linker used to build libraries.
17950 LD=$lt_LD_RC
17952 # How to create reloadable object files.
17953 reload_flag=$lt_reload_flag_RC
17954 reload_cmds=$lt_reload_cmds_RC
17956 # Commands used to build an old-style archive.
17957 old_archive_cmds=$lt_old_archive_cmds_RC
17959 # A language specific compiler.
17960 CC=$lt_compiler_RC
17962 # Is the compiler the GNU compiler?
17963 with_gcc=$GCC_RC
17965 # Compiler flag to turn off builtin functions.
17966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17968 # How to pass a linker flag through the compiler.
17969 wl=$lt_lt_prog_compiler_wl_RC
17971 # Additional compiler flags for building library objects.
17972 pic_flag=$lt_lt_prog_compiler_pic_RC
17974 # Compiler flag to prevent dynamic linking.
17975 link_static_flag=$lt_lt_prog_compiler_static_RC
17977 # Does compiler simultaneously support -c and -o options?
17978 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17980 # Whether or not to add -lc for building shared libraries.
17981 build_libtool_need_lc=$archive_cmds_need_lc_RC
17983 # Whether or not to disallow shared libs when runtime libs are static.
17984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17986 # Compiler flag to allow reflexive dlopens.
17987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17989 # Compiler flag to generate shared objects directly from archives.
17990 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17992 # Whether the compiler copes with passing no objects directly.
17993 compiler_needs_object=$lt_compiler_needs_object_RC
17995 # Create an old-style archive from a shared archive.
17996 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17998 # Create a temporary old-style archive to link instead of a shared archive.
17999 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18001 # Commands used to build a shared archive.
18002 archive_cmds=$lt_archive_cmds_RC
18003 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18005 # Commands used to build a loadable module if different from building
18006 # a shared archive.
18007 module_cmds=$lt_module_cmds_RC
18008 module_expsym_cmds=$lt_module_expsym_cmds_RC
18010 # Whether we are building with GNU ld or not.
18011 with_gnu_ld=$lt_with_gnu_ld_RC
18013 # Flag that allows shared libraries with undefined symbols to be built.
18014 allow_undefined_flag=$lt_allow_undefined_flag_RC
18016 # Flag that enforces no undefined symbols.
18017 no_undefined_flag=$lt_no_undefined_flag_RC
18019 # Flag to hardcode \$libdir into a binary during linking.
18020 # This must work even if \$libdir does not exist
18021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18023 # If ld is used when linking, flag to hardcode \$libdir into a binary
18024 # during linking. This must work even if \$libdir does not exist.
18025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18027 # Whether we need a single "-rpath" flag with a separated argument.
18028 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18030 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18031 # DIR into the resulting binary.
18032 hardcode_direct=$hardcode_direct_RC
18034 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18035 # DIR into the resulting binary and the resulting library dependency is
18036 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18037 # library is relocated.
18038 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18040 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18041 # into the resulting binary.
18042 hardcode_minus_L=$hardcode_minus_L_RC
18044 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18045 # into the resulting binary.
18046 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18048 # Set to "yes" if building a shared library automatically hardcodes DIR
18049 # into the library and all subsequent libraries and executables linked
18050 # against it.
18051 hardcode_automatic=$hardcode_automatic_RC
18053 # Set to yes if linker adds runtime paths of dependent libraries
18054 # to runtime path list.
18055 inherit_rpath=$inherit_rpath_RC
18057 # Whether libtool must link a program against all its dependency libraries.
18058 link_all_deplibs=$link_all_deplibs_RC
18060 # Fix the shell variable \$srcfile for the compiler.
18061 fix_srcfile_path=$lt_fix_srcfile_path_RC
18063 # Set to "yes" if exported symbols are required.
18064 always_export_symbols=$always_export_symbols_RC
18066 # The commands to list exported symbols.
18067 export_symbols_cmds=$lt_export_symbols_cmds_RC
18069 # Symbols that should not be listed in the preloaded symbols.
18070 exclude_expsyms=$lt_exclude_expsyms_RC
18072 # Symbols that must always be exported.
18073 include_expsyms=$lt_include_expsyms_RC
18075 # Commands necessary for linking programs (against libraries) with templates.
18076 prelink_cmds=$lt_prelink_cmds_RC
18078 # Specify filename containing input files.
18079 file_list_spec=$lt_file_list_spec_RC
18081 # How to hardcode a shared library path into an executable.
18082 hardcode_action=$hardcode_action_RC
18084 # ### END LIBTOOL TAG CONFIG: RC
18085 _LT_EOF
18088 "tests/t_client.sh":F) chmod +x tests/t_client.sh ;;
18090 esac
18091 done # for ac_tag
18094 as_fn_exit 0
18095 _ACEOF
18096 ac_clean_files=$ac_clean_files_save
18098 test $ac_write_fail = 0 ||
18099 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18102 # configure is writing to config.log, and then calls config.status.
18103 # config.status does its own redirection, appending to config.log.
18104 # Unfortunately, on DOS this fails, as config.log is still kept open
18105 # by configure, so config.status won't be able to write to it; its
18106 # output is simply discarded. So we exec the FD to /dev/null,
18107 # effectively closing config.log, so it can be properly (re)opened and
18108 # appended to by config.status. When coming back to configure, we
18109 # need to make the FD available again.
18110 if test "$no_create" != yes; then
18111 ac_cs_success=:
18112 ac_config_status_args=
18113 test "$silent" = yes &&
18114 ac_config_status_args="$ac_config_status_args --quiet"
18115 exec 5>/dev/null
18116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18117 exec 5>>config.log
18118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18119 # would make configure fail if this is the last instruction.
18120 $ac_cs_success || as_fn_exit 1
18122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}