OpenVPN: Routing policy
[tomato.git] / release / src / router / openvpn / configure
blob6ade6c6f9746e3daaaf77e6e4c1b0bb16591c375
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenVPN 2.3.6.
5 # Report bugs to <openvpn-users@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and openvpn-users@lists.sourceforge.net
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='OpenVPN'
592 PACKAGE_TARNAME='openvpn'
593 PACKAGE_VERSION='2.3.6'
594 PACKAGE_STRING='OpenVPN 2.3.6'
595 PACKAGE_BUGREPORT='openvpn-users@lists.sourceforge.net'
596 PACKAGE_URL=''
598 ac_unique_file="src/openvpn/syshead.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 sampledir
640 plugindir
641 ENABLE_PLUGIN_DOWN_ROOT_FALSE
642 ENABLE_PLUGIN_DOWN_ROOT_TRUE
643 ENABLE_PLUGIN_AUTH_PAM_FALSE
644 ENABLE_PLUGIN_AUTH_PAM_TRUE
645 GIT_CHECKOUT_FALSE
646 GIT_CHECKOUT_TRUE
647 WIN32_FALSE
648 WIN32_TRUE
649 PLUGIN_AUTH_PAM_LIBS
650 PLUGIN_AUTH_PAM_CFLAGS
651 OPTIONAL_PKCS11_HELPER_LIBS
652 OPTIONAL_PKCS11_HELPER_CFLAGS
653 OPTIONAL_SYSTEMD_LIBS
654 OPTIONAL_LZO_LIBS
655 OPTIONAL_LZO_CFLAGS
656 OPTIONAL_CRYPTO_LIBS
657 OPTIONAL_CRYPTO_CFLAGS
658 OPTIONAL_SELINUX_LIBS
659 OPTIONAL_DL_LIBS
660 TAP_WIN_MIN_MINOR
661 TAP_WIN_MIN_MAJOR
662 TAP_WIN_COMPONENT_ID
663 libsystemd_LIBS
664 libsystemd_CFLAGS
665 LZO_LIBS
666 LZO_CFLAGS
667 POLARSSL_LIBS
668 POLARSSL_CFLAGS
669 OPENSSL_SSL_LIBS
670 OPENSSL_SSL_CFLAGS
671 OPENSSL_CRYPTO_LIBS
672 OPENSSL_CRYPTO_CFLAGS
673 PKCS11_HELPER_LIBS
674 PKCS11_HELPER_CFLAGS
675 LIBPAM_LIBS
676 LIBPAM_CFLAGS
677 SELINUX_LIBS
678 TAP_CFLAGS
679 SOCKETS_LIBS
680 DL_LIBS
682 OTOOL64
683 OTOOL
684 LIPO
685 NMEDIT
686 DSYMUTIL
687 MANIFEST_TOOL
688 RANLIB
689 ac_ct_AR
692 ac_ct_DUMPBIN
693 DUMPBIN
695 FGREP
696 LIBTOOL
697 OBJDUMP
698 DLLTOOL
700 SYSTEMD_ASK_PASSWORD
702 MAN2HTML
703 NETSTAT
704 IPROUTE
705 ROUTE
706 IFCONFIG
708 LN_S
709 PKG_CONFIG_LIBDIR
710 PKG_CONFIG_PATH
711 PKG_CONFIG
712 EGREP
713 GREP
715 am__fastdepCC_FALSE
716 am__fastdepCC_TRUE
717 CCDEPMODE
718 am__nodep
719 AMDEPBACKSLASH
720 AMDEP_FALSE
721 AMDEP_TRUE
722 am__quote
723 am__include
724 DEPDIR
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 AM_BACKSLASH
741 AM_DEFAULT_VERBOSITY
742 AM_DEFAULT_V
743 AM_V
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
750 mkdir_p
751 MKDIR_P
752 INSTALL_STRIP_PROGRAM
753 STRIP
754 install_sh
755 MAKEINFO
756 AUTOHEADER
757 AUTOMAKE
758 AUTOCONF
759 ACLOCAL
760 VERSION
761 PACKAGE
762 CYGPATH_W
763 am__isrc
764 INSTALL_DATA
765 INSTALL_SCRIPT
766 INSTALL_PROGRAM
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_silent_rules
809 enable_dependency_tracking
810 enable_lzo
811 enable_lzo_stub
812 enable_crypto
813 enable_ofb_cfb
814 enable_ssl
815 enable_x509_alt_username
816 enable_multi
817 enable_server
818 enable_plugins
819 enable_management
820 enable_pkcs11
821 enable_socks
822 enable_http_proxy
823 enable_fragment
824 enable_multihome
825 enable_port_share
826 enable_debug
827 enable_small
828 enable_password_save
829 enable_iproute2
830 enable_def_auth
831 enable_pf
832 enable_plugin_auth_pam
833 enable_plugin_down_root
834 enable_pam_dlopen
835 enable_strict
836 enable_pedantic
837 enable_strict_options
838 enable_selinux
839 enable_systemd
840 with_special_build
841 with_mem_check
842 with_crypto_library
843 with_plugindir
844 enable_shared
845 enable_static
846 with_pic
847 enable_fast_install
848 with_gnu_ld
849 with_sysroot
850 enable_libtool_lock
852 ac_precious_vars='build_alias
853 host_alias
854 target_alias
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
861 PKG_CONFIG
862 PKG_CONFIG_PATH
863 PKG_CONFIG_LIBDIR
864 IFCONFIG
865 ROUTE
866 IPROUTE
867 NETSTAT
868 MAN2HTML
870 SYSTEMD_ASK_PASSWORD
871 TAP_CFLAGS
872 LIBPAM_CFLAGS
873 LIBPAM_LIBS
874 PKCS11_HELPER_CFLAGS
875 PKCS11_HELPER_LIBS
876 OPENSSL_CRYPTO_CFLAGS
877 OPENSSL_CRYPTO_LIBS
878 OPENSSL_SSL_CFLAGS
879 OPENSSL_SSL_LIBS
880 POLARSSL_CFLAGS
881 POLARSSL_LIBS
882 LZO_CFLAGS
883 LZO_LIBS
884 libsystemd_CFLAGS
885 libsystemd_LIBS'
888 # Initialize some variables set by options.
889 ac_init_help=
890 ac_init_version=false
891 ac_unrecognized_opts=
892 ac_unrecognized_sep=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
895 cache_file=/dev/null
896 exec_prefix=NONE
897 no_create=
898 no_recursion=
899 prefix=NONE
900 program_prefix=NONE
901 program_suffix=NONE
902 program_transform_name=s,x,x,
903 silent=
904 site=
905 srcdir=
906 verbose=
907 x_includes=NONE
908 x_libraries=NONE
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
936 ac_prev=
937 ac_dashdash=
938 for ac_option
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
943 ac_prev=
944 continue
947 case $ac_option in
948 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *=) ac_optarg= ;;
950 *) ac_optarg=yes ;;
951 esac
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
957 ac_dashdash=yes ;;
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 bindir=$ac_optarg ;;
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
976 --config-cache | -C)
977 cache_file=config.cache ;;
979 -datadir | --datadir | --datadi | --datad)
980 ac_prev=datadir ;;
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
991 -disable-* | --disable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1017 -enable-* | --enable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
1180 sbindir=$ac_optarg ;;
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
1191 sharedstatedir=$ac_optarg ;;
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
1196 site=$ac_optarg ;;
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1221 -with-* | --with-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error $? "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=\$ac_optarg ;;
1237 -without-* | --without-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error $? "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1246 "with_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=no ;;
1253 --x)
1254 # Obsolete; use --with-x.
1255 with_x=yes ;;
1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 | --x-incl | --x-inc | --x-in | --x-i)
1259 ac_prev=x_includes ;;
1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262 x_includes=$ac_optarg ;;
1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 ac_prev=x_libraries ;;
1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269 x_libraries=$ac_optarg ;;
1271 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1272 Try \`$0 --help' for more information"
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 case $ac_envvar in #(
1279 '' | [0-9]* | *[!_$as_cr_alnum]* )
1280 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1281 esac
1282 eval $ac_envvar=\$ac_optarg
1283 export $ac_envvar ;;
1286 # FIXME: should be removed in autoconf 3.0.
1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293 esac
1294 done
1296 if test -n "$ac_prev"; then
1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298 as_fn_error $? "missing argument to $ac_option"
1301 if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1303 no) ;;
1304 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 esac
1309 # Check all directory arguments for consistency.
1310 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1315 eval ac_val=\$$ac_var
1316 # Remove trailing slashes.
1317 case $ac_val in
1318 */ )
1319 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\$ac_val;;
1321 esac
1322 # Be sure to have absolute directory names.
1323 case $ac_val in
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 esac
1327 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1328 done
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1333 build=$build_alias
1334 host=$host_alias
1335 target=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349 test "$silent" = yes && exec 6>/dev/null
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 as_fn_error $? "working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 as_fn_error $? "pwd does not report name of working directory"
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1378 /^X\(\/\/\)$/{
1379 s//\1/
1382 /^X\(\/\).*/{
1383 s//\1/
1386 s/.*/./; q'`
1387 srcdir=$ac_confdir
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 srcdir=..
1391 else
1392 ac_srcdir_defaulted=no
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 ac_abs_confdir=`(
1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1401 pwd)`
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 srcdir=.
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1409 case $srcdir in
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 esac
1412 for ac_var in $ac_precious_vars; do
1413 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_${ac_var}_value=\$${ac_var}
1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 done
1420 # Report the --help message.
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1425 cat <<_ACEOF
1426 \`configure' configures OpenVPN 2.3.6 to adapt to many kinds of systems.
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1433 Defaults for the options are specified in brackets.
1435 Configuration:
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print \`checking ...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450 [PREFIX]
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1457 For better control, use the options below.
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1479 _ACEOF
1481 cat <<\_ACEOF
1483 Program names:
1484 --program-prefix=PREFIX prepend PREFIX to installed program names
1485 --program-suffix=SUFFIX append SUFFIX to installed program names
1486 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488 System types:
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1491 _ACEOF
1494 if test -n "$ac_init_help"; then
1495 case $ac_init_help in
1496 short | recursive ) echo "Configuration of OpenVPN 2.3.6:";;
1497 esac
1498 cat <<\_ACEOF
1500 Optional Features:
1501 --disable-option-checking ignore unrecognized --enable/--with options
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1504 --enable-silent-rules less verbose build output (undo: "make V=1")
1505 --disable-silent-rules verbose build output (undo: "make V=0")
1506 --enable-dependency-tracking
1507 do not reject slow dependency extractors
1508 --disable-dependency-tracking
1509 speeds up one-time build
1510 --disable-lzo disable LZO compression support [default=yes]
1511 --enable-lzo-stub don't compile LZO compression support but still
1512 allow limited interoperability with LZO-enabled
1513 peers [default=no]
1514 --disable-crypto disable crypto support [default=yes]
1515 --enable-ofb-cfb enable support for OFB and CFB cipher modes
1516 [default=yes]
1517 --disable-ssl disable SSL support for TLS-based key exchange
1518 [default=yes]
1519 --enable-x509-alt-username
1520 enable the --x509-username-field feature
1521 [default=no]
1522 --disable-multi disable client/server support (--mode server +
1523 client mode) [default=yes]
1524 --disable-server disable server support only (but retain client
1525 support) [default=yes]
1526 --disable-plugins disable plug-in support [default=yes]
1527 --disable-management disable management server support [default=yes]
1528 --enable-pkcs11 enable pkcs11 support [default=no]
1529 --disable-socks disable Socks support [default=yes]
1530 --disable-http-proxy disable HTTP proxy support [default=yes]
1531 --disable-fragment disable internal fragmentation support (--fragment)
1532 [default=yes]
1533 --disable-multihome disable multi-homed UDP server support (--multihome)
1534 [default=yes]
1535 --disable-port-share disable TCP server port-share support (--port-share)
1536 [default=yes]
1537 --disable-debug disable debugging support (disable gremlin and verb
1538 7+ messages) [default=yes]
1539 --enable-small enable smaller executable size (disable OCC, usage
1540 message, and verb 4 parm list) [default=yes]
1541 --enable-password-save allow --askpass and --auth-user-pass passwords to be
1542 read from a file [default=yes]
1543 --enable-iproute2 enable support for iproute2 [default=no]
1544 --disable-def-auth disable deferred authentication [default=yes]
1545 --disable-pf disable internal packet filter [default=yes]
1546 --disable-plugin-auth-pam
1547 disable auth-pam plugin [default=platform specific]
1548 --disable-plugin-down-root
1549 disable down-root plugin [default=platform specific]
1550 --enable-pam-dlopen dlopen libpam [default=no]
1551 --enable-strict enable strict compiler warnings (debugging option)
1552 [default=no]
1553 --enable-pedantic enable pedantic compiler warnings, will not generate
1554 a working executable (debugging option) [default=no]
1555 --enable-strict-options enable strict options check between peers (debugging
1556 option) [default=no]
1557 --enable-selinux enable SELinux support [default=no]
1558 --enable-systemd enable systemd suppport [default=no]
1559 --enable-shared[=PKGS] build shared libraries [default=yes]
1560 --enable-static[=PKGS] build static libraries [default=yes]
1561 --enable-fast-install[=PKGS]
1562 optimize for fast installation [default=yes]
1563 --disable-libtool-lock avoid locking (might break parallel builds)
1565 Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-special-build=STRING
1569 specify special build string
1570 --with-mem-check=TYPE build with debug memory checking,
1571 TYPE=no|dmalloc|valgrind|ssl [default=no]
1572 --with-crypto-library=library
1573 build with the given crypto library,
1574 TYPE=openssl|polarssl [default=openssl]
1575 --with-plugindir plugin directory [default=LIBDIR/openvpn]
1576 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-sysroot=DIR Search for dependent libraries within DIR
1580 (or the compiler's sysroot if not specified).
1582 Some influential environment variables:
1583 CC C compiler command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
1587 LIBS libraries to pass to the linker, e.g. -l<library>
1588 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1589 you have headers in a nonstandard directory <include dir>
1590 CPP C preprocessor
1591 PKG_CONFIG path to pkg-config utility
1592 PKG_CONFIG_PATH
1593 directories to add to pkg-config's search path
1594 PKG_CONFIG_LIBDIR
1595 path overriding pkg-config's built-in search path
1596 IFCONFIG full path to ipconfig utility
1597 ROUTE full path to route utility
1598 IPROUTE full path to ip utility
1599 NETSTAT path to netstat utility
1600 MAN2HTML path to man2html utility
1601 GIT path to git utility
1602 SYSTEMD_ASK_PASSWORD
1603 path to systemd-ask-password utility
1604 TAP_CFLAGS C compiler flags for tap
1605 LIBPAM_CFLAGS
1606 C compiler flags for libpam
1607 LIBPAM_LIBS linker flags for libpam
1608 PKCS11_HELPER_CFLAGS
1609 C compiler flags for PKCS11_HELPER, overriding pkg-config
1610 PKCS11_HELPER_LIBS
1611 linker flags for PKCS11_HELPER, overriding pkg-config
1612 OPENSSL_CRYPTO_CFLAGS
1613 C compiler flags for OPENSSL_CRYPTO, overriding pkg-config
1614 OPENSSL_CRYPTO_LIBS
1615 linker flags for OPENSSL_CRYPTO, overriding pkg-config
1616 OPENSSL_SSL_CFLAGS
1617 C compiler flags for OPENSSL_SSL, overriding pkg-config
1618 OPENSSL_SSL_LIBS
1619 linker flags for OPENSSL_SSL, overriding pkg-config
1620 POLARSSL_CFLAGS
1621 C compiler flags for polarssl
1622 POLARSSL_LIBS
1623 linker flags for polarssl
1624 LZO_CFLAGS C compiler flags for lzo
1625 LZO_LIBS linker flags for lzo
1626 libsystemd_CFLAGS
1627 C compiler flags for libsystemd, overriding pkg-config
1628 libsystemd_LIBS
1629 linker flags for libsystemd, overriding pkg-config
1631 Use these variables to override the choices made by `configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1634 Report bugs to <openvpn-users@lists.sourceforge.net>.
1635 _ACEOF
1636 ac_status=$?
1639 if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 continue
1645 ac_builddir=.
1647 case "$ac_dir" in
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657 esac
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1663 case $srcdir in
1664 .) # We are building in place.
1665 ac_srcdir=.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676 esac
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1687 else
1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1691 done
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696 cat <<\_ACEOF
1697 OpenVPN configure 2.3.6
1698 generated by GNU Autoconf 2.69
1700 Copyright (C) 2012 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1703 _ACEOF
1704 exit
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=1
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1747 } # ac_fn_c_try_compile
1749 # ac_fn_c_try_cpp LINENO
1750 # ----------------------
1751 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_cpp ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_cpp conftest.$ac_ext"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } > conftest.i && {
1771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=1
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1784 } # ac_fn_c_try_cpp
1786 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1789 # the include files in INCLUDES and setting the cache variable VAR
1790 # accordingly.
1791 ac_fn_c_check_header_mongrel ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if eval \${$3+:} false; then :
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 else
1804 # Is the header compilable?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1806 $as_echo_n "checking $2 usability... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813 ac_header_compiler=yes
1814 else
1815 ac_header_compiler=no
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1819 $as_echo "$ac_header_compiler" >&6; }
1821 # Is the header present?
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1823 $as_echo_n "checking $2 presence... " >&6; }
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 #include <$2>
1827 _ACEOF
1828 if ac_fn_c_try_cpp "$LINENO"; then :
1829 ac_header_preproc=yes
1830 else
1831 ac_header_preproc=no
1833 rm -f conftest.err conftest.i conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1835 $as_echo "$ac_header_preproc" >&6; }
1837 # So? What about this header?
1838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1839 yes:no: )
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1841 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 no:yes:* )
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1847 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1849 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1851 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1853 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856 ( $as_echo "## -------------------------------------------------- ##
1857 ## Report this to openvpn-users@lists.sourceforge.net ##
1858 ## -------------------------------------------------- ##"
1859 ) | sed "s/^/$as_me: WARNING: /" >&2
1861 esac
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval \${$3+:} false; then :
1865 $as_echo_n "(cached) " >&6
1866 else
1867 eval "$3=\$ac_header_compiler"
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 } # ac_fn_c_check_header_mongrel
1877 # ac_fn_c_try_run LINENO
1878 # ----------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1880 # that executables *can* be run.
1881 ac_fn_c_try_run ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_link"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1895 { { case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_try") 2>&5
1902 ac_status=$?
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; }; }; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: program exited with status $ac_status" >&5
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=$ac_status
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_c_try_run
1919 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists and can be compiled using the include files in
1922 # INCLUDES, setting the cache variable VAR accordingly.
1923 ac_fn_c_check_header_compile ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1930 else
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1934 #include <$2>
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937 eval "$3=yes"
1938 else
1939 eval "$3=no"
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 } # ac_fn_c_check_header_compile
1950 # ac_fn_c_try_link LINENO
1951 # -----------------------
1952 # Try to link conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_c_try_link ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 rm -f conftest.$ac_objext conftest$ac_exeext
1957 if { { ac_try="$ac_link"
1958 case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_link") 2>conftest.err
1965 ac_status=$?
1966 if test -s conftest.err; then
1967 grep -v '^ *+' conftest.err >conftest.er1
1968 cat conftest.er1 >&5
1969 mv -f conftest.er1 conftest.err
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && {
1973 test -z "$ac_c_werror_flag" ||
1974 test ! -s conftest.err
1975 } && test -s conftest$ac_exeext && {
1976 test "$cross_compiling" = yes ||
1977 test -x conftest$ac_exeext
1978 }; then :
1979 ac_retval=0
1980 else
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1984 ac_retval=1
1986 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1987 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1988 # interfere with the next link command; also delete a directory that is
1989 # left behind by Apple's compiler. We do this before executing the actions.
1990 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 as_fn_set_status $ac_retval
1994 } # ac_fn_c_try_link
1996 # ac_fn_c_check_func LINENO FUNC VAR
1997 # ----------------------------------
1998 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1999 ac_fn_c_check_func ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011 #define $2 innocuous_$2
2013 /* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char $2 (); below.
2015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016 <limits.h> exists even on freestanding compilers. */
2018 #ifdef __STDC__
2019 # include <limits.h>
2020 #else
2021 # include <assert.h>
2022 #endif
2024 #undef $2
2026 /* Override any GCC internal prototype to avoid an error.
2027 Use char because int might match the return type of a GCC
2028 builtin and then its argument prototype would still apply. */
2029 #ifdef __cplusplus
2030 extern "C"
2031 #endif
2032 char $2 ();
2033 /* The GNU C library defines this for functions which it implements
2034 to always fail with ENOSYS. Some functions are actually named
2035 something starting with __ and the normal name is an alias. */
2036 #if defined __stub_$2 || defined __stub___$2
2037 choke me
2038 #endif
2041 main ()
2043 return $2 ();
2045 return 0;
2047 _ACEOF
2048 if ac_fn_c_try_link "$LINENO"; then :
2049 eval "$3=yes"
2050 else
2051 eval "$3=no"
2053 rm -f core conftest.err conftest.$ac_objext \
2054 conftest$ac_exeext conftest.$ac_ext
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_func
2063 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2064 # -------------------------------------------
2065 # Tests whether TYPE exists after having included INCLUDES, setting cache
2066 # variable VAR accordingly.
2067 ac_fn_c_check_type ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if eval \${$3+:} false; then :
2073 $as_echo_n "(cached) " >&6
2074 else
2075 eval "$3=no"
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 if (sizeof ($2))
2083 return 0;
2085 return 0;
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 if (sizeof (($2)))
2096 return 0;
2098 return 0;
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2103 else
2104 eval "$3=yes"
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115 } # ac_fn_c_check_type
2117 # ac_fn_c_find_intX_t LINENO BITS VAR
2118 # -----------------------------------
2119 # Finds a signed integer type with width BITS, setting cache variable VAR
2120 # accordingly.
2121 ac_fn_c_find_intX_t ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2125 $as_echo_n "checking for int$2_t... " >&6; }
2126 if eval \${$3+:} false; then :
2127 $as_echo_n "(cached) " >&6
2128 else
2129 eval "$3=no"
2130 # Order is important - never check a type that is potentially smaller
2131 # than half of the expected target width.
2132 for ac_type in int$2_t 'int' 'long int' \
2133 'long long int' 'short int' 'signed char'; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $ac_includes_default
2137 enum { N = $2 / 2 - 1 };
2139 main ()
2141 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2142 test_array [0] = 0;
2143 return test_array [0];
2146 return 0;
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $ac_includes_default
2153 enum { N = $2 / 2 - 1 };
2155 main ()
2157 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2158 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2159 test_array [0] = 0;
2160 return test_array [0];
2163 return 0;
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2168 else
2169 case $ac_type in #(
2170 int$2_t) :
2171 eval "$3=yes" ;; #(
2172 *) :
2173 eval "$3=\$ac_type" ;;
2174 esac
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 if eval test \"x\$"$3"\" = x"no"; then :
2181 else
2182 break
2184 done
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_find_intX_t
2193 # ac_fn_c_find_uintX_t LINENO BITS VAR
2194 # ------------------------------------
2195 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2196 # accordingly.
2197 ac_fn_c_find_uintX_t ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2201 $as_echo_n "checking for uint$2_t... " >&6; }
2202 if eval \${$3+:} false; then :
2203 $as_echo_n "(cached) " >&6
2204 else
2205 eval "$3=no"
2206 # Order is important - never check a type that is potentially smaller
2207 # than half of the expected target width.
2208 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2209 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2212 $ac_includes_default
2214 main ()
2216 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2217 test_array [0] = 0;
2218 return test_array [0];
2221 return 0;
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 case $ac_type in #(
2226 uint$2_t) :
2227 eval "$3=yes" ;; #(
2228 *) :
2229 eval "$3=\$ac_type" ;;
2230 esac
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 if eval test \"x\$"$3"\" = x"no"; then :
2235 else
2236 break
2238 done
2240 eval ac_res=\$$3
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_c_find_uintX_t
2247 # ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2248 # --------------------------------------------------------------
2249 # Tries to find the compile-time value of EXPR in a program that includes
2250 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2251 # computed
2252 ac_fn_c_compute_int ()
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 if test "$cross_compiling" = yes; then
2256 # Depending upon the size, compute the lo and hi bounds.
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2261 main ()
2263 static int test_array [1 - 2 * !(($2) >= 0)];
2264 test_array [0] = 0;
2265 return test_array [0];
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 ac_lo=0 ac_mid=0
2273 while :; do
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2278 main ()
2280 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2281 test_array [0] = 0;
2282 return test_array [0];
2285 return 0;
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 ac_hi=$ac_mid; break
2290 else
2291 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2292 if test $ac_lo -le $ac_mid; then
2293 ac_lo= ac_hi=
2294 break
2296 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 done
2300 else
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2305 main ()
2307 static int test_array [1 - 2 * !(($2) < 0)];
2308 test_array [0] = 0;
2309 return test_array [0];
2312 return 0;
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316 ac_hi=-1 ac_mid=-1
2317 while :; do
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2322 main ()
2324 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2325 test_array [0] = 0;
2326 return test_array [0];
2329 return 0;
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 ac_lo=$ac_mid; break
2334 else
2335 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2336 if test $ac_mid -le $ac_hi; then
2337 ac_lo= ac_hi=
2338 break
2340 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 else
2345 ac_lo= ac_hi=
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 # Binary search between lo and hi bounds.
2351 while test "x$ac_lo" != "x$ac_hi"; do
2352 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2357 main ()
2359 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2360 test_array [0] = 0;
2361 return test_array [0];
2364 return 0;
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368 ac_hi=$ac_mid
2369 else
2370 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 done
2374 case $ac_lo in #((
2375 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2376 '') ac_retval=1 ;;
2377 esac
2378 else
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2382 static long int longval () { return $2; }
2383 static unsigned long int ulongval () { return $2; }
2384 #include <stdio.h>
2385 #include <stdlib.h>
2387 main ()
2390 FILE *f = fopen ("conftest.val", "w");
2391 if (! f)
2392 return 1;
2393 if (($2) < 0)
2395 long int i = longval ();
2396 if (i != ($2))
2397 return 1;
2398 fprintf (f, "%ld", i);
2400 else
2402 unsigned long int i = ulongval ();
2403 if (i != ($2))
2404 return 1;
2405 fprintf (f, "%lu", i);
2407 /* Do not output a trailing newline, as this causes \r\n confusion
2408 on some platforms. */
2409 return ferror (f) || fclose (f) != 0;
2412 return 0;
2414 _ACEOF
2415 if ac_fn_c_try_run "$LINENO"; then :
2416 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2417 else
2418 ac_retval=1
2420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2421 conftest.$ac_objext conftest.beam conftest.$ac_ext
2422 rm -f conftest.val
2425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426 as_fn_set_status $ac_retval
2428 } # ac_fn_c_compute_int
2430 # ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2431 # ---------------------------------------------------------------
2432 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2433 # accordingly.
2434 ac_fn_c_check_decl ()
2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437 as_decl_name=`echo $2|sed 's/ *(.*//'`
2438 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2440 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2441 if eval \${$3+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2448 main ()
2450 #ifndef $as_decl_name
2451 #ifdef __cplusplus
2452 (void) $as_decl_use;
2453 #else
2454 (void) $as_decl_name;
2455 #endif
2456 #endif
2459 return 0;
2461 _ACEOF
2462 if ac_fn_c_try_compile "$LINENO"; then :
2463 eval "$3=yes"
2464 else
2465 eval "$3=no"
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474 } # ac_fn_c_check_decl
2475 cat >config.log <<_ACEOF
2476 This file contains any messages produced by compilers while
2477 running configure, to aid debugging if configure makes a mistake.
2479 It was created by OpenVPN $as_me 2.3.6, which was
2480 generated by GNU Autoconf 2.69. Invocation command line was
2482 $ $0 $@
2484 _ACEOF
2485 exec 5>>config.log
2487 cat <<_ASUNAME
2488 ## --------- ##
2489 ## Platform. ##
2490 ## --------- ##
2492 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2501 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2502 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2503 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2504 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2505 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2506 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2507 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2509 _ASUNAME
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 $as_echo "PATH: $as_dir"
2517 done
2518 IFS=$as_save_IFS
2520 } >&5
2522 cat >&5 <<_ACEOF
2525 ## ----------- ##
2526 ## Core tests. ##
2527 ## ----------- ##
2529 _ACEOF
2532 # Keep a trace of the command line.
2533 # Strip out --no-create and --no-recursion so they do not pile up.
2534 # Strip out --silent because we don't want to record it for future runs.
2535 # Also quote any args containing shell meta-characters.
2536 # Make two passes to allow for proper duplicate-argument suppression.
2537 ac_configure_args=
2538 ac_configure_args0=
2539 ac_configure_args1=
2540 ac_must_keep_next=false
2541 for ac_pass in 1 2
2543 for ac_arg
2545 case $ac_arg in
2546 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2548 | -silent | --silent | --silen | --sile | --sil)
2549 continue ;;
2550 *\'*)
2551 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2552 esac
2553 case $ac_pass in
2554 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2556 as_fn_append ac_configure_args1 " '$ac_arg'"
2557 if test $ac_must_keep_next = true; then
2558 ac_must_keep_next=false # Got value, back to normal.
2559 else
2560 case $ac_arg in
2561 *=* | --config-cache | -C | -disable-* | --disable-* \
2562 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2563 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2564 | -with-* | --with-* | -without-* | --without-* | --x)
2565 case "$ac_configure_args0 " in
2566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2567 esac
2569 -* ) ac_must_keep_next=true ;;
2570 esac
2572 as_fn_append ac_configure_args " '$ac_arg'"
2574 esac
2575 done
2576 done
2577 { ac_configure_args0=; unset ac_configure_args0;}
2578 { ac_configure_args1=; unset ac_configure_args1;}
2580 # When interrupted or exit'd, cleanup temporary files, and complete
2581 # config.log. We remove comments because anyway the quotes in there
2582 # would cause problems or look ugly.
2583 # WARNING: Use '\'' to represent an apostrophe within the trap.
2584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2585 trap 'exit_status=$?
2586 # Save into config.log some information that might help in debugging.
2588 echo
2590 $as_echo "## ---------------- ##
2591 ## Cache variables. ##
2592 ## ---------------- ##"
2593 echo
2594 # The following way of writing the cache mishandles newlines in values,
2596 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2597 eval ac_val=\$$ac_var
2598 case $ac_val in #(
2599 *${as_nl}*)
2600 case $ac_var in #(
2601 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2602 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2603 esac
2604 case $ac_var in #(
2605 _ | IFS | as_nl) ;; #(
2606 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2607 *) { eval $ac_var=; unset $ac_var;} ;;
2608 esac ;;
2609 esac
2610 done
2611 (set) 2>&1 |
2612 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2613 *${as_nl}ac_space=\ *)
2614 sed -n \
2615 "s/'\''/'\''\\\\'\'''\''/g;
2616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2617 ;; #(
2619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2621 esac |
2622 sort
2624 echo
2626 $as_echo "## ----------------- ##
2627 ## Output variables. ##
2628 ## ----------------- ##"
2629 echo
2630 for ac_var in $ac_subst_vars
2632 eval ac_val=\$$ac_var
2633 case $ac_val in
2634 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2635 esac
2636 $as_echo "$ac_var='\''$ac_val'\''"
2637 done | sort
2638 echo
2640 if test -n "$ac_subst_files"; then
2641 $as_echo "## ------------------- ##
2642 ## File substitutions. ##
2643 ## ------------------- ##"
2644 echo
2645 for ac_var in $ac_subst_files
2647 eval ac_val=\$$ac_var
2648 case $ac_val in
2649 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2650 esac
2651 $as_echo "$ac_var='\''$ac_val'\''"
2652 done | sort
2653 echo
2656 if test -s confdefs.h; then
2657 $as_echo "## ----------- ##
2658 ## confdefs.h. ##
2659 ## ----------- ##"
2660 echo
2661 cat confdefs.h
2662 echo
2664 test "$ac_signal" != 0 &&
2665 $as_echo "$as_me: caught signal $ac_signal"
2666 $as_echo "$as_me: exit $exit_status"
2667 } >&5
2668 rm -f core *.core core.conftest.* &&
2669 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2670 exit $exit_status
2672 for ac_signal in 1 2 13 15; do
2673 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2674 done
2675 ac_signal=0
2677 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2678 rm -f -r conftest* confdefs.h
2680 $as_echo "/* confdefs.h */" > confdefs.h
2682 # Predefined preprocessor variables.
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE_NAME "$PACKAGE_NAME"
2686 _ACEOF
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2690 _ACEOF
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2694 _ACEOF
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_STRING "$PACKAGE_STRING"
2698 _ACEOF
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2702 _ACEOF
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_URL "$PACKAGE_URL"
2706 _ACEOF
2709 # Let the site file select an alternate cache file if it wants to.
2710 # Prefer an explicitly selected file to automatically selected ones.
2711 ac_site_file1=NONE
2712 ac_site_file2=NONE
2713 if test -n "$CONFIG_SITE"; then
2714 # We do not want a PATH search for config.site.
2715 case $CONFIG_SITE in #((
2716 -*) ac_site_file1=./$CONFIG_SITE;;
2717 */*) ac_site_file1=$CONFIG_SITE;;
2718 *) ac_site_file1=./$CONFIG_SITE;;
2719 esac
2720 elif test "x$prefix" != xNONE; then
2721 ac_site_file1=$prefix/share/config.site
2722 ac_site_file2=$prefix/etc/config.site
2723 else
2724 ac_site_file1=$ac_default_prefix/share/config.site
2725 ac_site_file2=$ac_default_prefix/etc/config.site
2727 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2729 test "x$ac_site_file" = xNONE && continue
2730 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2732 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2733 sed 's/^/| /' "$ac_site_file" >&5
2734 . "$ac_site_file" \
2735 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 as_fn_error $? "failed to load site script $ac_site_file
2738 See \`config.log' for more details" "$LINENO" 5; }
2740 done
2742 if test -r "$cache_file"; then
2743 # Some versions of bash will fail to source /dev/null (special files
2744 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2745 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2747 $as_echo "$as_me: loading cache $cache_file" >&6;}
2748 case $cache_file in
2749 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2750 *) . "./$cache_file";;
2751 esac
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2755 $as_echo "$as_me: creating cache $cache_file" >&6;}
2756 >$cache_file
2759 # Check that the precious variables saved in the cache have kept the same
2760 # value.
2761 ac_cache_corrupted=false
2762 for ac_var in $ac_precious_vars; do
2763 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2764 eval ac_new_set=\$ac_env_${ac_var}_set
2765 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2766 eval ac_new_val=\$ac_env_${ac_var}_value
2767 case $ac_old_set,$ac_new_set in
2768 set,)
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2770 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2771 ac_cache_corrupted=: ;;
2772 ,set)
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2774 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2775 ac_cache_corrupted=: ;;
2776 ,);;
2778 if test "x$ac_old_val" != "x$ac_new_val"; then
2779 # differences in whitespace do not lead to failure.
2780 ac_old_val_w=`echo x $ac_old_val`
2781 ac_new_val_w=`echo x $ac_new_val`
2782 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2784 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2785 ac_cache_corrupted=:
2786 else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2788 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2789 eval $ac_var=\$ac_old_val
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2792 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2794 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2795 fi;;
2796 esac
2797 # Pass precious variables to config.status.
2798 if test "$ac_new_set" = set; then
2799 case $ac_new_val in
2800 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2801 *) ac_arg=$ac_var=$ac_new_val ;;
2802 esac
2803 case " $ac_configure_args " in
2804 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2805 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2806 esac
2808 done
2809 if $ac_cache_corrupted; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2813 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2814 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2816 ## -------------------- ##
2817 ## Main body of script. ##
2818 ## -------------------- ##
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 if test -z "${docdir}"; then
2834 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
2837 if test -z "${htmldir}"; then
2838 htmldir="\$(docdir)"
2843 $as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,6,0" >>confdefs.h
2846 ac_aux_dir=
2847 for ac_dir in . "$srcdir"/.; do
2848 if test -f "$ac_dir/install-sh"; then
2849 ac_aux_dir=$ac_dir
2850 ac_install_sh="$ac_aux_dir/install-sh -c"
2851 break
2852 elif test -f "$ac_dir/install.sh"; then
2853 ac_aux_dir=$ac_dir
2854 ac_install_sh="$ac_aux_dir/install.sh -c"
2855 break
2856 elif test -f "$ac_dir/shtool"; then
2857 ac_aux_dir=$ac_dir
2858 ac_install_sh="$ac_aux_dir/shtool install -c"
2859 break
2861 done
2862 if test -z "$ac_aux_dir"; then
2863 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2866 # These three variables are undocumented and unsupported,
2867 # and are intended to be withdrawn in a future Autoconf release.
2868 # They can cause serious problems if a builder's source tree is in a directory
2869 # whose full name contains unusual characters.
2870 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2871 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2872 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2875 ac_config_headers="$ac_config_headers config.h"
2879 am__api_version='1.14'
2881 # Find a good install program. We prefer a C program (faster),
2882 # so one script is as good as another. But avoid the broken or
2883 # incompatible versions:
2884 # SysV /etc/install, /usr/sbin/install
2885 # SunOS /usr/etc/install
2886 # IRIX /sbin/install
2887 # AIX /bin/install
2888 # AmigaOS /C/install, which installs bootblocks on floppy discs
2889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2892 # OS/2's system install, which has a completely different semantic
2893 # ./install, which can be erroneously created by make from ./install.sh.
2894 # Reject install programs that cannot install multiple files.
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2896 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2897 if test -z "$INSTALL"; then
2898 if ${ac_cv_path_install+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 # Account for people who put trailing slashes in PATH elements.
2907 case $as_dir/ in #((
2908 ./ | .// | /[cC]/* | \
2909 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2910 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2911 /usr/ucb/* ) ;;
2913 # OSF1 and SCO ODT 3.0 have their own names for install.
2914 # Don't use installbsd from OSF since it installs stuff as root
2915 # by default.
2916 for ac_prog in ginstall scoinst install; do
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2919 if test $ac_prog = install &&
2920 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2921 # AIX install. It has an incompatible calling convention.
2923 elif test $ac_prog = install &&
2924 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2925 # program-specific install script used by HP pwplus--don't use.
2927 else
2928 rm -rf conftest.one conftest.two conftest.dir
2929 echo one > conftest.one
2930 echo two > conftest.two
2931 mkdir conftest.dir
2932 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2933 test -s conftest.one && test -s conftest.two &&
2934 test -s conftest.dir/conftest.one &&
2935 test -s conftest.dir/conftest.two
2936 then
2937 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2938 break 3
2942 done
2943 done
2945 esac
2947 done
2948 IFS=$as_save_IFS
2950 rm -rf conftest.one conftest.two conftest.dir
2953 if test "${ac_cv_path_install+set}" = set; then
2954 INSTALL=$ac_cv_path_install
2955 else
2956 # As a last resort, use the slow shell script. Don't cache a
2957 # value for INSTALL within a source directory, because that will
2958 # break other packages using the cache if that directory is
2959 # removed, or if the value is a relative name.
2960 INSTALL=$ac_install_sh
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2964 $as_echo "$INSTALL" >&6; }
2966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2967 # It thinks the first close brace ends the variable substitution.
2968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2975 $as_echo_n "checking whether build environment is sane... " >&6; }
2976 # Reject unsafe characters in $srcdir or the absolute working directory
2977 # name. Accept space and tab only in the latter.
2978 am_lf='
2980 case `pwd` in
2981 *[\\\"\#\$\&\'\`$am_lf]*)
2982 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2983 esac
2984 case $srcdir in
2985 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2986 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2987 esac
2989 # Do 'set' in a subshell so we don't clobber the current shell's
2990 # arguments. Must try -L first in case configure is actually a
2991 # symlink; some systems play weird games with the mod time of symlinks
2992 # (eg FreeBSD returns the mod time of the symlink's containing
2993 # directory).
2994 if (
2995 am_has_slept=no
2996 for am_try in 1 2; do
2997 echo "timestamp, slept: $am_has_slept" > conftest.file
2998 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2999 if test "$*" = "X"; then
3000 # -L didn't work.
3001 set X `ls -t "$srcdir/configure" conftest.file`
3003 if test "$*" != "X $srcdir/configure conftest.file" \
3004 && test "$*" != "X conftest.file $srcdir/configure"; then
3006 # If neither matched, then we have a broken ls. This can happen
3007 # if, for instance, CONFIG_SHELL is bash and it inherits a
3008 # broken ls alias from the environment. This has actually
3009 # happened. Such a system could not be considered "sane".
3010 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3011 alias in your environment" "$LINENO" 5
3013 if test "$2" = conftest.file || test $am_try -eq 2; then
3014 break
3016 # Just in case.
3017 sleep 1
3018 am_has_slept=yes
3019 done
3020 test "$2" = conftest.file
3022 then
3023 # Ok.
3025 else
3026 as_fn_error $? "newly created file is older than distributed files!
3027 Check your system clock" "$LINENO" 5
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3030 $as_echo "yes" >&6; }
3031 # If we didn't sleep, we still need to ensure time stamps of config.status and
3032 # generated files are strictly newer.
3033 am_sleep_pid=
3034 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3035 ( sleep 1 ) &
3036 am_sleep_pid=$!
3039 rm -f conftest.file
3041 test "$program_prefix" != NONE &&
3042 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3043 # Use a double $ so make ignores it.
3044 test "$program_suffix" != NONE &&
3045 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3046 # Double any \ or $.
3047 # By default was `s,x,x', remove it if useless.
3048 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3049 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3051 # expand $ac_aux_dir to an absolute path
3052 am_aux_dir=`cd $ac_aux_dir && pwd`
3054 if test x"${MISSING+set}" != xset; then
3055 case $am_aux_dir in
3056 *\ * | *\ *)
3057 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3059 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3060 esac
3062 # Use eval to expand $SHELL
3063 if eval "$MISSING --is-lightweight"; then
3064 am_missing_run="$MISSING "
3065 else
3066 am_missing_run=
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3068 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3071 if test x"${install_sh}" != xset; then
3072 case $am_aux_dir in
3073 *\ * | *\ *)
3074 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3076 install_sh="\${SHELL} $am_aux_dir/install-sh"
3077 esac
3080 # Installed binaries are usually stripped using 'strip' when the user
3081 # run "make install-strip". However 'strip' might not be the right
3082 # tool to use in cross-compilation environments, therefore Automake
3083 # will honor the 'STRIP' environment variable to overrule this program.
3084 if test "$cross_compiling" != no; then
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3087 set dummy ${ac_tool_prefix}strip; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_STRIP+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$STRIP"; then
3094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3113 STRIP=$ac_cv_prog_STRIP
3114 if test -n "$STRIP"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3116 $as_echo "$STRIP" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3124 if test -z "$ac_cv_prog_STRIP"; then
3125 ac_ct_STRIP=$STRIP
3126 # Extract the first word of "strip", so it can be a program name with args.
3127 set dummy strip; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$ac_ct_STRIP"; then
3134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_STRIP="strip"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3147 done
3148 done
3149 IFS=$as_save_IFS
3153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3154 if test -n "$ac_ct_STRIP"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3156 $as_echo "$ac_ct_STRIP" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3162 if test "x$ac_ct_STRIP" = x; then
3163 STRIP=":"
3164 else
3165 case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3170 esac
3171 STRIP=$ac_ct_STRIP
3173 else
3174 STRIP="$ac_cv_prog_STRIP"
3178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3182 if test -z "$MKDIR_P"; then
3183 if ${ac_cv_path_mkdir+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_prog in mkdir gmkdir; do
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3194 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3195 'mkdir (GNU coreutils) '* | \
3196 'mkdir (coreutils) '* | \
3197 'mkdir (fileutils) '4.1*)
3198 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3199 break 3;;
3200 esac
3201 done
3202 done
3203 done
3204 IFS=$as_save_IFS
3208 test -d ./--version && rmdir ./--version
3209 if test "${ac_cv_path_mkdir+set}" = set; then
3210 MKDIR_P="$ac_cv_path_mkdir -p"
3211 else
3212 # As a last resort, use the slow shell script. Don't cache a
3213 # value for MKDIR_P within a source directory, because that will
3214 # break other packages using the cache if that directory is
3215 # removed, or if the value is a relative name.
3216 MKDIR_P="$ac_install_sh -d"
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3220 $as_echo "$MKDIR_P" >&6; }
3222 for ac_prog in gawk mawk nawk awk
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy $ac_prog; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_AWK+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if test -n "$AWK"; then
3232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_AWK="$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3245 done
3246 done
3247 IFS=$as_save_IFS
3251 AWK=$ac_cv_prog_AWK
3252 if test -n "$AWK"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3254 $as_echo "$AWK" >&6; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3261 test -n "$AWK" && break
3262 done
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3265 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3266 set x ${MAKE-make}
3267 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3268 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 cat >conftest.make <<\_ACEOF
3272 SHELL = /bin/sh
3273 all:
3274 @echo '@@@%%%=$(MAKE)=@@@%%%'
3275 _ACEOF
3276 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3277 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3278 *@@@%%%=?*=@@@%%%*)
3279 eval ac_cv_prog_make_${ac_make}_set=yes;;
3281 eval ac_cv_prog_make_${ac_make}_set=no;;
3282 esac
3283 rm -f conftest.make
3285 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3288 SET_MAKE=
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 SET_MAKE="MAKE=${MAKE-make}"
3295 rm -rf .tst 2>/dev/null
3296 mkdir .tst 2>/dev/null
3297 if test -d .tst; then
3298 am__leading_dot=.
3299 else
3300 am__leading_dot=_
3302 rmdir .tst 2>/dev/null
3304 # Check whether --enable-silent-rules was given.
3305 if test "${enable_silent_rules+set}" = set; then :
3306 enableval=$enable_silent_rules;
3309 case $enable_silent_rules in # (((
3310 yes) AM_DEFAULT_VERBOSITY=0;;
3311 no) AM_DEFAULT_VERBOSITY=1;;
3312 *) AM_DEFAULT_VERBOSITY=1;;
3313 esac
3314 am_make=${MAKE-make}
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3316 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3317 if ${am_cv_make_support_nested_variables+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if $as_echo 'TRUE=$(BAR$(V))
3321 BAR0=false
3322 BAR1=true
3324 am__doit:
3325 @$(TRUE)
3326 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3327 am_cv_make_support_nested_variables=yes
3328 else
3329 am_cv_make_support_nested_variables=no
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3333 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3334 if test $am_cv_make_support_nested_variables = yes; then
3335 AM_V='$(V)'
3336 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3337 else
3338 AM_V=$AM_DEFAULT_VERBOSITY
3339 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3341 AM_BACKSLASH='\'
3343 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3344 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3345 # is not polluted with repeated "-I."
3346 am__isrc=' -I$(srcdir)'
3347 # test to see if srcdir already configured
3348 if test -f $srcdir/config.status; then
3349 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3353 # test whether we have cygpath
3354 if test -z "$CYGPATH_W"; then
3355 if (cygpath --version) >/dev/null 2>/dev/null; then
3356 CYGPATH_W='cygpath -w'
3357 else
3358 CYGPATH_W=echo
3363 # Define the identity of the package.
3364 PACKAGE='openvpn'
3365 VERSION='2.3.6'
3368 cat >>confdefs.h <<_ACEOF
3369 #define PACKAGE "$PACKAGE"
3370 _ACEOF
3373 cat >>confdefs.h <<_ACEOF
3374 #define VERSION "$VERSION"
3375 _ACEOF
3377 # Some tools Automake needs.
3379 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3382 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3385 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3388 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3391 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3393 # For better backward compatibility. To be removed once Automake 1.9.x
3394 # dies out for good. For more background, see:
3395 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3396 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3397 mkdir_p='$(MKDIR_P)'
3399 # We need awk for the "check" target. The system "awk" is bad on
3400 # some platforms.
3401 # Always define AMTAR for backward compatibility. Yes, it's still used
3402 # in the wild :-( We should find a proper way to deprecate it ...
3403 AMTAR='$${TAR-tar}'
3406 # We'll loop over all known methods to create a tar archive until one works.
3407 _am_tools='gnutar pax cpio none'
3409 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3416 # POSIX will say in a future version that running "rm -f" with no argument
3417 # is OK; and we want to be able to make that assumption in our Makefile
3418 # recipes. So use an aggressive probe to check that the usage we want is
3419 # actually supported "in the wild" to an acceptable degree.
3420 # See automake bug#10828.
3421 # To make any issue more visible, cause the running configure to be aborted
3422 # by default if the 'rm' program in use doesn't match our expectations; the
3423 # user can still override this though.
3424 if rm -f && rm -fr && rm -rf; then : OK; else
3425 cat >&2 <<'END'
3426 Oops!
3428 Your 'rm' program seems unable to run without file operands specified
3429 on the command line, even when the '-f' option is present. This is contrary
3430 to the behaviour of most rm programs out there, and not conforming with
3431 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3433 Please tell bug-automake@gnu.org about your system, including the value
3434 of your $PATH and any error possibly output before this message. This
3435 can help us improve future automake versions.
3438 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3439 echo 'Configuration will proceed anyway, since you have set the' >&2
3440 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3441 echo >&2
3442 else
3443 cat >&2 <<'END'
3444 Aborting the configuration process, to ensure you take notice of the issue.
3446 You can download and install GNU coreutils to get an 'rm' implementation
3447 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3449 If you want to complete the configuration process using your problematic
3450 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3451 to "yes", and re-run configure.
3454 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3457 # Make sure we can run config.sub.
3458 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3459 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3462 $as_echo_n "checking build system type... " >&6; }
3463 if ${ac_cv_build+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 ac_build_alias=$build_alias
3467 test "x$ac_build_alias" = x &&
3468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3469 test "x$ac_build_alias" = x &&
3470 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3471 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3476 $as_echo "$ac_cv_build" >&6; }
3477 case $ac_cv_build in
3478 *-*-*) ;;
3479 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3480 esac
3481 build=$ac_cv_build
3482 ac_save_IFS=$IFS; IFS='-'
3483 set x $ac_cv_build
3484 shift
3485 build_cpu=$1
3486 build_vendor=$2
3487 shift; shift
3488 # Remember, the first character of IFS is used to create $*,
3489 # except with old shells:
3490 build_os=$*
3491 IFS=$ac_save_IFS
3492 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3496 $as_echo_n "checking host system type... " >&6; }
3497 if ${ac_cv_host+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test "x$host_alias" = x; then
3501 ac_cv_host=$ac_cv_build
3502 else
3503 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3509 $as_echo "$ac_cv_host" >&6; }
3510 case $ac_cv_host in
3511 *-*-*) ;;
3512 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3513 esac
3514 host=$ac_cv_host
3515 ac_save_IFS=$IFS; IFS='-'
3516 set x $ac_cv_host
3517 shift
3518 host_cpu=$1
3519 host_vendor=$2
3520 shift; shift
3521 # Remember, the first character of IFS is used to create $*,
3522 # except with old shells:
3523 host_os=$*
3524 IFS=$ac_save_IFS
3525 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3528 DEPDIR="${am__leading_dot}deps"
3530 ac_config_commands="$ac_config_commands depfiles"
3533 am_make=${MAKE-make}
3534 cat > confinc << 'END'
3535 am__doit:
3536 @echo this is the am__doit target
3537 .PHONY: am__doit
3539 # If we don't find an include directive, just comment out the code.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3541 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3542 am__include="#"
3543 am__quote=
3544 _am_result=none
3545 # First try GNU make style include.
3546 echo "include confinc" > confmf
3547 # Ignore all kinds of additional output from 'make'.
3548 case `$am_make -s -f confmf 2> /dev/null` in #(
3549 *the\ am__doit\ target*)
3550 am__include=include
3551 am__quote=
3552 _am_result=GNU
3554 esac
3555 # Now try BSD make style include.
3556 if test "$am__include" = "#"; then
3557 echo '.include "confinc"' > confmf
3558 case `$am_make -s -f confmf 2> /dev/null` in #(
3559 *the\ am__doit\ target*)
3560 am__include=.include
3561 am__quote="\""
3562 _am_result=BSD
3564 esac
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3569 $as_echo "$_am_result" >&6; }
3570 rm -f confinc confmf
3572 # Check whether --enable-dependency-tracking was given.
3573 if test "${enable_dependency_tracking+set}" = set; then :
3574 enableval=$enable_dependency_tracking;
3577 if test "x$enable_dependency_tracking" != xno; then
3578 am_depcomp="$ac_aux_dir/depcomp"
3579 AMDEPBACKSLASH='\'
3580 am__nodep='_no'
3582 if test "x$enable_dependency_tracking" != xno; then
3583 AMDEP_TRUE=
3584 AMDEP_FALSE='#'
3585 else
3586 AMDEP_TRUE='#'
3587 AMDEP_FALSE=
3591 ac_ext=c
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596 if test -n "$ac_tool_prefix"; then
3597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if ${ac_cv_prog_CC+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -n "$CC"; then
3605 ac_cv_prog_CC="$CC" # Let the user override the test.
3606 else
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3618 done
3619 done
3620 IFS=$as_save_IFS
3624 CC=$ac_cv_prog_CC
3625 if test -n "$CC"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3627 $as_echo "$CC" >&6; }
3628 else
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3635 if test -z "$ac_cv_prog_CC"; then
3636 ac_ct_CC=$CC
3637 # Extract the first word of "gcc", so it can be a program name with args.
3638 set dummy gcc; ac_word=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 if test -n "$ac_ct_CC"; then
3645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_ac_ct_CC="gcc"
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 break 2
3658 done
3659 done
3660 IFS=$as_save_IFS
3664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3665 if test -n "$ac_ct_CC"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3667 $as_echo "$ac_ct_CC" >&6; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3673 if test "x$ac_ct_CC" = x; then
3674 CC=""
3675 else
3676 case $cross_compiling:$ac_tool_warned in
3677 yes:)
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680 ac_tool_warned=yes ;;
3681 esac
3682 CC=$ac_ct_CC
3684 else
3685 CC="$ac_cv_prog_CC"
3688 if test -z "$CC"; then
3689 if test -n "$ac_tool_prefix"; then
3690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3691 set dummy ${ac_tool_prefix}cc; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if ${ac_cv_prog_CC+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC="${ac_tool_prefix}cc"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3729 if test -z "$CC"; then
3730 # Extract the first word of "cc", so it can be a program name with args.
3731 set dummy cc; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if ${ac_cv_prog_CC+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$CC"; then
3738 ac_cv_prog_CC="$CC" # Let the user override the test.
3739 else
3740 ac_prog_rejected=no
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3749 ac_prog_rejected=yes
3750 continue
3752 ac_cv_prog_CC="cc"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3756 done
3757 done
3758 IFS=$as_save_IFS
3760 if test $ac_prog_rejected = yes; then
3761 # We found a bogon in the path, so make sure we never use it.
3762 set dummy $ac_cv_prog_CC
3763 shift
3764 if test $# != 0; then
3765 # We chose a different compiler from the bogus one.
3766 # However, it has the same basename, so the bogon will be chosen
3767 # first if we set CC to just the basename; use the full file name.
3768 shift
3769 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3774 CC=$ac_cv_prog_CC
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3785 if test -z "$CC"; then
3786 if test -n "$ac_tool_prefix"; then
3787 for ac_prog in cl.exe
3789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_CC+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$CC"; then
3797 ac_cv_prog_CC="$CC" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3810 done
3811 done
3812 IFS=$as_save_IFS
3816 CC=$ac_cv_prog_CC
3817 if test -n "$CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 $as_echo "$CC" >&6; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3826 test -n "$CC" && break
3827 done
3829 if test -z "$CC"; then
3830 ac_ct_CC=$CC
3831 for ac_prog in cl.exe
3833 # Extract the first word of "$ac_prog", so it can be a program name with args.
3834 set dummy $ac_prog; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$ac_ct_CC"; then
3841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_ac_ct_CC="$ac_prog"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3854 done
3855 done
3856 IFS=$as_save_IFS
3860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3861 if test -n "$ac_ct_CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3863 $as_echo "$ac_ct_CC" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3870 test -n "$ac_ct_CC" && break
3871 done
3873 if test "x$ac_ct_CC" = x; then
3874 CC=""
3875 else
3876 case $cross_compiling:$ac_tool_warned in
3877 yes:)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3880 ac_tool_warned=yes ;;
3881 esac
3882 CC=$ac_ct_CC
3889 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error $? "no acceptable C compiler found in \$PATH
3892 See \`config.log' for more details" "$LINENO" 5; }
3894 # Provide some information about the compiler.
3895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3896 set X $ac_compile
3897 ac_compiler=$2
3898 for ac_option in --version -v -V -qversion; do
3899 { { ac_try="$ac_compiler $ac_option >&5"
3900 case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903 esac
3904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905 $as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3907 ac_status=$?
3908 if test -s conftest.err; then
3909 sed '10a\
3910 ... rest of stderr output deleted ...
3911 10q' conftest.err >conftest.er1
3912 cat conftest.er1 >&5
3914 rm -f conftest.er1 conftest.err
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }
3917 done
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3923 main ()
3927 return 0;
3929 _ACEOF
3930 ac_clean_files_save=$ac_clean_files
3931 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3932 # Try to create an executable without -o first, disregard a.out.
3933 # It will help us diagnose broken compilers, and finding out an intuition
3934 # of exeext.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3936 $as_echo_n "checking whether the C compiler works... " >&6; }
3937 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3939 # The possible output files:
3940 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3942 ac_rmfiles=
3943 for ac_file in $ac_files
3945 case $ac_file in
3946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3947 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3948 esac
3949 done
3950 rm -f $ac_rmfiles
3952 if { { ac_try="$ac_link_default"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_link_default") 2>&5
3960 ac_status=$?
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; then :
3963 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3964 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3965 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3966 # so that the user can short-circuit this test for compilers unknown to
3967 # Autoconf.
3968 for ac_file in $ac_files ''
3970 test -f "$ac_file" || continue
3971 case $ac_file in
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3974 [ab].out )
3975 # We found the default executable, but exeext='' is most
3976 # certainly right.
3977 break;;
3978 *.* )
3979 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3980 then :; else
3981 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983 # We set ac_cv_exeext here because the later test for it is not
3984 # safe: cross compilers may not add the suffix if given an `-o'
3985 # argument, so we may need to know it at that point already.
3986 # Even if this section looks crufty: it has the advantage of
3987 # actually working.
3988 break;;
3990 break;;
3991 esac
3992 done
3993 test "$ac_cv_exeext" = no && ac_cv_exeext=
3995 else
3996 ac_file=''
3998 if test -z "$ac_file"; then :
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 $as_echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006 as_fn_error 77 "C compiler cannot create executables
4007 See \`config.log' for more details" "$LINENO" 5; }
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4010 $as_echo "yes" >&6; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4013 $as_echo_n "checking for C compiler default output file name... " >&6; }
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4015 $as_echo "$ac_file" >&6; }
4016 ac_exeext=$ac_cv_exeext
4018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4019 ac_clean_files=$ac_clean_files_save
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4021 $as_echo_n "checking for suffix of executables... " >&6; }
4022 if { { ac_try="$ac_link"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_link") 2>&5
4030 ac_status=$?
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }; then :
4033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4034 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4035 # work properly (i.e., refer to `conftest.exe'), while it won't with
4036 # `rm'.
4037 for ac_file in conftest.exe conftest conftest.*; do
4038 test -f "$ac_file" || continue
4039 case $ac_file in
4040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042 break;;
4043 * ) break;;
4044 esac
4045 done
4046 else
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4050 See \`config.log' for more details" "$LINENO" 5; }
4052 rm -f conftest conftest$ac_cv_exeext
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4054 $as_echo "$ac_cv_exeext" >&6; }
4056 rm -f conftest.$ac_ext
4057 EXEEXT=$ac_cv_exeext
4058 ac_exeext=$EXEEXT
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #include <stdio.h>
4063 main ()
4065 FILE *f = fopen ("conftest.out", "w");
4066 return ferror (f) || fclose (f) != 0;
4069 return 0;
4071 _ACEOF
4072 ac_clean_files="$ac_clean_files conftest.out"
4073 # Check that the compiler produces executables we can run. If not, either
4074 # the compiler is broken, or we cross compile.
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4076 $as_echo_n "checking whether we are cross compiling... " >&6; }
4077 if test "$cross_compiling" != yes; then
4078 { { ac_try="$ac_link"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_link") 2>&5
4086 ac_status=$?
4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }
4089 if { ac_try='./conftest$ac_cv_exeext'
4090 { { case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093 esac
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 $as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_try") 2>&5
4097 ac_status=$?
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }; }; then
4100 cross_compiling=no
4101 else
4102 if test "$cross_compiling" = maybe; then
4103 cross_compiling=yes
4104 else
4105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error $? "cannot run C compiled programs.
4108 If you meant to cross compile, use \`--host'.
4109 See \`config.log' for more details" "$LINENO" 5; }
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4114 $as_echo "$cross_compiling" >&6; }
4116 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4117 ac_clean_files=$ac_clean_files_save
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4119 $as_echo_n "checking for suffix of object files... " >&6; }
4120 if ${ac_cv_objext+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 main ()
4131 return 0;
4133 _ACEOF
4134 rm -f conftest.o conftest.obj
4135 if { { ac_try="$ac_compile"
4136 case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139 esac
4140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4141 $as_echo "$ac_try_echo"; } >&5
4142 (eval "$ac_compile") 2>&5
4143 ac_status=$?
4144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4145 test $ac_status = 0; }; then :
4146 for ac_file in conftest.o conftest.obj conftest.*; do
4147 test -f "$ac_file" || continue;
4148 case $ac_file in
4149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4150 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4151 break;;
4152 esac
4153 done
4154 else
4155 $as_echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4160 as_fn_error $? "cannot compute suffix of object files: cannot compile
4161 See \`config.log' for more details" "$LINENO" 5; }
4163 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4166 $as_echo "$ac_cv_objext" >&6; }
4167 OBJEXT=$ac_cv_objext
4168 ac_objext=$OBJEXT
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4170 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4171 if ${ac_cv_c_compiler_gnu+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4178 main ()
4180 #ifndef __GNUC__
4181 choke me
4182 #endif
4185 return 0;
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_compiler_gnu=yes
4190 else
4191 ac_compiler_gnu=no
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4198 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4199 if test $ac_compiler_gnu = yes; then
4200 GCC=yes
4201 else
4202 GCC=
4204 ac_test_CFLAGS=${CFLAGS+set}
4205 ac_save_CFLAGS=$CFLAGS
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4207 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4208 if ${ac_cv_prog_cc_g+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 ac_save_c_werror_flag=$ac_c_werror_flag
4212 ac_c_werror_flag=yes
4213 ac_cv_prog_cc_g=no
4214 CFLAGS="-g"
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4219 main ()
4223 return 0;
4225 _ACEOF
4226 if ac_fn_c_try_compile "$LINENO"; then :
4227 ac_cv_prog_cc_g=yes
4228 else
4229 CFLAGS=""
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4234 main ()
4238 return 0;
4240 _ACEOF
4241 if ac_fn_c_try_compile "$LINENO"; then :
4243 else
4244 ac_c_werror_flag=$ac_save_c_werror_flag
4245 CFLAGS="-g"
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4250 main ()
4254 return 0;
4256 _ACEOF
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_prog_cc_g=yes
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 ac_c_werror_flag=$ac_save_c_werror_flag
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4268 $as_echo "$ac_cv_prog_cc_g" >&6; }
4269 if test "$ac_test_CFLAGS" = set; then
4270 CFLAGS=$ac_save_CFLAGS
4271 elif test $ac_cv_prog_cc_g = yes; then
4272 if test "$GCC" = yes; then
4273 CFLAGS="-g -O2"
4274 else
4275 CFLAGS="-g"
4277 else
4278 if test "$GCC" = yes; then
4279 CFLAGS="-O2"
4280 else
4281 CFLAGS=
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4285 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4286 if ${ac_cv_prog_cc_c89+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 ac_cv_prog_cc_c89=no
4290 ac_save_CC=$CC
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <stdarg.h>
4294 #include <stdio.h>
4295 struct stat;
4296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4297 struct buf { int x; };
4298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4299 static char *e (p, i)
4300 char **p;
4301 int i;
4303 return p[i];
4305 static char *f (char * (*g) (char **, int), char **p, ...)
4307 char *s;
4308 va_list v;
4309 va_start (v,p);
4310 s = g (p, va_arg (v,int));
4311 va_end (v);
4312 return s;
4315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4316 function prototypes and stuff, but not '\xHH' hex character constants.
4317 These don't provoke an error unfortunately, instead are silently treated
4318 as 'x'. The following induces an error, until -std is added to get
4319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4320 array size at least. It's necessary to write '\x00'==0 to get something
4321 that's true only with -std. */
4322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4324 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4325 inside strings and character constants. */
4326 #define FOO(x) 'x'
4327 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4329 int test (int i, double x);
4330 struct s1 {int (*f) (int a);};
4331 struct s2 {int (*f) (double a);};
4332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4333 int argc;
4334 char **argv;
4336 main ()
4338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4340 return 0;
4342 _ACEOF
4343 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4344 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4346 CC="$ac_save_CC $ac_arg"
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_cv_prog_cc_c89=$ac_arg
4350 rm -f core conftest.err conftest.$ac_objext
4351 test "x$ac_cv_prog_cc_c89" != "xno" && break
4352 done
4353 rm -f conftest.$ac_ext
4354 CC=$ac_save_CC
4357 # AC_CACHE_VAL
4358 case "x$ac_cv_prog_cc_c89" in
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4361 $as_echo "none needed" >&6; } ;;
4362 xno)
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4364 $as_echo "unsupported" >&6; } ;;
4366 CC="$CC $ac_cv_prog_cc_c89"
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4368 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4369 esac
4370 if test "x$ac_cv_prog_cc_c89" != xno; then :
4374 ac_ext=c
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4386 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4387 if ${am_cv_prog_cc_c_o+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4394 main ()
4398 return 0;
4400 _ACEOF
4401 # Make sure it works both with $CC and with simple cc.
4402 # Following AC_PROG_CC_C_O, we do the test twice because some
4403 # compilers refuse to overwrite an existing .o file with -o,
4404 # though they will create one.
4405 am_cv_prog_cc_c_o=yes
4406 for am_i in 1 2; do
4407 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4408 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } \
4412 && test -f conftest2.$ac_objext; then
4413 : OK
4414 else
4415 am_cv_prog_cc_c_o=no
4416 break
4418 done
4419 rm -f core conftest*
4420 unset am_i
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4423 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4424 if test "$am_cv_prog_cc_c_o" != yes; then
4425 # Losing compiler, so override with the script.
4426 # FIXME: It is wrong to rewrite CC.
4427 # But if we don't then we get into trouble of one sort or another.
4428 # A longer-term fix would be to have automake use am__CC in this case,
4429 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4430 CC="$am_aux_dir/compile $CC"
4432 ac_ext=c
4433 ac_cpp='$CPP $CPPFLAGS'
4434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439 depcc="$CC" am_compiler_list=
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4442 $as_echo_n "checking dependency style of $depcc... " >&6; }
4443 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4447 # We make a subdir and do the tests there. Otherwise we can end up
4448 # making bogus files that we don't know about and never remove. For
4449 # instance it was reported that on HP-UX the gcc test will end up
4450 # making a dummy file named 'D' -- because '-MD' means "put the output
4451 # in D".
4452 rm -rf conftest.dir
4453 mkdir conftest.dir
4454 # Copy depcomp to subdir because otherwise we won't find it if we're
4455 # using a relative directory.
4456 cp "$am_depcomp" conftest.dir
4457 cd conftest.dir
4458 # We will build objects and dependencies in a subdirectory because
4459 # it helps to detect inapplicable dependency modes. For instance
4460 # both Tru64's cc and ICC support -MD to output dependencies as a
4461 # side effect of compilation, but ICC will put the dependencies in
4462 # the current directory while Tru64 will put them in the object
4463 # directory.
4464 mkdir sub
4466 am_cv_CC_dependencies_compiler_type=none
4467 if test "$am_compiler_list" = ""; then
4468 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4470 am__universal=false
4471 case " $depcc " in #(
4472 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4473 esac
4475 for depmode in $am_compiler_list; do
4476 # Setup a source with many dependencies, because some compilers
4477 # like to wrap large dependency lists on column 80 (with \), and
4478 # we should not choose a depcomp mode which is confused by this.
4480 # We need to recreate these files for each test, as the compiler may
4481 # overwrite some of them when testing with obscure command lines.
4482 # This happens at least with the AIX C compiler.
4483 : > sub/conftest.c
4484 for i in 1 2 3 4 5 6; do
4485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4486 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4487 # Solaris 10 /bin/sh.
4488 echo '/* dummy */' > sub/conftst$i.h
4489 done
4490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4492 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4493 # mode. It turns out that the SunPro C++ compiler does not properly
4494 # handle '-M -o', and we need to detect this. Also, some Intel
4495 # versions had trouble with output in subdirs.
4496 am__obj=sub/conftest.${OBJEXT-o}
4497 am__minus_obj="-o $am__obj"
4498 case $depmode in
4499 gcc)
4500 # This depmode causes a compiler race in universal mode.
4501 test "$am__universal" = false || continue
4503 nosideeffect)
4504 # After this tag, mechanisms are not by side-effect, so they'll
4505 # only be used when explicitly requested.
4506 if test "x$enable_dependency_tracking" = xyes; then
4507 continue
4508 else
4509 break
4512 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4513 # This compiler won't grok '-c -o', but also, the minuso test has
4514 # not run yet. These depmodes are late enough in the game, and
4515 # so weak that their functioning should not be impacted.
4516 am__obj=conftest.${OBJEXT-o}
4517 am__minus_obj=
4519 none) break ;;
4520 esac
4521 if depmode=$depmode \
4522 source=sub/conftest.c object=$am__obj \
4523 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4524 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4525 >/dev/null 2>conftest.err &&
4526 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4527 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4528 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4529 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4530 # icc doesn't choke on unknown options, it will just issue warnings
4531 # or remarks (even with -Werror). So we grep stderr for any message
4532 # that says an option was ignored or not supported.
4533 # When given -MP, icc 7.0 and 7.1 complain thusly:
4534 # icc: Command line warning: ignoring option '-M'; no argument required
4535 # The diagnosis changed in icc 8.0:
4536 # icc: Command line remark: option '-MP' not supported
4537 if (grep 'ignoring option' conftest.err ||
4538 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4539 am_cv_CC_dependencies_compiler_type=$depmode
4540 break
4543 done
4545 cd ..
4546 rm -rf conftest.dir
4547 else
4548 am_cv_CC_dependencies_compiler_type=none
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4553 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4554 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4557 test "x$enable_dependency_tracking" != xno \
4558 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4559 am__fastdepCC_TRUE=
4560 am__fastdepCC_FALSE='#'
4561 else
4562 am__fastdepCC_TRUE='#'
4563 am__fastdepCC_FALSE=
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4574 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4575 # On Suns, sometimes $CPP names a directory.
4576 if test -n "$CPP" && test -d "$CPP"; then
4577 CPP=
4579 if test -z "$CPP"; then
4580 if ${ac_cv_prog_CPP+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 # Double quotes because CPP needs to be expanded
4584 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4586 ac_preproc_ok=false
4587 for ac_c_preproc_warn_flag in '' yes
4589 # Use a header file that comes with gcc, so configuring glibc
4590 # with a fresh cross-compiler works.
4591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4592 # <limits.h> exists even on freestanding compilers.
4593 # On the NeXT, cc -E runs the code through the compiler's parser,
4594 # not just through cpp. "Syntax error" is here to catch this case.
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597 #ifdef __STDC__
4598 # include <limits.h>
4599 #else
4600 # include <assert.h>
4601 #endif
4602 Syntax error
4603 _ACEOF
4604 if ac_fn_c_try_cpp "$LINENO"; then :
4606 else
4607 # Broken: fails on valid input.
4608 continue
4610 rm -f conftest.err conftest.i conftest.$ac_ext
4612 # OK, works on sane cases. Now check whether nonexistent headers
4613 # can be detected and how.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 #include <ac_nonexistent.h>
4617 _ACEOF
4618 if ac_fn_c_try_cpp "$LINENO"; then :
4619 # Broken: success on invalid input.
4620 continue
4621 else
4622 # Passes both tests.
4623 ac_preproc_ok=:
4624 break
4626 rm -f conftest.err conftest.i conftest.$ac_ext
4628 done
4629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4630 rm -f conftest.i conftest.err conftest.$ac_ext
4631 if $ac_preproc_ok; then :
4632 break
4635 done
4636 ac_cv_prog_CPP=$CPP
4639 CPP=$ac_cv_prog_CPP
4640 else
4641 ac_cv_prog_CPP=$CPP
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4644 $as_echo "$CPP" >&6; }
4645 ac_preproc_ok=false
4646 for ac_c_preproc_warn_flag in '' yes
4648 # Use a header file that comes with gcc, so configuring glibc
4649 # with a fresh cross-compiler works.
4650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4651 # <limits.h> exists even on freestanding compilers.
4652 # On the NeXT, cc -E runs the code through the compiler's parser,
4653 # not just through cpp. "Syntax error" is here to catch this case.
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #ifdef __STDC__
4657 # include <limits.h>
4658 #else
4659 # include <assert.h>
4660 #endif
4661 Syntax error
4662 _ACEOF
4663 if ac_fn_c_try_cpp "$LINENO"; then :
4665 else
4666 # Broken: fails on valid input.
4667 continue
4669 rm -f conftest.err conftest.i conftest.$ac_ext
4671 # OK, works on sane cases. Now check whether nonexistent headers
4672 # can be detected and how.
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #include <ac_nonexistent.h>
4676 _ACEOF
4677 if ac_fn_c_try_cpp "$LINENO"; then :
4678 # Broken: success on invalid input.
4679 continue
4680 else
4681 # Passes both tests.
4682 ac_preproc_ok=:
4683 break
4685 rm -f conftest.err conftest.i conftest.$ac_ext
4687 done
4688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4689 rm -f conftest.i conftest.err conftest.$ac_ext
4690 if $ac_preproc_ok; then :
4692 else
4693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4695 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4696 See \`config.log' for more details" "$LINENO" 5; }
4699 ac_ext=c
4700 ac_cpp='$CPP $CPPFLAGS'
4701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4707 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4708 if ${ac_cv_path_GREP+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -z "$GREP"; then
4712 ac_path_GREP_found=false
4713 # Loop through the user's path and test for each of PROGNAME-LIST
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_prog in grep ggrep; do
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4722 as_fn_executable_p "$ac_path_GREP" || continue
4723 # Check for GNU ac_path_GREP and select it if it is found.
4724 # Check for GNU $ac_path_GREP
4725 case `"$ac_path_GREP" --version 2>&1` in
4726 *GNU*)
4727 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4729 ac_count=0
4730 $as_echo_n 0123456789 >"conftest.in"
4731 while :
4733 cat "conftest.in" "conftest.in" >"conftest.tmp"
4734 mv "conftest.tmp" "conftest.in"
4735 cp "conftest.in" "conftest.nl"
4736 $as_echo 'GREP' >> "conftest.nl"
4737 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4739 as_fn_arith $ac_count + 1 && ac_count=$as_val
4740 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4741 # Best one so far, save it but keep looking for a better one
4742 ac_cv_path_GREP="$ac_path_GREP"
4743 ac_path_GREP_max=$ac_count
4745 # 10*(2^10) chars as input seems more than enough
4746 test $ac_count -gt 10 && break
4747 done
4748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4749 esac
4751 $ac_path_GREP_found && break 3
4752 done
4753 done
4754 done
4755 IFS=$as_save_IFS
4756 if test -z "$ac_cv_path_GREP"; then
4757 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4759 else
4760 ac_cv_path_GREP=$GREP
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4765 $as_echo "$ac_cv_path_GREP" >&6; }
4766 GREP="$ac_cv_path_GREP"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4770 $as_echo_n "checking for egrep... " >&6; }
4771 if ${ac_cv_path_EGREP+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4775 then ac_cv_path_EGREP="$GREP -E"
4776 else
4777 if test -z "$EGREP"; then
4778 ac_path_EGREP_found=false
4779 # Loop through the user's path and test for each of PROGNAME-LIST
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_prog in egrep; do
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4788 as_fn_executable_p "$ac_path_EGREP" || continue
4789 # Check for GNU ac_path_EGREP and select it if it is found.
4790 # Check for GNU $ac_path_EGREP
4791 case `"$ac_path_EGREP" --version 2>&1` in
4792 *GNU*)
4793 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4795 ac_count=0
4796 $as_echo_n 0123456789 >"conftest.in"
4797 while :
4799 cat "conftest.in" "conftest.in" >"conftest.tmp"
4800 mv "conftest.tmp" "conftest.in"
4801 cp "conftest.in" "conftest.nl"
4802 $as_echo 'EGREP' >> "conftest.nl"
4803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4805 as_fn_arith $ac_count + 1 && ac_count=$as_val
4806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4807 # Best one so far, save it but keep looking for a better one
4808 ac_cv_path_EGREP="$ac_path_EGREP"
4809 ac_path_EGREP_max=$ac_count
4811 # 10*(2^10) chars as input seems more than enough
4812 test $ac_count -gt 10 && break
4813 done
4814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4815 esac
4817 $ac_path_EGREP_found && break 3
4818 done
4819 done
4820 done
4821 IFS=$as_save_IFS
4822 if test -z "$ac_cv_path_EGREP"; then
4823 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4825 else
4826 ac_cv_path_EGREP=$EGREP
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4832 $as_echo "$ac_cv_path_EGREP" >&6; }
4833 EGREP="$ac_cv_path_EGREP"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4837 $as_echo_n "checking for ANSI C header files... " >&6; }
4838 if ${ac_cv_header_stdc+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 #include <stdlib.h>
4844 #include <stdarg.h>
4845 #include <string.h>
4846 #include <float.h>
4849 main ()
4853 return 0;
4855 _ACEOF
4856 if ac_fn_c_try_compile "$LINENO"; then :
4857 ac_cv_header_stdc=yes
4858 else
4859 ac_cv_header_stdc=no
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 if test $ac_cv_header_stdc = yes; then
4864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867 #include <string.h>
4869 _ACEOF
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 $EGREP "memchr" >/dev/null 2>&1; then :
4873 else
4874 ac_cv_header_stdc=no
4876 rm -f conftest*
4880 if test $ac_cv_header_stdc = yes; then
4881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 #include <stdlib.h>
4886 _ACEOF
4887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4888 $EGREP "free" >/dev/null 2>&1; then :
4890 else
4891 ac_cv_header_stdc=no
4893 rm -f conftest*
4897 if test $ac_cv_header_stdc = yes; then
4898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4899 if test "$cross_compiling" = yes; then :
4901 else
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <ctype.h>
4905 #include <stdlib.h>
4906 #if ((' ' & 0x0FF) == 0x020)
4907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4909 #else
4910 # define ISLOWER(c) \
4911 (('a' <= (c) && (c) <= 'i') \
4912 || ('j' <= (c) && (c) <= 'r') \
4913 || ('s' <= (c) && (c) <= 'z'))
4914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4915 #endif
4917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4919 main ()
4921 int i;
4922 for (i = 0; i < 256; i++)
4923 if (XOR (islower (i), ISLOWER (i))
4924 || toupper (i) != TOUPPER (i))
4925 return 2;
4926 return 0;
4928 _ACEOF
4929 if ac_fn_c_try_run "$LINENO"; then :
4931 else
4932 ac_cv_header_stdc=no
4934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4935 conftest.$ac_objext conftest.beam conftest.$ac_ext
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4941 $as_echo "$ac_cv_header_stdc" >&6; }
4942 if test $ac_cv_header_stdc = yes; then
4944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4949 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4950 inttypes.h stdint.h unistd.h
4951 do :
4952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4953 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4955 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4956 cat >>confdefs.h <<_ACEOF
4957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4958 _ACEOF
4962 done
4966 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4967 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4968 MINIX=yes
4969 else
4970 MINIX=
4974 if test "$MINIX" = yes; then
4976 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4979 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4982 $as_echo "#define _MINIX 1" >>confdefs.h
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4988 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4989 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4995 # define __EXTENSIONS__ 1
4996 $ac_includes_default
4998 main ()
5002 return 0;
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 ac_cv_safe_to_define___extensions__=yes
5007 else
5008 ac_cv_safe_to_define___extensions__=no
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5013 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5014 test $ac_cv_safe_to_define___extensions__ = yes &&
5015 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5017 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5019 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5021 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5023 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5027 # Check whether --enable-lzo was given.
5028 if test "${enable_lzo+set}" = set; then :
5029 enableval=$enable_lzo;
5030 else
5031 enable_lzo="yes"
5036 # Check whether --enable-lzo-stub was given.
5037 if test "${enable_lzo_stub+set}" = set; then :
5038 enableval=$enable_lzo_stub;
5039 else
5040 enable_lzo_stub="no"
5045 # Check whether --enable-crypto was given.
5046 if test "${enable_crypto+set}" = set; then :
5047 enableval=$enable_crypto;
5048 else
5049 enable_crypto="yes"
5054 # Check whether --enable-ofb-cfb was given.
5055 if test "${enable_ofb_cfb+set}" = set; then :
5056 enableval=$enable_ofb_cfb;
5057 else
5058 enable_crypto_ofb_cfb="yes"
5063 # Check whether --enable-ssl was given.
5064 if test "${enable_ssl+set}" = set; then :
5065 enableval=$enable_ssl;
5066 else
5067 enable_ssl="yes"
5072 # Check whether --enable-x509-alt-username was given.
5073 if test "${enable_x509_alt_username+set}" = set; then :
5074 enableval=$enable_x509_alt_username;
5075 else
5076 enable_x509_alt_username="no"
5081 # Check whether --enable-multi was given.
5082 if test "${enable_multi+set}" = set; then :
5083 enableval=$enable_multi;
5084 else
5085 enable_multi="yes"
5090 # Check whether --enable-server was given.
5091 if test "${enable_server+set}" = set; then :
5092 enableval=$enable_server;
5093 else
5094 enable_server="yes"
5099 # Check whether --enable-plugins was given.
5100 if test "${enable_plugins+set}" = set; then :
5101 enableval=$enable_plugins;
5102 else
5103 enable_plugins="yes"
5108 # Check whether --enable-management was given.
5109 if test "${enable_management+set}" = set; then :
5110 enableval=$enable_management;
5111 else
5112 enable_management="yes"
5117 # Check whether --enable-pkcs11 was given.
5118 if test "${enable_pkcs11+set}" = set; then :
5119 enableval=$enable_pkcs11;
5120 else
5121 enable_pkcs11="no"
5126 # Check whether --enable-socks was given.
5127 if test "${enable_socks+set}" = set; then :
5128 enableval=$enable_socks;
5129 else
5130 enable_socks="yes"
5135 # Check whether --enable-http-proxy was given.
5136 if test "${enable_http_proxy+set}" = set; then :
5137 enableval=$enable_http_proxy;
5138 else
5139 enable_http_proxy="yes"
5144 # Check whether --enable-fragment was given.
5145 if test "${enable_fragment+set}" = set; then :
5146 enableval=$enable_fragment;
5147 else
5148 enable_fragment="yes"
5153 # Check whether --enable-multihome was given.
5154 if test "${enable_multihome+set}" = set; then :
5155 enableval=$enable_multihome;
5156 else
5157 enable_multihome="yes"
5162 # Check whether --enable-port-share was given.
5163 if test "${enable_port_share+set}" = set; then :
5164 enableval=$enable_port_share;
5165 else
5166 enable_port_share="yes"
5171 # Check whether --enable-debug was given.
5172 if test "${enable_debug+set}" = set; then :
5173 enableval=$enable_debug;
5174 else
5175 enable_debug="yes"
5180 # Check whether --enable-small was given.
5181 if test "${enable_small+set}" = set; then :
5182 enableval=$enable_small;
5183 else
5184 enable_small="no"
5189 # Check whether --enable-password-save was given.
5190 if test "${enable_password_save+set}" = set; then :
5191 enableval=$enable_password_save;
5192 else
5193 enable_password_save="no"
5198 # Check whether --enable-iproute2 was given.
5199 if test "${enable_iproute2+set}" = set; then :
5200 enableval=$enable_iproute2;
5201 else
5202 enable_iproute2="no"
5207 # Check whether --enable-def-auth was given.
5208 if test "${enable_def_auth+set}" = set; then :
5209 enableval=$enable_def_auth;
5210 else
5211 enable_def_auth="yes"
5216 # Check whether --enable-pf was given.
5217 if test "${enable_pf+set}" = set; then :
5218 enableval=$enable_pf;
5219 else
5220 enable_pf="yes"
5225 # Check whether --enable-plugin-auth-pam was given.
5226 if test "${enable_plugin_auth_pam+set}" = set; then :
5227 enableval=$enable_plugin_auth_pam;
5228 else
5230 case "$host" in
5231 *-*-openbsd*) enable_plugin_auth_pam="no";;
5232 *-mingw*) enable_plugin_auth_pam="no";;
5233 *) enable_plugin_auth_pam="yes";;
5234 esac
5240 # Check whether --enable-plugin-down-root was given.
5241 if test "${enable_plugin_down_root+set}" = set; then :
5242 enableval=$enable_plugin_down_root;
5243 else
5245 case "$host" in
5246 *-mingw*) enable_plugin_down_root="no";;
5247 *) enable_plugin_down_root="yes";;
5248 esac
5254 # Check whether --enable-pam-dlopen was given.
5255 if test "${enable_pam_dlopen+set}" = set; then :
5256 enableval=$enable_pam_dlopen;
5257 else
5258 enable_pam_dlopen="no"
5263 # Check whether --enable-strict was given.
5264 if test "${enable_strict+set}" = set; then :
5265 enableval=$enable_strict;
5266 else
5267 enable_strict="no"
5272 # Check whether --enable-pedantic was given.
5273 if test "${enable_pedantic+set}" = set; then :
5274 enableval=$enable_pedantic;
5275 else
5276 enable_pedantic="no"
5281 # Check whether --enable-strict-options was given.
5282 if test "${enable_strict_options+set}" = set; then :
5283 enableval=$enable_strict_options;
5284 else
5285 enable_strict_options="no"
5290 # Check whether --enable-selinux was given.
5291 if test "${enable_selinux+set}" = set; then :
5292 enableval=$enable_selinux;
5293 else
5294 enable_selinux="no"
5299 # Check whether --enable-systemd was given.
5300 if test "${enable_systemd+set}" = set; then :
5301 enableval=$enable_systemd;
5302 else
5303 enable_systemd="no"
5309 # Check whether --with-special-build was given.
5310 if test "${with_special_build+set}" = set; then :
5311 withval=$with_special_build; test -n "${withval}" &&
5312 cat >>confdefs.h <<_ACEOF
5313 #define CONFIGURE_SPECIAL_BUILD "${withval}"
5314 _ACEOF
5321 # Check whether --with-mem-check was given.
5322 if test "${with_mem_check+set}" = set; then :
5323 withval=$with_mem_check;
5324 case "${withval}" in
5325 dmalloc|valgrind|ssl|no) ;;
5326 *) as_fn_error $? "bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5327 esac
5329 else
5330 with_mem_check="no"
5336 # Check whether --with-crypto-library was given.
5337 if test "${with_crypto_library+set}" = set; then :
5338 withval=$with_crypto_library;
5339 case "${withval}" in
5340 openssl|polarssl) ;;
5341 *) as_fn_error $? "bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5342 esac
5344 else
5345 with_crypto_library="openssl"
5351 # Check whether --with-plugindir was given.
5352 if test "${with_plugindir+set}" = set; then :
5353 withval=$with_plugindir;
5354 else
5355 with_plugindir="\$(libdir)/openvpn/plugins"
5362 cat >>confdefs.h <<_ACEOF
5363 #define TARGET_ALIAS "${host}"
5364 _ACEOF
5366 case "$host" in
5367 *-*-linux*)
5369 $as_echo "#define TARGET_LINUX 1" >>confdefs.h
5372 cat >>confdefs.h <<_ACEOF
5373 #define TARGET_PREFIX "L"
5374 _ACEOF
5377 *-*-solaris*)
5379 $as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5382 cat >>confdefs.h <<_ACEOF
5383 #define TARGET_PREFIX "S"
5384 _ACEOF
5387 *-*-openbsd*)
5389 $as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5392 cat >>confdefs.h <<_ACEOF
5393 #define TARGET_PREFIX "O"
5394 _ACEOF
5397 *-*-freebsd*)
5399 $as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5402 cat >>confdefs.h <<_ACEOF
5403 #define TARGET_PREFIX "F"
5404 _ACEOF
5407 *-*-netbsd*)
5409 $as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5412 cat >>confdefs.h <<_ACEOF
5413 #define TARGET_PREFIX "N"
5414 _ACEOF
5417 *-*-darwin*)
5419 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5422 cat >>confdefs.h <<_ACEOF
5423 #define TARGET_PREFIX "M"
5424 _ACEOF
5426 have_tap_header="yes"
5427 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
5429 *-mingw*)
5431 $as_echo "#define TARGET_WIN32 1" >>confdefs.h
5434 cat >>confdefs.h <<_ACEOF
5435 #define TARGET_PREFIX "W"
5436 _ACEOF
5438 CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5439 CPPFLAGS="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
5440 WIN32=yes
5442 *-*-dragonfly*)
5444 $as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5447 cat >>confdefs.h <<_ACEOF
5448 #define TARGET_PREFIX "D"
5449 _ACEOF
5454 cat >>confdefs.h <<_ACEOF
5455 #define TARGET_PREFIX "X"
5456 _ACEOF
5458 have_tap_header="yes"
5460 esac
5469 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5472 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 case $PKG_CONFIG in
5479 [\\/]* | ?:[\\/]*)
5480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5494 done
5495 done
5496 IFS=$as_save_IFS
5499 esac
5501 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5502 if test -n "$PKG_CONFIG"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5504 $as_echo "$PKG_CONFIG" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5512 if test -z "$ac_cv_path_PKG_CONFIG"; then
5513 ac_pt_PKG_CONFIG=$PKG_CONFIG
5514 # Extract the first word of "pkg-config", so it can be a program name with args.
5515 set dummy pkg-config; ac_word=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 case $ac_pt_PKG_CONFIG in
5522 [\\/]* | ?:[\\/]*)
5523 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5537 done
5538 done
5539 IFS=$as_save_IFS
5542 esac
5544 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5545 if test -n "$ac_pt_PKG_CONFIG"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5547 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5553 if test "x$ac_pt_PKG_CONFIG" = x; then
5554 PKG_CONFIG=""
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557 yes:)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5561 esac
5562 PKG_CONFIG=$ac_pt_PKG_CONFIG
5564 else
5565 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5569 if test -n "$PKG_CONFIG"; then
5570 _pkg_min_version=0.9.0
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5572 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5573 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5575 $as_echo "yes" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 PKG_CONFIG=""
5582 ac_ext=c
5583 ac_cpp='$CPP $CPPFLAGS'
5584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5588 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5589 # On Suns, sometimes $CPP names a directory.
5590 if test -n "$CPP" && test -d "$CPP"; then
5591 CPP=
5593 if test -z "$CPP"; then
5594 if ${ac_cv_prog_CPP+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 # Double quotes because CPP needs to be expanded
5598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5600 ac_preproc_ok=false
5601 for ac_c_preproc_warn_flag in '' yes
5603 # Use a header file that comes with gcc, so configuring glibc
5604 # with a fresh cross-compiler works.
5605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5606 # <limits.h> exists even on freestanding compilers.
5607 # On the NeXT, cc -E runs the code through the compiler's parser,
5608 # not just through cpp. "Syntax error" is here to catch this case.
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611 #ifdef __STDC__
5612 # include <limits.h>
5613 #else
5614 # include <assert.h>
5615 #endif
5616 Syntax error
5617 _ACEOF
5618 if ac_fn_c_try_cpp "$LINENO"; then :
5620 else
5621 # Broken: fails on valid input.
5622 continue
5624 rm -f conftest.err conftest.i conftest.$ac_ext
5626 # OK, works on sane cases. Now check whether nonexistent headers
5627 # can be detected and how.
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <ac_nonexistent.h>
5631 _ACEOF
5632 if ac_fn_c_try_cpp "$LINENO"; then :
5633 # Broken: success on invalid input.
5634 continue
5635 else
5636 # Passes both tests.
5637 ac_preproc_ok=:
5638 break
5640 rm -f conftest.err conftest.i conftest.$ac_ext
5642 done
5643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5644 rm -f conftest.i conftest.err conftest.$ac_ext
5645 if $ac_preproc_ok; then :
5646 break
5649 done
5650 ac_cv_prog_CPP=$CPP
5653 CPP=$ac_cv_prog_CPP
5654 else
5655 ac_cv_prog_CPP=$CPP
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5658 $as_echo "$CPP" >&6; }
5659 ac_preproc_ok=false
5660 for ac_c_preproc_warn_flag in '' yes
5662 # Use a header file that comes with gcc, so configuring glibc
5663 # with a fresh cross-compiler works.
5664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665 # <limits.h> exists even on freestanding compilers.
5666 # On the NeXT, cc -E runs the code through the compiler's parser,
5667 # not just through cpp. "Syntax error" is here to catch this case.
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #ifdef __STDC__
5671 # include <limits.h>
5672 #else
5673 # include <assert.h>
5674 #endif
5675 Syntax error
5676 _ACEOF
5677 if ac_fn_c_try_cpp "$LINENO"; then :
5679 else
5680 # Broken: fails on valid input.
5681 continue
5683 rm -f conftest.err conftest.i conftest.$ac_ext
5685 # OK, works on sane cases. Now check whether nonexistent headers
5686 # can be detected and how.
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <ac_nonexistent.h>
5690 _ACEOF
5691 if ac_fn_c_try_cpp "$LINENO"; then :
5692 # Broken: success on invalid input.
5693 continue
5694 else
5695 # Passes both tests.
5696 ac_preproc_ok=:
5697 break
5699 rm -f conftest.err conftest.i conftest.$ac_ext
5701 done
5702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5703 rm -f conftest.i conftest.err conftest.$ac_ext
5704 if $ac_preproc_ok; then :
5706 else
5707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5709 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5710 See \`config.log' for more details" "$LINENO" 5; }
5713 ac_ext=c
5714 ac_cpp='$CPP $CPPFLAGS'
5715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5721 $as_echo_n "checking whether ln -s works... " >&6; }
5722 LN_S=$as_ln_s
5723 if test "$LN_S" = "ln -s"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725 $as_echo "yes" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5728 $as_echo "no, using $LN_S" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5732 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5733 if ${ac_cv_path_SED+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5737 for ac_i in 1 2 3 4 5 6 7; do
5738 ac_script="$ac_script$as_nl$ac_script"
5739 done
5740 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5741 { ac_script=; unset ac_script;}
5742 if test -z "$SED"; then
5743 ac_path_SED_found=false
5744 # Loop through the user's path and test for each of PROGNAME-LIST
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_prog in sed gsed; do
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5753 as_fn_executable_p "$ac_path_SED" || continue
5754 # Check for GNU ac_path_SED and select it if it is found.
5755 # Check for GNU $ac_path_SED
5756 case `"$ac_path_SED" --version 2>&1` in
5757 *GNU*)
5758 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5760 ac_count=0
5761 $as_echo_n 0123456789 >"conftest.in"
5762 while :
5764 cat "conftest.in" "conftest.in" >"conftest.tmp"
5765 mv "conftest.tmp" "conftest.in"
5766 cp "conftest.in" "conftest.nl"
5767 $as_echo '' >> "conftest.nl"
5768 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5769 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5770 as_fn_arith $ac_count + 1 && ac_count=$as_val
5771 if test $ac_count -gt ${ac_path_SED_max-0}; then
5772 # Best one so far, save it but keep looking for a better one
5773 ac_cv_path_SED="$ac_path_SED"
5774 ac_path_SED_max=$ac_count
5776 # 10*(2^10) chars as input seems more than enough
5777 test $ac_count -gt 10 && break
5778 done
5779 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5780 esac
5782 $ac_path_SED_found && break 3
5783 done
5784 done
5785 done
5786 IFS=$as_save_IFS
5787 if test -z "$ac_cv_path_SED"; then
5788 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5790 else
5791 ac_cv_path_SED=$SED
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5796 $as_echo "$ac_cv_path_SED" >&6; }
5797 SED="$ac_cv_path_SED"
5798 rm -f conftest.sed
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5802 set x ${MAKE-make}
5803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5804 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 cat >conftest.make <<\_ACEOF
5808 SHELL = /bin/sh
5809 all:
5810 @echo '@@@%%%=$(MAKE)=@@@%%%'
5811 _ACEOF
5812 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5814 *@@@%%%=?*=@@@%%%*)
5815 eval ac_cv_prog_make_${ac_make}_set=yes;;
5817 eval ac_cv_prog_make_${ac_make}_set=no;;
5818 esac
5819 rm -f conftest.make
5821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823 $as_echo "yes" >&6; }
5824 SET_MAKE=
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 SET_MAKE="MAKE=${MAKE-make}"
5835 # tests
5839 for ac_prog in ifconfig
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 ${ac_cv_path_IFCONFIG+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 case $IFCONFIG in
5849 [\\/]* | ?:[\\/]*)
5850 ac_cv_path_IFCONFIG="$IFCONFIG" # Let the user override the test with a path.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5855 for as_dir in $as_dummy
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5865 done
5866 done
5867 IFS=$as_save_IFS
5870 esac
5872 IFCONFIG=$ac_cv_path_IFCONFIG
5873 if test -n "$IFCONFIG"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
5875 $as_echo "$IFCONFIG" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5882 test -n "$IFCONFIG" && break
5883 done
5885 for ac_prog in route
5887 # Extract the first word of "$ac_prog", so it can be a program name with args.
5888 set dummy $ac_prog; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_path_ROUTE+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 case $ROUTE in
5895 [\\/]* | ?:[\\/]*)
5896 ac_cv_path_ROUTE="$ROUTE" # Let the user override the test with a path.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5901 for as_dir in $as_dummy
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5911 done
5912 done
5913 IFS=$as_save_IFS
5916 esac
5918 ROUTE=$ac_cv_path_ROUTE
5919 if test -n "$ROUTE"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
5921 $as_echo "$ROUTE" >&6; }
5922 else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5928 test -n "$ROUTE" && break
5929 done
5931 for ac_prog in ip
5933 # Extract the first word of "$ac_prog", so it can be a program name with args.
5934 set dummy $ac_prog; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if ${ac_cv_path_IPROUTE+:} false; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 case $IPROUTE in
5941 [\\/]* | ?:[\\/]*)
5942 ac_cv_path_IPROUTE="$IPROUTE" # Let the user override the test with a path.
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5947 for as_dir in $as_dummy
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5953 ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext"
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5957 done
5958 done
5959 IFS=$as_save_IFS
5962 esac
5964 IPROUTE=$ac_cv_path_IPROUTE
5965 if test -n "$IPROUTE"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
5967 $as_echo "$IPROUTE" >&6; }
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5974 test -n "$IPROUTE" && break
5975 done
5977 for ac_prog in systemd-ask-password
5979 # Extract the first word of "$ac_prog", so it can be a program name with args.
5980 set dummy $ac_prog; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if ${ac_cv_path_SYSTEMD_ASK_PASSWORD+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 case $SYSTEMD_ASK_PASSWORD in
5987 [\\/]* | ?:[\\/]*)
5988 ac_cv_path_SYSTEMD_ASK_PASSWORD="$SYSTEMD_ASK_PASSWORD" # Let the user override the test with a path.
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5993 for as_dir in $as_dummy
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_path_SYSTEMD_ASK_PASSWORD="$as_dir/$ac_word$ac_exec_ext"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6003 done
6004 done
6005 IFS=$as_save_IFS
6008 esac
6010 SYSTEMD_ASK_PASSWORD=$ac_cv_path_SYSTEMD_ASK_PASSWORD
6011 if test -n "$SYSTEMD_ASK_PASSWORD"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_ASK_PASSWORD" >&5
6013 $as_echo "$SYSTEMD_ASK_PASSWORD" >&6; }
6014 else
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6020 test -n "$SYSTEMD_ASK_PASSWORD" && break
6021 done
6023 for ac_prog in netstat
6025 # Extract the first word of "$ac_prog", so it can be a program name with args.
6026 set dummy $ac_prog; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if ${ac_cv_prog_NETSTAT+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$NETSTAT"; then
6033 ac_cv_prog_NETSTAT="$NETSTAT" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
6037 for as_dir in $as_dummy
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_NETSTAT="$ac_prog"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6047 done
6048 done
6049 IFS=$as_save_IFS
6053 NETSTAT=$ac_cv_prog_NETSTAT
6054 if test -n "$NETSTAT"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
6056 $as_echo "$NETSTAT" >&6; }
6057 else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6063 test -n "$NETSTAT" && break
6064 done
6065 test -n "$NETSTAT" || NETSTAT="netstat"
6066 # tests
6067 for ac_prog in man2html
6069 # Extract the first word of "$ac_prog", so it can be a program name with args.
6070 set dummy $ac_prog; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_MAN2HTML+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$MAN2HTML"; then
6077 ac_cv_prog_MAN2HTML="$MAN2HTML" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_MAN2HTML="$ac_prog"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6090 done
6091 done
6092 IFS=$as_save_IFS
6096 MAN2HTML=$ac_cv_prog_MAN2HTML
6097 if test -n "$MAN2HTML"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
6099 $as_echo "$MAN2HTML" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6106 test -n "$MAN2HTML" && break
6107 done
6109 for ac_prog in git
6111 # Extract the first word of "$ac_prog", so it can be a program name with args.
6112 set dummy $ac_prog; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_GIT+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 if test -n "$GIT"; then
6119 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_GIT="$ac_prog"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6132 done
6133 done
6134 IFS=$as_save_IFS
6138 GIT=$ac_cv_prog_GIT
6139 if test -n "$GIT"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6141 $as_echo "$GIT" >&6; }
6142 else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6148 test -n "$GIT" && break
6149 done
6150 # optional
6152 cat >>confdefs.h <<_ACEOF
6153 #define IFCONFIG_PATH "$IFCONFIG"
6154 _ACEOF
6157 cat >>confdefs.h <<_ACEOF
6158 #define IPROUTE_PATH "$IPROUTE"
6159 _ACEOF
6162 cat >>confdefs.h <<_ACEOF
6163 #define ROUTE_PATH "$ROUTE"
6164 _ACEOF
6167 cat >>confdefs.h <<_ACEOF
6168 #define SYSTEMD_ASK_PASSWORD_PATH "$SYSTEMD_ASK_PASSWORD"
6169 _ACEOF
6173 # Libtool
6176 case `pwd` in
6177 *\ * | *\ *)
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6179 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6180 esac
6184 macro_version='2.4.2'
6185 macro_revision='1.3337'
6199 ltmain="$ac_aux_dir/ltmain.sh"
6201 # Backslashify metacharacters that are still active within
6202 # double-quoted strings.
6203 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6205 # Same as above, but do not quote variable references.
6206 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6208 # Sed substitution to delay expansion of an escaped shell variable in a
6209 # double_quote_subst'ed string.
6210 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6212 # Sed substitution to delay expansion of an escaped single quote.
6213 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6215 # Sed substitution to avoid accidental globbing in evaled expressions
6216 no_glob_subst='s/\*/\\\*/g'
6218 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6219 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6220 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6223 $as_echo_n "checking how to print strings... " >&6; }
6224 # Test print first, because it will be a builtin if present.
6225 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6226 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6227 ECHO='print -r --'
6228 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6229 ECHO='printf %s\n'
6230 else
6231 # Use this function as a fallback that always works.
6232 func_fallback_echo ()
6234 eval 'cat <<_LTECHO_EOF
6236 _LTECHO_EOF'
6238 ECHO='func_fallback_echo'
6241 # func_echo_all arg...
6242 # Invoke $ECHO with all args, space-separated.
6243 func_echo_all ()
6245 $ECHO ""
6248 case "$ECHO" in
6249 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6250 $as_echo "printf" >&6; } ;;
6251 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6252 $as_echo "print -r" >&6; } ;;
6253 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6254 $as_echo "cat" >&6; } ;;
6255 esac
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6271 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6272 if ${ac_cv_path_SED+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6276 for ac_i in 1 2 3 4 5 6 7; do
6277 ac_script="$ac_script$as_nl$ac_script"
6278 done
6279 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6280 { ac_script=; unset ac_script;}
6281 if test -z "$SED"; then
6282 ac_path_SED_found=false
6283 # Loop through the user's path and test for each of PROGNAME-LIST
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_prog in sed gsed; do
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6292 as_fn_executable_p "$ac_path_SED" || continue
6293 # Check for GNU ac_path_SED and select it if it is found.
6294 # Check for GNU $ac_path_SED
6295 case `"$ac_path_SED" --version 2>&1` in
6296 *GNU*)
6297 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6299 ac_count=0
6300 $as_echo_n 0123456789 >"conftest.in"
6301 while :
6303 cat "conftest.in" "conftest.in" >"conftest.tmp"
6304 mv "conftest.tmp" "conftest.in"
6305 cp "conftest.in" "conftest.nl"
6306 $as_echo '' >> "conftest.nl"
6307 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6309 as_fn_arith $ac_count + 1 && ac_count=$as_val
6310 if test $ac_count -gt ${ac_path_SED_max-0}; then
6311 # Best one so far, save it but keep looking for a better one
6312 ac_cv_path_SED="$ac_path_SED"
6313 ac_path_SED_max=$ac_count
6315 # 10*(2^10) chars as input seems more than enough
6316 test $ac_count -gt 10 && break
6317 done
6318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6319 esac
6321 $ac_path_SED_found && break 3
6322 done
6323 done
6324 done
6325 IFS=$as_save_IFS
6326 if test -z "$ac_cv_path_SED"; then
6327 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6329 else
6330 ac_cv_path_SED=$SED
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6335 $as_echo "$ac_cv_path_SED" >&6; }
6336 SED="$ac_cv_path_SED"
6337 rm -f conftest.sed
6339 test -z "$SED" && SED=sed
6340 Xsed="$SED -e 1s/^X//"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6353 $as_echo_n "checking for fgrep... " >&6; }
6354 if ${ac_cv_path_FGREP+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6358 then ac_cv_path_FGREP="$GREP -F"
6359 else
6360 if test -z "$FGREP"; then
6361 ac_path_FGREP_found=false
6362 # Loop through the user's path and test for each of PROGNAME-LIST
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_prog in fgrep; do
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6371 as_fn_executable_p "$ac_path_FGREP" || continue
6372 # Check for GNU ac_path_FGREP and select it if it is found.
6373 # Check for GNU $ac_path_FGREP
6374 case `"$ac_path_FGREP" --version 2>&1` in
6375 *GNU*)
6376 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6378 ac_count=0
6379 $as_echo_n 0123456789 >"conftest.in"
6380 while :
6382 cat "conftest.in" "conftest.in" >"conftest.tmp"
6383 mv "conftest.tmp" "conftest.in"
6384 cp "conftest.in" "conftest.nl"
6385 $as_echo 'FGREP' >> "conftest.nl"
6386 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6388 as_fn_arith $ac_count + 1 && ac_count=$as_val
6389 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6390 # Best one so far, save it but keep looking for a better one
6391 ac_cv_path_FGREP="$ac_path_FGREP"
6392 ac_path_FGREP_max=$ac_count
6394 # 10*(2^10) chars as input seems more than enough
6395 test $ac_count -gt 10 && break
6396 done
6397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6398 esac
6400 $ac_path_FGREP_found && break 3
6401 done
6402 done
6403 done
6404 IFS=$as_save_IFS
6405 if test -z "$ac_cv_path_FGREP"; then
6406 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6408 else
6409 ac_cv_path_FGREP=$FGREP
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6415 $as_echo "$ac_cv_path_FGREP" >&6; }
6416 FGREP="$ac_cv_path_FGREP"
6419 test -z "$GREP" && GREP=grep
6439 # Check whether --with-gnu-ld was given.
6440 if test "${with_gnu_ld+set}" = set; then :
6441 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6442 else
6443 with_gnu_ld=no
6446 ac_prog=ld
6447 if test "$GCC" = yes; then
6448 # Check if gcc -print-prog-name=ld gives a path.
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6450 $as_echo_n "checking for ld used by $CC... " >&6; }
6451 case $host in
6452 *-*-mingw*)
6453 # gcc leaves a trailing carriage return which upsets mingw
6454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6457 esac
6458 case $ac_prog in
6459 # Accept absolute paths.
6460 [\\/]* | ?:[\\/]*)
6461 re_direlt='/[^/][^/]*/\.\./'
6462 # Canonicalize the pathname of ld
6463 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6464 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6465 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6466 done
6467 test -z "$LD" && LD="$ac_prog"
6470 # If it fails, then pretend we aren't using GCC.
6471 ac_prog=ld
6474 # If it is relative, then search for the first ld in PATH.
6475 with_gnu_ld=unknown
6477 esac
6478 elif test "$with_gnu_ld" = yes; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6480 $as_echo_n "checking for GNU ld... " >&6; }
6481 else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6483 $as_echo_n "checking for non-GNU ld... " >&6; }
6485 if ${lt_cv_path_LD+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -z "$LD"; then
6489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6490 for ac_dir in $PATH; do
6491 IFS="$lt_save_ifs"
6492 test -z "$ac_dir" && ac_dir=.
6493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6494 lt_cv_path_LD="$ac_dir/$ac_prog"
6495 # Check to see if the program is GNU ld. I'd rather use --version,
6496 # but apparently some variants of GNU ld only accept -v.
6497 # Break only if it was the GNU/non-GNU ld that we prefer.
6498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6499 *GNU* | *'with BFD'*)
6500 test "$with_gnu_ld" != no && break
6503 test "$with_gnu_ld" != yes && break
6505 esac
6507 done
6508 IFS="$lt_save_ifs"
6509 else
6510 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6514 LD="$lt_cv_path_LD"
6515 if test -n "$LD"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6517 $as_echo "$LD" >&6; }
6518 else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6522 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6524 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6525 if ${lt_cv_prog_gnu_ld+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6529 case `$LD -v 2>&1 </dev/null` in
6530 *GNU* | *'with BFD'*)
6531 lt_cv_prog_gnu_ld=yes
6534 lt_cv_prog_gnu_ld=no
6536 esac
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6539 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6540 with_gnu_ld=$lt_cv_prog_gnu_ld
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6551 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6552 if ${lt_cv_path_NM+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 if test -n "$NM"; then
6556 # Let the user override the test.
6557 lt_cv_path_NM="$NM"
6558 else
6559 lt_nm_to_check="${ac_tool_prefix}nm"
6560 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6561 lt_nm_to_check="$lt_nm_to_check nm"
6563 for lt_tmp_nm in $lt_nm_to_check; do
6564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6565 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6566 IFS="$lt_save_ifs"
6567 test -z "$ac_dir" && ac_dir=.
6568 tmp_nm="$ac_dir/$lt_tmp_nm"
6569 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6570 # Check to see if the nm accepts a BSD-compat flag.
6571 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6572 # nm: unknown option "B" ignored
6573 # Tru64's nm complains that /dev/null is an invalid object file
6574 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6575 */dev/null* | *'Invalid file or object type'*)
6576 lt_cv_path_NM="$tmp_nm -B"
6577 break
6580 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6581 */dev/null*)
6582 lt_cv_path_NM="$tmp_nm -p"
6583 break
6586 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6587 continue # so that we can try to find one that supports BSD flags
6589 esac
6591 esac
6593 done
6594 IFS="$lt_save_ifs"
6595 done
6596 : ${lt_cv_path_NM=no}
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6600 $as_echo "$lt_cv_path_NM" >&6; }
6601 if test "$lt_cv_path_NM" != "no"; then
6602 NM="$lt_cv_path_NM"
6603 else
6604 # Didn't find any BSD compatible name lister, look for dumpbin.
6605 if test -n "$DUMPBIN"; then :
6606 # Let the user override the test.
6607 else
6608 if test -n "$ac_tool_prefix"; then
6609 for ac_prog in dumpbin "link -dump"
6611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_DUMPBIN+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 if test -n "$DUMPBIN"; then
6619 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6632 done
6633 done
6634 IFS=$as_save_IFS
6638 DUMPBIN=$ac_cv_prog_DUMPBIN
6639 if test -n "$DUMPBIN"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6641 $as_echo "$DUMPBIN" >&6; }
6642 else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6648 test -n "$DUMPBIN" && break
6649 done
6651 if test -z "$DUMPBIN"; then
6652 ac_ct_DUMPBIN=$DUMPBIN
6653 for ac_prog in dumpbin "link -dump"
6655 # Extract the first word of "$ac_prog", so it can be a program name with args.
6656 set dummy $ac_prog; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 if test -n "$ac_ct_DUMPBIN"; then
6663 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6676 done
6677 done
6678 IFS=$as_save_IFS
6682 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6683 if test -n "$ac_ct_DUMPBIN"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6685 $as_echo "$ac_ct_DUMPBIN" >&6; }
6686 else
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6692 test -n "$ac_ct_DUMPBIN" && break
6693 done
6695 if test "x$ac_ct_DUMPBIN" = x; then
6696 DUMPBIN=":"
6697 else
6698 case $cross_compiling:$ac_tool_warned in
6699 yes:)
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6702 ac_tool_warned=yes ;;
6703 esac
6704 DUMPBIN=$ac_ct_DUMPBIN
6708 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6709 *COFF*)
6710 DUMPBIN="$DUMPBIN -symbols"
6713 DUMPBIN=:
6715 esac
6718 if test "$DUMPBIN" != ":"; then
6719 NM="$DUMPBIN"
6722 test -z "$NM" && NM=nm
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6730 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6731 if ${lt_cv_nm_interface+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 lt_cv_nm_interface="BSD nm"
6735 echo "int some_variable = 0;" > conftest.$ac_ext
6736 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6737 (eval "$ac_compile" 2>conftest.err)
6738 cat conftest.err >&5
6739 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6740 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6741 cat conftest.err >&5
6742 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6743 cat conftest.out >&5
6744 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6745 lt_cv_nm_interface="MS dumpbin"
6747 rm -f conftest*
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6750 $as_echo "$lt_cv_nm_interface" >&6; }
6752 # find the maximum length of command line arguments
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6754 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6755 if ${lt_cv_sys_max_cmd_len+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6759 teststring="ABCD"
6761 case $build_os in
6762 msdosdjgpp*)
6763 # On DJGPP, this test can blow up pretty badly due to problems in libc
6764 # (any single argument exceeding 2000 bytes causes a buffer overrun
6765 # during glob expansion). Even if it were fixed, the result of this
6766 # check would be larger than it should be.
6767 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6770 gnu*)
6771 # Under GNU Hurd, this test is not required because there is
6772 # no limit to the length of command line arguments.
6773 # Libtool will interpret -1 as no limit whatsoever
6774 lt_cv_sys_max_cmd_len=-1;
6777 cygwin* | mingw* | cegcc*)
6778 # On Win9x/ME, this test blows up -- it succeeds, but takes
6779 # about 5 minutes as the teststring grows exponentially.
6780 # Worse, since 9x/ME are not pre-emptively multitasking,
6781 # you end up with a "frozen" computer, even though with patience
6782 # the test eventually succeeds (with a max line length of 256k).
6783 # Instead, let's just punt: use the minimum linelength reported by
6784 # all of the supported platforms: 8192 (on NT/2K/XP).
6785 lt_cv_sys_max_cmd_len=8192;
6788 mint*)
6789 # On MiNT this can take a long time and run out of memory.
6790 lt_cv_sys_max_cmd_len=8192;
6793 amigaos*)
6794 # On AmigaOS with pdksh, this test takes hours, literally.
6795 # So we just punt and use a minimum line length of 8192.
6796 lt_cv_sys_max_cmd_len=8192;
6799 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6800 # This has been around since 386BSD, at least. Likely further.
6801 if test -x /sbin/sysctl; then
6802 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6803 elif test -x /usr/sbin/sysctl; then
6804 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6805 else
6806 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6808 # And add a safety zone
6809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6813 interix*)
6814 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6815 lt_cv_sys_max_cmd_len=196608
6818 os2*)
6819 # The test takes a long time on OS/2.
6820 lt_cv_sys_max_cmd_len=8192
6823 osf*)
6824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6826 # nice to cause kernel panics so lets avoid the loop below.
6827 # First set a reasonable default.
6828 lt_cv_sys_max_cmd_len=16384
6830 if test -x /sbin/sysconfig; then
6831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6832 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6833 esac
6836 sco3.2v5*)
6837 lt_cv_sys_max_cmd_len=102400
6839 sysv5* | sco5v6* | sysv4.2uw2*)
6840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6841 if test -n "$kargmax"; then
6842 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6843 else
6844 lt_cv_sys_max_cmd_len=32768
6848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6849 if test -n "$lt_cv_sys_max_cmd_len" && \
6850 test undefined != "$lt_cv_sys_max_cmd_len"; then
6851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6853 else
6854 # Make teststring a little bigger before we do anything with it.
6855 # a 1K string should be a reasonable start.
6856 for i in 1 2 3 4 5 6 7 8 ; do
6857 teststring=$teststring$teststring
6858 done
6859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6860 # If test is not a shell built-in, we'll probably end up computing a
6861 # maximum length that is only half of the actual maximum length, but
6862 # we can't tell.
6863 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6864 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6865 test $i != 17 # 1/2 MB should be enough
6867 i=`expr $i + 1`
6868 teststring=$teststring$teststring
6869 done
6870 # Only check the string length outside the loop.
6871 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6872 teststring=
6873 # Add a significant safety factor because C++ compilers can tack on
6874 # massive amounts of additional arguments before passing them to the
6875 # linker. It appears as though 1/2 is a usable value.
6876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6879 esac
6883 if test -n $lt_cv_sys_max_cmd_len ; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6885 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6888 $as_echo "none" >&6; }
6890 max_cmd_len=$lt_cv_sys_max_cmd_len
6897 : ${CP="cp -f"}
6898 : ${MV="mv -f"}
6899 : ${RM="rm -f"}
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6902 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6903 # Try some XSI features
6904 xsi_shell=no
6905 ( _lt_dummy="a/b/c"
6906 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6907 = c,a/b,b/c, \
6908 && eval 'test $(( 1 + 1 )) -eq 2 \
6909 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6910 && xsi_shell=yes
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6912 $as_echo "$xsi_shell" >&6; }
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6916 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6917 lt_shell_append=no
6918 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6919 >/dev/null 2>&1 \
6920 && lt_shell_append=yes
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6922 $as_echo "$lt_shell_append" >&6; }
6925 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6926 lt_unset=unset
6927 else
6928 lt_unset=false
6935 # test EBCDIC or ASCII
6936 case `echo X|tr X '\101'` in
6937 A) # ASCII based system
6938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6939 lt_SP2NL='tr \040 \012'
6940 lt_NL2SP='tr \015\012 \040\040'
6942 *) # EBCDIC based system
6943 lt_SP2NL='tr \100 \n'
6944 lt_NL2SP='tr \r\n \100\100'
6946 esac
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6957 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6958 if ${lt_cv_to_host_file_cmd+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 case $host in
6962 *-*-mingw* )
6963 case $build in
6964 *-*-mingw* ) # actually msys
6965 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6967 *-*-cygwin* )
6968 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6970 * ) # otherwise, assume *nix
6971 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6973 esac
6975 *-*-cygwin* )
6976 case $build in
6977 *-*-mingw* ) # actually msys
6978 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6980 *-*-cygwin* )
6981 lt_cv_to_host_file_cmd=func_convert_file_noop
6983 * ) # otherwise, assume *nix
6984 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6986 esac
6988 * ) # unhandled hosts (and "normal" native builds)
6989 lt_cv_to_host_file_cmd=func_convert_file_noop
6991 esac
6995 to_host_file_cmd=$lt_cv_to_host_file_cmd
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6997 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7004 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7005 if ${lt_cv_to_tool_file_cmd+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 #assume ordinary cross tools, or native build.
7009 lt_cv_to_tool_file_cmd=func_convert_file_noop
7010 case $host in
7011 *-*-mingw* )
7012 case $build in
7013 *-*-mingw* ) # actually msys
7014 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7016 esac
7018 esac
7022 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7024 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7031 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7032 if ${lt_cv_ld_reload_flag+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 lt_cv_ld_reload_flag='-r'
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7038 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7039 reload_flag=$lt_cv_ld_reload_flag
7040 case $reload_flag in
7041 "" | " "*) ;;
7042 *) reload_flag=" $reload_flag" ;;
7043 esac
7044 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7045 case $host_os in
7046 cygwin* | mingw* | pw32* | cegcc*)
7047 if test "$GCC" != yes; then
7048 reload_cmds=false
7051 darwin*)
7052 if test "$GCC" = yes; then
7053 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7054 else
7055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7058 esac
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_OBJDUMP+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$OBJDUMP"; then
7077 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7092 IFS=$as_save_IFS
7096 OBJDUMP=$ac_cv_prog_OBJDUMP
7097 if test -n "$OBJDUMP"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7099 $as_echo "$OBJDUMP" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7107 if test -z "$ac_cv_prog_OBJDUMP"; then
7108 ac_ct_OBJDUMP=$OBJDUMP
7109 # Extract the first word of "objdump", so it can be a program name with args.
7110 set dummy objdump; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 if test -n "$ac_ct_OBJDUMP"; then
7117 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7130 done
7131 done
7132 IFS=$as_save_IFS
7136 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7137 if test -n "$ac_ct_OBJDUMP"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7139 $as_echo "$ac_ct_OBJDUMP" >&6; }
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7145 if test "x$ac_ct_OBJDUMP" = x; then
7146 OBJDUMP="false"
7147 else
7148 case $cross_compiling:$ac_tool_warned in
7149 yes:)
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152 ac_tool_warned=yes ;;
7153 esac
7154 OBJDUMP=$ac_ct_OBJDUMP
7156 else
7157 OBJDUMP="$ac_cv_prog_OBJDUMP"
7160 test -z "$OBJDUMP" && OBJDUMP=objdump
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7168 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7169 if ${lt_cv_deplibs_check_method+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 lt_cv_file_magic_cmd='$MAGIC_CMD'
7173 lt_cv_file_magic_test_file=
7174 lt_cv_deplibs_check_method='unknown'
7175 # Need to set the preceding variable on all platforms that support
7176 # interlibrary dependencies.
7177 # 'none' -- dependencies not supported.
7178 # `unknown' -- same as none, but documents that we really don't know.
7179 # 'pass_all' -- all dependencies passed with no checks.
7180 # 'test_compile' -- check by making test program.
7181 # 'file_magic [[regex]]' -- check by looking for files in library path
7182 # which responds to the $file_magic_cmd with a given extended regex.
7183 # If you have `file' or equivalent on your system and you're not sure
7184 # whether `pass_all' will *always* work, you probably want this one.
7186 case $host_os in
7187 aix[4-9]*)
7188 lt_cv_deplibs_check_method=pass_all
7191 beos*)
7192 lt_cv_deplibs_check_method=pass_all
7195 bsdi[45]*)
7196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7197 lt_cv_file_magic_cmd='/usr/bin/file -L'
7198 lt_cv_file_magic_test_file=/shlib/libc.so
7201 cygwin*)
7202 # func_win32_libid is a shell function defined in ltmain.sh
7203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7204 lt_cv_file_magic_cmd='func_win32_libid'
7207 mingw* | pw32*)
7208 # Base MSYS/MinGW do not provide the 'file' command needed by
7209 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7210 # unless we find 'file', for example because we are cross-compiling.
7211 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7212 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7214 lt_cv_file_magic_cmd='func_win32_libid'
7215 else
7216 # Keep this pattern in sync with the one in func_win32_libid.
7217 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7218 lt_cv_file_magic_cmd='$OBJDUMP -f'
7222 cegcc*)
7223 # use the weaker test based on 'objdump'. See mingw*.
7224 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7225 lt_cv_file_magic_cmd='$OBJDUMP -f'
7228 darwin* | rhapsody*)
7229 lt_cv_deplibs_check_method=pass_all
7232 freebsd* | dragonfly*)
7233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7234 case $host_cpu in
7235 i*86 )
7236 # Not sure whether the presence of OpenBSD here was a mistake.
7237 # Let's accept both of them until this is cleared up.
7238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7239 lt_cv_file_magic_cmd=/usr/bin/file
7240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7242 esac
7243 else
7244 lt_cv_deplibs_check_method=pass_all
7248 haiku*)
7249 lt_cv_deplibs_check_method=pass_all
7252 hpux10.20* | hpux11*)
7253 lt_cv_file_magic_cmd=/usr/bin/file
7254 case $host_cpu in
7255 ia64*)
7256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7257 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7259 hppa*64*)
7260 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]'
7261 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7264 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7265 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7267 esac
7270 interix[3-9]*)
7271 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7275 irix5* | irix6* | nonstopux*)
7276 case $LD in
7277 *-32|*"-32 ") libmagic=32-bit;;
7278 *-n32|*"-n32 ") libmagic=N32;;
7279 *-64|*"-64 ") libmagic=64-bit;;
7280 *) libmagic=never-match;;
7281 esac
7282 lt_cv_deplibs_check_method=pass_all
7285 # This must be glibc/ELF.
7286 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7287 lt_cv_deplibs_check_method=pass_all
7290 netbsd* | netbsdelf*-gnu)
7291 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7293 else
7294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7298 newos6*)
7299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7300 lt_cv_file_magic_cmd=/usr/bin/file
7301 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7304 *nto* | *qnx*)
7305 lt_cv_deplibs_check_method=pass_all
7308 openbsd*)
7309 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7311 else
7312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7316 osf3* | osf4* | osf5*)
7317 lt_cv_deplibs_check_method=pass_all
7320 rdos*)
7321 lt_cv_deplibs_check_method=pass_all
7324 solaris*)
7325 lt_cv_deplibs_check_method=pass_all
7328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7329 lt_cv_deplibs_check_method=pass_all
7332 sysv4 | sysv4.3*)
7333 case $host_vendor in
7334 motorola)
7335 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]'
7336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7338 ncr)
7339 lt_cv_deplibs_check_method=pass_all
7341 sequent)
7342 lt_cv_file_magic_cmd='/bin/file'
7343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7345 sni)
7346 lt_cv_file_magic_cmd='/bin/file'
7347 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7348 lt_cv_file_magic_test_file=/lib/libc.so
7350 siemens)
7351 lt_cv_deplibs_check_method=pass_all
7354 lt_cv_deplibs_check_method=pass_all
7356 esac
7359 tpf*)
7360 lt_cv_deplibs_check_method=pass_all
7362 esac
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7366 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7368 file_magic_glob=
7369 want_nocaseglob=no
7370 if test "$build" = "$host"; then
7371 case $host_os in
7372 mingw* | pw32*)
7373 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7374 want_nocaseglob=yes
7375 else
7376 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7379 esac
7382 file_magic_cmd=$lt_cv_file_magic_cmd
7383 deplibs_check_method=$lt_cv_deplibs_check_method
7384 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_DLLTOOL+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 if test -n "$DLLTOOL"; then
7416 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7429 done
7430 done
7431 IFS=$as_save_IFS
7435 DLLTOOL=$ac_cv_prog_DLLTOOL
7436 if test -n "$DLLTOOL"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7438 $as_echo "$DLLTOOL" >&6; }
7439 else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7446 if test -z "$ac_cv_prog_DLLTOOL"; then
7447 ac_ct_DLLTOOL=$DLLTOOL
7448 # Extract the first word of "dlltool", so it can be a program name with args.
7449 set dummy dlltool; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 if test -n "$ac_ct_DLLTOOL"; then
7456 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7469 done
7470 done
7471 IFS=$as_save_IFS
7475 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7476 if test -n "$ac_ct_DLLTOOL"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7478 $as_echo "$ac_ct_DLLTOOL" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7484 if test "x$ac_ct_DLLTOOL" = x; then
7485 DLLTOOL="false"
7486 else
7487 case $cross_compiling:$ac_tool_warned in
7488 yes:)
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned=yes ;;
7492 esac
7493 DLLTOOL=$ac_ct_DLLTOOL
7495 else
7496 DLLTOOL="$ac_cv_prog_DLLTOOL"
7499 test -z "$DLLTOOL" && DLLTOOL=dlltool
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7508 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7509 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 lt_cv_sharedlib_from_linklib_cmd='unknown'
7514 case $host_os in
7515 cygwin* | mingw* | pw32* | cegcc*)
7516 # two different shell functions defined in ltmain.sh
7517 # decide which to use based on capabilities of $DLLTOOL
7518 case `$DLLTOOL --help 2>&1` in
7519 *--identify-strict*)
7520 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7523 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7525 esac
7528 # fallback: assume linklib IS sharedlib
7529 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7531 esac
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7535 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7536 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7537 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7545 if test -n "$ac_tool_prefix"; then
7546 for ac_prog in ar
7548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_AR+:} false; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 if test -n "$AR"; then
7556 ac_cv_prog_AR="$AR" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 break 2
7569 done
7570 done
7571 IFS=$as_save_IFS
7575 AR=$ac_cv_prog_AR
7576 if test -n "$AR"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7578 $as_echo "$AR" >&6; }
7579 else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7585 test -n "$AR" && break
7586 done
7588 if test -z "$AR"; then
7589 ac_ct_AR=$AR
7590 for ac_prog in ar
7592 # Extract the first word of "$ac_prog", so it can be a program name with args.
7593 set dummy $ac_prog; ac_word=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7599 if test -n "$ac_ct_AR"; then
7600 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7601 else
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7605 IFS=$as_save_IFS
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_prog_ac_ct_AR="$ac_prog"
7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 break 2
7613 done
7614 done
7615 IFS=$as_save_IFS
7619 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7620 if test -n "$ac_ct_AR"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7622 $as_echo "$ac_ct_AR" >&6; }
7623 else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7629 test -n "$ac_ct_AR" && break
7630 done
7632 if test "x$ac_ct_AR" = x; then
7633 AR="false"
7634 else
7635 case $cross_compiling:$ac_tool_warned in
7636 yes:)
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7640 esac
7641 AR=$ac_ct_AR
7645 : ${AR=ar}
7646 : ${AR_FLAGS=cru}
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7659 $as_echo_n "checking for archiver @FILE support... " >&6; }
7660 if ${lt_cv_ar_at_file+:} false; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 lt_cv_ar_at_file=no
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7668 main ()
7672 return 0;
7674 _ACEOF
7675 if ac_fn_c_try_compile "$LINENO"; then :
7676 echo conftest.$ac_objext > conftest.lst
7677 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7679 (eval $lt_ar_try) 2>&5
7680 ac_status=$?
7681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7682 test $ac_status = 0; }
7683 if test "$ac_status" -eq 0; then
7684 # Ensure the archiver fails upon bogus file names.
7685 rm -f conftest.$ac_objext libconftest.a
7686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7687 (eval $lt_ar_try) 2>&5
7688 ac_status=$?
7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7690 test $ac_status = 0; }
7691 if test "$ac_status" -ne 0; then
7692 lt_cv_ar_at_file=@
7695 rm -f conftest.* libconftest.a
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7702 $as_echo "$lt_cv_ar_at_file" >&6; }
7704 if test "x$lt_cv_ar_at_file" = xno; then
7705 archiver_list_spec=
7706 else
7707 archiver_list_spec=$lt_cv_ar_at_file
7716 if test -n "$ac_tool_prefix"; then
7717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7718 set dummy ${ac_tool_prefix}strip; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_STRIP+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$STRIP"; then
7725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7738 done
7739 done
7740 IFS=$as_save_IFS
7744 STRIP=$ac_cv_prog_STRIP
7745 if test -n "$STRIP"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7747 $as_echo "$STRIP" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7755 if test -z "$ac_cv_prog_STRIP"; then
7756 ac_ct_STRIP=$STRIP
7757 # Extract the first word of "strip", so it can be a program name with args.
7758 set dummy strip; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$ac_ct_STRIP"; then
7765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_ac_ct_STRIP="strip"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7778 done
7779 done
7780 IFS=$as_save_IFS
7784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7785 if test -n "$ac_ct_STRIP"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7787 $as_echo "$ac_ct_STRIP" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7793 if test "x$ac_ct_STRIP" = x; then
7794 STRIP=":"
7795 else
7796 case $cross_compiling:$ac_tool_warned in
7797 yes:)
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7800 ac_tool_warned=yes ;;
7801 esac
7802 STRIP=$ac_ct_STRIP
7804 else
7805 STRIP="$ac_cv_prog_STRIP"
7808 test -z "$STRIP" && STRIP=:
7815 if test -n "$ac_tool_prefix"; then
7816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_prog_RANLIB+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 if test -n "$RANLIB"; then
7824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7837 done
7838 done
7839 IFS=$as_save_IFS
7843 RANLIB=$ac_cv_prog_RANLIB
7844 if test -n "$RANLIB"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7846 $as_echo "$RANLIB" >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7854 if test -z "$ac_cv_prog_RANLIB"; then
7855 ac_ct_RANLIB=$RANLIB
7856 # Extract the first word of "ranlib", so it can be a program name with args.
7857 set dummy ranlib; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 if test -n "$ac_ct_RANLIB"; then
7864 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_ac_ct_RANLIB="ranlib"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7877 done
7878 done
7879 IFS=$as_save_IFS
7883 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7884 if test -n "$ac_ct_RANLIB"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7886 $as_echo "$ac_ct_RANLIB" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7892 if test "x$ac_ct_RANLIB" = x; then
7893 RANLIB=":"
7894 else
7895 case $cross_compiling:$ac_tool_warned in
7896 yes:)
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7899 ac_tool_warned=yes ;;
7900 esac
7901 RANLIB=$ac_ct_RANLIB
7903 else
7904 RANLIB="$ac_cv_prog_RANLIB"
7907 test -z "$RANLIB" && RANLIB=:
7914 # Determine commands to create old-style static archives.
7915 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7916 old_postinstall_cmds='chmod 644 $oldlib'
7917 old_postuninstall_cmds=
7919 if test -n "$RANLIB"; then
7920 case $host_os in
7921 openbsd*)
7922 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7925 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7927 esac
7928 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7931 case $host_os in
7932 darwin*)
7933 lock_old_archive_extraction=yes ;;
7935 lock_old_archive_extraction=no ;;
7936 esac
7976 # If no C compiler was specified, use CC.
7977 LTCC=${LTCC-"$CC"}
7979 # If no C compiler flags were specified, use CFLAGS.
7980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7982 # Allow CC to be a program name with arguments.
7983 compiler=$CC
7986 # Check for command to grab the raw symbol name followed by C symbol from nm.
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7988 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7989 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7993 # These are sane defaults that work on at least a few old systems.
7994 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7996 # Character class describing NM global symbol codes.
7997 symcode='[BCDEGRST]'
7999 # Regexp to match symbols that can be accessed directly from C.
8000 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8002 # Define system-specific variables.
8003 case $host_os in
8004 aix*)
8005 symcode='[BCDT]'
8007 cygwin* | mingw* | pw32* | cegcc*)
8008 symcode='[ABCDGISTW]'
8010 hpux*)
8011 if test "$host_cpu" = ia64; then
8012 symcode='[ABCDEGRST]'
8015 irix* | nonstopux*)
8016 symcode='[BCDEGRST]'
8018 osf*)
8019 symcode='[BCDEGQRST]'
8021 solaris*)
8022 symcode='[BDRT]'
8024 sco3.2v5*)
8025 symcode='[DT]'
8027 sysv4.2uw2*)
8028 symcode='[DT]'
8030 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8031 symcode='[ABDT]'
8033 sysv4)
8034 symcode='[DFNSTU]'
8036 esac
8038 # If we're using GNU nm, then use its standard symbol codes.
8039 case `$NM -V 2>&1` in
8040 *GNU* | *'with BFD'*)
8041 symcode='[ABCDGIRSTW]' ;;
8042 esac
8044 # Transform an extracted symbol line into a proper C declaration.
8045 # Some systems (esp. on ia64) link data and code symbols differently,
8046 # so use this general approach.
8047 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8049 # Transform an extracted symbol line into symbol name and symbol address
8050 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8051 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'"
8053 # Handle CRLF in mingw tool chain
8054 opt_cr=
8055 case $build_os in
8056 mingw*)
8057 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8059 esac
8061 # Try without a prefix underscore, then with it.
8062 for ac_symprfx in "" "_"; do
8064 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8065 symxfrm="\\1 $ac_symprfx\\2 \\2"
8067 # Write the raw and C identifiers.
8068 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8069 # Fake it for dumpbin and say T for any non-static function
8070 # and D for any global variable.
8071 # Also find C++ and __fastcall symbols from MSVC++,
8072 # which start with @ or ?.
8073 lt_cv_sys_global_symbol_pipe="$AWK '"\
8074 " {last_section=section; section=\$ 3};"\
8075 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8076 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8077 " \$ 0!~/External *\|/{next};"\
8078 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8079 " {if(hide[section]) next};"\
8080 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8081 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8082 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8083 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8084 " ' prfx=^$ac_symprfx"
8085 else
8086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8088 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8090 # Check to see that the pipe works correctly.
8091 pipe_works=no
8093 rm -f conftest*
8094 cat > conftest.$ac_ext <<_LT_EOF
8095 #ifdef __cplusplus
8096 extern "C" {
8097 #endif
8098 char nm_test_var;
8099 void nm_test_func(void);
8100 void nm_test_func(void){}
8101 #ifdef __cplusplus
8103 #endif
8104 int main(){nm_test_var='a';nm_test_func();return(0);}
8105 _LT_EOF
8107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8108 (eval $ac_compile) 2>&5
8109 ac_status=$?
8110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8111 test $ac_status = 0; }; then
8112 # Now try to grab the symbols.
8113 nlist=conftest.nm
8114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8115 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8116 ac_status=$?
8117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8118 test $ac_status = 0; } && test -s "$nlist"; then
8119 # Try sorting and uniquifying the output.
8120 if sort "$nlist" | uniq > "$nlist"T; then
8121 mv -f "$nlist"T "$nlist"
8122 else
8123 rm -f "$nlist"T
8126 # Make sure that we snagged all the symbols we need.
8127 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8128 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8129 cat <<_LT_EOF > conftest.$ac_ext
8130 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8131 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8132 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8133 relocations are performed -- see ld's documentation on pseudo-relocs. */
8134 # define LT_DLSYM_CONST
8135 #elif defined(__osf__)
8136 /* This system does not cope well with relocations in const data. */
8137 # define LT_DLSYM_CONST
8138 #else
8139 # define LT_DLSYM_CONST const
8140 #endif
8142 #ifdef __cplusplus
8143 extern "C" {
8144 #endif
8146 _LT_EOF
8147 # Now generate the symbol file.
8148 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8150 cat <<_LT_EOF >> conftest.$ac_ext
8152 /* The mapping between symbol names and symbols. */
8153 LT_DLSYM_CONST struct {
8154 const char *name;
8155 void *address;
8157 lt__PROGRAM__LTX_preloaded_symbols[] =
8159 { "@PROGRAM@", (void *) 0 },
8160 _LT_EOF
8161 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8162 cat <<\_LT_EOF >> conftest.$ac_ext
8163 {0, (void *) 0}
8166 /* This works around a problem in FreeBSD linker */
8167 #ifdef FREEBSD_WORKAROUND
8168 static const void *lt_preloaded_setup() {
8169 return lt__PROGRAM__LTX_preloaded_symbols;
8171 #endif
8173 #ifdef __cplusplus
8175 #endif
8176 _LT_EOF
8177 # Now try linking the two files.
8178 mv conftest.$ac_objext conftstm.$ac_objext
8179 lt_globsym_save_LIBS=$LIBS
8180 lt_globsym_save_CFLAGS=$CFLAGS
8181 LIBS="conftstm.$ac_objext"
8182 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8184 (eval $ac_link) 2>&5
8185 ac_status=$?
8186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8187 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8188 pipe_works=yes
8190 LIBS=$lt_globsym_save_LIBS
8191 CFLAGS=$lt_globsym_save_CFLAGS
8192 else
8193 echo "cannot find nm_test_func in $nlist" >&5
8195 else
8196 echo "cannot find nm_test_var in $nlist" >&5
8198 else
8199 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8201 else
8202 echo "$progname: failed program was:" >&5
8203 cat conftest.$ac_ext >&5
8205 rm -rf conftest* conftst*
8207 # Do not use the global_symbol_pipe unless it works.
8208 if test "$pipe_works" = yes; then
8209 break
8210 else
8211 lt_cv_sys_global_symbol_pipe=
8213 done
8217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8218 lt_cv_sys_global_symbol_to_cdecl=
8220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8222 $as_echo "failed" >&6; }
8223 else
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8225 $as_echo "ok" >&6; }
8228 # Response file support.
8229 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8230 nm_file_list_spec='@'
8231 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8232 nm_file_list_spec='@'
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8262 $as_echo_n "checking for sysroot... " >&6; }
8264 # Check whether --with-sysroot was given.
8265 if test "${with_sysroot+set}" = set; then :
8266 withval=$with_sysroot;
8267 else
8268 with_sysroot=no
8272 lt_sysroot=
8273 case ${with_sysroot} in #(
8274 yes)
8275 if test "$GCC" = yes; then
8276 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8278 ;; #(
8280 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8281 ;; #(
8282 no|'')
8283 ;; #(
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8286 $as_echo "${with_sysroot}" >&6; }
8287 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8289 esac
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8292 $as_echo "${lt_sysroot:-no}" >&6; }
8298 # Check whether --enable-libtool-lock was given.
8299 if test "${enable_libtool_lock+set}" = set; then :
8300 enableval=$enable_libtool_lock;
8303 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8305 # Some flags need to be propagated to the compiler or linker for good
8306 # libtool support.
8307 case $host in
8308 ia64-*-hpux*)
8309 # Find out which ABI we are using.
8310 echo 'int i;' > conftest.$ac_ext
8311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8312 (eval $ac_compile) 2>&5
8313 ac_status=$?
8314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8315 test $ac_status = 0; }; then
8316 case `/usr/bin/file conftest.$ac_objext` in
8317 *ELF-32*)
8318 HPUX_IA64_MODE="32"
8320 *ELF-64*)
8321 HPUX_IA64_MODE="64"
8323 esac
8325 rm -rf conftest*
8327 *-*-irix6*)
8328 # Find out which ABI we are using.
8329 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8331 (eval $ac_compile) 2>&5
8332 ac_status=$?
8333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8334 test $ac_status = 0; }; then
8335 if test "$lt_cv_prog_gnu_ld" = yes; then
8336 case `/usr/bin/file conftest.$ac_objext` in
8337 *32-bit*)
8338 LD="${LD-ld} -melf32bsmip"
8340 *N32*)
8341 LD="${LD-ld} -melf32bmipn32"
8343 *64-bit*)
8344 LD="${LD-ld} -melf64bmip"
8346 esac
8347 else
8348 case `/usr/bin/file conftest.$ac_objext` in
8349 *32-bit*)
8350 LD="${LD-ld} -32"
8352 *N32*)
8353 LD="${LD-ld} -n32"
8355 *64-bit*)
8356 LD="${LD-ld} -64"
8358 esac
8361 rm -rf conftest*
8364 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8365 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8366 # Find out which ABI we are using.
8367 echo 'int i;' > conftest.$ac_ext
8368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8369 (eval $ac_compile) 2>&5
8370 ac_status=$?
8371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8372 test $ac_status = 0; }; then
8373 case `/usr/bin/file conftest.o` in
8374 *32-bit*)
8375 case $host in
8376 x86_64-*kfreebsd*-gnu)
8377 LD="${LD-ld} -m elf_i386_fbsd"
8379 x86_64-*linux*)
8380 case `/usr/bin/file conftest.o` in
8381 *x86-64*)
8382 LD="${LD-ld} -m elf32_x86_64"
8385 LD="${LD-ld} -m elf_i386"
8387 esac
8389 powerpc64le-*)
8390 LD="${LD-ld} -m elf32lppclinux"
8392 powerpc64-*)
8393 LD="${LD-ld} -m elf32ppclinux"
8395 s390x-*linux*)
8396 LD="${LD-ld} -m elf_s390"
8398 sparc64-*linux*)
8399 LD="${LD-ld} -m elf32_sparc"
8401 esac
8403 *64-bit*)
8404 case $host in
8405 x86_64-*kfreebsd*-gnu)
8406 LD="${LD-ld} -m elf_x86_64_fbsd"
8408 x86_64-*linux*)
8409 LD="${LD-ld} -m elf_x86_64"
8411 powerpcle-*)
8412 LD="${LD-ld} -m elf64lppc"
8414 powerpc-*)
8415 LD="${LD-ld} -m elf64ppc"
8417 s390*-*linux*|s390*-*tpf*)
8418 LD="${LD-ld} -m elf64_s390"
8420 sparc*-*linux*)
8421 LD="${LD-ld} -m elf64_sparc"
8423 esac
8425 esac
8427 rm -rf conftest*
8430 *-*-sco3.2v5*)
8431 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8432 SAVE_CFLAGS="$CFLAGS"
8433 CFLAGS="$CFLAGS -belf"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8435 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8436 if ${lt_cv_cc_needs_belf+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438 else
8439 ac_ext=c
8440 ac_cpp='$CPP $CPPFLAGS'
8441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8449 main ()
8453 return 0;
8455 _ACEOF
8456 if ac_fn_c_try_link "$LINENO"; then :
8457 lt_cv_cc_needs_belf=yes
8458 else
8459 lt_cv_cc_needs_belf=no
8461 rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8463 ac_ext=c
8464 ac_cpp='$CPP $CPPFLAGS'
8465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8471 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8472 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8473 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8474 CFLAGS="$SAVE_CFLAGS"
8477 *-*solaris*)
8478 # Find out which ABI we are using.
8479 echo 'int i;' > conftest.$ac_ext
8480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8481 (eval $ac_compile) 2>&5
8482 ac_status=$?
8483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8484 test $ac_status = 0; }; then
8485 case `/usr/bin/file conftest.o` in
8486 *64-bit*)
8487 case $lt_cv_prog_gnu_ld in
8488 yes*)
8489 case $host in
8490 i?86-*-solaris*)
8491 LD="${LD-ld} -m elf_x86_64"
8493 sparc*-*-solaris*)
8494 LD="${LD-ld} -m elf64_sparc"
8496 esac
8497 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8498 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8499 LD="${LD-ld}_sol2"
8503 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8504 LD="${LD-ld} -64"
8507 esac
8509 esac
8511 rm -rf conftest*
8513 esac
8515 need_locks="$enable_libtool_lock"
8517 if test -n "$ac_tool_prefix"; then
8518 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8519 set dummy ${ac_tool_prefix}mt; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 if test -n "$MANIFEST_TOOL"; then
8526 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8535 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 break 2
8539 done
8540 done
8541 IFS=$as_save_IFS
8545 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8546 if test -n "$MANIFEST_TOOL"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8548 $as_echo "$MANIFEST_TOOL" >&6; }
8549 else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8556 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8557 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8558 # Extract the first word of "mt", so it can be a program name with args.
8559 set dummy mt; ac_word=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561 $as_echo_n "checking for $ac_word... " >&6; }
8562 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 if test -n "$ac_ct_MANIFEST_TOOL"; then
8566 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8567 else
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8579 done
8580 done
8581 IFS=$as_save_IFS
8585 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8586 if test -n "$ac_ct_MANIFEST_TOOL"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8588 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8594 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8595 MANIFEST_TOOL=":"
8596 else
8597 case $cross_compiling:$ac_tool_warned in
8598 yes:)
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8601 ac_tool_warned=yes ;;
8602 esac
8603 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8605 else
8606 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8609 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8611 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8612 if ${lt_cv_path_mainfest_tool+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 lt_cv_path_mainfest_tool=no
8616 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8617 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8618 cat conftest.err >&5
8619 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8620 lt_cv_path_mainfest_tool=yes
8622 rm -f conftest*
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8625 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8626 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8627 MANIFEST_TOOL=:
8635 case $host_os in
8636 rhapsody* | darwin*)
8637 if test -n "$ac_tool_prefix"; then
8638 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8639 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645 if test -n "$DSYMUTIL"; then
8646 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8647 else
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8659 done
8660 done
8661 IFS=$as_save_IFS
8665 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8666 if test -n "$DSYMUTIL"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8668 $as_echo "$DSYMUTIL" >&6; }
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8676 if test -z "$ac_cv_prog_DSYMUTIL"; then
8677 ac_ct_DSYMUTIL=$DSYMUTIL
8678 # Extract the first word of "dsymutil", so it can be a program name with args.
8679 set dummy dsymutil; ac_word=$2
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681 $as_echo_n "checking for $ac_word... " >&6; }
8682 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 if test -n "$ac_ct_DSYMUTIL"; then
8686 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8687 else
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 for as_dir in $PATH
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697 break 2
8699 done
8700 done
8701 IFS=$as_save_IFS
8705 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8706 if test -n "$ac_ct_DSYMUTIL"; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8708 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8709 else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8714 if test "x$ac_ct_DSYMUTIL" = x; then
8715 DSYMUTIL=":"
8716 else
8717 case $cross_compiling:$ac_tool_warned in
8718 yes:)
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8721 ac_tool_warned=yes ;;
8722 esac
8723 DSYMUTIL=$ac_ct_DSYMUTIL
8725 else
8726 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8729 if test -n "$ac_tool_prefix"; then
8730 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8731 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_NMEDIT+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 if test -n "$NMEDIT"; then
8738 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 break 2
8751 done
8752 done
8753 IFS=$as_save_IFS
8757 NMEDIT=$ac_cv_prog_NMEDIT
8758 if test -n "$NMEDIT"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8760 $as_echo "$NMEDIT" >&6; }
8761 else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8768 if test -z "$ac_cv_prog_NMEDIT"; then
8769 ac_ct_NMEDIT=$NMEDIT
8770 # Extract the first word of "nmedit", so it can be a program name with args.
8771 set dummy nmedit; ac_word=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 $as_echo_n "checking for $ac_word... " >&6; }
8774 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 if test -n "$ac_ct_NMEDIT"; then
8778 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8779 else
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8783 IFS=$as_save_IFS
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 break 2
8791 done
8792 done
8793 IFS=$as_save_IFS
8797 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8798 if test -n "$ac_ct_NMEDIT"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8800 $as_echo "$ac_ct_NMEDIT" >&6; }
8801 else
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8806 if test "x$ac_ct_NMEDIT" = x; then
8807 NMEDIT=":"
8808 else
8809 case $cross_compiling:$ac_tool_warned in
8810 yes:)
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8813 ac_tool_warned=yes ;;
8814 esac
8815 NMEDIT=$ac_ct_NMEDIT
8817 else
8818 NMEDIT="$ac_cv_prog_NMEDIT"
8821 if test -n "$ac_tool_prefix"; then
8822 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8823 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if ${ac_cv_prog_LIPO+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 if test -n "$LIPO"; then
8830 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8843 done
8844 done
8845 IFS=$as_save_IFS
8849 LIPO=$ac_cv_prog_LIPO
8850 if test -n "$LIPO"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8852 $as_echo "$LIPO" >&6; }
8853 else
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8860 if test -z "$ac_cv_prog_LIPO"; then
8861 ac_ct_LIPO=$LIPO
8862 # Extract the first word of "lipo", so it can be a program name with args.
8863 set dummy lipo; ac_word=$2
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865 $as_echo_n "checking for $ac_word... " >&6; }
8866 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 if test -n "$ac_ct_LIPO"; then
8870 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8871 else
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8879 ac_cv_prog_ac_ct_LIPO="lipo"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 break 2
8883 done
8884 done
8885 IFS=$as_save_IFS
8889 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8890 if test -n "$ac_ct_LIPO"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8892 $as_echo "$ac_ct_LIPO" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8898 if test "x$ac_ct_LIPO" = x; then
8899 LIPO=":"
8900 else
8901 case $cross_compiling:$ac_tool_warned in
8902 yes:)
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8905 ac_tool_warned=yes ;;
8906 esac
8907 LIPO=$ac_ct_LIPO
8909 else
8910 LIPO="$ac_cv_prog_LIPO"
8913 if test -n "$ac_tool_prefix"; then
8914 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8915 set dummy ${ac_tool_prefix}otool; ac_word=$2
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917 $as_echo_n "checking for $ac_word... " >&6; }
8918 if ${ac_cv_prog_OTOOL+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 if test -n "$OTOOL"; then
8922 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8923 else
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 for as_dir in $PATH
8927 IFS=$as_save_IFS
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
8930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 break 2
8935 done
8936 done
8937 IFS=$as_save_IFS
8941 OTOOL=$ac_cv_prog_OTOOL
8942 if test -n "$OTOOL"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8944 $as_echo "$OTOOL" >&6; }
8945 else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8952 if test -z "$ac_cv_prog_OTOOL"; then
8953 ac_ct_OTOOL=$OTOOL
8954 # Extract the first word of "otool", so it can be a program name with args.
8955 set dummy otool; ac_word=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 if test -n "$ac_ct_OTOOL"; then
8962 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8963 else
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971 ac_cv_prog_ac_ct_OTOOL="otool"
8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8975 done
8976 done
8977 IFS=$as_save_IFS
8981 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8982 if test -n "$ac_ct_OTOOL"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8984 $as_echo "$ac_ct_OTOOL" >&6; }
8985 else
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8990 if test "x$ac_ct_OTOOL" = x; then
8991 OTOOL=":"
8992 else
8993 case $cross_compiling:$ac_tool_warned in
8994 yes:)
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8997 ac_tool_warned=yes ;;
8998 esac
8999 OTOOL=$ac_ct_OTOOL
9001 else
9002 OTOOL="$ac_cv_prog_OTOOL"
9005 if test -n "$ac_tool_prefix"; then
9006 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9007 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9009 $as_echo_n "checking for $ac_word... " >&6; }
9010 if ${ac_cv_prog_OTOOL64+:} false; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 if test -n "$OTOOL64"; then
9014 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9015 else
9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9019 IFS=$as_save_IFS
9020 test -z "$as_dir" && as_dir=.
9021 for ac_exec_ext in '' $ac_executable_extensions; do
9022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025 break 2
9027 done
9028 done
9029 IFS=$as_save_IFS
9033 OTOOL64=$ac_cv_prog_OTOOL64
9034 if test -n "$OTOOL64"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9036 $as_echo "$OTOOL64" >&6; }
9037 else
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039 $as_echo "no" >&6; }
9044 if test -z "$ac_cv_prog_OTOOL64"; then
9045 ac_ct_OTOOL64=$OTOOL64
9046 # Extract the first word of "otool64", so it can be a program name with args.
9047 set dummy otool64; ac_word=$2
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049 $as_echo_n "checking for $ac_word... " >&6; }
9050 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 if test -n "$ac_ct_OTOOL64"; then
9054 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9055 else
9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in $PATH
9059 IFS=$as_save_IFS
9060 test -z "$as_dir" && as_dir=.
9061 for ac_exec_ext in '' $ac_executable_extensions; do
9062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9063 ac_cv_prog_ac_ct_OTOOL64="otool64"
9064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9065 break 2
9067 done
9068 done
9069 IFS=$as_save_IFS
9073 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9074 if test -n "$ac_ct_OTOOL64"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9076 $as_echo "$ac_ct_OTOOL64" >&6; }
9077 else
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9082 if test "x$ac_ct_OTOOL64" = x; then
9083 OTOOL64=":"
9084 else
9085 case $cross_compiling:$ac_tool_warned in
9086 yes:)
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9089 ac_tool_warned=yes ;;
9090 esac
9091 OTOOL64=$ac_ct_OTOOL64
9093 else
9094 OTOOL64="$ac_cv_prog_OTOOL64"
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9124 $as_echo_n "checking for -single_module linker flag... " >&6; }
9125 if ${lt_cv_apple_cc_single_mod+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 lt_cv_apple_cc_single_mod=no
9129 if test -z "${LT_MULTI_MODULE}"; then
9130 # By default we will add the -single_module flag. You can override
9131 # by either setting the environment variable LT_MULTI_MODULE
9132 # non-empty at configure time, or by adding -multi_module to the
9133 # link flags.
9134 rm -rf libconftest.dylib*
9135 echo "int foo(void){return 1;}" > conftest.c
9136 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9137 -dynamiclib -Wl,-single_module conftest.c" >&5
9138 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9139 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9140 _lt_result=$?
9141 # If there is a non-empty error log, and "single_module"
9142 # appears in it, assume the flag caused a linker warning
9143 if test -s conftest.err && $GREP single_module conftest.err; then
9144 cat conftest.err >&5
9145 # Otherwise, if the output was created with a 0 exit code from
9146 # the compiler, it worked.
9147 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9148 lt_cv_apple_cc_single_mod=yes
9149 else
9150 cat conftest.err >&5
9152 rm -rf libconftest.dylib*
9153 rm -f conftest.*
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9157 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9160 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9161 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 lt_cv_ld_exported_symbols_list=no
9165 save_LDFLAGS=$LDFLAGS
9166 echo "_main" > conftest.sym
9167 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9172 main ()
9176 return 0;
9178 _ACEOF
9179 if ac_fn_c_try_link "$LINENO"; then :
9180 lt_cv_ld_exported_symbols_list=yes
9181 else
9182 lt_cv_ld_exported_symbols_list=no
9184 rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9186 LDFLAGS="$save_LDFLAGS"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9190 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9193 $as_echo_n "checking for -force_load linker flag... " >&6; }
9194 if ${lt_cv_ld_force_load+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 lt_cv_ld_force_load=no
9198 cat > conftest.c << _LT_EOF
9199 int forced_loaded() { return 2;}
9200 _LT_EOF
9201 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9202 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9203 echo "$AR cru libconftest.a conftest.o" >&5
9204 $AR cru libconftest.a conftest.o 2>&5
9205 echo "$RANLIB libconftest.a" >&5
9206 $RANLIB libconftest.a 2>&5
9207 cat > conftest.c << _LT_EOF
9208 int main() { return 0;}
9209 _LT_EOF
9210 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9211 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9212 _lt_result=$?
9213 if test -s conftest.err && $GREP force_load conftest.err; then
9214 cat conftest.err >&5
9215 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9216 lt_cv_ld_force_load=yes
9217 else
9218 cat conftest.err >&5
9220 rm -f conftest.err libconftest.a conftest conftest.c
9221 rm -rf conftest.dSYM
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9225 $as_echo "$lt_cv_ld_force_load" >&6; }
9226 case $host_os in
9227 rhapsody* | darwin1.[012])
9228 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9229 darwin1.*)
9230 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9231 darwin*) # darwin 5.x on
9232 # if running on 10.5 or later, the deployment target defaults
9233 # to the OS version, if on x86, and 10.4, the deployment
9234 # target defaults to 10.4. Don't you love it?
9235 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9236 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9237 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9238 10.[012]*)
9239 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9240 10.*)
9241 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9242 esac
9244 esac
9245 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9246 _lt_dar_single_mod='$single_module'
9248 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9249 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9250 else
9251 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9253 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9254 _lt_dsymutil='~$DSYMUTIL $lib || :'
9255 else
9256 _lt_dsymutil=
9259 esac
9261 for ac_header in dlfcn.h
9262 do :
9263 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9265 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9266 cat >>confdefs.h <<_ACEOF
9267 #define HAVE_DLFCN_H 1
9268 _ACEOF
9272 done
9278 # Set options
9279 enable_win32_dll=yes
9281 case $host in
9282 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9283 if test -n "$ac_tool_prefix"; then
9284 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9285 set dummy ${ac_tool_prefix}as; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if ${ac_cv_prog_AS+:} false; then :
9289 $as_echo_n "(cached) " >&6
9290 else
9291 if test -n "$AS"; then
9292 ac_cv_prog_AS="$AS" # Let the user override the test.
9293 else
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in $PATH
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9301 ac_cv_prog_AS="${ac_tool_prefix}as"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9305 done
9306 done
9307 IFS=$as_save_IFS
9311 AS=$ac_cv_prog_AS
9312 if test -n "$AS"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9314 $as_echo "$AS" >&6; }
9315 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9322 if test -z "$ac_cv_prog_AS"; then
9323 ac_ct_AS=$AS
9324 # Extract the first word of "as", so it can be a program name with args.
9325 set dummy as; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9329 $as_echo_n "(cached) " >&6
9330 else
9331 if test -n "$ac_ct_AS"; then
9332 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9333 else
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in $PATH
9337 IFS=$as_save_IFS
9338 test -z "$as_dir" && as_dir=.
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9341 ac_cv_prog_ac_ct_AS="as"
9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 break 2
9345 done
9346 done
9347 IFS=$as_save_IFS
9351 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9352 if test -n "$ac_ct_AS"; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9354 $as_echo "$ac_ct_AS" >&6; }
9355 else
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9360 if test "x$ac_ct_AS" = x; then
9361 AS="false"
9362 else
9363 case $cross_compiling:$ac_tool_warned in
9364 yes:)
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9367 ac_tool_warned=yes ;;
9368 esac
9369 AS=$ac_ct_AS
9371 else
9372 AS="$ac_cv_prog_AS"
9375 if test -n "$ac_tool_prefix"; then
9376 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9377 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9379 $as_echo_n "checking for $ac_word... " >&6; }
9380 if ${ac_cv_prog_DLLTOOL+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 if test -n "$DLLTOOL"; then
9384 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9385 else
9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387 for as_dir in $PATH
9389 IFS=$as_save_IFS
9390 test -z "$as_dir" && as_dir=.
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9393 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9395 break 2
9397 done
9398 done
9399 IFS=$as_save_IFS
9403 DLLTOOL=$ac_cv_prog_DLLTOOL
9404 if test -n "$DLLTOOL"; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9406 $as_echo "$DLLTOOL" >&6; }
9407 else
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9409 $as_echo "no" >&6; }
9414 if test -z "$ac_cv_prog_DLLTOOL"; then
9415 ac_ct_DLLTOOL=$DLLTOOL
9416 # Extract the first word of "dlltool", so it can be a program name with args.
9417 set dummy dlltool; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 if test -n "$ac_ct_DLLTOOL"; then
9424 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9425 else
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9433 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9437 done
9438 done
9439 IFS=$as_save_IFS
9443 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9444 if test -n "$ac_ct_DLLTOOL"; then
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9446 $as_echo "$ac_ct_DLLTOOL" >&6; }
9447 else
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449 $as_echo "no" >&6; }
9452 if test "x$ac_ct_DLLTOOL" = x; then
9453 DLLTOOL="false"
9454 else
9455 case $cross_compiling:$ac_tool_warned in
9456 yes:)
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9459 ac_tool_warned=yes ;;
9460 esac
9461 DLLTOOL=$ac_ct_DLLTOOL
9463 else
9464 DLLTOOL="$ac_cv_prog_DLLTOOL"
9467 if test -n "$ac_tool_prefix"; then
9468 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9469 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9471 $as_echo_n "checking for $ac_word... " >&6; }
9472 if ${ac_cv_prog_OBJDUMP+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 if test -n "$OBJDUMP"; then
9476 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9477 else
9478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 for as_dir in $PATH
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9485 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9489 done
9490 done
9491 IFS=$as_save_IFS
9495 OBJDUMP=$ac_cv_prog_OBJDUMP
9496 if test -n "$OBJDUMP"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9498 $as_echo "$OBJDUMP" >&6; }
9499 else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9506 if test -z "$ac_cv_prog_OBJDUMP"; then
9507 ac_ct_OBJDUMP=$OBJDUMP
9508 # Extract the first word of "objdump", so it can be a program name with args.
9509 set dummy objdump; ac_word=$2
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511 $as_echo_n "checking for $ac_word... " >&6; }
9512 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 if test -n "$ac_ct_OBJDUMP"; then
9516 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9517 else
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in $PATH
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9525 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9529 done
9530 done
9531 IFS=$as_save_IFS
9535 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9536 if test -n "$ac_ct_OBJDUMP"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9538 $as_echo "$ac_ct_OBJDUMP" >&6; }
9539 else
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9544 if test "x$ac_ct_OBJDUMP" = x; then
9545 OBJDUMP="false"
9546 else
9547 case $cross_compiling:$ac_tool_warned in
9548 yes:)
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9551 ac_tool_warned=yes ;;
9552 esac
9553 OBJDUMP=$ac_ct_OBJDUMP
9555 else
9556 OBJDUMP="$ac_cv_prog_OBJDUMP"
9560 esac
9562 test -z "$AS" && AS=as
9568 test -z "$DLLTOOL" && DLLTOOL=dlltool
9574 test -z "$OBJDUMP" && OBJDUMP=objdump
9582 enable_dlopen=no
9586 # Check whether --enable-shared was given.
9587 if test "${enable_shared+set}" = set; then :
9588 enableval=$enable_shared; p=${PACKAGE-default}
9589 case $enableval in
9590 yes) enable_shared=yes ;;
9591 no) enable_shared=no ;;
9593 enable_shared=no
9594 # Look at the argument we got. We use all the common list separators.
9595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9596 for pkg in $enableval; do
9597 IFS="$lt_save_ifs"
9598 if test "X$pkg" = "X$p"; then
9599 enable_shared=yes
9601 done
9602 IFS="$lt_save_ifs"
9604 esac
9605 else
9606 enable_shared=yes
9617 # Check whether --enable-static was given.
9618 if test "${enable_static+set}" = set; then :
9619 enableval=$enable_static; p=${PACKAGE-default}
9620 case $enableval in
9621 yes) enable_static=yes ;;
9622 no) enable_static=no ;;
9624 enable_static=no
9625 # Look at the argument we got. We use all the common list separators.
9626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9627 for pkg in $enableval; do
9628 IFS="$lt_save_ifs"
9629 if test "X$pkg" = "X$p"; then
9630 enable_static=yes
9632 done
9633 IFS="$lt_save_ifs"
9635 esac
9636 else
9637 enable_static=yes
9649 # Check whether --with-pic was given.
9650 if test "${with_pic+set}" = set; then :
9651 withval=$with_pic; lt_p=${PACKAGE-default}
9652 case $withval in
9653 yes|no) pic_mode=$withval ;;
9655 pic_mode=default
9656 # Look at the argument we got. We use all the common list separators.
9657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9658 for lt_pkg in $withval; do
9659 IFS="$lt_save_ifs"
9660 if test "X$lt_pkg" = "X$lt_p"; then
9661 pic_mode=yes
9663 done
9664 IFS="$lt_save_ifs"
9666 esac
9667 else
9668 pic_mode=default
9672 test -z "$pic_mode" && pic_mode=default
9680 # Check whether --enable-fast-install was given.
9681 if test "${enable_fast_install+set}" = set; then :
9682 enableval=$enable_fast_install; p=${PACKAGE-default}
9683 case $enableval in
9684 yes) enable_fast_install=yes ;;
9685 no) enable_fast_install=no ;;
9687 enable_fast_install=no
9688 # Look at the argument we got. We use all the common list separators.
9689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9690 for pkg in $enableval; do
9691 IFS="$lt_save_ifs"
9692 if test "X$pkg" = "X$p"; then
9693 enable_fast_install=yes
9695 done
9696 IFS="$lt_save_ifs"
9698 esac
9699 else
9700 enable_fast_install=yes
9713 # This can be used to rebuild libtool when needed
9714 LIBTOOL_DEPS="$ltmain"
9716 # Always use our own libtool.
9717 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9748 test -z "$LN_S" && LN_S="ln -s"
9763 if test -n "${ZSH_VERSION+set}" ; then
9764 setopt NO_GLOB_SUBST
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9768 $as_echo_n "checking for objdir... " >&6; }
9769 if ${lt_cv_objdir+:} false; then :
9770 $as_echo_n "(cached) " >&6
9771 else
9772 rm -f .libs 2>/dev/null
9773 mkdir .libs 2>/dev/null
9774 if test -d .libs; then
9775 lt_cv_objdir=.libs
9776 else
9777 # MS-DOS does not allow filenames that begin with a dot.
9778 lt_cv_objdir=_libs
9780 rmdir .libs 2>/dev/null
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9783 $as_echo "$lt_cv_objdir" >&6; }
9784 objdir=$lt_cv_objdir
9790 cat >>confdefs.h <<_ACEOF
9791 #define LT_OBJDIR "$lt_cv_objdir/"
9792 _ACEOF
9797 case $host_os in
9798 aix3*)
9799 # AIX sometimes has problems with the GCC collect2 program. For some
9800 # reason, if we set the COLLECT_NAMES environment variable, the problems
9801 # vanish in a puff of smoke.
9802 if test "X${COLLECT_NAMES+set}" != Xset; then
9803 COLLECT_NAMES=
9804 export COLLECT_NAMES
9807 esac
9809 # Global variables:
9810 ofile=libtool
9811 can_build_shared=yes
9813 # All known linkers require a `.a' archive for static linking (except MSVC,
9814 # which needs '.lib').
9815 libext=a
9817 with_gnu_ld="$lt_cv_prog_gnu_ld"
9819 old_CC="$CC"
9820 old_CFLAGS="$CFLAGS"
9822 # Set sane defaults for various variables
9823 test -z "$CC" && CC=cc
9824 test -z "$LTCC" && LTCC=$CC
9825 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9826 test -z "$LD" && LD=ld
9827 test -z "$ac_objext" && ac_objext=o
9829 for cc_temp in $compiler""; do
9830 case $cc_temp in
9831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9833 \-*) ;;
9834 *) break;;
9835 esac
9836 done
9837 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9840 # Only perform the check for file, if the check method requires it
9841 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9842 case $deplibs_check_method in
9843 file_magic*)
9844 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9846 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9847 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 case $MAGIC_CMD in
9851 [\\/*] | ?:[\\/]*)
9852 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9855 lt_save_MAGIC_CMD="$MAGIC_CMD"
9856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9857 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9858 for ac_dir in $ac_dummy; do
9859 IFS="$lt_save_ifs"
9860 test -z "$ac_dir" && ac_dir=.
9861 if test -f $ac_dir/${ac_tool_prefix}file; then
9862 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9863 if test -n "$file_magic_test_file"; then
9864 case $deplibs_check_method in
9865 "file_magic "*)
9866 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9868 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9869 $EGREP "$file_magic_regex" > /dev/null; then
9871 else
9872 cat <<_LT_EOF 1>&2
9874 *** Warning: the command libtool uses to detect shared libraries,
9875 *** $file_magic_cmd, produces output that libtool cannot recognize.
9876 *** The result is that libtool may fail to recognize shared libraries
9877 *** as such. This will affect the creation of libtool libraries that
9878 *** depend on shared libraries, but programs linked with such libtool
9879 *** libraries will work regardless of this problem. Nevertheless, you
9880 *** may want to report the problem to your system manager and/or to
9881 *** bug-libtool@gnu.org
9883 _LT_EOF
9884 fi ;;
9885 esac
9887 break
9889 done
9890 IFS="$lt_save_ifs"
9891 MAGIC_CMD="$lt_save_MAGIC_CMD"
9893 esac
9896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9897 if test -n "$MAGIC_CMD"; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9899 $as_echo "$MAGIC_CMD" >&6; }
9900 else
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902 $as_echo "no" >&6; }
9909 if test -z "$lt_cv_path_MAGIC_CMD"; then
9910 if test -n "$ac_tool_prefix"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9912 $as_echo_n "checking for file... " >&6; }
9913 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 case $MAGIC_CMD in
9917 [\\/*] | ?:[\\/]*)
9918 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9921 lt_save_MAGIC_CMD="$MAGIC_CMD"
9922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9923 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9924 for ac_dir in $ac_dummy; do
9925 IFS="$lt_save_ifs"
9926 test -z "$ac_dir" && ac_dir=.
9927 if test -f $ac_dir/file; then
9928 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9929 if test -n "$file_magic_test_file"; then
9930 case $deplibs_check_method in
9931 "file_magic "*)
9932 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9935 $EGREP "$file_magic_regex" > /dev/null; then
9937 else
9938 cat <<_LT_EOF 1>&2
9940 *** Warning: the command libtool uses to detect shared libraries,
9941 *** $file_magic_cmd, produces output that libtool cannot recognize.
9942 *** The result is that libtool may fail to recognize shared libraries
9943 *** as such. This will affect the creation of libtool libraries that
9944 *** depend on shared libraries, but programs linked with such libtool
9945 *** libraries will work regardless of this problem. Nevertheless, you
9946 *** may want to report the problem to your system manager and/or to
9947 *** bug-libtool@gnu.org
9949 _LT_EOF
9950 fi ;;
9951 esac
9953 break
9955 done
9956 IFS="$lt_save_ifs"
9957 MAGIC_CMD="$lt_save_MAGIC_CMD"
9959 esac
9962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9963 if test -n "$MAGIC_CMD"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9965 $as_echo "$MAGIC_CMD" >&6; }
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9972 else
9973 MAGIC_CMD=:
9979 esac
9981 # Use C for the default configuration in the libtool script
9983 lt_save_CC="$CC"
9984 ac_ext=c
9985 ac_cpp='$CPP $CPPFLAGS'
9986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9991 # Source file extension for C test sources.
9992 ac_ext=c
9994 # Object file extension for compiled C test sources.
9995 objext=o
9996 objext=$objext
9998 # Code to be used in simple compile tests
9999 lt_simple_compile_test_code="int some_variable = 0;"
10001 # Code to be used in simple link tests
10002 lt_simple_link_test_code='int main(){return(0);}'
10010 # If no C compiler was specified, use CC.
10011 LTCC=${LTCC-"$CC"}
10013 # If no C compiler flags were specified, use CFLAGS.
10014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10016 # Allow CC to be a program name with arguments.
10017 compiler=$CC
10019 # Save the default compiler, since it gets overwritten when the other
10020 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10021 compiler_DEFAULT=$CC
10023 # save warnings/boilerplate of simple test code
10024 ac_outfile=conftest.$ac_objext
10025 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10026 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10027 _lt_compiler_boilerplate=`cat conftest.err`
10028 $RM conftest*
10030 ac_outfile=conftest.$ac_objext
10031 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10032 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10033 _lt_linker_boilerplate=`cat conftest.err`
10034 $RM -r conftest*
10037 ## CAVEAT EMPTOR:
10038 ## There is no encapsulation within the following macros, do not change
10039 ## the running order or otherwise move them around unless you know exactly
10040 ## what you are doing...
10041 if test -n "$compiler"; then
10043 lt_prog_compiler_no_builtin_flag=
10045 if test "$GCC" = yes; then
10046 case $cc_basename in
10047 nvcc*)
10048 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10050 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10051 esac
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10054 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10055 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10056 $as_echo_n "(cached) " >&6
10057 else
10058 lt_cv_prog_compiler_rtti_exceptions=no
10059 ac_outfile=conftest.$ac_objext
10060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10061 lt_compiler_flag="-fno-rtti -fno-exceptions"
10062 # Insert the option either (1) after the last *FLAGS variable, or
10063 # (2) before a word containing "conftest.", or (3) at the end.
10064 # Note that $ac_compile itself does not contain backslashes and begins
10065 # with a dollar sign (not a hyphen), so the echo should work correctly.
10066 # The option is referenced via a variable to avoid confusing sed.
10067 lt_compile=`echo "$ac_compile" | $SED \
10068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10070 -e 's:$: $lt_compiler_flag:'`
10071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10072 (eval "$lt_compile" 2>conftest.err)
10073 ac_status=$?
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 if (exit $ac_status) && test -s "$ac_outfile"; then
10077 # The compiler can only warn and ignore the option if not recognized
10078 # So say no if there are warnings other than the usual output.
10079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10082 lt_cv_prog_compiler_rtti_exceptions=yes
10085 $RM conftest*
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10089 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10091 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10092 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10093 else
10104 lt_prog_compiler_wl=
10105 lt_prog_compiler_pic=
10106 lt_prog_compiler_static=
10109 if test "$GCC" = yes; then
10110 lt_prog_compiler_wl='-Wl,'
10111 lt_prog_compiler_static='-static'
10113 case $host_os in
10114 aix*)
10115 # All AIX code is PIC.
10116 if test "$host_cpu" = ia64; then
10117 # AIX 5 now supports IA64 processor
10118 lt_prog_compiler_static='-Bstatic'
10122 amigaos*)
10123 case $host_cpu in
10124 powerpc)
10125 # see comment about AmigaOS4 .so support
10126 lt_prog_compiler_pic='-fPIC'
10128 m68k)
10129 # FIXME: we need at least 68020 code to build shared libraries, but
10130 # adding the `-m68020' flag to GCC prevents building anything better,
10131 # like `-m68040'.
10132 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10134 esac
10137 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10138 # PIC is the default for these OSes.
10141 mingw* | cygwin* | pw32* | os2* | cegcc*)
10142 # This hack is so that the source file can tell whether it is being
10143 # built for inclusion in a dll (and should export symbols for example).
10144 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10145 # (--disable-auto-import) libraries
10146 lt_prog_compiler_pic='-DDLL_EXPORT'
10149 darwin* | rhapsody*)
10150 # PIC is the default on this platform
10151 # Common symbols not allowed in MH_DYLIB files
10152 lt_prog_compiler_pic='-fno-common'
10155 haiku*)
10156 # PIC is the default for Haiku.
10157 # The "-static" flag exists, but is broken.
10158 lt_prog_compiler_static=
10161 hpux*)
10162 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10163 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10164 # sets the default TLS model and affects inlining.
10165 case $host_cpu in
10166 hppa*64*)
10167 # +Z the default
10170 lt_prog_compiler_pic='-fPIC'
10172 esac
10175 interix[3-9]*)
10176 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10177 # Instead, we relocate shared libraries at runtime.
10180 msdosdjgpp*)
10181 # Just because we use GCC doesn't mean we suddenly get shared libraries
10182 # on systems that don't support them.
10183 lt_prog_compiler_can_build_shared=no
10184 enable_shared=no
10187 *nto* | *qnx*)
10188 # QNX uses GNU C++, but need to define -shared option too, otherwise
10189 # it will coredump.
10190 lt_prog_compiler_pic='-fPIC -shared'
10193 sysv4*MP*)
10194 if test -d /usr/nec; then
10195 lt_prog_compiler_pic=-Kconform_pic
10200 lt_prog_compiler_pic='-fPIC'
10202 esac
10204 case $cc_basename in
10205 nvcc*) # Cuda Compiler Driver 2.2
10206 lt_prog_compiler_wl='-Xlinker '
10207 if test -n "$lt_prog_compiler_pic"; then
10208 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10211 esac
10212 else
10213 # PORTME Check for flag to pass linker flags through the system compiler.
10214 case $host_os in
10215 aix*)
10216 lt_prog_compiler_wl='-Wl,'
10217 if test "$host_cpu" = ia64; then
10218 # AIX 5 now supports IA64 processor
10219 lt_prog_compiler_static='-Bstatic'
10220 else
10221 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10225 mingw* | cygwin* | pw32* | os2* | cegcc*)
10226 # This hack is so that the source file can tell whether it is being
10227 # built for inclusion in a dll (and should export symbols for example).
10228 lt_prog_compiler_pic='-DDLL_EXPORT'
10231 hpux9* | hpux10* | hpux11*)
10232 lt_prog_compiler_wl='-Wl,'
10233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10234 # not for PA HP-UX.
10235 case $host_cpu in
10236 hppa*64*|ia64*)
10237 # +Z the default
10240 lt_prog_compiler_pic='+Z'
10242 esac
10243 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10244 lt_prog_compiler_static='${wl}-a ${wl}archive'
10247 irix5* | irix6* | nonstopux*)
10248 lt_prog_compiler_wl='-Wl,'
10249 # PIC (with -KPIC) is the default.
10250 lt_prog_compiler_static='-non_shared'
10253 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10254 case $cc_basename in
10255 # old Intel for x86_64 which still supported -KPIC.
10256 ecc*)
10257 lt_prog_compiler_wl='-Wl,'
10258 lt_prog_compiler_pic='-KPIC'
10259 lt_prog_compiler_static='-static'
10261 # icc used to be incompatible with GCC.
10262 # ICC 10 doesn't accept -KPIC any more.
10263 icc* | ifort*)
10264 lt_prog_compiler_wl='-Wl,'
10265 lt_prog_compiler_pic='-fPIC'
10266 lt_prog_compiler_static='-static'
10268 # Lahey Fortran 8.1.
10269 lf95*)
10270 lt_prog_compiler_wl='-Wl,'
10271 lt_prog_compiler_pic='--shared'
10272 lt_prog_compiler_static='--static'
10274 nagfor*)
10275 # NAG Fortran compiler
10276 lt_prog_compiler_wl='-Wl,-Wl,,'
10277 lt_prog_compiler_pic='-PIC'
10278 lt_prog_compiler_static='-Bstatic'
10280 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10281 # Portland Group compilers (*not* the Pentium gcc compiler,
10282 # which looks to be a dead project)
10283 lt_prog_compiler_wl='-Wl,'
10284 lt_prog_compiler_pic='-fpic'
10285 lt_prog_compiler_static='-Bstatic'
10287 ccc*)
10288 lt_prog_compiler_wl='-Wl,'
10289 # All Alpha code is PIC.
10290 lt_prog_compiler_static='-non_shared'
10292 xl* | bgxl* | bgf* | mpixl*)
10293 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10294 lt_prog_compiler_wl='-Wl,'
10295 lt_prog_compiler_pic='-qpic'
10296 lt_prog_compiler_static='-qstaticlink'
10299 case `$CC -V 2>&1 | sed 5q` in
10300 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10301 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10302 lt_prog_compiler_pic='-KPIC'
10303 lt_prog_compiler_static='-Bstatic'
10304 lt_prog_compiler_wl=''
10306 *Sun\ F* | *Sun*Fortran*)
10307 lt_prog_compiler_pic='-KPIC'
10308 lt_prog_compiler_static='-Bstatic'
10309 lt_prog_compiler_wl='-Qoption ld '
10311 *Sun\ C*)
10312 # Sun C 5.9
10313 lt_prog_compiler_pic='-KPIC'
10314 lt_prog_compiler_static='-Bstatic'
10315 lt_prog_compiler_wl='-Wl,'
10317 *Intel*\ [CF]*Compiler*)
10318 lt_prog_compiler_wl='-Wl,'
10319 lt_prog_compiler_pic='-fPIC'
10320 lt_prog_compiler_static='-static'
10322 *Portland\ Group*)
10323 lt_prog_compiler_wl='-Wl,'
10324 lt_prog_compiler_pic='-fpic'
10325 lt_prog_compiler_static='-Bstatic'
10327 esac
10329 esac
10332 newsos6)
10333 lt_prog_compiler_pic='-KPIC'
10334 lt_prog_compiler_static='-Bstatic'
10337 *nto* | *qnx*)
10338 # QNX uses GNU C++, but need to define -shared option too, otherwise
10339 # it will coredump.
10340 lt_prog_compiler_pic='-fPIC -shared'
10343 osf3* | osf4* | osf5*)
10344 lt_prog_compiler_wl='-Wl,'
10345 # All OSF/1 code is PIC.
10346 lt_prog_compiler_static='-non_shared'
10349 rdos*)
10350 lt_prog_compiler_static='-non_shared'
10353 solaris*)
10354 lt_prog_compiler_pic='-KPIC'
10355 lt_prog_compiler_static='-Bstatic'
10356 case $cc_basename in
10357 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10358 lt_prog_compiler_wl='-Qoption ld ';;
10360 lt_prog_compiler_wl='-Wl,';;
10361 esac
10364 sunos4*)
10365 lt_prog_compiler_wl='-Qoption ld '
10366 lt_prog_compiler_pic='-PIC'
10367 lt_prog_compiler_static='-Bstatic'
10370 sysv4 | sysv4.2uw2* | sysv4.3*)
10371 lt_prog_compiler_wl='-Wl,'
10372 lt_prog_compiler_pic='-KPIC'
10373 lt_prog_compiler_static='-Bstatic'
10376 sysv4*MP*)
10377 if test -d /usr/nec ;then
10378 lt_prog_compiler_pic='-Kconform_pic'
10379 lt_prog_compiler_static='-Bstatic'
10383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10384 lt_prog_compiler_wl='-Wl,'
10385 lt_prog_compiler_pic='-KPIC'
10386 lt_prog_compiler_static='-Bstatic'
10389 unicos*)
10390 lt_prog_compiler_wl='-Wl,'
10391 lt_prog_compiler_can_build_shared=no
10394 uts4*)
10395 lt_prog_compiler_pic='-pic'
10396 lt_prog_compiler_static='-Bstatic'
10400 lt_prog_compiler_can_build_shared=no
10402 esac
10405 case $host_os in
10406 # For platforms which do not support PIC, -DPIC is meaningless:
10407 *djgpp*)
10408 lt_prog_compiler_pic=
10411 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10413 esac
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10416 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10417 if ${lt_cv_prog_compiler_pic+:} false; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10423 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10424 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10427 # Check to make sure the PIC flag actually works.
10429 if test -n "$lt_prog_compiler_pic"; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10432 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 lt_cv_prog_compiler_pic_works=no
10436 ac_outfile=conftest.$ac_objext
10437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10438 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10439 # Insert the option either (1) after the last *FLAGS variable, or
10440 # (2) before a word containing "conftest.", or (3) at the end.
10441 # Note that $ac_compile itself does not contain backslashes and begins
10442 # with a dollar sign (not a hyphen), so the echo should work correctly.
10443 # The option is referenced via a variable to avoid confusing sed.
10444 lt_compile=`echo "$ac_compile" | $SED \
10445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10447 -e 's:$: $lt_compiler_flag:'`
10448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10449 (eval "$lt_compile" 2>conftest.err)
10450 ac_status=$?
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 if (exit $ac_status) && test -s "$ac_outfile"; then
10454 # The compiler can only warn and ignore the option if not recognized
10455 # So say no if there are warnings other than the usual output.
10456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10459 lt_cv_prog_compiler_pic_works=yes
10462 $RM conftest*
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10466 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10468 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10469 case $lt_prog_compiler_pic in
10470 "" | " "*) ;;
10471 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10472 esac
10473 else
10474 lt_prog_compiler_pic=
10475 lt_prog_compiler_can_build_shared=no
10491 # Check to make sure the static flag actually works.
10493 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10495 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10496 if ${lt_cv_prog_compiler_static_works+:} false; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 lt_cv_prog_compiler_static_works=no
10500 save_LDFLAGS="$LDFLAGS"
10501 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10502 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10503 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10504 # The linker can only warn and ignore the option if not recognized
10505 # So say no if there are warnings
10506 if test -s conftest.err; then
10507 # Append any errors to the config.log.
10508 cat conftest.err 1>&5
10509 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10511 if diff conftest.exp conftest.er2 >/dev/null; then
10512 lt_cv_prog_compiler_static_works=yes
10514 else
10515 lt_cv_prog_compiler_static_works=yes
10518 $RM -r conftest*
10519 LDFLAGS="$save_LDFLAGS"
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10523 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10525 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10527 else
10528 lt_prog_compiler_static=
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10538 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10539 if ${lt_cv_prog_compiler_c_o+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 lt_cv_prog_compiler_c_o=no
10543 $RM -r conftest 2>/dev/null
10544 mkdir conftest
10545 cd conftest
10546 mkdir out
10547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10549 lt_compiler_flag="-o out/conftest2.$ac_objext"
10550 # Insert the option either (1) after the last *FLAGS variable, or
10551 # (2) before a word containing "conftest.", or (3) at the end.
10552 # Note that $ac_compile itself does not contain backslashes and begins
10553 # with a dollar sign (not a hyphen), so the echo should work correctly.
10554 lt_compile=`echo "$ac_compile" | $SED \
10555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10557 -e 's:$: $lt_compiler_flag:'`
10558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10559 (eval "$lt_compile" 2>out/conftest.err)
10560 ac_status=$?
10561 cat out/conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10564 then
10565 # The compiler can only warn and ignore the option if not recognized
10566 # So say no if there are warnings
10567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10568 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10569 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10570 lt_cv_prog_compiler_c_o=yes
10573 chmod u+w . 2>&5
10574 $RM conftest*
10575 # SGI C++ compiler will create directory out/ii_files/ for
10576 # template instantiation
10577 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10578 $RM out/* && rmdir out
10579 cd ..
10580 $RM -r conftest
10581 $RM conftest*
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10585 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10593 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10594 if ${lt_cv_prog_compiler_c_o+:} false; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 lt_cv_prog_compiler_c_o=no
10598 $RM -r conftest 2>/dev/null
10599 mkdir conftest
10600 cd conftest
10601 mkdir out
10602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10604 lt_compiler_flag="-o out/conftest2.$ac_objext"
10605 # Insert the option either (1) after the last *FLAGS variable, or
10606 # (2) before a word containing "conftest.", or (3) at the end.
10607 # Note that $ac_compile itself does not contain backslashes and begins
10608 # with a dollar sign (not a hyphen), so the echo should work correctly.
10609 lt_compile=`echo "$ac_compile" | $SED \
10610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10612 -e 's:$: $lt_compiler_flag:'`
10613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10614 (eval "$lt_compile" 2>out/conftest.err)
10615 ac_status=$?
10616 cat out/conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10619 then
10620 # The compiler can only warn and ignore the option if not recognized
10621 # So say no if there are warnings
10622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10623 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10624 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10625 lt_cv_prog_compiler_c_o=yes
10628 chmod u+w . 2>&5
10629 $RM conftest*
10630 # SGI C++ compiler will create directory out/ii_files/ for
10631 # template instantiation
10632 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10633 $RM out/* && rmdir out
10634 cd ..
10635 $RM -r conftest
10636 $RM conftest*
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10640 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10645 hard_links="nottested"
10646 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10647 # do not overwrite the value of need_locks provided by the user
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10649 $as_echo_n "checking if we can lock with hard links... " >&6; }
10650 hard_links=yes
10651 $RM conftest*
10652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10653 touch conftest.a
10654 ln conftest.a conftest.b 2>&5 || hard_links=no
10655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10657 $as_echo "$hard_links" >&6; }
10658 if test "$hard_links" = no; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10660 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10661 need_locks=warn
10663 else
10664 need_locks=no
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10673 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10675 runpath_var=
10676 allow_undefined_flag=
10677 always_export_symbols=no
10678 archive_cmds=
10679 archive_expsym_cmds=
10680 compiler_needs_object=no
10681 enable_shared_with_static_runtimes=no
10682 export_dynamic_flag_spec=
10683 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10684 hardcode_automatic=no
10685 hardcode_direct=no
10686 hardcode_direct_absolute=no
10687 hardcode_libdir_flag_spec=
10688 hardcode_libdir_separator=
10689 hardcode_minus_L=no
10690 hardcode_shlibpath_var=unsupported
10691 inherit_rpath=no
10692 link_all_deplibs=unknown
10693 module_cmds=
10694 module_expsym_cmds=
10695 old_archive_from_new_cmds=
10696 old_archive_from_expsyms_cmds=
10697 thread_safe_flag_spec=
10698 whole_archive_flag_spec=
10699 # include_expsyms should be a list of space-separated symbols to be *always*
10700 # included in the symbol list
10701 include_expsyms=
10702 # exclude_expsyms can be an extended regexp of symbols to exclude
10703 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10704 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10705 # as well as any symbol that contains `d'.
10706 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10707 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10708 # platforms (ab)use it in PIC code, but their linkers get confused if
10709 # the symbol is explicitly referenced. Since portable code cannot
10710 # rely on this symbol name, it's probably fine to never include it in
10711 # preloaded symbol tables.
10712 # Exclude shared library initialization/finalization symbols.
10713 extract_expsyms_cmds=
10715 case $host_os in
10716 cygwin* | mingw* | pw32* | cegcc*)
10717 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10718 # When not using gcc, we currently assume that we are using
10719 # Microsoft Visual C++.
10720 if test "$GCC" != yes; then
10721 with_gnu_ld=no
10724 interix*)
10725 # we just hope/assume this is gcc and not c89 (= MSVC++)
10726 with_gnu_ld=yes
10728 openbsd*)
10729 with_gnu_ld=no
10731 linux* | k*bsd*-gnu | gnu*)
10732 link_all_deplibs=no
10734 esac
10736 ld_shlibs=yes
10738 # On some targets, GNU ld is compatible enough with the native linker
10739 # that we're better off using the native interface for both.
10740 lt_use_gnu_ld_interface=no
10741 if test "$with_gnu_ld" = yes; then
10742 case $host_os in
10743 aix*)
10744 # The AIX port of GNU ld has always aspired to compatibility
10745 # with the native linker. However, as the warning in the GNU ld
10746 # block says, versions before 2.19.5* couldn't really create working
10747 # shared libraries, regardless of the interface used.
10748 case `$LD -v 2>&1` in
10749 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10750 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10751 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10753 lt_use_gnu_ld_interface=yes
10755 esac
10758 lt_use_gnu_ld_interface=yes
10760 esac
10763 if test "$lt_use_gnu_ld_interface" = yes; then
10764 # If archive_cmds runs LD, not CC, wlarc should be empty
10765 wlarc='${wl}'
10767 # Set some defaults for GNU ld with shared library support. These
10768 # are reset later if shared libraries are not supported. Putting them
10769 # here allows them to be overridden if necessary.
10770 runpath_var=LD_RUN_PATH
10771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10772 export_dynamic_flag_spec='${wl}--export-dynamic'
10773 # ancient GNU ld didn't support --whole-archive et. al.
10774 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10775 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10776 else
10777 whole_archive_flag_spec=
10779 supports_anon_versioning=no
10780 case `$LD -v 2>&1` in
10781 *GNU\ gold*) supports_anon_versioning=yes ;;
10782 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10783 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10784 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10785 *\ 2.11.*) ;; # other 2.11 versions
10786 *) supports_anon_versioning=yes ;;
10787 esac
10789 # See if GNU ld supports shared libraries.
10790 case $host_os in
10791 aix[3-9]*)
10792 # On AIX/PPC, the GNU linker is very broken
10793 if test "$host_cpu" != ia64; then
10794 ld_shlibs=no
10795 cat <<_LT_EOF 1>&2
10797 *** Warning: the GNU linker, at least up to release 2.19, is reported
10798 *** to be unable to reliably create shared libraries on AIX.
10799 *** Therefore, libtool is disabling shared libraries support. If you
10800 *** really care for shared libraries, you may want to install binutils
10801 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10802 *** You will then need to restart the configuration process.
10804 _LT_EOF
10808 amigaos*)
10809 case $host_cpu in
10810 powerpc)
10811 # see comment about AmigaOS4 .so support
10812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10813 archive_expsym_cmds=''
10815 m68k)
10816 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)'
10817 hardcode_libdir_flag_spec='-L$libdir'
10818 hardcode_minus_L=yes
10820 esac
10823 beos*)
10824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10825 allow_undefined_flag=unsupported
10826 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10827 # support --undefined. This deserves some investigation. FIXME
10828 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10829 else
10830 ld_shlibs=no
10834 cygwin* | mingw* | pw32* | cegcc*)
10835 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10836 # as there is no search path for DLLs.
10837 hardcode_libdir_flag_spec='-L$libdir'
10838 export_dynamic_flag_spec='${wl}--export-all-symbols'
10839 allow_undefined_flag=unsupported
10840 always_export_symbols=no
10841 enable_shared_with_static_runtimes=yes
10842 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10843 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10845 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10847 # If the export-symbols file already is a .def file (1st line
10848 # is EXPORTS), use it as is; otherwise, prepend...
10849 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10850 cp $export_symbols $output_objdir/$soname.def;
10851 else
10852 echo EXPORTS > $output_objdir/$soname.def;
10853 cat $export_symbols >> $output_objdir/$soname.def;
10855 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10856 else
10857 ld_shlibs=no
10861 haiku*)
10862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10863 link_all_deplibs=yes
10866 interix[3-9]*)
10867 hardcode_direct=no
10868 hardcode_shlibpath_var=no
10869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10870 export_dynamic_flag_spec='${wl}-E'
10871 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10872 # Instead, shared libraries are loaded at an image base (0x10000000 by
10873 # default) and relocated if they conflict, which is a slow very memory
10874 # consuming and fragmenting process. To avoid this, we pick a random,
10875 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10876 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10877 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10878 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'
10881 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10882 tmp_diet=no
10883 if test "$host_os" = linux-dietlibc; then
10884 case $cc_basename in
10885 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10886 esac
10888 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10889 && test "$tmp_diet" = no
10890 then
10891 tmp_addflag=' $pic_flag'
10892 tmp_sharedflag='-shared'
10893 case $cc_basename,$host_cpu in
10894 pgcc*) # Portland Group C compiler
10895 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'
10896 tmp_addflag=' $pic_flag'
10898 pgf77* | pgf90* | pgf95* | pgfortran*)
10899 # Portland Group f77 and f90 compilers
10900 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'
10901 tmp_addflag=' $pic_flag -Mnomain' ;;
10902 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10903 tmp_addflag=' -i_dynamic' ;;
10904 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10905 tmp_addflag=' -i_dynamic -nofor_main' ;;
10906 ifc* | ifort*) # Intel Fortran compiler
10907 tmp_addflag=' -nofor_main' ;;
10908 lf95*) # Lahey Fortran 8.1
10909 whole_archive_flag_spec=
10910 tmp_sharedflag='--shared' ;;
10911 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10912 tmp_sharedflag='-qmkshrobj'
10913 tmp_addflag= ;;
10914 nvcc*) # Cuda Compiler Driver 2.2
10915 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'
10916 compiler_needs_object=yes
10918 esac
10919 case `$CC -V 2>&1 | sed 5q` in
10920 *Sun\ C*) # Sun C 5.9
10921 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'
10922 compiler_needs_object=yes
10923 tmp_sharedflag='-G' ;;
10924 *Sun\ F*) # Sun Fortran 8.3
10925 tmp_sharedflag='-G' ;;
10926 esac
10927 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10929 if test "x$supports_anon_versioning" = xyes; then
10930 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10931 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10932 echo "local: *; };" >> $output_objdir/$libname.ver~
10933 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10936 case $cc_basename in
10937 xlf* | bgf* | bgxlf* | mpixlf*)
10938 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10939 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10941 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10942 if test "x$supports_anon_versioning" = xyes; then
10943 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10945 echo "local: *; };" >> $output_objdir/$libname.ver~
10946 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10949 esac
10950 else
10951 ld_shlibs=no
10955 netbsd* | netbsdelf*-gnu)
10956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10957 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10958 wlarc=
10959 else
10960 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10961 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10965 solaris*)
10966 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10967 ld_shlibs=no
10968 cat <<_LT_EOF 1>&2
10970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10971 *** create shared libraries on Solaris systems. Therefore, libtool
10972 *** is disabling shared libraries support. We urge you to upgrade GNU
10973 *** binutils to release 2.9.1 or newer. Another option is to modify
10974 *** your PATH or compiler configuration so that the native linker is
10975 *** used, and then restart.
10977 _LT_EOF
10978 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10979 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10980 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10981 else
10982 ld_shlibs=no
10986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10987 case `$LD -v 2>&1` in
10988 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10989 ld_shlibs=no
10990 cat <<_LT_EOF 1>&2
10992 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10993 *** reliably create shared libraries on SCO systems. Therefore, libtool
10994 *** is disabling shared libraries support. We urge you to upgrade GNU
10995 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10996 *** your PATH or compiler configuration so that the native linker is
10997 *** used, and then restart.
10999 _LT_EOF
11002 # For security reasons, it is highly recommended that you always
11003 # use absolute paths for naming shared libraries, and exclude the
11004 # DT_RUNPATH tag from executables and libraries. But doing so
11005 # requires that you compile everything twice, which is a pain.
11006 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11010 else
11011 ld_shlibs=no
11014 esac
11017 sunos4*)
11018 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11019 wlarc=
11020 hardcode_direct=yes
11021 hardcode_shlibpath_var=no
11025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11026 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11027 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11028 else
11029 ld_shlibs=no
11032 esac
11034 if test "$ld_shlibs" = no; then
11035 runpath_var=
11036 hardcode_libdir_flag_spec=
11037 export_dynamic_flag_spec=
11038 whole_archive_flag_spec=
11040 else
11041 # PORTME fill in a description of your system's linker (not GNU ld)
11042 case $host_os in
11043 aix3*)
11044 allow_undefined_flag=unsupported
11045 always_export_symbols=yes
11046 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'
11047 # Note: this linker hardcodes the directories in LIBPATH if there
11048 # are no directories specified by -L.
11049 hardcode_minus_L=yes
11050 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11051 # Neither direct hardcoding nor static linking is supported with a
11052 # broken collect2.
11053 hardcode_direct=unsupported
11057 aix[4-9]*)
11058 if test "$host_cpu" = ia64; then
11059 # On IA64, the linker does run time linking by default, so we don't
11060 # have to do anything special.
11061 aix_use_runtimelinking=no
11062 exp_sym_flag='-Bexport'
11063 no_entry_flag=""
11064 else
11065 # If we're using GNU nm, then we don't want the "-C" option.
11066 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11067 # Also, AIX nm treats weak defined symbols like other global
11068 # defined symbols, whereas GNU nm marks them as "W".
11069 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11070 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'
11071 else
11072 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'
11074 aix_use_runtimelinking=no
11076 # Test if we are trying to use run time linking or normal
11077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11078 # need to do runtime linking.
11079 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11080 for ld_flag in $LDFLAGS; do
11081 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11082 aix_use_runtimelinking=yes
11083 break
11085 done
11087 esac
11089 exp_sym_flag='-bexport'
11090 no_entry_flag='-bnoentry'
11093 # When large executables or shared objects are built, AIX ld can
11094 # have problems creating the table of contents. If linking a library
11095 # or program results in "error TOC overflow" add -mminimal-toc to
11096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11099 archive_cmds=''
11100 hardcode_direct=yes
11101 hardcode_direct_absolute=yes
11102 hardcode_libdir_separator=':'
11103 link_all_deplibs=yes
11104 file_list_spec='${wl}-f,'
11106 if test "$GCC" = yes; then
11107 case $host_os in aix4.[012]|aix4.[012].*)
11108 # We only want to do this on AIX 4.2 and lower, the check
11109 # below for broken collect2 doesn't work under 4.3+
11110 collect2name=`${CC} -print-prog-name=collect2`
11111 if test -f "$collect2name" &&
11112 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11113 then
11114 # We have reworked collect2
11116 else
11117 # We have old collect2
11118 hardcode_direct=unsupported
11119 # It fails to find uninstalled libraries when the uninstalled
11120 # path is not listed in the libpath. Setting hardcode_minus_L
11121 # to unsupported forces relinking
11122 hardcode_minus_L=yes
11123 hardcode_libdir_flag_spec='-L$libdir'
11124 hardcode_libdir_separator=
11127 esac
11128 shared_flag='-shared'
11129 if test "$aix_use_runtimelinking" = yes; then
11130 shared_flag="$shared_flag "'${wl}-G'
11132 link_all_deplibs=no
11133 else
11134 # not using gcc
11135 if test "$host_cpu" = ia64; then
11136 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11137 # chokes on -Wl,-G. The following line is correct:
11138 shared_flag='-G'
11139 else
11140 if test "$aix_use_runtimelinking" = yes; then
11141 shared_flag='${wl}-G'
11142 else
11143 shared_flag='${wl}-bM:SRE'
11148 export_dynamic_flag_spec='${wl}-bexpall'
11149 # It seems that -bexpall does not export symbols beginning with
11150 # underscore (_), so it is better to generate a list of symbols to export.
11151 always_export_symbols=yes
11152 if test "$aix_use_runtimelinking" = yes; then
11153 # Warning - without using the other runtime loading flags (-brtl),
11154 # -berok will link without error, but may produce a broken library.
11155 allow_undefined_flag='-berok'
11156 # Determine the default libpath from the value encoded in an
11157 # empty executable.
11158 if test "${lt_cv_aix_libpath+set}" = set; then
11159 aix_libpath=$lt_cv_aix_libpath
11160 else
11161 if ${lt_cv_aix_libpath_+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11168 main ()
11172 return 0;
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"; then :
11177 lt_aix_libpath_sed='
11178 /Import File Strings/,/^$/ {
11179 /^0/ {
11180 s/^0 *\([^ ]*\) *$/\1/
11184 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11185 # Check for a 64-bit object if we didn't find anything.
11186 if test -z "$lt_cv_aix_libpath_"; then
11187 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11190 rm -f core conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11192 if test -z "$lt_cv_aix_libpath_"; then
11193 lt_cv_aix_libpath_="/usr/lib:/lib"
11198 aix_libpath=$lt_cv_aix_libpath_
11201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11202 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"
11203 else
11204 if test "$host_cpu" = ia64; then
11205 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11206 allow_undefined_flag="-z nodefs"
11207 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"
11208 else
11209 # Determine the default libpath from the value encoded in an
11210 # empty executable.
11211 if test "${lt_cv_aix_libpath+set}" = set; then
11212 aix_libpath=$lt_cv_aix_libpath
11213 else
11214 if ${lt_cv_aix_libpath_+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11221 main ()
11225 return 0;
11227 _ACEOF
11228 if ac_fn_c_try_link "$LINENO"; then :
11230 lt_aix_libpath_sed='
11231 /Import File Strings/,/^$/ {
11232 /^0/ {
11233 s/^0 *\([^ ]*\) *$/\1/
11237 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11238 # Check for a 64-bit object if we didn't find anything.
11239 if test -z "$lt_cv_aix_libpath_"; then
11240 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11243 rm -f core conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 if test -z "$lt_cv_aix_libpath_"; then
11246 lt_cv_aix_libpath_="/usr/lib:/lib"
11251 aix_libpath=$lt_cv_aix_libpath_
11254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11255 # Warning - without using the other run time loading flags,
11256 # -berok will link without error, but may produce a broken library.
11257 no_undefined_flag=' ${wl}-bernotok'
11258 allow_undefined_flag=' ${wl}-berok'
11259 if test "$with_gnu_ld" = yes; then
11260 # We only use this code for GNU lds that support --whole-archive.
11261 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11262 else
11263 # Exported symbols can be pulled into shared objects from archives
11264 whole_archive_flag_spec='$convenience'
11266 archive_cmds_need_lc=yes
11267 # This is similar to how AIX traditionally builds its shared libraries.
11268 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'
11273 amigaos*)
11274 case $host_cpu in
11275 powerpc)
11276 # see comment about AmigaOS4 .so support
11277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11278 archive_expsym_cmds=''
11280 m68k)
11281 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)'
11282 hardcode_libdir_flag_spec='-L$libdir'
11283 hardcode_minus_L=yes
11285 esac
11288 bsdi[45]*)
11289 export_dynamic_flag_spec=-rdynamic
11292 cygwin* | mingw* | pw32* | cegcc*)
11293 # When not using gcc, we currently assume that we are using
11294 # Microsoft Visual C++.
11295 # hardcode_libdir_flag_spec is actually meaningless, as there is
11296 # no search path for DLLs.
11297 case $cc_basename in
11298 cl*)
11299 # Native MSVC
11300 hardcode_libdir_flag_spec=' '
11301 allow_undefined_flag=unsupported
11302 always_export_symbols=yes
11303 file_list_spec='@'
11304 # Tell ltmain to make .lib files, not .a files.
11305 libext=lib
11306 # Tell ltmain to make .dll files, not .so files.
11307 shrext_cmds=".dll"
11308 # FIXME: Setting linknames here is a bad hack.
11309 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11310 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11311 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11312 else
11313 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11315 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11316 linknames='
11317 # The linker will not automatically build a static lib if we build a DLL.
11318 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11319 enable_shared_with_static_runtimes=yes
11320 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11322 # Don't use ranlib
11323 old_postinstall_cmds='chmod 644 $oldlib'
11324 postlink_cmds='lt_outputfile="@OUTPUT@"~
11325 lt_tool_outputfile="@TOOL_OUTPUT@"~
11326 case $lt_outputfile in
11327 *.exe|*.EXE) ;;
11329 lt_outputfile="$lt_outputfile.exe"
11330 lt_tool_outputfile="$lt_tool_outputfile.exe"
11332 esac~
11333 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11334 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11335 $RM "$lt_outputfile.manifest";
11339 # Assume MSVC wrapper
11340 hardcode_libdir_flag_spec=' '
11341 allow_undefined_flag=unsupported
11342 # Tell ltmain to make .lib files, not .a files.
11343 libext=lib
11344 # Tell ltmain to make .dll files, not .so files.
11345 shrext_cmds=".dll"
11346 # FIXME: Setting linknames here is a bad hack.
11347 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11348 # The linker will automatically build a .lib file if we build a DLL.
11349 old_archive_from_new_cmds='true'
11350 # FIXME: Should let the user specify the lib program.
11351 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11352 enable_shared_with_static_runtimes=yes
11354 esac
11357 darwin* | rhapsody*)
11360 archive_cmds_need_lc=no
11361 hardcode_direct=no
11362 hardcode_automatic=yes
11363 hardcode_shlibpath_var=unsupported
11364 if test "$lt_cv_ld_force_load" = "yes"; then
11365 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\"`'
11367 else
11368 whole_archive_flag_spec=''
11370 link_all_deplibs=yes
11371 allow_undefined_flag="$_lt_dar_allow_undefined"
11372 case $cc_basename in
11373 ifort*) _lt_dar_can_shared=yes ;;
11374 *) _lt_dar_can_shared=$GCC ;;
11375 esac
11376 if test "$_lt_dar_can_shared" = "yes"; then
11377 output_verbose_link_cmd=func_echo_all
11378 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11379 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11380 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}"
11381 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}"
11383 else
11384 ld_shlibs=no
11389 dgux*)
11390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11391 hardcode_libdir_flag_spec='-L$libdir'
11392 hardcode_shlibpath_var=no
11395 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11396 # support. Future versions do this automatically, but an explicit c++rt0.o
11397 # does not break anything, and helps significantly (at the cost of a little
11398 # extra space).
11399 freebsd2.2*)
11400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11401 hardcode_libdir_flag_spec='-R$libdir'
11402 hardcode_direct=yes
11403 hardcode_shlibpath_var=no
11406 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11407 freebsd2.*)
11408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11409 hardcode_direct=yes
11410 hardcode_minus_L=yes
11411 hardcode_shlibpath_var=no
11414 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11415 freebsd* | dragonfly*)
11416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11417 hardcode_libdir_flag_spec='-R$libdir'
11418 hardcode_direct=yes
11419 hardcode_shlibpath_var=no
11422 hpux9*)
11423 if test "$GCC" = yes; then
11424 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11425 else
11426 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'
11428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11429 hardcode_libdir_separator=:
11430 hardcode_direct=yes
11432 # hardcode_minus_L: Not really in the search PATH,
11433 # but as the default location of the library.
11434 hardcode_minus_L=yes
11435 export_dynamic_flag_spec='${wl}-E'
11438 hpux10*)
11439 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11440 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11441 else
11442 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11444 if test "$with_gnu_ld" = no; then
11445 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11446 hardcode_libdir_separator=:
11447 hardcode_direct=yes
11448 hardcode_direct_absolute=yes
11449 export_dynamic_flag_spec='${wl}-E'
11450 # hardcode_minus_L: Not really in the search PATH,
11451 # but as the default location of the library.
11452 hardcode_minus_L=yes
11456 hpux11*)
11457 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11458 case $host_cpu in
11459 hppa*64*)
11460 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11462 ia64*)
11463 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11466 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11468 esac
11469 else
11470 case $host_cpu in
11471 hppa*64*)
11472 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11474 ia64*)
11475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11479 # Older versions of the 11.00 compiler do not understand -b yet
11480 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11482 $as_echo_n "checking if $CC understands -b... " >&6; }
11483 if ${lt_cv_prog_compiler__b+:} false; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 lt_cv_prog_compiler__b=no
11487 save_LDFLAGS="$LDFLAGS"
11488 LDFLAGS="$LDFLAGS -b"
11489 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11491 # The linker can only warn and ignore the option if not recognized
11492 # So say no if there are warnings
11493 if test -s conftest.err; then
11494 # Append any errors to the config.log.
11495 cat conftest.err 1>&5
11496 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11498 if diff conftest.exp conftest.er2 >/dev/null; then
11499 lt_cv_prog_compiler__b=yes
11501 else
11502 lt_cv_prog_compiler__b=yes
11505 $RM -r conftest*
11506 LDFLAGS="$save_LDFLAGS"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11510 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11512 if test x"$lt_cv_prog_compiler__b" = xyes; then
11513 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11514 else
11515 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11519 esac
11521 if test "$with_gnu_ld" = no; then
11522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11523 hardcode_libdir_separator=:
11525 case $host_cpu in
11526 hppa*64*|ia64*)
11527 hardcode_direct=no
11528 hardcode_shlibpath_var=no
11531 hardcode_direct=yes
11532 hardcode_direct_absolute=yes
11533 export_dynamic_flag_spec='${wl}-E'
11535 # hardcode_minus_L: Not really in the search PATH,
11536 # but as the default location of the library.
11537 hardcode_minus_L=yes
11539 esac
11543 irix5* | irix6* | nonstopux*)
11544 if test "$GCC" = yes; then
11545 archive_cmds='$CC -shared $pic_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'
11546 # Try to use the -exported_symbol ld option, if it does not
11547 # work, assume that -exports_file does not work either and
11548 # implicitly export all symbols.
11549 # This should be the same for all languages, so no per-tag cache variable.
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11551 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11552 if ${lt_cv_irix_exported_symbol+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 save_LDFLAGS="$LDFLAGS"
11556 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 int foo (void) { return 0; }
11560 _ACEOF
11561 if ac_fn_c_try_link "$LINENO"; then :
11562 lt_cv_irix_exported_symbol=yes
11563 else
11564 lt_cv_irix_exported_symbol=no
11566 rm -f core conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
11568 LDFLAGS="$save_LDFLAGS"
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11571 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11572 if test "$lt_cv_irix_exported_symbol" = yes; then
11573 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
11575 else
11576 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'
11577 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'
11579 archive_cmds_need_lc='no'
11580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11581 hardcode_libdir_separator=:
11582 inherit_rpath=yes
11583 link_all_deplibs=yes
11586 netbsd* | netbsdelf*-gnu)
11587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11589 else
11590 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11592 hardcode_libdir_flag_spec='-R$libdir'
11593 hardcode_direct=yes
11594 hardcode_shlibpath_var=no
11597 newsos6)
11598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11599 hardcode_direct=yes
11600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11601 hardcode_libdir_separator=:
11602 hardcode_shlibpath_var=no
11605 *nto* | *qnx*)
11608 openbsd*)
11609 if test -f /usr/libexec/ld.so; then
11610 hardcode_direct=yes
11611 hardcode_shlibpath_var=no
11612 hardcode_direct_absolute=yes
11613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11615 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11616 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11617 export_dynamic_flag_spec='${wl}-E'
11618 else
11619 case $host_os in
11620 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11622 hardcode_libdir_flag_spec='-R$libdir'
11625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11628 esac
11630 else
11631 ld_shlibs=no
11635 os2*)
11636 hardcode_libdir_flag_spec='-L$libdir'
11637 hardcode_minus_L=yes
11638 allow_undefined_flag=unsupported
11639 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'
11640 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11643 osf3*)
11644 if test "$GCC" = yes; then
11645 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11646 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'
11647 else
11648 allow_undefined_flag=' -expect_unresolved \*'
11649 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'
11651 archive_cmds_need_lc='no'
11652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11653 hardcode_libdir_separator=:
11656 osf4* | osf5*) # as osf3* with the addition of -msym flag
11657 if test "$GCC" = yes; then
11658 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11659 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
11660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11661 else
11662 allow_undefined_flag=' -expect_unresolved \*'
11663 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'
11664 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~
11665 $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'
11667 # Both c and cxx compiler support -rpath directly
11668 hardcode_libdir_flag_spec='-rpath $libdir'
11670 archive_cmds_need_lc='no'
11671 hardcode_libdir_separator=:
11674 solaris*)
11675 no_undefined_flag=' -z defs'
11676 if test "$GCC" = yes; then
11677 wlarc='${wl}'
11678 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11679 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11680 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11681 else
11682 case `$CC -V 2>&1` in
11683 *"Compilers 5.0"*)
11684 wlarc=''
11685 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11686 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11687 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11690 wlarc='${wl}'
11691 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11693 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11695 esac
11697 hardcode_libdir_flag_spec='-R$libdir'
11698 hardcode_shlibpath_var=no
11699 case $host_os in
11700 solaris2.[0-5] | solaris2.[0-5].*) ;;
11702 # The compiler driver will combine and reorder linker options,
11703 # but understands `-z linker_flag'. GCC discards it without `$wl',
11704 # but is careful enough not to reorder.
11705 # Supported since Solaris 2.6 (maybe 2.5.1?)
11706 if test "$GCC" = yes; then
11707 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11708 else
11709 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11712 esac
11713 link_all_deplibs=yes
11716 sunos4*)
11717 if test "x$host_vendor" = xsequent; then
11718 # Use $CC to link under sequent, because it throws in some extra .o
11719 # files that make .init and .fini sections work.
11720 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11721 else
11722 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11724 hardcode_libdir_flag_spec='-L$libdir'
11725 hardcode_direct=yes
11726 hardcode_minus_L=yes
11727 hardcode_shlibpath_var=no
11730 sysv4)
11731 case $host_vendor in
11732 sni)
11733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734 hardcode_direct=yes # is this really true???
11736 siemens)
11737 ## LD is ld it makes a PLAMLIB
11738 ## CC just makes a GrossModule.
11739 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11740 reload_cmds='$CC -r -o $output$reload_objs'
11741 hardcode_direct=no
11743 motorola)
11744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11745 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11747 esac
11748 runpath_var='LD_RUN_PATH'
11749 hardcode_shlibpath_var=no
11752 sysv4.3*)
11753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11754 hardcode_shlibpath_var=no
11755 export_dynamic_flag_spec='-Bexport'
11758 sysv4*MP*)
11759 if test -d /usr/nec; then
11760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11761 hardcode_shlibpath_var=no
11762 runpath_var=LD_RUN_PATH
11763 hardcode_runpath_var=yes
11764 ld_shlibs=yes
11768 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11769 no_undefined_flag='${wl}-z,text'
11770 archive_cmds_need_lc=no
11771 hardcode_shlibpath_var=no
11772 runpath_var='LD_RUN_PATH'
11774 if test "$GCC" = yes; then
11775 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11776 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11777 else
11778 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 sysv5* | sco3.2v5* | sco5v6*)
11784 # Note: We can NOT use -z defs as we might desire, because we do not
11785 # link with -lc, and that would cause any symbols used from libc to
11786 # always be unresolved, which means just about no library would
11787 # ever link correctly. If we're not using GNU ld we use -z text
11788 # though, which does catch some bad symbols but isn't as heavy-handed
11789 # as -z defs.
11790 no_undefined_flag='${wl}-z,text'
11791 allow_undefined_flag='${wl}-z,nodefs'
11792 archive_cmds_need_lc=no
11793 hardcode_shlibpath_var=no
11794 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11795 hardcode_libdir_separator=':'
11796 link_all_deplibs=yes
11797 export_dynamic_flag_spec='${wl}-Bexport'
11798 runpath_var='LD_RUN_PATH'
11800 if test "$GCC" = yes; then
11801 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11802 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11803 else
11804 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11805 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11809 uts4*)
11810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11811 hardcode_libdir_flag_spec='-L$libdir'
11812 hardcode_shlibpath_var=no
11816 ld_shlibs=no
11818 esac
11820 if test x$host_vendor = xsni; then
11821 case $host in
11822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11823 export_dynamic_flag_spec='${wl}-Blargedynsym'
11825 esac
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11830 $as_echo "$ld_shlibs" >&6; }
11831 test "$ld_shlibs" = no && can_build_shared=no
11833 with_gnu_ld=$with_gnu_ld
11850 # Do we need to explicitly link libc?
11852 case "x$archive_cmds_need_lc" in
11853 x|xyes)
11854 # Assume -lc should be added
11855 archive_cmds_need_lc=yes
11857 if test "$enable_shared" = yes && test "$GCC" = yes; then
11858 case $archive_cmds in
11859 *'~'*)
11860 # FIXME: we may have to deal with multi-command sequences.
11862 '$CC '*)
11863 # Test whether the compiler implicitly links with -lc since on some
11864 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11865 # to ld, don't add -lc before -lgcc.
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11867 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11868 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 $RM conftest*
11872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11875 (eval $ac_compile) 2>&5
11876 ac_status=$?
11877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11878 test $ac_status = 0; } 2>conftest.err; then
11879 soname=conftest
11880 lib=conftest
11881 libobjs=conftest.$ac_objext
11882 deplibs=
11883 wl=$lt_prog_compiler_wl
11884 pic_flag=$lt_prog_compiler_pic
11885 compiler_flags=-v
11886 linker_flags=-v
11887 verstring=
11888 output_objdir=.
11889 libname=conftest
11890 lt_save_allow_undefined_flag=$allow_undefined_flag
11891 allow_undefined_flag=
11892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11893 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11894 ac_status=$?
11895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11896 test $ac_status = 0; }
11897 then
11898 lt_cv_archive_cmds_need_lc=no
11899 else
11900 lt_cv_archive_cmds_need_lc=yes
11902 allow_undefined_flag=$lt_save_allow_undefined_flag
11903 else
11904 cat conftest.err 1>&5
11906 $RM conftest*
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11910 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11911 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11913 esac
11916 esac
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12070 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12072 if test "$GCC" = yes; then
12073 case $host_os in
12074 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12075 *) lt_awk_arg="/^libraries:/" ;;
12076 esac
12077 case $host_os in
12078 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12079 *) lt_sed_strip_eq="s,=/,/,g" ;;
12080 esac
12081 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12082 case $lt_search_path_spec in
12083 *\;*)
12084 # if the path contains ";" then we assume it to be the separator
12085 # otherwise default to the standard path separator (i.e. ":") - it is
12086 # assumed that no part of a normal pathname contains ";" but that should
12087 # okay in the real world where ";" in dirpaths is itself problematic.
12088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12091 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12093 esac
12094 # Ok, now we have the path, separated by spaces, we can step through it
12095 # and add multilib dir if necessary.
12096 lt_tmp_lt_search_path_spec=
12097 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12098 for lt_sys_path in $lt_search_path_spec; do
12099 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12100 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12101 else
12102 test -d "$lt_sys_path" && \
12103 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12105 done
12106 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12107 BEGIN {RS=" "; FS="/|\n";} {
12108 lt_foo="";
12109 lt_count=0;
12110 for (lt_i = NF; lt_i > 0; lt_i--) {
12111 if ($lt_i != "" && $lt_i != ".") {
12112 if ($lt_i == "..") {
12113 lt_count++;
12114 } else {
12115 if (lt_count == 0) {
12116 lt_foo="/" $lt_i lt_foo;
12117 } else {
12118 lt_count--;
12123 if (lt_foo != "") { lt_freq[lt_foo]++; }
12124 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12126 # AWK program above erroneously prepends '/' to C:/dos/paths
12127 # for these hosts.
12128 case $host_os in
12129 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12130 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12131 esac
12132 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12133 else
12134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12136 library_names_spec=
12137 libname_spec='lib$name'
12138 soname_spec=
12139 shrext_cmds=".so"
12140 postinstall_cmds=
12141 postuninstall_cmds=
12142 finish_cmds=
12143 finish_eval=
12144 shlibpath_var=
12145 shlibpath_overrides_runpath=unknown
12146 version_type=none
12147 dynamic_linker="$host_os ld.so"
12148 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12149 need_lib_prefix=unknown
12150 hardcode_into_libs=no
12152 # when you set need_version to no, make sure it does not cause -set_version
12153 # flags to be left without arguments
12154 need_version=unknown
12156 case $host_os in
12157 aix3*)
12158 version_type=linux # correct to gnu/linux during the next big refactor
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12160 shlibpath_var=LIBPATH
12162 # AIX 3 has no versioning support, so we append a major version to the name.
12163 soname_spec='${libname}${release}${shared_ext}$major'
12166 aix[4-9]*)
12167 version_type=linux # correct to gnu/linux during the next big refactor
12168 need_lib_prefix=no
12169 need_version=no
12170 hardcode_into_libs=yes
12171 if test "$host_cpu" = ia64; then
12172 # AIX 5 supports IA64
12173 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12174 shlibpath_var=LD_LIBRARY_PATH
12175 else
12176 # With GCC up to 2.95.x, collect2 would create an import file
12177 # for dependence libraries. The import file would start with
12178 # the line `#! .'. This would cause the generated library to
12179 # depend on `.', always an invalid library. This was fixed in
12180 # development snapshots of GCC prior to 3.0.
12181 case $host_os in
12182 aix4 | aix4.[01] | aix4.[01].*)
12183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12184 echo ' yes '
12185 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12187 else
12188 can_build_shared=no
12191 esac
12192 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12193 # soname into executable. Probably we can add versioning support to
12194 # collect2, so additional links can be useful in future.
12195 if test "$aix_use_runtimelinking" = yes; then
12196 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12197 # instead of lib<name>.a to let people know that these are not
12198 # typical AIX shared libraries.
12199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12200 else
12201 # We preserve .a as extension for shared libraries through AIX4.2
12202 # and later when we are not doing run time linking.
12203 library_names_spec='${libname}${release}.a $libname.a'
12204 soname_spec='${libname}${release}${shared_ext}$major'
12206 shlibpath_var=LIBPATH
12210 amigaos*)
12211 case $host_cpu in
12212 powerpc)
12213 # Since July 2007 AmigaOS4 officially supports .so libraries.
12214 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12217 m68k)
12218 library_names_spec='$libname.ixlibrary $libname.a'
12219 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12220 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'
12222 esac
12225 beos*)
12226 library_names_spec='${libname}${shared_ext}'
12227 dynamic_linker="$host_os ld.so"
12228 shlibpath_var=LIBRARY_PATH
12231 bsdi[45]*)
12232 version_type=linux # correct to gnu/linux during the next big refactor
12233 need_version=no
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 soname_spec='${libname}${release}${shared_ext}$major'
12236 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12239 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12240 # the default ld.so.conf also contains /usr/contrib/lib and
12241 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12242 # libtool to hard-code these into programs
12245 cygwin* | mingw* | pw32* | cegcc*)
12246 version_type=windows
12247 shrext_cmds=".dll"
12248 need_version=no
12249 need_lib_prefix=no
12251 case $GCC,$cc_basename in
12252 yes,*)
12253 # gcc
12254 library_names_spec='$libname.dll.a'
12255 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12256 postinstall_cmds='base_file=`basename \${file}`~
12257 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12258 dldir=$destdir/`dirname \$dlpath`~
12259 test -d \$dldir || mkdir -p \$dldir~
12260 $install_prog $dir/$dlname \$dldir/$dlname~
12261 chmod a+x \$dldir/$dlname~
12262 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12263 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12266 dlpath=$dir/\$dldll~
12267 $RM \$dlpath'
12268 shlibpath_overrides_runpath=yes
12270 case $host_os in
12271 cygwin*)
12272 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12273 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12275 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12277 mingw* | cegcc*)
12278 # MinGW DLLs use traditional 'lib' prefix
12279 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12281 pw32*)
12282 # pw32 DLLs use 'pw' prefix rather than 'lib'
12283 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12285 esac
12286 dynamic_linker='Win32 ld.exe'
12289 *,cl*)
12290 # Native MSVC
12291 libname_spec='$name'
12292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12293 library_names_spec='${libname}.dll.lib'
12295 case $build_os in
12296 mingw*)
12297 sys_lib_search_path_spec=
12298 lt_save_ifs=$IFS
12299 IFS=';'
12300 for lt_path in $LIB
12302 IFS=$lt_save_ifs
12303 # Let DOS variable expansion print the short 8.3 style file name.
12304 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12305 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12306 done
12307 IFS=$lt_save_ifs
12308 # Convert to MSYS style.
12309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12311 cygwin*)
12312 # Convert to unix form, then to dos form, then back to unix form
12313 # but this time dos style (no spaces!) so that the unix form looks
12314 # like /cygdrive/c/PROGRA~1:/cygdr...
12315 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12316 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12317 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12320 sys_lib_search_path_spec="$LIB"
12321 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12322 # It is most probably a Windows format PATH.
12323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12324 else
12325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12327 # FIXME: find the short name or the path components, as spaces are
12328 # common. (e.g. "Program Files" -> "PROGRA~1")
12330 esac
12332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12333 postinstall_cmds='base_file=`basename \${file}`~
12334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12335 dldir=$destdir/`dirname \$dlpath`~
12336 test -d \$dldir || mkdir -p \$dldir~
12337 $install_prog $dir/$dlname \$dldir/$dlname'
12338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12339 dlpath=$dir/\$dldll~
12340 $RM \$dlpath'
12341 shlibpath_overrides_runpath=yes
12342 dynamic_linker='Win32 link.exe'
12346 # Assume MSVC wrapper
12347 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12348 dynamic_linker='Win32 ld.exe'
12350 esac
12351 # FIXME: first we should search . and the directory the executable is in
12352 shlibpath_var=PATH
12355 darwin* | rhapsody*)
12356 dynamic_linker="$host_os dyld"
12357 version_type=darwin
12358 need_lib_prefix=no
12359 need_version=no
12360 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12361 soname_spec='${libname}${release}${major}$shared_ext'
12362 shlibpath_overrides_runpath=yes
12363 shlibpath_var=DYLD_LIBRARY_PATH
12364 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12367 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12370 dgux*)
12371 version_type=linux # correct to gnu/linux during the next big refactor
12372 need_lib_prefix=no
12373 need_version=no
12374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12375 soname_spec='${libname}${release}${shared_ext}$major'
12376 shlibpath_var=LD_LIBRARY_PATH
12379 freebsd* | dragonfly*)
12380 # DragonFly does not have aout. When/if they implement a new
12381 # versioning mechanism, adjust this.
12382 if test -x /usr/bin/objformat; then
12383 objformat=`/usr/bin/objformat`
12384 else
12385 case $host_os in
12386 freebsd[23].*) objformat=aout ;;
12387 *) objformat=elf ;;
12388 esac
12390 version_type=freebsd-$objformat
12391 case $version_type in
12392 freebsd-elf*)
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12394 need_version=no
12395 need_lib_prefix=no
12397 freebsd-*)
12398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12399 need_version=yes
12401 esac
12402 shlibpath_var=LD_LIBRARY_PATH
12403 case $host_os in
12404 freebsd2.*)
12405 shlibpath_overrides_runpath=yes
12407 freebsd3.[01]* | freebsdelf3.[01]*)
12408 shlibpath_overrides_runpath=yes
12409 hardcode_into_libs=yes
12411 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12412 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12413 shlibpath_overrides_runpath=no
12414 hardcode_into_libs=yes
12416 *) # from 4.6 on, and DragonFly
12417 shlibpath_overrides_runpath=yes
12418 hardcode_into_libs=yes
12420 esac
12423 haiku*)
12424 version_type=linux # correct to gnu/linux during the next big refactor
12425 need_lib_prefix=no
12426 need_version=no
12427 dynamic_linker="$host_os runtime_loader"
12428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12429 soname_spec='${libname}${release}${shared_ext}$major'
12430 shlibpath_var=LIBRARY_PATH
12431 shlibpath_overrides_runpath=yes
12432 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12433 hardcode_into_libs=yes
12436 hpux9* | hpux10* | hpux11*)
12437 # Give a soname corresponding to the major version so that dld.sl refuses to
12438 # link against other versions.
12439 version_type=sunos
12440 need_lib_prefix=no
12441 need_version=no
12442 case $host_cpu in
12443 ia64*)
12444 shrext_cmds='.so'
12445 hardcode_into_libs=yes
12446 dynamic_linker="$host_os dld.so"
12447 shlibpath_var=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12450 soname_spec='${libname}${release}${shared_ext}$major'
12451 if test "X$HPUX_IA64_MODE" = X32; then
12452 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12453 else
12454 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12458 hppa*64*)
12459 shrext_cmds='.sl'
12460 hardcode_into_libs=yes
12461 dynamic_linker="$host_os dld.sl"
12462 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12465 soname_spec='${libname}${release}${shared_ext}$major'
12466 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12470 shrext_cmds='.sl'
12471 dynamic_linker="$host_os dld.sl"
12472 shlibpath_var=SHLIB_PATH
12473 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12475 soname_spec='${libname}${release}${shared_ext}$major'
12477 esac
12478 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12479 postinstall_cmds='chmod 555 $lib'
12480 # or fails outright, so override atomically:
12481 install_override_mode=555
12484 interix[3-9]*)
12485 version_type=linux # correct to gnu/linux during the next big refactor
12486 need_lib_prefix=no
12487 need_version=no
12488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12489 soname_spec='${libname}${release}${shared_ext}$major'
12490 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12491 shlibpath_var=LD_LIBRARY_PATH
12492 shlibpath_overrides_runpath=no
12493 hardcode_into_libs=yes
12496 irix5* | irix6* | nonstopux*)
12497 case $host_os in
12498 nonstopux*) version_type=nonstopux ;;
12500 if test "$lt_cv_prog_gnu_ld" = yes; then
12501 version_type=linux # correct to gnu/linux during the next big refactor
12502 else
12503 version_type=irix
12504 fi ;;
12505 esac
12506 need_lib_prefix=no
12507 need_version=no
12508 soname_spec='${libname}${release}${shared_ext}$major'
12509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12510 case $host_os in
12511 irix5* | nonstopux*)
12512 libsuff= shlibsuff=
12515 case $LD in # libtool.m4 will add one of these switches to LD
12516 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12517 libsuff= shlibsuff= libmagic=32-bit;;
12518 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12519 libsuff=32 shlibsuff=N32 libmagic=N32;;
12520 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12521 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12522 *) libsuff= shlibsuff= libmagic=never-match;;
12523 esac
12525 esac
12526 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12527 shlibpath_overrides_runpath=no
12528 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12529 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12530 hardcode_into_libs=yes
12533 # No shared lib support for Linux oldld, aout, or coff.
12534 linux*oldld* | linux*aout* | linux*coff*)
12535 dynamic_linker=no
12538 # This must be glibc/ELF.
12539 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12540 version_type=linux # correct to gnu/linux during the next big refactor
12541 need_lib_prefix=no
12542 need_version=no
12543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12544 soname_spec='${libname}${release}${shared_ext}$major'
12545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12546 shlibpath_var=LD_LIBRARY_PATH
12547 shlibpath_overrides_runpath=no
12549 # Some binutils ld are patched to set DT_RUNPATH
12550 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 lt_cv_shlibpath_overrides_runpath=no
12554 save_LDFLAGS=$LDFLAGS
12555 save_libdir=$libdir
12556 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12557 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12562 main ()
12566 return 0;
12568 _ACEOF
12569 if ac_fn_c_try_link "$LINENO"; then :
12570 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12571 lt_cv_shlibpath_overrides_runpath=yes
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 LDFLAGS=$save_LDFLAGS
12577 libdir=$save_libdir
12581 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12583 # This implies no fast_install, which is unacceptable.
12584 # Some rework will be needed to allow for fast_install
12585 # before this can be enabled.
12586 hardcode_into_libs=yes
12588 # Append ld.so.conf contents to the search path
12589 if test -f /etc/ld.so.conf; then
12590 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' ' '`
12591 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12594 # We used to test for /lib/ld.so.1 and disable shared libraries on
12595 # powerpc, because MkLinux only supported shared libraries with the
12596 # GNU dynamic linker. Since this was broken with cross compilers,
12597 # most powerpc-linux boxes support dynamic linking these days and
12598 # people can always --disable-shared, the test was removed, and we
12599 # assume the GNU/Linux dynamic linker is in use.
12600 dynamic_linker='GNU/Linux ld.so'
12603 netbsdelf*-gnu)
12604 version_type=linux
12605 need_lib_prefix=no
12606 need_version=no
12607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12608 soname_spec='${libname}${release}${shared_ext}$major'
12609 shlibpath_var=LD_LIBRARY_PATH
12610 shlibpath_overrides_runpath=no
12611 hardcode_into_libs=yes
12612 dynamic_linker='NetBSD ld.elf_so'
12615 netbsd*)
12616 version_type=sunos
12617 need_lib_prefix=no
12618 need_version=no
12619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12622 dynamic_linker='NetBSD (a.out) ld.so'
12623 else
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12625 soname_spec='${libname}${release}${shared_ext}$major'
12626 dynamic_linker='NetBSD ld.elf_so'
12628 shlibpath_var=LD_LIBRARY_PATH
12629 shlibpath_overrides_runpath=yes
12630 hardcode_into_libs=yes
12633 newsos6)
12634 version_type=linux # correct to gnu/linux during the next big refactor
12635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12636 shlibpath_var=LD_LIBRARY_PATH
12637 shlibpath_overrides_runpath=yes
12640 *nto* | *qnx*)
12641 version_type=qnx
12642 need_lib_prefix=no
12643 need_version=no
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12645 soname_spec='${libname}${release}${shared_ext}$major'
12646 shlibpath_var=LD_LIBRARY_PATH
12647 shlibpath_overrides_runpath=no
12648 hardcode_into_libs=yes
12649 dynamic_linker='ldqnx.so'
12652 openbsd*)
12653 version_type=sunos
12654 sys_lib_dlsearch_path_spec="/usr/lib"
12655 need_lib_prefix=no
12656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12657 case $host_os in
12658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12659 *) need_version=no ;;
12660 esac
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12663 shlibpath_var=LD_LIBRARY_PATH
12664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12665 case $host_os in
12666 openbsd2.[89] | openbsd2.[89].*)
12667 shlibpath_overrides_runpath=no
12670 shlibpath_overrides_runpath=yes
12672 esac
12673 else
12674 shlibpath_overrides_runpath=yes
12678 os2*)
12679 libname_spec='$name'
12680 shrext_cmds=".dll"
12681 need_lib_prefix=no
12682 library_names_spec='$libname${shared_ext} $libname.a'
12683 dynamic_linker='OS/2 ld.exe'
12684 shlibpath_var=LIBPATH
12687 osf3* | osf4* | osf5*)
12688 version_type=osf
12689 need_lib_prefix=no
12690 need_version=no
12691 soname_spec='${libname}${release}${shared_ext}$major'
12692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12693 shlibpath_var=LD_LIBRARY_PATH
12694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12698 rdos*)
12699 dynamic_linker=no
12702 solaris*)
12703 version_type=linux # correct to gnu/linux during the next big refactor
12704 need_lib_prefix=no
12705 need_version=no
12706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12707 soname_spec='${libname}${release}${shared_ext}$major'
12708 shlibpath_var=LD_LIBRARY_PATH
12709 shlibpath_overrides_runpath=yes
12710 hardcode_into_libs=yes
12711 # ldd complains unless libraries are executable
12712 postinstall_cmds='chmod +x $lib'
12715 sunos4*)
12716 version_type=sunos
12717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12719 shlibpath_var=LD_LIBRARY_PATH
12720 shlibpath_overrides_runpath=yes
12721 if test "$with_gnu_ld" = yes; then
12722 need_lib_prefix=no
12724 need_version=yes
12727 sysv4 | sysv4.3*)
12728 version_type=linux # correct to gnu/linux during the next big refactor
12729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12730 soname_spec='${libname}${release}${shared_ext}$major'
12731 shlibpath_var=LD_LIBRARY_PATH
12732 case $host_vendor in
12733 sni)
12734 shlibpath_overrides_runpath=no
12735 need_lib_prefix=no
12736 runpath_var=LD_RUN_PATH
12738 siemens)
12739 need_lib_prefix=no
12741 motorola)
12742 need_lib_prefix=no
12743 need_version=no
12744 shlibpath_overrides_runpath=no
12745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12747 esac
12750 sysv4*MP*)
12751 if test -d /usr/nec ;then
12752 version_type=linux # correct to gnu/linux during the next big refactor
12753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12754 soname_spec='$libname${shared_ext}.$major'
12755 shlibpath_var=LD_LIBRARY_PATH
12759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12760 version_type=freebsd-elf
12761 need_lib_prefix=no
12762 need_version=no
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12764 soname_spec='${libname}${release}${shared_ext}$major'
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=yes
12767 hardcode_into_libs=yes
12768 if test "$with_gnu_ld" = yes; then
12769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12770 else
12771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12772 case $host_os in
12773 sco3.2v5*)
12774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12776 esac
12778 sys_lib_dlsearch_path_spec='/usr/lib'
12781 tpf*)
12782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12783 version_type=linux # correct to gnu/linux during the next big refactor
12784 need_lib_prefix=no
12785 need_version=no
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 shlibpath_var=LD_LIBRARY_PATH
12788 shlibpath_overrides_runpath=no
12789 hardcode_into_libs=yes
12792 uts4*)
12793 version_type=linux # correct to gnu/linux during the next big refactor
12794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12795 soname_spec='${libname}${release}${shared_ext}$major'
12796 shlibpath_var=LD_LIBRARY_PATH
12800 dynamic_linker=no
12802 esac
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12804 $as_echo "$dynamic_linker" >&6; }
12805 test "$dynamic_linker" = no && can_build_shared=no
12807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12808 if test "$GCC" = yes; then
12809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12813 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12816 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12911 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12912 hardcode_action=
12913 if test -n "$hardcode_libdir_flag_spec" ||
12914 test -n "$runpath_var" ||
12915 test "X$hardcode_automatic" = "Xyes" ; then
12917 # We can hardcode non-existent directories.
12918 if test "$hardcode_direct" != no &&
12919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12920 # have to relink, otherwise we might link with an installed library
12921 # when we should be linking with a yet-to-be-installed one
12922 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12923 test "$hardcode_minus_L" != no; then
12924 # Linking always hardcodes the temporary library directory.
12925 hardcode_action=relink
12926 else
12927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12928 hardcode_action=immediate
12930 else
12931 # We cannot hardcode anything, or else we can only hardcode existing
12932 # directories.
12933 hardcode_action=unsupported
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12936 $as_echo "$hardcode_action" >&6; }
12938 if test "$hardcode_action" = relink ||
12939 test "$inherit_rpath" = yes; then
12940 # Fast installation is not supported
12941 enable_fast_install=no
12942 elif test "$shlibpath_overrides_runpath" = yes ||
12943 test "$enable_shared" = no; then
12944 # Fast installation is not necessary
12945 enable_fast_install=needless
12953 if test "x$enable_dlopen" != xyes; then
12954 enable_dlopen=unknown
12955 enable_dlopen_self=unknown
12956 enable_dlopen_self_static=unknown
12957 else
12958 lt_cv_dlopen=no
12959 lt_cv_dlopen_libs=
12961 case $host_os in
12962 beos*)
12963 lt_cv_dlopen="load_add_on"
12964 lt_cv_dlopen_libs=
12965 lt_cv_dlopen_self=yes
12968 mingw* | pw32* | cegcc*)
12969 lt_cv_dlopen="LoadLibrary"
12970 lt_cv_dlopen_libs=
12973 cygwin*)
12974 lt_cv_dlopen="dlopen"
12975 lt_cv_dlopen_libs=
12978 darwin*)
12979 # if libdl is installed we need to link against it
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12981 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12982 if ${ac_cv_lib_dl_dlopen+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-ldl $LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12993 #ifdef __cplusplus
12994 extern "C"
12995 #endif
12996 char dlopen ();
12998 main ()
13000 return dlopen ();
13002 return 0;
13004 _ACEOF
13005 if ac_fn_c_try_link "$LINENO"; then :
13006 ac_cv_lib_dl_dlopen=yes
13007 else
13008 ac_cv_lib_dl_dlopen=no
13010 rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012 LIBS=$ac_check_lib_save_LIBS
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13015 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13016 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13018 else
13020 lt_cv_dlopen="dyld"
13021 lt_cv_dlopen_libs=
13022 lt_cv_dlopen_self=yes
13029 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13030 if test "x$ac_cv_func_shl_load" = xyes; then :
13031 lt_cv_dlopen="shl_load"
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13034 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13035 if ${ac_cv_lib_dld_shl_load+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038 ac_check_lib_save_LIBS=$LIBS
13039 LIBS="-ldld $LIBS"
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13043 /* Override any GCC internal prototype to avoid an error.
13044 Use char because int might match the return type of a GCC
13045 builtin and then its argument prototype would still apply. */
13046 #ifdef __cplusplus
13047 extern "C"
13048 #endif
13049 char shl_load ();
13051 main ()
13053 return shl_load ();
13055 return 0;
13057 _ACEOF
13058 if ac_fn_c_try_link "$LINENO"; then :
13059 ac_cv_lib_dld_shl_load=yes
13060 else
13061 ac_cv_lib_dld_shl_load=no
13063 rm -f core conftest.err conftest.$ac_objext \
13064 conftest$ac_exeext conftest.$ac_ext
13065 LIBS=$ac_check_lib_save_LIBS
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13068 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13069 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13070 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13071 else
13072 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13073 if test "x$ac_cv_func_dlopen" = xyes; then :
13074 lt_cv_dlopen="dlopen"
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13077 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13078 if ${ac_cv_lib_dl_dlopen+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 ac_check_lib_save_LIBS=$LIBS
13082 LIBS="-ldl $LIBS"
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13089 #ifdef __cplusplus
13090 extern "C"
13091 #endif
13092 char dlopen ();
13094 main ()
13096 return dlopen ();
13098 return 0;
13100 _ACEOF
13101 if ac_fn_c_try_link "$LINENO"; then :
13102 ac_cv_lib_dl_dlopen=yes
13103 else
13104 ac_cv_lib_dl_dlopen=no
13106 rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13108 LIBS=$ac_check_lib_save_LIBS
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13111 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13112 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13114 else
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13116 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13117 if ${ac_cv_lib_svld_dlopen+:} false; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 ac_check_lib_save_LIBS=$LIBS
13121 LIBS="-lsvld $LIBS"
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 char dlopen ();
13133 main ()
13135 return dlopen ();
13137 return 0;
13139 _ACEOF
13140 if ac_fn_c_try_link "$LINENO"; then :
13141 ac_cv_lib_svld_dlopen=yes
13142 else
13143 ac_cv_lib_svld_dlopen=no
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147 LIBS=$ac_check_lib_save_LIBS
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13150 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13151 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13153 else
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13155 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13156 if ${ac_cv_lib_dld_dld_link+:} false; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 ac_check_lib_save_LIBS=$LIBS
13160 LIBS="-ldld $LIBS"
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13164 /* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13167 #ifdef __cplusplus
13168 extern "C"
13169 #endif
13170 char dld_link ();
13172 main ()
13174 return dld_link ();
13176 return 0;
13178 _ACEOF
13179 if ac_fn_c_try_link "$LINENO"; then :
13180 ac_cv_lib_dld_dld_link=yes
13181 else
13182 ac_cv_lib_dld_dld_link=no
13184 rm -f core conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13189 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13190 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13210 esac
13212 if test "x$lt_cv_dlopen" != xno; then
13213 enable_dlopen=yes
13214 else
13215 enable_dlopen=no
13218 case $lt_cv_dlopen in
13219 dlopen)
13220 save_CPPFLAGS="$CPPFLAGS"
13221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13223 save_LDFLAGS="$LDFLAGS"
13224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13226 save_LIBS="$LIBS"
13227 LIBS="$lt_cv_dlopen_libs $LIBS"
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13230 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13231 if ${lt_cv_dlopen_self+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 if test "$cross_compiling" = yes; then :
13235 lt_cv_dlopen_self=cross
13236 else
13237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13238 lt_status=$lt_dlunknown
13239 cat > conftest.$ac_ext <<_LT_EOF
13240 #line $LINENO "configure"
13241 #include "confdefs.h"
13243 #if HAVE_DLFCN_H
13244 #include <dlfcn.h>
13245 #endif
13247 #include <stdio.h>
13249 #ifdef RTLD_GLOBAL
13250 # define LT_DLGLOBAL RTLD_GLOBAL
13251 #else
13252 # ifdef DL_GLOBAL
13253 # define LT_DLGLOBAL DL_GLOBAL
13254 # else
13255 # define LT_DLGLOBAL 0
13256 # endif
13257 #endif
13259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13260 find out it does not work in some platform. */
13261 #ifndef LT_DLLAZY_OR_NOW
13262 # ifdef RTLD_LAZY
13263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13264 # else
13265 # ifdef DL_LAZY
13266 # define LT_DLLAZY_OR_NOW DL_LAZY
13267 # else
13268 # ifdef RTLD_NOW
13269 # define LT_DLLAZY_OR_NOW RTLD_NOW
13270 # else
13271 # ifdef DL_NOW
13272 # define LT_DLLAZY_OR_NOW DL_NOW
13273 # else
13274 # define LT_DLLAZY_OR_NOW 0
13275 # endif
13276 # endif
13277 # endif
13278 # endif
13279 #endif
13281 /* When -fvisbility=hidden is used, assume the code has been annotated
13282 correspondingly for the symbols needed. */
13283 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13284 int fnord () __attribute__((visibility("default")));
13285 #endif
13287 int fnord () { return 42; }
13288 int main ()
13290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13291 int status = $lt_dlunknown;
13293 if (self)
13295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13296 else
13298 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13299 else puts (dlerror ());
13301 /* dlclose (self); */
13303 else
13304 puts (dlerror ());
13306 return status;
13308 _LT_EOF
13309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13310 (eval $ac_link) 2>&5
13311 ac_status=$?
13312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13313 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13314 (./conftest; exit; ) >&5 2>/dev/null
13315 lt_status=$?
13316 case x$lt_status in
13317 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13318 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13319 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13320 esac
13321 else :
13322 # compilation failed
13323 lt_cv_dlopen_self=no
13326 rm -fr conftest*
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13331 $as_echo "$lt_cv_dlopen_self" >&6; }
13333 if test "x$lt_cv_dlopen_self" = xyes; then
13334 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13336 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13337 if ${lt_cv_dlopen_self_static+:} false; then :
13338 $as_echo_n "(cached) " >&6
13339 else
13340 if test "$cross_compiling" = yes; then :
13341 lt_cv_dlopen_self_static=cross
13342 else
13343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13344 lt_status=$lt_dlunknown
13345 cat > conftest.$ac_ext <<_LT_EOF
13346 #line $LINENO "configure"
13347 #include "confdefs.h"
13349 #if HAVE_DLFCN_H
13350 #include <dlfcn.h>
13351 #endif
13353 #include <stdio.h>
13355 #ifdef RTLD_GLOBAL
13356 # define LT_DLGLOBAL RTLD_GLOBAL
13357 #else
13358 # ifdef DL_GLOBAL
13359 # define LT_DLGLOBAL DL_GLOBAL
13360 # else
13361 # define LT_DLGLOBAL 0
13362 # endif
13363 #endif
13365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13366 find out it does not work in some platform. */
13367 #ifndef LT_DLLAZY_OR_NOW
13368 # ifdef RTLD_LAZY
13369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13370 # else
13371 # ifdef DL_LAZY
13372 # define LT_DLLAZY_OR_NOW DL_LAZY
13373 # else
13374 # ifdef RTLD_NOW
13375 # define LT_DLLAZY_OR_NOW RTLD_NOW
13376 # else
13377 # ifdef DL_NOW
13378 # define LT_DLLAZY_OR_NOW DL_NOW
13379 # else
13380 # define LT_DLLAZY_OR_NOW 0
13381 # endif
13382 # endif
13383 # endif
13384 # endif
13385 #endif
13387 /* When -fvisbility=hidden is used, assume the code has been annotated
13388 correspondingly for the symbols needed. */
13389 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13390 int fnord () __attribute__((visibility("default")));
13391 #endif
13393 int fnord () { return 42; }
13394 int main ()
13396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13397 int status = $lt_dlunknown;
13399 if (self)
13401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13402 else
13404 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13405 else puts (dlerror ());
13407 /* dlclose (self); */
13409 else
13410 puts (dlerror ());
13412 return status;
13414 _LT_EOF
13415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13416 (eval $ac_link) 2>&5
13417 ac_status=$?
13418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13419 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13420 (./conftest; exit; ) >&5 2>/dev/null
13421 lt_status=$?
13422 case x$lt_status in
13423 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13424 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13425 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13426 esac
13427 else :
13428 # compilation failed
13429 lt_cv_dlopen_self_static=no
13432 rm -fr conftest*
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13437 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13440 CPPFLAGS="$save_CPPFLAGS"
13441 LDFLAGS="$save_LDFLAGS"
13442 LIBS="$save_LIBS"
13444 esac
13446 case $lt_cv_dlopen_self in
13447 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13448 *) enable_dlopen_self=unknown ;;
13449 esac
13451 case $lt_cv_dlopen_self_static in
13452 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13453 *) enable_dlopen_self_static=unknown ;;
13454 esac
13473 striplib=
13474 old_striplib=
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13476 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13477 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13478 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13479 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13481 $as_echo "yes" >&6; }
13482 else
13483 # FIXME - insert some real tests, host_os isn't really good enough
13484 case $host_os in
13485 darwin*)
13486 if test -n "$STRIP" ; then
13487 striplib="$STRIP -x"
13488 old_striplib="$STRIP -S"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13490 $as_echo "yes" >&6; }
13491 else
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 $as_echo "no" >&6; }
13500 esac
13514 # Report which library types will actually be built
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13516 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13518 $as_echo "$can_build_shared" >&6; }
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13521 $as_echo_n "checking whether to build shared libraries... " >&6; }
13522 test "$can_build_shared" = "no" && enable_shared=no
13524 # On AIX, shared libraries and static libraries use the same namespace, and
13525 # are all built from PIC.
13526 case $host_os in
13527 aix3*)
13528 test "$enable_shared" = yes && enable_static=no
13529 if test -n "$RANLIB"; then
13530 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13531 postinstall_cmds='$RANLIB $lib'
13535 aix[4-9]*)
13536 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13537 test "$enable_shared" = yes && enable_static=no
13540 esac
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13542 $as_echo "$enable_shared" >&6; }
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13545 $as_echo_n "checking whether to build static libraries... " >&6; }
13546 # Make sure either enable_shared or enable_static is yes.
13547 test "$enable_shared" = yes || enable_static=yes
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13549 $as_echo "$enable_static" >&6; }
13555 ac_ext=c
13556 ac_cpp='$CPP $CPPFLAGS'
13557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13561 CC="$lt_save_CC"
13577 ac_config_commands="$ac_config_commands libtool"
13582 # Only expand once:
13585 if test -n "$ac_tool_prefix"; then
13586 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13587 set dummy ${ac_tool_prefix}windres; ac_word=$2
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13589 $as_echo_n "checking for $ac_word... " >&6; }
13590 if ${ac_cv_prog_RC+:} false; then :
13591 $as_echo_n "(cached) " >&6
13592 else
13593 if test -n "$RC"; then
13594 ac_cv_prog_RC="$RC" # Let the user override the test.
13595 else
13596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597 for as_dir in $PATH
13599 IFS=$as_save_IFS
13600 test -z "$as_dir" && as_dir=.
13601 for ac_exec_ext in '' $ac_executable_extensions; do
13602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13603 ac_cv_prog_RC="${ac_tool_prefix}windres"
13604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13605 break 2
13607 done
13608 done
13609 IFS=$as_save_IFS
13613 RC=$ac_cv_prog_RC
13614 if test -n "$RC"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
13616 $as_echo "$RC" >&6; }
13617 else
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619 $as_echo "no" >&6; }
13624 if test -z "$ac_cv_prog_RC"; then
13625 ac_ct_RC=$RC
13626 # Extract the first word of "windres", so it can be a program name with args.
13627 set dummy windres; ac_word=$2
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629 $as_echo_n "checking for $ac_word... " >&6; }
13630 if ${ac_cv_prog_ac_ct_RC+:} false; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 if test -n "$ac_ct_RC"; then
13634 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
13635 else
13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637 for as_dir in $PATH
13639 IFS=$as_save_IFS
13640 test -z "$as_dir" && as_dir=.
13641 for ac_exec_ext in '' $ac_executable_extensions; do
13642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13643 ac_cv_prog_ac_ct_RC="windres"
13644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13645 break 2
13647 done
13648 done
13649 IFS=$as_save_IFS
13653 ac_ct_RC=$ac_cv_prog_ac_ct_RC
13654 if test -n "$ac_ct_RC"; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
13656 $as_echo "$ac_ct_RC" >&6; }
13657 else
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 $as_echo "no" >&6; }
13662 if test "x$ac_ct_RC" = x; then
13663 RC=""
13664 else
13665 case $cross_compiling:$ac_tool_warned in
13666 yes:)
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13669 ac_tool_warned=yes ;;
13670 esac
13671 RC=$ac_ct_RC
13673 else
13674 RC="$ac_cv_prog_RC"
13680 # Source file extension for RC test sources.
13681 ac_ext=rc
13683 # Object file extension for compiled RC test sources.
13684 objext=o
13685 objext_RC=$objext
13687 # Code to be used in simple compile tests
13688 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13690 # Code to be used in simple link tests
13691 lt_simple_link_test_code="$lt_simple_compile_test_code"
13693 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13700 # If no C compiler was specified, use CC.
13701 LTCC=${LTCC-"$CC"}
13703 # If no C compiler flags were specified, use CFLAGS.
13704 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13706 # Allow CC to be a program name with arguments.
13707 compiler=$CC
13710 # save warnings/boilerplate of simple test code
13711 ac_outfile=conftest.$ac_objext
13712 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13713 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13714 _lt_compiler_boilerplate=`cat conftest.err`
13715 $RM conftest*
13717 ac_outfile=conftest.$ac_objext
13718 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13719 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13720 _lt_linker_boilerplate=`cat conftest.err`
13721 $RM -r conftest*
13724 # Allow CC to be a program name with arguments.
13725 lt_save_CC="$CC"
13726 lt_save_CFLAGS=$CFLAGS
13727 lt_save_GCC=$GCC
13728 GCC=
13729 CC=${RC-"windres"}
13730 CFLAGS=
13731 compiler=$CC
13732 compiler_RC=$CC
13733 for cc_temp in $compiler""; do
13734 case $cc_temp in
13735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13737 \-*) ;;
13738 *) break;;
13739 esac
13740 done
13741 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13743 lt_cv_prog_compiler_c_o_RC=yes
13745 if test -n "$compiler"; then
13752 GCC=$lt_save_GCC
13753 ac_ext=c
13754 ac_cpp='$CPP $CPPFLAGS'
13755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13759 CC=$lt_save_CC
13760 CFLAGS=$lt_save_CFLAGS
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13765 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13766 if ${ac_cv_c_const+:} false; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13773 main ()
13776 #ifndef __cplusplus
13777 /* Ultrix mips cc rejects this sort of thing. */
13778 typedef int charset[2];
13779 const charset cs = { 0, 0 };
13780 /* SunOS 4.1.1 cc rejects this. */
13781 char const *const *pcpcc;
13782 char **ppc;
13783 /* NEC SVR4.0.2 mips cc rejects this. */
13784 struct point {int x, y;};
13785 static struct point const zero = {0,0};
13786 /* AIX XL C 1.02.0.0 rejects this.
13787 It does not let you subtract one const X* pointer from another in
13788 an arm of an if-expression whose if-part is not a constant
13789 expression */
13790 const char *g = "string";
13791 pcpcc = &g + (g ? g-g : 0);
13792 /* HPUX 7.0 cc rejects these. */
13793 ++pcpcc;
13794 ppc = (char**) pcpcc;
13795 pcpcc = (char const *const *) ppc;
13796 { /* SCO 3.2v4 cc rejects this sort of thing. */
13797 char tx;
13798 char *t = &tx;
13799 char const *s = 0 ? (char *) 0 : (char const *) 0;
13801 *t++ = 0;
13802 if (s) return 0;
13804 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13805 int x[] = {25, 17};
13806 const int *foo = &x[0];
13807 ++foo;
13809 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13810 typedef const int *iptr;
13811 iptr p = 0;
13812 ++p;
13814 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13815 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13816 struct s { int j; const int *ap[3]; } bx;
13817 struct s *b = &bx; b->j = 5;
13819 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13820 const int foo = 10;
13821 if (!foo) return 0;
13823 return !cs[0] && !zero.x;
13824 #endif
13827 return 0;
13829 _ACEOF
13830 if ac_fn_c_try_compile "$LINENO"; then :
13831 ac_cv_c_const=yes
13832 else
13833 ac_cv_c_const=no
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13838 $as_echo "$ac_cv_c_const" >&6; }
13839 if test $ac_cv_c_const = no; then
13841 $as_echo "#define const /**/" >>confdefs.h
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13846 $as_echo_n "checking for inline... " >&6; }
13847 if ${ac_cv_c_inline+:} false; then :
13848 $as_echo_n "(cached) " >&6
13849 else
13850 ac_cv_c_inline=no
13851 for ac_kw in inline __inline__ __inline; do
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 #ifndef __cplusplus
13855 typedef int foo_t;
13856 static $ac_kw foo_t static_foo () {return 0; }
13857 $ac_kw foo_t foo () {return 0; }
13858 #endif
13860 _ACEOF
13861 if ac_fn_c_try_compile "$LINENO"; then :
13862 ac_cv_c_inline=$ac_kw
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 test "$ac_cv_c_inline" != no && break
13866 done
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13870 $as_echo "$ac_cv_c_inline" >&6; }
13872 case $ac_cv_c_inline in
13873 inline | yes) ;;
13875 case $ac_cv_c_inline in
13876 no) ac_val=;;
13877 *) ac_val=$ac_cv_c_inline;;
13878 esac
13879 cat >>confdefs.h <<_ACEOF
13880 #ifndef __cplusplus
13881 #define inline $ac_val
13882 #endif
13883 _ACEOF
13885 esac
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13888 $as_echo_n "checking for working volatile... " >&6; }
13889 if ${ac_cv_c_volatile+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13896 main ()
13899 volatile int x;
13900 int * volatile y = (int *) 0;
13901 return !x && !y;
13903 return 0;
13905 _ACEOF
13906 if ac_fn_c_try_compile "$LINENO"; then :
13907 ac_cv_c_volatile=yes
13908 else
13909 ac_cv_c_volatile=no
13911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13914 $as_echo "$ac_cv_c_volatile" >&6; }
13915 if test $ac_cv_c_volatile = no; then
13917 $as_echo "#define volatile /**/" >>confdefs.h
13921 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13922 if test "x$ac_cv_type_off_t" = xyes; then :
13924 else
13926 cat >>confdefs.h <<_ACEOF
13927 #define off_t long int
13928 _ACEOF
13932 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13933 if test "x$ac_cv_type_pid_t" = xyes; then :
13935 else
13937 cat >>confdefs.h <<_ACEOF
13938 #define pid_t int
13939 _ACEOF
13943 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13944 if test "x$ac_cv_type_size_t" = xyes; then :
13946 else
13948 cat >>confdefs.h <<_ACEOF
13949 #define size_t unsigned int
13950 _ACEOF
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13955 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13956 if ${ac_cv_type_uid_t+:} false; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961 #include <sys/types.h>
13963 _ACEOF
13964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13965 $EGREP "uid_t" >/dev/null 2>&1; then :
13966 ac_cv_type_uid_t=yes
13967 else
13968 ac_cv_type_uid_t=no
13970 rm -f conftest*
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13974 $as_echo "$ac_cv_type_uid_t" >&6; }
13975 if test $ac_cv_type_uid_t = no; then
13977 $as_echo "#define uid_t int" >>confdefs.h
13980 $as_echo "#define gid_t int" >>confdefs.h
13984 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
13985 case $ac_cv_c_int8_t in #(
13986 no|yes) ;; #(
13989 cat >>confdefs.h <<_ACEOF
13990 #define int8_t $ac_cv_c_int8_t
13991 _ACEOF
13993 esac
13995 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
13996 case $ac_cv_c_int16_t in #(
13997 no|yes) ;; #(
14000 cat >>confdefs.h <<_ACEOF
14001 #define int16_t $ac_cv_c_int16_t
14002 _ACEOF
14004 esac
14006 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14007 case $ac_cv_c_int32_t in #(
14008 no|yes) ;; #(
14011 cat >>confdefs.h <<_ACEOF
14012 #define int32_t $ac_cv_c_int32_t
14013 _ACEOF
14015 esac
14017 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14018 case $ac_cv_c_int64_t in #(
14019 no|yes) ;; #(
14022 cat >>confdefs.h <<_ACEOF
14023 #define int64_t $ac_cv_c_int64_t
14024 _ACEOF
14026 esac
14028 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14029 case $ac_cv_c_uint8_t in #(
14030 no|yes) ;; #(
14033 $as_echo "#define _UINT8_T 1" >>confdefs.h
14036 cat >>confdefs.h <<_ACEOF
14037 #define uint8_t $ac_cv_c_uint8_t
14038 _ACEOF
14040 esac
14042 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14043 case $ac_cv_c_uint16_t in #(
14044 no|yes) ;; #(
14048 cat >>confdefs.h <<_ACEOF
14049 #define uint16_t $ac_cv_c_uint16_t
14050 _ACEOF
14052 esac
14054 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14055 case $ac_cv_c_uint32_t in #(
14056 no|yes) ;; #(
14059 $as_echo "#define _UINT32_T 1" >>confdefs.h
14062 cat >>confdefs.h <<_ACEOF
14063 #define uint32_t $ac_cv_c_uint32_t
14064 _ACEOF
14066 esac
14068 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14069 case $ac_cv_c_uint64_t in #(
14070 no|yes) ;; #(
14073 $as_echo "#define _UINT64_T 1" >>confdefs.h
14076 cat >>confdefs.h <<_ACEOF
14077 #define uint64_t $ac_cv_c_uint64_t
14078 _ACEOF
14080 esac
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14083 $as_echo_n "checking return type of signal handlers... " >&6; }
14084 if ${ac_cv_type_signal+:} false; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 #include <sys/types.h>
14090 #include <signal.h>
14093 main ()
14095 return *(signal (0, 0)) (0) == 1;
14097 return 0;
14099 _ACEOF
14100 if ac_fn_c_try_compile "$LINENO"; then :
14101 ac_cv_type_signal=int
14102 else
14103 ac_cv_type_signal=void
14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14108 $as_echo "$ac_cv_type_signal" >&6; }
14110 cat >>confdefs.h <<_ACEOF
14111 #define RETSIGTYPE $ac_cv_type_signal
14112 _ACEOF
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
14116 $as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
14117 if ${ax_cv_cpp_vararg_macro_iso+:} false; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14123 #define macro(a, ...) func(a, __VA_ARGS__)
14124 int func(int a, int b, int c);
14127 main ()
14130 int i = macro(1, 2, 3);
14134 return 0;
14136 _ACEOF
14137 if ac_fn_c_try_compile "$LINENO"; then :
14138 ax_cv_cpp_vararg_macro_iso=yes
14139 else
14140 ax_cv_cpp_vararg_macro_iso=no
14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
14147 $as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
14148 if test "x$ax_cv_cpp_vararg_macro_iso" = xyes; then :
14150 $as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
14155 $as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
14156 if ${ax_cv_cpp_vararg_macro_gcc+:} false; then :
14157 $as_echo_n "(cached) " >&6
14158 else
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14162 #define macro(a, b...) func(a, b)
14163 int func(int a, int b, int c);
14166 main ()
14169 int i = macro(1, 2, 3);
14173 return 0;
14175 _ACEOF
14176 if ac_fn_c_try_compile "$LINENO"; then :
14177 ax_cv_cpp_vararg_macro_gcc=yes
14178 else
14179 ax_cv_cpp_vararg_macro_gcc=no
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
14186 $as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
14187 if test "x$ax_cv_cpp_vararg_macro_gcc" = xyes; then :
14189 $as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
14194 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14195 #include <sys/types.h>
14196 #ifdef WIN32
14197 #include <ws2tcpip.h>
14198 #else
14199 #include <sys/socket.h>
14200 #endif
14204 if test "x$ac_cv_type_socklen_t" = xyes; then :
14206 else
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14209 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14210 if ${ax_cv_socklen_t_equiv+:} false; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14214 #AS_CASE is not supported on <autoconf-2.60
14215 case "${host}" in
14216 *-mingw*) ax_cv_socklen_t_equiv=int ;;
14218 # Systems have either "struct sockaddr *" or
14219 # "void *" as the second argument to getpeername
14220 for arg2 in "struct sockaddr" void; do
14221 for t in int size_t unsigned long "unsigned long"; do
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14225 #include <sys/types.h>
14226 #include <sys/socket.h>
14227 int getpeername (int, $arg2 *, $t *);
14230 main ()
14233 $t len;
14234 getpeername(0,0,&len);
14238 return 0;
14240 _ACEOF
14241 if ac_fn_c_try_compile "$LINENO"; then :
14242 ax_cv_socklen_t_equiv="$t"; break
14245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14246 done
14247 test -n "$ax_cv_socklen_t_equiv" && break
14248 done
14250 esac
14252 if ${ax_cv_socklen_t_equiv:+false} :; then :
14253 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14254 else
14256 cat >>confdefs.h <<_ACEOF
14257 #define socklen_t $ax_cv_socklen_t_equiv
14258 _ACEOF
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
14265 $as_echo "$ax_cv_socklen_t_equiv" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
14272 $as_echo_n "checking for C compiler empty array size... " >&6; }
14273 if ${ax_cv_c_empty_array+:} false; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14280 main ()
14283 struct { int foo; int bar[0]; } mystruct;
14287 return 0;
14289 _ACEOF
14290 if ac_fn_c_try_compile "$LINENO"; then :
14291 ax_cv_c_empty_array=0
14292 else
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14297 main ()
14300 struct { int foo; int bar[]; } mystruct;
14304 return 0;
14306 _ACEOF
14307 if ac_fn_c_try_compile "$LINENO"; then :
14308 ax_cv_c_empty_array=
14309 else
14310 as_fn_error $? "C compiler is unable to creaty empty arrays" "$LINENO" 5
14313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
14320 $as_echo "$ax_cv_c_empty_array" >&6; }
14321 cat >>confdefs.h <<_ACEOF
14322 #define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
14323 _ACEOF
14325 # The cast to long int works around a bug in the HP C Compiler
14326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14328 # This bug is HP SR number 8606223364.
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14330 $as_echo_n "checking size of unsigned int... " >&6; }
14331 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14336 else
14337 if test "$ac_cv_type_unsigned_int" = yes; then
14338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14340 as_fn_error 77 "cannot compute sizeof (unsigned int)
14341 See \`config.log' for more details" "$LINENO" 5; }
14342 else
14343 ac_cv_sizeof_unsigned_int=0
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14349 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14353 cat >>confdefs.h <<_ACEOF
14354 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14355 _ACEOF
14358 # The cast to long int works around a bug in the HP C Compiler
14359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14361 # This bug is HP SR number 8606223364.
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14363 $as_echo_n "checking size of unsigned long... " >&6; }
14364 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14369 else
14370 if test "$ac_cv_type_unsigned_long" = yes; then
14371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14373 as_fn_error 77 "cannot compute sizeof (unsigned long)
14374 See \`config.log' for more details" "$LINENO" 5; }
14375 else
14376 ac_cv_sizeof_unsigned_long=0
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14382 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14386 cat >>confdefs.h <<_ACEOF
14387 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14388 _ACEOF
14391 for ac_header in \
14392 stdio.h stdarg.h stdbool.h limits.h \
14393 time.h errno.h fcntl.h io.h direct.h \
14394 ctype.h sys/types.h sys/socket.h \
14395 signal.h unistd.h dlfcn.h \
14396 netinet/in.h netinet/in_systm.h \
14397 netinet/tcp.h arpa/inet.h netdb.h \
14398 windows.h winsock2.h ws2tcpip.h \
14400 do :
14401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14402 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14404 cat >>confdefs.h <<_ACEOF
14405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14406 _ACEOF
14410 done
14412 for ac_header in \
14413 sys/time.h sys/ioctl.h sys/stat.h \
14414 sys/mman.h sys/file.h sys/wait.h \
14415 unistd.h signal.h libgen.h stropts.h \
14416 syslog.h pwd.h grp.h \
14417 sys/sockio.h sys/uio.h linux/sockios.h \
14418 linux/types.h sys/poll.h sys/epoll.h err.h \
14420 do :
14421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14422 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14424 cat >>confdefs.h <<_ACEOF
14425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14426 _ACEOF
14430 done
14433 SOCKET_INCLUDES="
14434 #ifdef HAVE_STDLIB_H
14435 #include <stdlib.h>
14436 #endif
14437 #ifdef HAVE_SYS_TYPES_H
14438 #include <sys/types.h>
14439 #endif
14440 #ifdef HAVE_SYS_SOCKET_H
14441 #include <sys/socket.h>
14442 #endif
14443 #ifdef HAVE_NETINET_IN_H
14444 #include <netinet/in.h>
14445 #endif
14446 #ifdef HAVE_WINDOWS_H
14447 #include <windows.h>
14448 #endif
14449 #ifdef HAVE_WINSOCK2_H
14450 #include <winsock2.h>
14451 #endif
14452 #ifdef HAVE_WS2TCPIP_H
14453 #include <ws2tcpip.h>
14454 #endif
14455 #ifdef HAVE_NETINET_IN_SYSTM_H
14456 #include <netinet/in_systm.h>
14457 #endif
14458 #ifdef HAVE_NETINET_IP_H
14459 #include <netinet/ip.h>
14460 #endif
14463 for ac_header in net/if.h netinet/ip.h netinet/if_ether.h resolv.h sys/un.h net/if_utun.h sys/kern_control.h
14464 do :
14465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
14469 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14470 cat >>confdefs.h <<_ACEOF
14471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14472 _ACEOF
14476 done
14479 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
14482 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14484 cat >>confdefs.h <<_ACEOF
14485 #define HAVE_IN_ADDR_T 1
14486 _ACEOF
14489 else
14491 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14495 ac_fn_c_check_type "$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
14498 if test "x$ac_cv_type_struct_iphdr" = xyes; then :
14500 $as_echo "#define HAVE_IPHDR 1" >>confdefs.h
14504 ac_fn_c_check_type "$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES}
14507 if test "x$ac_cv_type_struct_sock_extended_err" = xyes; then :
14509 $as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
14513 ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
14516 if test "x$ac_cv_type_struct_msghdr" = xyes; then :
14518 $as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
14522 ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
14525 if test "x$ac_cv_type_struct_cmsghdr" = xyes; then :
14527 $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
14531 ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
14534 if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
14536 $as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
14540 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
14543 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14545 else
14546 as_fn_error $? "struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
14549 ac_fn_c_check_decl "$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
14552 if test "x$ac_cv_have_decl_SO_MARK" = xyes; then :
14553 ac_have_decl=1
14554 else
14555 ac_have_decl=0
14558 cat >>confdefs.h <<_ACEOF
14559 #define HAVE_DECL_SO_MARK $ac_have_decl
14560 _ACEOF
14563 ac_fn_c_check_decl "$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
14564 #ifdef HAVE_SIGNAL_H
14565 #include <signal.h>
14566 #endif
14570 if test "x$ac_cv_have_decl_SIGHUP" = xyes; then :
14571 ac_have_decl=1
14572 else
14573 ac_have_decl=0
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_DECL_SIGHUP $ac_have_decl
14578 _ACEOF
14579 if test $ac_have_decl = 1; then :
14581 else
14583 $as_echo "#define SIGHUP 1" >>confdefs.h
14587 ac_fn_c_check_decl "$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
14588 #ifdef HAVE_SIGNAL_H
14589 #include <signal.h>
14590 #endif
14594 if test "x$ac_cv_have_decl_SIGINT" = xyes; then :
14595 ac_have_decl=1
14596 else
14597 ac_have_decl=0
14600 cat >>confdefs.h <<_ACEOF
14601 #define HAVE_DECL_SIGINT $ac_have_decl
14602 _ACEOF
14603 if test $ac_have_decl = 1; then :
14605 else
14607 $as_echo "#define SIGINT 2" >>confdefs.h
14611 ac_fn_c_check_decl "$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
14612 #ifdef HAVE_SIGNAL_H
14613 #include <signal.h>
14614 #endif
14618 if test "x$ac_cv_have_decl_SIGUSR1" = xyes; then :
14619 ac_have_decl=1
14620 else
14621 ac_have_decl=0
14624 cat >>confdefs.h <<_ACEOF
14625 #define HAVE_DECL_SIGUSR1 $ac_have_decl
14626 _ACEOF
14627 if test $ac_have_decl = 1; then :
14629 else
14631 $as_echo "#define SIGUSR1 10" >>confdefs.h
14635 ac_fn_c_check_decl "$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
14636 #ifdef HAVE_SIGNAL_H
14637 #include <signal.h>
14638 #endif
14642 if test "x$ac_cv_have_decl_SIGUSR2" = xyes; then :
14643 ac_have_decl=1
14644 else
14645 ac_have_decl=0
14648 cat >>confdefs.h <<_ACEOF
14649 #define HAVE_DECL_SIGUSR2 $ac_have_decl
14650 _ACEOF
14651 if test $ac_have_decl = 1; then :
14653 else
14655 $as_echo "#define SIGUSR2 12" >>confdefs.h
14659 ac_fn_c_check_decl "$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
14660 #ifdef HAVE_SIGNAL_H
14661 #include <signal.h>
14662 #endif
14666 if test "x$ac_cv_have_decl_SIGTERM" = xyes; then :
14667 ac_have_decl=1
14668 else
14669 ac_have_decl=0
14672 cat >>confdefs.h <<_ACEOF
14673 #define HAVE_DECL_SIGTERM $ac_have_decl
14674 _ACEOF
14675 if test $ac_have_decl = 1; then :
14677 else
14679 $as_echo "#define SIGTERM 15" >>confdefs.h
14684 for ac_header in vfork.h
14685 do :
14686 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14687 if test "x$ac_cv_header_vfork_h" = xyes; then :
14688 cat >>confdefs.h <<_ACEOF
14689 #define HAVE_VFORK_H 1
14690 _ACEOF
14694 done
14696 for ac_func in fork vfork
14697 do :
14698 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14699 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14700 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14701 cat >>confdefs.h <<_ACEOF
14702 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14703 _ACEOF
14706 done
14708 if test "x$ac_cv_func_fork" = xyes; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14710 $as_echo_n "checking for working fork... " >&6; }
14711 if ${ac_cv_func_fork_works+:} false; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714 if test "$cross_compiling" = yes; then :
14715 ac_cv_func_fork_works=cross
14716 else
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14719 $ac_includes_default
14721 main ()
14724 /* By Ruediger Kuhlmann. */
14725 return fork () < 0;
14728 return 0;
14730 _ACEOF
14731 if ac_fn_c_try_run "$LINENO"; then :
14732 ac_cv_func_fork_works=yes
14733 else
14734 ac_cv_func_fork_works=no
14736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14737 conftest.$ac_objext conftest.beam conftest.$ac_ext
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14742 $as_echo "$ac_cv_func_fork_works" >&6; }
14744 else
14745 ac_cv_func_fork_works=$ac_cv_func_fork
14747 if test "x$ac_cv_func_fork_works" = xcross; then
14748 case $host in
14749 *-*-amigaos* | *-*-msdosdjgpp*)
14750 # Override, as these systems have only a dummy fork() stub
14751 ac_cv_func_fork_works=no
14754 ac_cv_func_fork_works=yes
14756 esac
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14758 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14760 ac_cv_func_vfork_works=$ac_cv_func_vfork
14761 if test "x$ac_cv_func_vfork" = xyes; then
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14763 $as_echo_n "checking for working vfork... " >&6; }
14764 if ${ac_cv_func_vfork_works+:} false; then :
14765 $as_echo_n "(cached) " >&6
14766 else
14767 if test "$cross_compiling" = yes; then :
14768 ac_cv_func_vfork_works=cross
14769 else
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14772 /* Thanks to Paul Eggert for this test. */
14773 $ac_includes_default
14774 #include <sys/wait.h>
14775 #ifdef HAVE_VFORK_H
14776 # include <vfork.h>
14777 #endif
14778 /* On some sparc systems, changes by the child to local and incoming
14779 argument registers are propagated back to the parent. The compiler
14780 is told about this with #include <vfork.h>, but some compilers
14781 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14782 static variable whose address is put into a register that is
14783 clobbered by the vfork. */
14784 static void
14785 #ifdef __cplusplus
14786 sparc_address_test (int arg)
14787 # else
14788 sparc_address_test (arg) int arg;
14789 #endif
14791 static pid_t child;
14792 if (!child) {
14793 child = vfork ();
14794 if (child < 0) {
14795 perror ("vfork");
14796 _exit(2);
14798 if (!child) {
14799 arg = getpid();
14800 write(-1, "", 0);
14801 _exit (arg);
14807 main ()
14809 pid_t parent = getpid ();
14810 pid_t child;
14812 sparc_address_test (0);
14814 child = vfork ();
14816 if (child == 0) {
14817 /* Here is another test for sparc vfork register problems. This
14818 test uses lots of local variables, at least as many local
14819 variables as main has allocated so far including compiler
14820 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14821 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14822 reuse the register of parent for one of the local variables,
14823 since it will think that parent can't possibly be used any more
14824 in this routine. Assigning to the local variable will thus
14825 munge parent in the parent process. */
14826 pid_t
14827 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14828 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14829 /* Convince the compiler that p..p7 are live; otherwise, it might
14830 use the same hardware register for all 8 local variables. */
14831 if (p != p1 || p != p2 || p != p3 || p != p4
14832 || p != p5 || p != p6 || p != p7)
14833 _exit(1);
14835 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14836 from child file descriptors. If the child closes a descriptor
14837 before it execs or exits, this munges the parent's descriptor
14838 as well. Test for this by closing stdout in the child. */
14839 _exit(close(fileno(stdout)) != 0);
14840 } else {
14841 int status;
14842 struct stat st;
14844 while (wait(&status) != child)
14846 return (
14847 /* Was there some problem with vforking? */
14848 child < 0
14850 /* Did the child fail? (This shouldn't happen.) */
14851 || status
14853 /* Did the vfork/compiler bug occur? */
14854 || parent != getpid()
14856 /* Did the file descriptor bug occur? */
14857 || fstat(fileno(stdout), &st) != 0
14861 _ACEOF
14862 if ac_fn_c_try_run "$LINENO"; then :
14863 ac_cv_func_vfork_works=yes
14864 else
14865 ac_cv_func_vfork_works=no
14867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14868 conftest.$ac_objext conftest.beam conftest.$ac_ext
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14873 $as_echo "$ac_cv_func_vfork_works" >&6; }
14876 if test "x$ac_cv_func_fork_works" = xcross; then
14877 ac_cv_func_vfork_works=$ac_cv_func_vfork
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14879 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14882 if test "x$ac_cv_func_vfork_works" = xyes; then
14884 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14886 else
14888 $as_echo "#define vfork fork" >>confdefs.h
14891 if test "x$ac_cv_func_fork_works" = xyes; then
14893 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14898 for ac_func in \
14899 daemon chroot getpwnam setuid nice system getpid dup dup2 \
14900 getpass strerror syslog openlog mlockall getgrnam setgid \
14901 setgroups stat flock readv writev time gettimeofday \
14902 ctime memset vsnprintf strdup \
14903 setsid chdir putenv getpeername unlink \
14904 chsize ftruncate execve getpeereid umask basename dirname access \
14905 epoll_create \
14907 do :
14908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14909 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14910 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14911 cat >>confdefs.h <<_ACEOF
14912 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14913 _ACEOF
14916 done
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14920 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14921 if ${ac_cv_lib_dl_dlopen+:} false; then :
14922 $as_echo_n "(cached) " >&6
14923 else
14924 ac_check_lib_save_LIBS=$LIBS
14925 LIBS="-ldl $LIBS"
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14929 /* Override any GCC internal prototype to avoid an error.
14930 Use char because int might match the return type of a GCC
14931 builtin and then its argument prototype would still apply. */
14932 #ifdef __cplusplus
14933 extern "C"
14934 #endif
14935 char dlopen ();
14937 main ()
14939 return dlopen ();
14941 return 0;
14943 _ACEOF
14944 if ac_fn_c_try_link "$LINENO"; then :
14945 ac_cv_lib_dl_dlopen=yes
14946 else
14947 ac_cv_lib_dl_dlopen=no
14949 rm -f core conftest.err conftest.$ac_objext \
14950 conftest$ac_exeext conftest.$ac_ext
14951 LIBS=$ac_check_lib_save_LIBS
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14954 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14955 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14956 DL_LIBS="-ldl"
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
14963 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
14964 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967 ac_check_lib_save_LIBS=$LIBS
14968 LIBS="-lnsl $LIBS"
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14972 /* Override any GCC internal prototype to avoid an error.
14973 Use char because int might match the return type of a GCC
14974 builtin and then its argument prototype would still apply. */
14975 #ifdef __cplusplus
14976 extern "C"
14977 #endif
14978 char inet_ntoa ();
14980 main ()
14982 return inet_ntoa ();
14984 return 0;
14986 _ACEOF
14987 if ac_fn_c_try_link "$LINENO"; then :
14988 ac_cv_lib_nsl_inet_ntoa=yes
14989 else
14990 ac_cv_lib_nsl_inet_ntoa=no
14992 rm -f core conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
14997 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
14998 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
14999 SOCKETS_LIBS="${SOCKETS_LIBS} -lnsl"
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15004 $as_echo_n "checking for socket in -lsocket... " >&6; }
15005 if ${ac_cv_lib_socket_socket+:} false; then :
15006 $as_echo_n "(cached) " >&6
15007 else
15008 ac_check_lib_save_LIBS=$LIBS
15009 LIBS="-lsocket $LIBS"
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15013 /* Override any GCC internal prototype to avoid an error.
15014 Use char because int might match the return type of a GCC
15015 builtin and then its argument prototype would still apply. */
15016 #ifdef __cplusplus
15017 extern "C"
15018 #endif
15019 char socket ();
15021 main ()
15023 return socket ();
15025 return 0;
15027 _ACEOF
15028 if ac_fn_c_try_link "$LINENO"; then :
15029 ac_cv_lib_socket_socket=yes
15030 else
15031 ac_cv_lib_socket_socket=no
15033 rm -f core conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15035 LIBS=$ac_check_lib_save_LIBS
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15038 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15039 if test "x$ac_cv_lib_socket_socket" = xyes; then :
15040 SOCKETS_LIBS="${SOCKETS_LIBS} -lsocket"
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
15045 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
15046 if ${ac_cv_lib_resolv_gethostbyname+:} false; then :
15047 $as_echo_n "(cached) " >&6
15048 else
15049 ac_check_lib_save_LIBS=$LIBS
15050 LIBS="-lresolv $LIBS"
15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052 /* end confdefs.h. */
15054 /* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
15057 #ifdef __cplusplus
15058 extern "C"
15059 #endif
15060 char gethostbyname ();
15062 main ()
15064 return gethostbyname ();
15066 return 0;
15068 _ACEOF
15069 if ac_fn_c_try_link "$LINENO"; then :
15070 ac_cv_lib_resolv_gethostbyname=yes
15071 else
15072 ac_cv_lib_resolv_gethostbyname=no
15074 rm -f core conftest.err conftest.$ac_objext \
15075 conftest$ac_exeext conftest.$ac_ext
15076 LIBS=$ac_check_lib_save_LIBS
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
15079 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
15080 if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then :
15081 SOCKETS_LIBS="${SOCKETS_LIBS} -lresolv"
15087 old_LIBS="${LIBS}"
15088 LIBS="${LIBS} ${SOCKETS_LIBS}"
15089 for ac_func in sendmsg recvmsg inet_ntop inet_pton
15090 do :
15091 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15093 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15094 cat >>confdefs.h <<_ACEOF
15095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15096 _ACEOF
15099 done
15101 for ac_func in res_init
15102 do :
15103 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
15104 if test "x$ac_cv_func_res_init" = xyes; then :
15105 cat >>confdefs.h <<_ACEOF
15106 #define HAVE_RES_INIT 1
15107 _ACEOF
15110 done
15112 # Windows use stdcall for winsock so we cannot auto detect these
15115 if test "${WIN32}" = "yes"; then
15118 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
15122 $as_echo "#define HAVE_RECV 1" >>confdefs.h
15126 $as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
15130 $as_echo "#define HAVE_SEND 1" >>confdefs.h
15134 $as_echo "#define HAVE_SENDTO 1" >>confdefs.h
15138 $as_echo "#define HAVE_LISTEN 1" >>confdefs.h
15142 $as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
15146 $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
15150 $as_echo "#define HAVE_BIND 1" >>confdefs.h
15154 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
15158 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
15162 $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
15166 $as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
15170 $as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
15174 $as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
15178 $as_echo "#define HAVE_POLL 1" >>confdefs.h
15181 else
15182 for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa
15183 do :
15184 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15185 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15186 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15187 cat >>confdefs.h <<_ACEOF
15188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15189 _ACEOF
15191 else
15192 as_fn_error $? "Required library function not found" "$LINENO" 5
15195 done
15197 for ac_func in setsockopt getsockopt getsockname poll
15198 do :
15199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15200 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15201 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15202 cat >>confdefs.h <<_ACEOF
15203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15204 _ACEOF
15207 done
15210 LIBS="${old_LIBS}"
15213 old_CFLAGS="${CFLAGS}"
15214 CFLAGS="${CFLAGS} ${TAP_CFLAGS}"
15215 for ac_header in \
15216 net/if_tun.h net/tun/if_tun.h \
15217 linux/if_tun.h \
15218 tap-windows.h \
15220 do :
15221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15222 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15223 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15224 cat >>confdefs.h <<_ACEOF
15225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15226 _ACEOF
15227 have_tap_header="yes"
15231 done
15233 ac_fn_c_check_decl "$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
15234 #ifdef HAVE_LINUX_IF_TUN_H
15235 #include <linux/if_tun.h>
15236 #endif
15240 if test "x$ac_cv_have_decl_TUNSETPERSIST" = xyes; then :
15241 ac_have_decl=1
15242 else
15243 ac_have_decl=0
15246 cat >>confdefs.h <<_ACEOF
15247 #define HAVE_DECL_TUNSETPERSIST $ac_have_decl
15248 _ACEOF
15249 if test $ac_have_decl = 1; then :
15251 $as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
15255 CFLAGS="${old_CFLAGS}"
15256 test "${have_tap_header}" = "yes" || as_fn_error $? "no tap header could be found" "$LINENO" 5
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
15259 $as_echo_n "checking for setcon in -lselinux... " >&6; }
15260 if ${ac_cv_lib_selinux_setcon+:} false; then :
15261 $as_echo_n "(cached) " >&6
15262 else
15263 ac_check_lib_save_LIBS=$LIBS
15264 LIBS="-lselinux $LIBS"
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15268 /* Override any GCC internal prototype to avoid an error.
15269 Use char because int might match the return type of a GCC
15270 builtin and then its argument prototype would still apply. */
15271 #ifdef __cplusplus
15272 extern "C"
15273 #endif
15274 char setcon ();
15276 main ()
15278 return setcon ();
15280 return 0;
15282 _ACEOF
15283 if ac_fn_c_try_link "$LINENO"; then :
15284 ac_cv_lib_selinux_setcon=yes
15285 else
15286 ac_cv_lib_selinux_setcon=no
15288 rm -f core conftest.err conftest.$ac_objext \
15289 conftest$ac_exeext conftest.$ac_ext
15290 LIBS=$ac_check_lib_save_LIBS
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
15293 $as_echo "$ac_cv_lib_selinux_setcon" >&6; }
15294 if test "x$ac_cv_lib_selinux_setcon" = xyes; then :
15295 SELINUX_LIBS="-lselinux"
15303 if test -z "${LIBPAM_LIBS}"; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
15305 $as_echo_n "checking for pam_start in -lpam... " >&6; }
15306 if ${ac_cv_lib_pam_pam_start+:} false; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15309 ac_check_lib_save_LIBS=$LIBS
15310 LIBS="-lpam $LIBS"
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15317 #ifdef __cplusplus
15318 extern "C"
15319 #endif
15320 char pam_start ();
15322 main ()
15324 return pam_start ();
15326 return 0;
15328 _ACEOF
15329 if ac_fn_c_try_link "$LINENO"; then :
15330 ac_cv_lib_pam_pam_start=yes
15331 else
15332 ac_cv_lib_pam_pam_start=no
15334 rm -f core conftest.err conftest.$ac_objext \
15335 conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
15339 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15340 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
15341 LIBPAM_LIBS="-lpam"
15347 case "${with_mem_check}" in
15348 valgrind)
15349 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
15350 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
15352 CFLAGS="${CFLAGS} -g -fno-inline"
15354 $as_echo "#define USE_VALGRIND 1" >>confdefs.h
15357 else
15358 as_fn_error $? "valgrind headers not found." "$LINENO" 5
15364 dmalloc)
15365 ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
15366 if test "x$ac_cv_header_dmalloc_h" = xyes; then :
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
15368 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
15369 if ${ac_cv_lib_dmalloc_malloc+:} false; then :
15370 $as_echo_n "(cached) " >&6
15371 else
15372 ac_check_lib_save_LIBS=$LIBS
15373 LIBS="-ldmalloc $LIBS"
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15377 /* Override any GCC internal prototype to avoid an error.
15378 Use char because int might match the return type of a GCC
15379 builtin and then its argument prototype would still apply. */
15380 #ifdef __cplusplus
15381 extern "C"
15382 #endif
15383 char malloc ();
15385 main ()
15387 return malloc ();
15389 return 0;
15391 _ACEOF
15392 if ac_fn_c_try_link "$LINENO"; then :
15393 ac_cv_lib_dmalloc_malloc=yes
15394 else
15395 ac_cv_lib_dmalloc_malloc=no
15397 rm -f core conftest.err conftest.$ac_objext \
15398 conftest$ac_exeext conftest.$ac_ext
15399 LIBS=$ac_check_lib_save_LIBS
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
15402 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
15403 if test "x$ac_cv_lib_dmalloc_malloc" = xyes; then :
15405 LIBS="${LIBS} -ldmalloc"
15407 $as_echo "#define DMALLOC 1" >>confdefs.h
15410 else
15411 as_fn_error $? "dmalloc library not found." "$LINENO" 5
15415 else
15416 as_fn_error $? "dmalloc headers not found." "$LINENO" 5
15422 ssl)
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
15424 $as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
15425 if ${ac_cv_lib_ssl_CRYPTO_mem_ctrl+:} false; then :
15426 $as_echo_n "(cached) " >&6
15427 else
15428 ac_check_lib_save_LIBS=$LIBS
15429 LIBS="-lssl $LIBS"
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15433 /* Override any GCC internal prototype to avoid an error.
15434 Use char because int might match the return type of a GCC
15435 builtin and then its argument prototype would still apply. */
15436 #ifdef __cplusplus
15437 extern "C"
15438 #endif
15439 char CRYPTO_mem_ctrl ();
15441 main ()
15443 return CRYPTO_mem_ctrl ();
15445 return 0;
15447 _ACEOF
15448 if ac_fn_c_try_link "$LINENO"; then :
15449 ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes
15450 else
15451 ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
15453 rm -f core conftest.err conftest.$ac_objext \
15454 conftest$ac_exeext conftest.$ac_ext
15455 LIBS=$ac_check_lib_save_LIBS
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
15458 $as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
15459 if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = xyes; then :
15462 $as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
15465 $as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
15467 else
15468 as_fn_error $? "Memory Debugging function in OpenSSL library not found." "$LINENO" 5
15473 esac
15476 pkg_failed=no
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15478 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15480 if test -n "$PKCS11_HELPER_CFLAGS"; then
15481 pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS"
15482 elif test -n "$PKG_CONFIG"; then
15483 if test -n "$PKG_CONFIG" && \
15484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
15485 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
15486 ac_status=$?
15487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15488 test $ac_status = 0; }; then
15489 pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
15490 test "x$?" != "x0" && pkg_failed=yes
15491 else
15492 pkg_failed=yes
15494 else
15495 pkg_failed=untried
15497 if test -n "$PKCS11_HELPER_LIBS"; then
15498 pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS"
15499 elif test -n "$PKG_CONFIG"; then
15500 if test -n "$PKG_CONFIG" && \
15501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
15502 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
15503 ac_status=$?
15504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15505 test $ac_status = 0; }; then
15506 pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
15507 test "x$?" != "x0" && pkg_failed=yes
15508 else
15509 pkg_failed=yes
15511 else
15512 pkg_failed=untried
15517 if test $pkg_failed = yes; then
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15519 $as_echo "no" >&6; }
15521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15522 _pkg_short_errors_supported=yes
15523 else
15524 _pkg_short_errors_supported=no
15526 if test $_pkg_short_errors_supported = yes; then
15527 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
15528 else
15529 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
15531 # Put the nasty error message in config.log where it belongs
15532 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15536 elif test $pkg_failed = untried; then
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15538 $as_echo "no" >&6; }
15541 else
15542 PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS
15543 PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15545 $as_echo "yes" >&6; }
15546 have_pkcs11_helper="yes"
15550 pkg_failed=no
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5
15552 $as_echo_n "checking for OPENSSL_CRYPTO... " >&6; }
15554 if test -n "$OPENSSL_CRYPTO_CFLAGS"; then
15555 pkg_cv_OPENSSL_CRYPTO_CFLAGS="$OPENSSL_CRYPTO_CFLAGS"
15556 elif test -n "$PKG_CONFIG"; then
15557 if test -n "$PKG_CONFIG" && \
15558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15559 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15560 ac_status=$?
15561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15562 test $ac_status = 0; }; then
15563 pkg_cv_OPENSSL_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null`
15564 test "x$?" != "x0" && pkg_failed=yes
15565 else
15566 pkg_failed=yes
15568 else
15569 pkg_failed=untried
15571 if test -n "$OPENSSL_CRYPTO_LIBS"; then
15572 pkg_cv_OPENSSL_CRYPTO_LIBS="$OPENSSL_CRYPTO_LIBS"
15573 elif test -n "$PKG_CONFIG"; then
15574 if test -n "$PKG_CONFIG" && \
15575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15576 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15577 ac_status=$?
15578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15579 test $ac_status = 0; }; then
15580 pkg_cv_OPENSSL_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null`
15581 test "x$?" != "x0" && pkg_failed=yes
15582 else
15583 pkg_failed=yes
15585 else
15586 pkg_failed=untried
15591 if test $pkg_failed = yes; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593 $as_echo "no" >&6; }
15595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15596 _pkg_short_errors_supported=yes
15597 else
15598 _pkg_short_errors_supported=no
15600 if test $_pkg_short_errors_supported = yes; then
15601 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15602 else
15603 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15605 # Put the nasty error message in config.log where it belongs
15606 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15609 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15610 if ${ac_cv_lib_crypto_RSA_new+:} false; then :
15611 $as_echo_n "(cached) " >&6
15612 else
15613 ac_check_lib_save_LIBS=$LIBS
15614 LIBS="-lcrypto $LIBS"
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15618 /* Override any GCC internal prototype to avoid an error.
15619 Use char because int might match the return type of a GCC
15620 builtin and then its argument prototype would still apply. */
15621 #ifdef __cplusplus
15622 extern "C"
15623 #endif
15624 char RSA_new ();
15626 main ()
15628 return RSA_new ();
15630 return 0;
15632 _ACEOF
15633 if ac_fn_c_try_link "$LINENO"; then :
15634 ac_cv_lib_crypto_RSA_new=yes
15635 else
15636 ac_cv_lib_crypto_RSA_new=no
15638 rm -f core conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15640 LIBS=$ac_check_lib_save_LIBS
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15643 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15644 if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then :
15646 have_openssl_crypto="yes"
15647 OPENSSL_CRYPTO_LIBS="-lcrypto"
15653 elif test $pkg_failed = untried; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15655 $as_echo "no" >&6; }
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15657 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15658 if ${ac_cv_lib_crypto_RSA_new+:} false; then :
15659 $as_echo_n "(cached) " >&6
15660 else
15661 ac_check_lib_save_LIBS=$LIBS
15662 LIBS="-lcrypto $LIBS"
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15666 /* Override any GCC internal prototype to avoid an error.
15667 Use char because int might match the return type of a GCC
15668 builtin and then its argument prototype would still apply. */
15669 #ifdef __cplusplus
15670 extern "C"
15671 #endif
15672 char RSA_new ();
15674 main ()
15676 return RSA_new ();
15678 return 0;
15680 _ACEOF
15681 if ac_fn_c_try_link "$LINENO"; then :
15682 ac_cv_lib_crypto_RSA_new=yes
15683 else
15684 ac_cv_lib_crypto_RSA_new=no
15686 rm -f core conftest.err conftest.$ac_objext \
15687 conftest$ac_exeext conftest.$ac_ext
15688 LIBS=$ac_check_lib_save_LIBS
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15691 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15692 if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then :
15694 have_openssl_crypto="yes"
15695 OPENSSL_CRYPTO_LIBS="-lcrypto"
15701 else
15702 OPENSSL_CRYPTO_CFLAGS=$pkg_cv_OPENSSL_CRYPTO_CFLAGS
15703 OPENSSL_CRYPTO_LIBS=$pkg_cv_OPENSSL_CRYPTO_LIBS
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15705 $as_echo "yes" >&6; }
15706 have_openssl_crypto="yes"
15710 pkg_failed=no
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5
15712 $as_echo_n "checking for OPENSSL_SSL... " >&6; }
15714 if test -n "$OPENSSL_SSL_CFLAGS"; then
15715 pkg_cv_OPENSSL_SSL_CFLAGS="$OPENSSL_SSL_CFLAGS"
15716 elif test -n "$PKG_CONFIG"; then
15717 if test -n "$PKG_CONFIG" && \
15718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15719 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15720 ac_status=$?
15721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15722 test $ac_status = 0; }; then
15723 pkg_cv_OPENSSL_SSL_CFLAGS=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null`
15724 test "x$?" != "x0" && pkg_failed=yes
15725 else
15726 pkg_failed=yes
15728 else
15729 pkg_failed=untried
15731 if test -n "$OPENSSL_SSL_LIBS"; then
15732 pkg_cv_OPENSSL_SSL_LIBS="$OPENSSL_SSL_LIBS"
15733 elif test -n "$PKG_CONFIG"; then
15734 if test -n "$PKG_CONFIG" && \
15735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15736 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15737 ac_status=$?
15738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15739 test $ac_status = 0; }; then
15740 pkg_cv_OPENSSL_SSL_LIBS=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null`
15741 test "x$?" != "x0" && pkg_failed=yes
15742 else
15743 pkg_failed=yes
15745 else
15746 pkg_failed=untried
15751 if test $pkg_failed = yes; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15753 $as_echo "no" >&6; }
15755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15756 _pkg_short_errors_supported=yes
15757 else
15758 _pkg_short_errors_supported=no
15760 if test $_pkg_short_errors_supported = yes; then
15761 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15762 else
15763 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15765 # Put the nasty error message in config.log where it belongs
15766 echo "$OPENSSL_SSL_PKG_ERRORS" >&5
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15769 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15770 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
15771 $as_echo_n "(cached) " >&6
15772 else
15773 ac_check_lib_save_LIBS=$LIBS
15774 LIBS="-lssl -lcrypto
15775 $LIBS"
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15779 /* Override any GCC internal prototype to avoid an error.
15780 Use char because int might match the return type of a GCC
15781 builtin and then its argument prototype would still apply. */
15782 #ifdef __cplusplus
15783 extern "C"
15784 #endif
15785 char SSL_CTX_new ();
15787 main ()
15789 return SSL_CTX_new ();
15791 return 0;
15793 _ACEOF
15794 if ac_fn_c_try_link "$LINENO"; then :
15795 ac_cv_lib_ssl_SSL_CTX_new=yes
15796 else
15797 ac_cv_lib_ssl_SSL_CTX_new=no
15799 rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801 LIBS=$ac_check_lib_save_LIBS
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
15804 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
15805 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
15807 have_openssl_ssl="yes"
15808 OPENSSL_SSL_LIBS="-lssl"
15813 elif test $pkg_failed = untried; then
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15815 $as_echo "no" >&6; }
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15817 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15818 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
15819 $as_echo_n "(cached) " >&6
15820 else
15821 ac_check_lib_save_LIBS=$LIBS
15822 LIBS="-lssl -lcrypto
15823 $LIBS"
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15827 /* Override any GCC internal prototype to avoid an error.
15828 Use char because int might match the return type of a GCC
15829 builtin and then its argument prototype would still apply. */
15830 #ifdef __cplusplus
15831 extern "C"
15832 #endif
15833 char SSL_CTX_new ();
15835 main ()
15837 return SSL_CTX_new ();
15839 return 0;
15841 _ACEOF
15842 if ac_fn_c_try_link "$LINENO"; then :
15843 ac_cv_lib_ssl_SSL_CTX_new=yes
15844 else
15845 ac_cv_lib_ssl_SSL_CTX_new=no
15847 rm -f core conftest.err conftest.$ac_objext \
15848 conftest$ac_exeext conftest.$ac_ext
15849 LIBS=$ac_check_lib_save_LIBS
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
15852 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
15853 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
15855 have_openssl_ssl="yes"
15856 OPENSSL_SSL_LIBS="-lssl"
15861 else
15862 OPENSSL_SSL_CFLAGS=$pkg_cv_OPENSSL_SSL_CFLAGS
15863 OPENSSL_SSL_LIBS=$pkg_cv_OPENSSL_SSL_LIBS
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15865 $as_echo "yes" >&6; }
15866 have_openssl_ssl="yes"
15869 if test "${have_openssl_crypto}" = "yes"; then
15870 saved_CFLAGS="${CFLAGS}"
15871 saved_LIBS="${LIBS}"
15872 CFLAGS="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
15873 LIBS="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
15874 for ac_func in EVP_CIPHER_CTX_set_key_length
15875 do :
15876 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
15877 if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = xyes; then :
15878 cat >>confdefs.h <<_ACEOF
15879 #define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
15880 _ACEOF
15883 done
15885 have_openssl_engine="yes"
15886 for ac_func in \
15887 ENGINE_load_builtin_engines \
15888 ENGINE_register_all_complete \
15889 ENGINE_cleanup \
15891 do :
15892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15893 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15894 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15895 cat >>confdefs.h <<_ACEOF
15896 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15897 _ACEOF
15899 else
15900 have_openssl_engine="no"; break
15903 done
15906 CFLAGS="${saved_CFLAGS}"
15907 LIBS="${saved_LIBS}"
15912 have_polarssl_ssl="yes"
15913 have_polarssl_crypto="yes"
15914 if test -z "${POLARSSL_LIBS}"; then
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
15916 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
15917 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
15918 $as_echo_n "(cached) " >&6
15919 else
15920 ac_check_lib_save_LIBS=$LIBS
15921 LIBS="-lpolarssl ${PKCS11_HELPER_LIBS}
15922 $LIBS"
15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15926 /* Override any GCC internal prototype to avoid an error.
15927 Use char because int might match the return type of a GCC
15928 builtin and then its argument prototype would still apply. */
15929 #ifdef __cplusplus
15930 extern "C"
15931 #endif
15932 char ssl_init ();
15934 main ()
15936 return ssl_init ();
15938 return 0;
15940 _ACEOF
15941 if ac_fn_c_try_link "$LINENO"; then :
15942 ac_cv_lib_polarssl_ssl_init=yes
15943 else
15944 ac_cv_lib_polarssl_ssl_init=no
15946 rm -f core conftest.err conftest.$ac_objext \
15947 conftest$ac_exeext conftest.$ac_ext
15948 LIBS=$ac_check_lib_save_LIBS
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
15951 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
15952 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
15953 POLARSSL_LIBS="-lpolarssl"
15954 else
15956 have_polarssl_ssl="no"
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5
15958 $as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; }
15959 if ${ac_cv_lib_polarssl_aes_crypt_cbc+:} false; then :
15960 $as_echo_n "(cached) " >&6
15961 else
15962 ac_check_lib_save_LIBS=$LIBS
15963 LIBS="-lpolarssl ${PKCS11_HELPER_LIBS}
15964 $LIBS"
15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966 /* end confdefs.h. */
15968 /* Override any GCC internal prototype to avoid an error.
15969 Use char because int might match the return type of a GCC
15970 builtin and then its argument prototype would still apply. */
15971 #ifdef __cplusplus
15972 extern "C"
15973 #endif
15974 char aes_crypt_cbc ();
15976 main ()
15978 return aes_crypt_cbc ();
15980 return 0;
15982 _ACEOF
15983 if ac_fn_c_try_link "$LINENO"; then :
15984 ac_cv_lib_polarssl_aes_crypt_cbc=yes
15985 else
15986 ac_cv_lib_polarssl_aes_crypt_cbc=no
15988 rm -f core conftest.err conftest.$ac_objext \
15989 conftest$ac_exeext conftest.$ac_ext
15990 LIBS=$ac_check_lib_save_LIBS
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5
15993 $as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; }
15994 if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = xyes; then :
15995 cat >>confdefs.h <<_ACEOF
15996 #define HAVE_LIBPOLARSSL 1
15997 _ACEOF
15999 LIBS="-lpolarssl $LIBS"
16001 else
16002 have_polarssl_crypto="no"
16010 if test "${with_crypto_library}" = "polarssl" ; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5
16012 $as_echo_n "checking polarssl version... " >&6; }
16013 old_CFLAGS="${CFLAGS}"
16014 CFLAGS="${POLARSSL_CFLAGS} ${CFLAGS}"
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16018 #include <polarssl/version.h>
16021 main ()
16024 #if POLARSSL_VERSION_NUMBER < 0x01020A00 || POLARSSL_VERSION_NUMBER >= 0x01030000
16025 #error invalid version
16026 #endif
16030 return 0;
16032 _ACEOF
16033 if ac_fn_c_try_compile "$LINENO"; then :
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16035 $as_echo "ok" >&6; }
16036 else
16037 as_fn_error $? "PolarSSL 1.2.x required and must be 1.2.10 or later" "$LINENO" 5
16040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042 polarssl_with_pkcs11="no"
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16046 #include <polarssl/config.h>
16049 main ()
16052 #ifndef POLARSSL_PKCS11_C
16053 #error pkcs11 wrapper missing
16054 #endif
16058 return 0;
16060 _ACEOF
16061 if ac_fn_c_try_compile "$LINENO"; then :
16062 polarssl_with_pkcs11="yes"
16064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16065 CFLAGS="${old_CFLAGS}"
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl pkcs11 support" >&5
16068 $as_echo_n "checking polarssl pkcs11 support... " >&6; }
16069 if test "${enable_pkcs11}" = "yes"; then
16070 if test "${polarssl_with_pkcs11}" = "yes"; then
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16072 $as_echo "ok" >&6; }
16073 else
16074 as_fn_error $? "polarssl has no pkcs11 wrapper compiled in" "$LINENO" 5
16076 else
16077 if test "${polarssl_with_pkcs11}" != "yes"; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16079 $as_echo "ok" >&6; }
16080 else
16081 as_fn_error $? "PolarSSL compiled with PKCS11, while OpenVPN is not" "$LINENO" 5
16089 have_lzo="yes"
16090 if test -z "${LZO_LIBS}"; then
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
16092 $as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
16093 if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false; then :
16094 $as_echo_n "(cached) " >&6
16095 else
16096 ac_check_lib_save_LIBS=$LIBS
16097 LIBS="-llzo2 $LIBS"
16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16101 /* Override any GCC internal prototype to avoid an error.
16102 Use char because int might match the return type of a GCC
16103 builtin and then its argument prototype would still apply. */
16104 #ifdef __cplusplus
16105 extern "C"
16106 #endif
16107 char lzo1x_1_15_compress ();
16109 main ()
16111 return lzo1x_1_15_compress ();
16113 return 0;
16115 _ACEOF
16116 if ac_fn_c_try_link "$LINENO"; then :
16117 ac_cv_lib_lzo2_lzo1x_1_15_compress=yes
16118 else
16119 ac_cv_lib_lzo2_lzo1x_1_15_compress=no
16121 rm -f core conftest.err conftest.$ac_objext \
16122 conftest$ac_exeext conftest.$ac_ext
16123 LIBS=$ac_check_lib_save_LIBS
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
16126 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
16127 if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes; then :
16128 LZO_LIBS="-llzo2"
16129 else
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
16131 $as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
16132 if ${ac_cv_lib_lzo_lzo1x_1_15_compress+:} false; then :
16133 $as_echo_n "(cached) " >&6
16134 else
16135 ac_check_lib_save_LIBS=$LIBS
16136 LIBS="-llzo $LIBS"
16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16140 /* Override any GCC internal prototype to avoid an error.
16141 Use char because int might match the return type of a GCC
16142 builtin and then its argument prototype would still apply. */
16143 #ifdef __cplusplus
16144 extern "C"
16145 #endif
16146 char lzo1x_1_15_compress ();
16148 main ()
16150 return lzo1x_1_15_compress ();
16152 return 0;
16154 _ACEOF
16155 if ac_fn_c_try_link "$LINENO"; then :
16156 ac_cv_lib_lzo_lzo1x_1_15_compress=yes
16157 else
16158 ac_cv_lib_lzo_lzo1x_1_15_compress=no
16160 rm -f core conftest.err conftest.$ac_objext \
16161 conftest$ac_exeext conftest.$ac_ext
16162 LIBS=$ac_check_lib_save_LIBS
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
16165 $as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
16166 if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = xyes; then :
16167 LZO_LIBS="-llzo"
16168 else
16169 have_lzo="no"
16177 if test "${have_lzo}" = "yes"; then
16178 saved_CFLAGS="${CFLAGS}"
16179 CFLAGS="${CFLAGS} ${LZO_CFLAGS}"
16180 for ac_header in lzo/lzoutil.h
16181 do :
16182 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
16183 if test "x$ac_cv_header_lzo_lzoutil_h" = xyes; then :
16184 cat >>confdefs.h <<_ACEOF
16185 #define HAVE_LZO_LZOUTIL_H 1
16186 _ACEOF
16188 else
16189 for ac_header in lzoutil.h
16190 do :
16191 ac_fn_c_check_header_mongrel "$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
16192 if test "x$ac_cv_header_lzoutil_h" = xyes; then :
16193 cat >>confdefs.h <<_ACEOF
16194 #define HAVE_LZOUTIL_H 1
16195 _ACEOF
16197 else
16198 as_fn_error $? "lzoutil.h is missing" "$LINENO" 5
16202 done
16207 done
16209 for ac_header in lzo/lzo1x.h
16210 do :
16211 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
16212 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
16213 cat >>confdefs.h <<_ACEOF
16214 #define HAVE_LZO_LZO1X_H 1
16215 _ACEOF
16217 else
16218 for ac_header in lzo1x.h
16219 do :
16220 ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
16221 if test "x$ac_cv_header_lzo1x_h" = xyes; then :
16222 cat >>confdefs.h <<_ACEOF
16223 #define HAVE_LZO1X_H 1
16224 _ACEOF
16226 else
16227 as_fn_error $? "lzo1x.h is missing" "$LINENO" 5
16231 done
16236 done
16238 CFLAGS="${saved_CFLAGS}"
16243 if test "$enable_systemd" = "yes" ; then
16245 pkg_failed=no
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16247 $as_echo_n "checking for libsystemd... " >&6; }
16249 if test -n "$libsystemd_CFLAGS"; then
16250 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
16251 elif test -n "$PKG_CONFIG"; then
16252 if test -n "$PKG_CONFIG" && \
16253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
16254 ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
16255 ac_status=$?
16256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16257 test $ac_status = 0; }; then
16258 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "systemd libsystemd" 2>/dev/null`
16259 test "x$?" != "x0" && pkg_failed=yes
16260 else
16261 pkg_failed=yes
16263 else
16264 pkg_failed=untried
16266 if test -n "$libsystemd_LIBS"; then
16267 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
16268 elif test -n "$PKG_CONFIG"; then
16269 if test -n "$PKG_CONFIG" && \
16270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
16271 ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
16272 ac_status=$?
16273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16274 test $ac_status = 0; }; then
16275 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "systemd libsystemd" 2>/dev/null`
16276 test "x$?" != "x0" && pkg_failed=yes
16277 else
16278 pkg_failed=yes
16280 else
16281 pkg_failed=untried
16286 if test $pkg_failed = yes; then
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16288 $as_echo "no" >&6; }
16290 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16291 _pkg_short_errors_supported=yes
16292 else
16293 _pkg_short_errors_supported=no
16295 if test $_pkg_short_errors_supported = yes; then
16296 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd libsystemd" 2>&1`
16297 else
16298 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd libsystemd" 2>&1`
16300 # Put the nasty error message in config.log where it belongs
16301 echo "$libsystemd_PKG_ERRORS" >&5
16304 pkg_failed=no
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16306 $as_echo_n "checking for libsystemd... " >&6; }
16308 if test -n "$libsystemd_CFLAGS"; then
16309 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
16310 elif test -n "$PKG_CONFIG"; then
16311 if test -n "$PKG_CONFIG" && \
16312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16313 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16314 ac_status=$?
16315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16316 test $ac_status = 0; }; then
16317 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16318 test "x$?" != "x0" && pkg_failed=yes
16319 else
16320 pkg_failed=yes
16322 else
16323 pkg_failed=untried
16325 if test -n "$libsystemd_LIBS"; then
16326 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
16327 elif test -n "$PKG_CONFIG"; then
16328 if test -n "$PKG_CONFIG" && \
16329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16330 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16331 ac_status=$?
16332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16333 test $ac_status = 0; }; then
16334 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16335 test "x$?" != "x0" && pkg_failed=yes
16336 else
16337 pkg_failed=yes
16339 else
16340 pkg_failed=untried
16345 if test $pkg_failed = yes; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16347 $as_echo "no" >&6; }
16349 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16350 _pkg_short_errors_supported=yes
16351 else
16352 _pkg_short_errors_supported=no
16354 if test $_pkg_short_errors_supported = yes; then
16355 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16356 else
16357 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16359 # Put the nasty error message in config.log where it belongs
16360 echo "$libsystemd_PKG_ERRORS" >&5
16362 as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
16364 $libsystemd_PKG_ERRORS
16366 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16367 installed software in a non-standard prefix.
16369 Alternatively, you may set the environment variables libsystemd_CFLAGS
16370 and libsystemd_LIBS to avoid the need to call pkg-config.
16371 See the pkg-config man page for more details." "$LINENO" 5
16372 elif test $pkg_failed = untried; then
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16374 $as_echo "no" >&6; }
16375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16377 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16378 is in your PATH or set the PKG_CONFIG environment variable to the full
16379 path to pkg-config.
16381 Alternatively, you may set the environment variables libsystemd_CFLAGS
16382 and libsystemd_LIBS to avoid the need to call pkg-config.
16383 See the pkg-config man page for more details.
16385 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16386 See \`config.log' for more details" "$LINENO" 5; }
16387 else
16388 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
16389 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16391 $as_echo "yes" >&6; }
16395 elif test $pkg_failed = untried; then
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16397 $as_echo "no" >&6; }
16399 pkg_failed=no
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16401 $as_echo_n "checking for libsystemd... " >&6; }
16403 if test -n "$libsystemd_CFLAGS"; then
16404 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
16405 elif test -n "$PKG_CONFIG"; then
16406 if test -n "$PKG_CONFIG" && \
16407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16408 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16409 ac_status=$?
16410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16411 test $ac_status = 0; }; then
16412 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16413 test "x$?" != "x0" && pkg_failed=yes
16414 else
16415 pkg_failed=yes
16417 else
16418 pkg_failed=untried
16420 if test -n "$libsystemd_LIBS"; then
16421 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
16422 elif test -n "$PKG_CONFIG"; then
16423 if test -n "$PKG_CONFIG" && \
16424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16425 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16426 ac_status=$?
16427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16428 test $ac_status = 0; }; then
16429 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16430 test "x$?" != "x0" && pkg_failed=yes
16431 else
16432 pkg_failed=yes
16434 else
16435 pkg_failed=untried
16440 if test $pkg_failed = yes; then
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442 $as_echo "no" >&6; }
16444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16445 _pkg_short_errors_supported=yes
16446 else
16447 _pkg_short_errors_supported=no
16449 if test $_pkg_short_errors_supported = yes; then
16450 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16451 else
16452 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16454 # Put the nasty error message in config.log where it belongs
16455 echo "$libsystemd_PKG_ERRORS" >&5
16457 as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
16459 $libsystemd_PKG_ERRORS
16461 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16462 installed software in a non-standard prefix.
16464 Alternatively, you may set the environment variables libsystemd_CFLAGS
16465 and libsystemd_LIBS to avoid the need to call pkg-config.
16466 See the pkg-config man page for more details." "$LINENO" 5
16467 elif test $pkg_failed = untried; then
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16469 $as_echo "no" >&6; }
16470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16472 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16473 is in your PATH or set the PKG_CONFIG environment variable to the full
16474 path to pkg-config.
16476 Alternatively, you may set the environment variables libsystemd_CFLAGS
16477 and libsystemd_LIBS to avoid the need to call pkg-config.
16478 See the pkg-config man page for more details.
16480 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16481 See \`config.log' for more details" "$LINENO" 5; }
16482 else
16483 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
16484 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16486 $as_echo "yes" >&6; }
16490 else
16491 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
16492 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16494 $as_echo "yes" >&6; }
16497 for ac_header in systemd/sd-daemon.h
16498 do :
16499 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
16500 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_SYSTEMD_SD_DAEMON_H 1
16503 _ACEOF
16505 else
16507 as_fn_error $? "systemd development headers not found." "$LINENO" 5
16511 done
16514 saved_LIBS="${LIBS}"
16515 LIBS="${LIBS} ${libsystemd_LIBS}"
16516 for ac_func in sd_booted
16517 do :
16518 ac_fn_c_check_func "$LINENO" "sd_booted" "ac_cv_func_sd_booted"
16519 if test "x$ac_cv_func_sd_booted" = xyes; then :
16520 cat >>confdefs.h <<_ACEOF
16521 #define HAVE_SD_BOOTED 1
16522 _ACEOF
16524 else
16525 as_fn_error $? "systemd library is missing sd_booted()" "$LINENO" 5
16527 done
16529 OPTIONAL_SYSTEMD_LIBS="${libsystemd_LIBS}"
16531 $as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
16533 LIBS="${saved_LIBS}"
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
16538 $as_echo_n "checking git checkout... " >&6; }
16539 GIT_CHECKOUT="no"
16540 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
16542 $as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
16544 GIT_CHECKOUT="yes"
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
16547 $as_echo "${GIT_CHECKOUT}" >&6; }
16549 if test -n "${SP_PLATFORM_WINDOWS}"; then
16551 cat >>confdefs.h <<_ACEOF
16552 #define PATH_SEPARATOR '\\\\'
16553 _ACEOF
16556 cat >>confdefs.h <<_ACEOF
16557 #define PATH_SEPARATOR_STR "\\\\"
16558 _ACEOF
16560 else
16562 cat >>confdefs.h <<_ACEOF
16563 #define PATH_SEPARATOR '/'
16564 _ACEOF
16567 cat >>confdefs.h <<_ACEOF
16568 #define PATH_SEPARATOR_STR "/"
16569 _ACEOF
16573 if test "${enable_x509_alt_username}" = "yes"; then
16574 if test "${with_crypto_library}" = "polarssl" ; then
16575 as_fn_error $? "PolarSSL does not support the --x509-username-field feature" "$LINENO" 5
16579 $as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
16583 test "${ac_cv_header_sys_uio_h}" = "yes" &&
16584 $as_echo "#define HAVE_IOVEC 1" >>confdefs.h
16586 test "${enable_multi}" = "yes" &&
16587 $as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
16589 test "${enable_server}" = "no" &&
16590 $as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
16592 test "${enable_management}" = "yes" &&
16593 $as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
16595 test "${enable_socks}" = "yes" &&
16596 $as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
16598 test "${enable_http_proxy}" = "yes" &&
16599 $as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
16601 test "${enable_multihome}" = "yes" &&
16602 $as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
16604 test "${enable_debug}" = "yes" &&
16605 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
16607 test "${enable_small}" = "yes" &&
16608 $as_echo "#define ENABLE_SMALL 1" >>confdefs.h
16610 test "${enable_fragment}" = "yes" &&
16611 $as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
16613 test "${enable_port_share}" = "yes" &&
16614 $as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
16616 test "${enable_def_auth}" = "yes" &&
16617 $as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
16619 test "${enable_pf}" = "yes" &&
16620 $as_echo "#define ENABLE_PF 1" >>confdefs.h
16622 test "${enable_strict_options}" = "yes" &&
16623 $as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
16625 test "${enable_password_save}" = "yes" &&
16626 $as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h
16629 case "${with_crypto_library}" in
16630 openssl)
16631 have_crypto_crypto="${have_openssl_crypto}"
16632 have_crypto_ssl="${have_openssl_ssl}"
16633 CRYPTO_CRYPTO_CFLAGS="${OPENSSL_CRYPTO_CFLAGS}"
16634 CRYPTO_CRYPTO_LIBS="${OPENSSL_CRYPTO_LIBS}"
16635 CRYPTO_SSL_CFLAGS="${OPENSSL_SSL_CFLAGS}"
16636 CRYPTO_SSL_LIBS="${OPENSSL_SSL_LIBS}"
16638 $as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
16640 test "${have_openssl_engine}" = "yes" &&
16641 $as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
16644 polarssl)
16645 have_crypto_crypto="${have_polarssl_crypto}"
16646 have_crypto_ssl="${have_polarssl_ssl}"
16647 CRYPTO_CRYPTO_CFLAGS="${POLARSSL_CFLAGS}"
16648 CRYPTO_CRYPTO_LIBS="${POLARSSL_LIBS}"
16650 $as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h
16653 esac
16655 if test "${enable_ssl}" = "yes"; then
16656 test "${enable_crypto}" != "yes" && as_fn_error $? "crypto must be enabled for ssl" "$LINENO" 5
16657 test "${have_crypto_ssl}" != "yes" && as_fn_error $? "${with_ssl_library} ssl is required but missing" "$LINENO" 5
16658 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
16659 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
16661 $as_echo "#define ENABLE_SSL 1" >>confdefs.h
16665 if test "${enable_crypto}" = "yes"; then
16666 test "${have_crypto_crypto}" != "yes" && as_fn_error $? "${with_crypto_library} crypto is required but missing" "$LINENO" 5
16667 test "${enable_crypto_ofb_cfb}" = "yes" &&
16668 $as_echo "#define ENABLE_OFB_CFB_MODE 1" >>confdefs.h
16670 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
16671 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
16673 $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
16677 if test "${enable_plugins}" = "yes"; then
16678 OPTIONAL_DL_LIBS="${DL_LIBS}"
16680 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
16682 else
16683 enable_plugin_auth_pam="no"
16684 enable_plugin_down_root="no"
16687 if test "${enable_iproute2}" = "yes"; then
16688 test -z "${IPROUTE}" && as_fn_error $? "ip utility is required but missing" "$LINENO" 5
16690 $as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
16692 else
16693 if test "${WIN32}" != "yes"; then
16694 test -z "${ROUTE}" && as_fn_error $? "route utility is required but missing" "$LINENO" 5
16695 test -z "${IFCONFIG}" && as_fn_error $? "ifconfig utility is required but missing" "$LINENO" 5
16699 if test "${enable_selinux}" = "yes"; then
16700 test -z "${SELINUX_LIBS}" && as_fn_error $? "libselinux required but missing" "$LINENO" 5
16701 OPTIONAL_SELINUX_LIBS="${SELINUX_LIBS}"
16703 $as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
16707 if test "${enable_lzo}" = "yes"; then
16708 test "${have_lzo}" != "yes" && as_fn_error $? "lzo enabled but missing" "$LINENO" 5
16709 OPTIONAL_LZO_CFLAGS="${LZO_CFLAGS}"
16710 OPTIONAL_LZO_LIBS="${LZO_LIBS}"
16712 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16715 if test "${enable_lzo_stub}" = "yes"; then
16716 test "${enable_lzo}" = "yes" && as_fn_error $? "Cannot have both lzo stub and lzo enabled" "$LINENO" 5
16718 $as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h
16721 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16725 if test "${enable_pkcs11}" = "yes"; then
16726 test "${have_pkcs11_helper}" != "yes" && as_fn_error $? "PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
16727 test "${enable_ssl}" != "yes" && as_fn_error $? "PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5
16728 OPTIONAL_PKCS11_HELPER_CFLAGS="${PKCS11_HELPER_CFLAGS}"
16729 OPTIONAL_PKCS11_HELPER_LIBS="${PKCS11_HELPER_LIBS}"
16731 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
16735 if test "${enable_pedantic}" = "yes"; then
16736 enable_strict="yes"
16737 CFLAGS="${CFLAGS} -pedantic"
16738 test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi"
16740 if test "${enable_strict}" = "yes"; then
16741 CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
16744 if test "${WIN32}" = "yes"; then
16745 test -z "${MAN2HTML}" && as_fn_error $? "man2html is required for win32" "$LINENO" 5
16748 if test "${enable_plugin_auth_pam}" = "yes"; then
16749 PLUGIN_AUTH_PAM_CFLAGS="${LIBPAM_CFLAGS}"
16750 if test "${enable_pam_dlopen}" = "yes"; then
16752 $as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
16754 PLUGIN_AUTH_PAM_LIBS="${DL_LIBS}"
16755 else
16756 test -z "${LIBPAM_LIBS}" && as_fn_error $? "libpam required but missing" "$LINENO" 5
16757 PLUGIN_AUTH_PAM_LIBS="${LIBPAM_LIBS}"
16761 CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
16763 cat >>confdefs.h <<_ACEOF
16764 #define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
16765 _ACEOF
16768 TAP_WIN_COMPONENT_ID="tap0901"
16769 TAP_WIN_MIN_MAJOR="9"
16770 TAP_WIN_MIN_MINOR="9"
16772 cat >>confdefs.h <<_ACEOF
16773 #define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
16774 _ACEOF
16777 cat >>confdefs.h <<_ACEOF
16778 #define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
16779 _ACEOF
16782 cat >>confdefs.h <<_ACEOF
16783 #define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
16784 _ACEOF
16803 if test "${WIN32}" = "yes"; then
16804 WIN32_TRUE=
16805 WIN32_FALSE='#'
16806 else
16807 WIN32_TRUE='#'
16808 WIN32_FALSE=
16811 if test "${GIT_CHECKOUT}" = "yes"; then
16812 GIT_CHECKOUT_TRUE=
16813 GIT_CHECKOUT_FALSE='#'
16814 else
16815 GIT_CHECKOUT_TRUE='#'
16816 GIT_CHECKOUT_FALSE=
16819 if test "${enable_plugin_auth_pam}" = "yes"; then
16820 ENABLE_PLUGIN_AUTH_PAM_TRUE=
16821 ENABLE_PLUGIN_AUTH_PAM_FALSE='#'
16822 else
16823 ENABLE_PLUGIN_AUTH_PAM_TRUE='#'
16824 ENABLE_PLUGIN_AUTH_PAM_FALSE=
16827 if test "${enable_plugin_down_root}" = "yes"; then
16828 ENABLE_PLUGIN_DOWN_ROOT_TRUE=
16829 ENABLE_PLUGIN_DOWN_ROOT_FALSE='#'
16830 else
16831 ENABLE_PLUGIN_DOWN_ROOT_TRUE='#'
16832 ENABLE_PLUGIN_DOWN_ROOT_FALSE=
16836 plugindir="${with_plugindir}"
16837 sampledir="\$(docdir)/sample"
16841 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"
16843 ac_config_files="$ac_config_files tests/t_client.sh"
16845 cat >confcache <<\_ACEOF
16846 # This file is a shell script that caches the results of configure
16847 # tests run on this system so they can be shared between configure
16848 # scripts and configure runs, see configure's option --config-cache.
16849 # It is not useful on other systems. If it contains results you don't
16850 # want to keep, you may remove or edit it.
16852 # config.status only pays attention to the cache file if you give it
16853 # the --recheck option to rerun configure.
16855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16857 # following values.
16859 _ACEOF
16861 # The following way of writing the cache mishandles newlines in values,
16862 # but we know of no workaround that is simple, portable, and efficient.
16863 # So, we kill variables containing newlines.
16864 # Ultrix sh set writes to stderr and can't be redirected directly,
16865 # and sets the high bit in the cache file unless we assign to the vars.
16867 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16868 eval ac_val=\$$ac_var
16869 case $ac_val in #(
16870 *${as_nl}*)
16871 case $ac_var in #(
16872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16874 esac
16875 case $ac_var in #(
16876 _ | IFS | as_nl) ;; #(
16877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16878 *) { eval $ac_var=; unset $ac_var;} ;;
16879 esac ;;
16880 esac
16881 done
16883 (set) 2>&1 |
16884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16885 *${as_nl}ac_space=\ *)
16886 # `set' does not quote correctly, so add quotes: double-quote
16887 # substitution turns \\\\ into \\, and sed turns \\ into \.
16888 sed -n \
16889 "s/'/'\\\\''/g;
16890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16891 ;; #(
16893 # `set' quotes correctly as required by POSIX, so do not add quotes.
16894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16896 esac |
16897 sort
16899 sed '
16900 /^ac_cv_env_/b end
16901 t clear
16902 :clear
16903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16904 t end
16905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16906 :end' >>confcache
16907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16908 if test -w "$cache_file"; then
16909 if test "x$cache_file" != "x/dev/null"; then
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16911 $as_echo "$as_me: updating cache $cache_file" >&6;}
16912 if test ! -f "$cache_file" || test -h "$cache_file"; then
16913 cat confcache >"$cache_file"
16914 else
16915 case $cache_file in #(
16916 */* | ?:*)
16917 mv -f confcache "$cache_file"$$ &&
16918 mv -f "$cache_file"$$ "$cache_file" ;; #(
16920 mv -f confcache "$cache_file" ;;
16921 esac
16924 else
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16926 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16929 rm -f confcache
16931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16932 # Let make expand exec_prefix.
16933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16935 DEFS=-DHAVE_CONFIG_H
16937 ac_libobjs=
16938 ac_ltlibobjs=
16940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16941 # 1. Remove the extension, and $U if already installed.
16942 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16943 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16944 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16945 # will be set to the directory where LIBOBJS objects are built.
16946 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16947 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16948 done
16949 LIBOBJS=$ac_libobjs
16951 LTLIBOBJS=$ac_ltlibobjs
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16955 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16956 if test -n "$am_sleep_pid"; then
16957 # Hide warnings about reused PIDs.
16958 wait $am_sleep_pid 2>/dev/null
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16961 $as_echo "done" >&6; }
16962 if test -n "$EXEEXT"; then
16963 am__EXEEXT_TRUE=
16964 am__EXEEXT_FALSE='#'
16965 else
16966 am__EXEEXT_TRUE='#'
16967 am__EXEEXT_FALSE=
16970 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16971 as_fn_error $? "conditional \"AMDEP\" was never defined.
16972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16975 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16978 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
16979 as_fn_error $? "conditional \"WIN32\" was never defined.
16980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16982 if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
16983 as_fn_error $? "conditional \"GIT_CHECKOUT\" was never defined.
16984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16986 if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
16987 as_fn_error $? "conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
16988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16990 if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
16991 as_fn_error $? "conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
16992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16995 : "${CONFIG_STATUS=./config.status}"
16996 ac_write_fail=0
16997 ac_clean_files_save=$ac_clean_files
16998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17000 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17001 as_write_fail=0
17002 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17003 #! $SHELL
17004 # Generated by $as_me.
17005 # Run this file to recreate the current configuration.
17006 # Compiler output produced by configure, useful for debugging
17007 # configure, is in config.log if it exists.
17009 debug=false
17010 ac_cs_recheck=false
17011 ac_cs_silent=false
17013 SHELL=\${CONFIG_SHELL-$SHELL}
17014 export SHELL
17015 _ASEOF
17016 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17017 ## -------------------- ##
17018 ## M4sh Initialization. ##
17019 ## -------------------- ##
17021 # Be more Bourne compatible
17022 DUALCASE=1; export DUALCASE # for MKS sh
17023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17024 emulate sh
17025 NULLCMD=:
17026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17027 # is contrary to our usage. Disable this feature.
17028 alias -g '${1+"$@"}'='"$@"'
17029 setopt NO_GLOB_SUBST
17030 else
17031 case `(set -o) 2>/dev/null` in #(
17032 *posix*) :
17033 set -o posix ;; #(
17034 *) :
17036 esac
17040 as_nl='
17042 export as_nl
17043 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17044 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17047 # Prefer a ksh shell builtin over an external printf program on Solaris,
17048 # but without wasting forks for bash or zsh.
17049 if test -z "$BASH_VERSION$ZSH_VERSION" \
17050 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17051 as_echo='print -r --'
17052 as_echo_n='print -rn --'
17053 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17054 as_echo='printf %s\n'
17055 as_echo_n='printf %s'
17056 else
17057 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17058 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17059 as_echo_n='/usr/ucb/echo -n'
17060 else
17061 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17062 as_echo_n_body='eval
17063 arg=$1;
17064 case $arg in #(
17065 *"$as_nl"*)
17066 expr "X$arg" : "X\\(.*\\)$as_nl";
17067 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17068 esac;
17069 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17071 export as_echo_n_body
17072 as_echo_n='sh -c $as_echo_n_body as_echo'
17074 export as_echo_body
17075 as_echo='sh -c $as_echo_body as_echo'
17078 # The user is always right.
17079 if test "${PATH_SEPARATOR+set}" != set; then
17080 PATH_SEPARATOR=:
17081 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17082 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17083 PATH_SEPARATOR=';'
17088 # IFS
17089 # We need space, tab and new line, in precisely that order. Quoting is
17090 # there to prevent editors from complaining about space-tab.
17091 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17092 # splitting by setting IFS to empty value.)
17093 IFS=" "" $as_nl"
17095 # Find who we are. Look in the path if we contain no directory separator.
17096 as_myself=
17097 case $0 in #((
17098 *[\\/]* ) as_myself=$0 ;;
17099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17100 for as_dir in $PATH
17102 IFS=$as_save_IFS
17103 test -z "$as_dir" && as_dir=.
17104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17105 done
17106 IFS=$as_save_IFS
17109 esac
17110 # We did not find ourselves, most probably we were run as `sh COMMAND'
17111 # in which case we are not to be found in the path.
17112 if test "x$as_myself" = x; then
17113 as_myself=$0
17115 if test ! -f "$as_myself"; then
17116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17117 exit 1
17120 # Unset variables that we do not need and which cause bugs (e.g. in
17121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17122 # suppresses any "Segmentation fault" message there. '((' could
17123 # trigger a bug in pdksh 5.2.14.
17124 for as_var in BASH_ENV ENV MAIL MAILPATH
17125 do eval test x\${$as_var+set} = xset \
17126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17127 done
17128 PS1='$ '
17129 PS2='> '
17130 PS4='+ '
17132 # NLS nuisances.
17133 LC_ALL=C
17134 export LC_ALL
17135 LANGUAGE=C
17136 export LANGUAGE
17138 # CDPATH.
17139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17142 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17143 # ----------------------------------------
17144 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17145 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17146 # script with STATUS, using 1 if that was 0.
17147 as_fn_error ()
17149 as_status=$1; test $as_status -eq 0 && as_status=1
17150 if test "$4"; then
17151 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17152 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17154 $as_echo "$as_me: error: $2" >&2
17155 as_fn_exit $as_status
17156 } # as_fn_error
17159 # as_fn_set_status STATUS
17160 # -----------------------
17161 # Set $? to STATUS, without forking.
17162 as_fn_set_status ()
17164 return $1
17165 } # as_fn_set_status
17167 # as_fn_exit STATUS
17168 # -----------------
17169 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17170 as_fn_exit ()
17172 set +e
17173 as_fn_set_status $1
17174 exit $1
17175 } # as_fn_exit
17177 # as_fn_unset ax_cv_socklen_t_equiv
17178 # ---------------------------------
17179 # Portably unset VAR.
17180 as_fn_unset ()
17182 { eval $1=; unset $1;}
17184 as_unset=as_fn_unset
17185 # as_fn_append ax_cv_socklen_t_equiv VALUE
17186 # ----------------------------------------
17187 # Append the text in VALUE to the end of the definition contained in VAR. Take
17188 # advantage of any shell optimizations that allow amortized linear growth over
17189 # repeated appends, instead of the typical quadratic growth present in naive
17190 # implementations.
17191 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17192 eval 'as_fn_append ()
17194 eval $1+=\$2
17196 else
17197 as_fn_append ()
17199 eval $1=\$$1\$2
17201 fi # as_fn_append
17203 # as_fn_arith ARG...
17204 # ------------------
17205 # Perform arithmetic evaluation on the ARGs, and store the result in the
17206 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17207 # must be portable across $(()) and expr.
17208 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17209 eval 'as_fn_arith ()
17211 as_val=$(( $* ))
17213 else
17214 as_fn_arith ()
17216 as_val=`expr "$@" || test $? -eq 1`
17218 fi # as_fn_arith
17221 if expr a : '\(a\)' >/dev/null 2>&1 &&
17222 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17223 as_expr=expr
17224 else
17225 as_expr=false
17228 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17229 as_basename=basename
17230 else
17231 as_basename=false
17234 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17235 as_dirname=dirname
17236 else
17237 as_dirname=false
17240 as_me=`$as_basename -- "$0" ||
17241 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17242 X"$0" : 'X\(//\)$' \| \
17243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17244 $as_echo X/"$0" |
17245 sed '/^.*\/\([^/][^/]*\)\/*$/{
17246 s//\1/
17249 /^X\/\(\/\/\)$/{
17250 s//\1/
17253 /^X\/\(\/\).*/{
17254 s//\1/
17257 s/.*/./; q'`
17259 # Avoid depending upon Character Ranges.
17260 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17261 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17262 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17263 as_cr_digits='0123456789'
17264 as_cr_alnum=$as_cr_Letters$as_cr_digits
17266 ECHO_C= ECHO_N= ECHO_T=
17267 case `echo -n x` in #(((((
17268 -n*)
17269 case `echo 'xy\c'` in
17270 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17271 xy) ECHO_C='\c';;
17272 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17273 ECHO_T=' ';;
17274 esac;;
17276 ECHO_N='-n';;
17277 esac
17279 rm -f conf$$ conf$$.exe conf$$.file
17280 if test -d conf$$.dir; then
17281 rm -f conf$$.dir/conf$$.file
17282 else
17283 rm -f conf$$.dir
17284 mkdir conf$$.dir 2>/dev/null
17286 if (echo >conf$$.file) 2>/dev/null; then
17287 if ln -s conf$$.file conf$$ 2>/dev/null; then
17288 as_ln_s='ln -s'
17289 # ... but there are two gotchas:
17290 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17291 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17292 # In both cases, we have to default to `cp -pR'.
17293 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17294 as_ln_s='cp -pR'
17295 elif ln conf$$.file conf$$ 2>/dev/null; then
17296 as_ln_s=ln
17297 else
17298 as_ln_s='cp -pR'
17300 else
17301 as_ln_s='cp -pR'
17303 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17304 rmdir conf$$.dir 2>/dev/null
17307 # as_fn_mkdir_p
17308 # -------------
17309 # Create "$as_dir" as a directory, including parents if necessary.
17310 as_fn_mkdir_p ()
17313 case $as_dir in #(
17314 -*) as_dir=./$as_dir;;
17315 esac
17316 test -d "$as_dir" || eval $as_mkdir_p || {
17317 as_dirs=
17318 while :; do
17319 case $as_dir in #(
17320 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17321 *) as_qdir=$as_dir;;
17322 esac
17323 as_dirs="'$as_qdir' $as_dirs"
17324 as_dir=`$as_dirname -- "$as_dir" ||
17325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17326 X"$as_dir" : 'X\(//\)[^/]' \| \
17327 X"$as_dir" : 'X\(//\)$' \| \
17328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17329 $as_echo X"$as_dir" |
17330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17331 s//\1/
17334 /^X\(\/\/\)[^/].*/{
17335 s//\1/
17338 /^X\(\/\/\)$/{
17339 s//\1/
17342 /^X\(\/\).*/{
17343 s//\1/
17346 s/.*/./; q'`
17347 test -d "$as_dir" && break
17348 done
17349 test -z "$as_dirs" || eval "mkdir $as_dirs"
17350 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17353 } # as_fn_mkdir_p
17354 if mkdir -p . 2>/dev/null; then
17355 as_mkdir_p='mkdir -p "$as_dir"'
17356 else
17357 test -d ./-p && rmdir ./-p
17358 as_mkdir_p=false
17362 # as_fn_executable_p FILE
17363 # -----------------------
17364 # Test if FILE is an executable regular file.
17365 as_fn_executable_p ()
17367 test -f "$1" && test -x "$1"
17368 } # as_fn_executable_p
17369 as_test_x='test -x'
17370 as_executable_p=as_fn_executable_p
17372 # Sed expression to map a string onto a valid CPP name.
17373 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17375 # Sed expression to map a string onto a valid variable name.
17376 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17379 exec 6>&1
17380 ## ----------------------------------- ##
17381 ## Main body of $CONFIG_STATUS script. ##
17382 ## ----------------------------------- ##
17383 _ASEOF
17384 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17387 # Save the log message, to keep $0 and so on meaningful, and to
17388 # report actual input values of CONFIG_FILES etc. instead of their
17389 # values after options handling.
17390 ac_log="
17391 This file was extended by OpenVPN $as_me 2.3.6, which was
17392 generated by GNU Autoconf 2.69. Invocation command line was
17394 CONFIG_FILES = $CONFIG_FILES
17395 CONFIG_HEADERS = $CONFIG_HEADERS
17396 CONFIG_LINKS = $CONFIG_LINKS
17397 CONFIG_COMMANDS = $CONFIG_COMMANDS
17398 $ $0 $@
17400 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17403 _ACEOF
17405 case $ac_config_files in *"
17406 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17407 esac
17409 case $ac_config_headers in *"
17410 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17411 esac
17414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17415 # Files that config.status was made for.
17416 config_files="$ac_config_files"
17417 config_headers="$ac_config_headers"
17418 config_commands="$ac_config_commands"
17420 _ACEOF
17422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17423 ac_cs_usage="\
17424 \`$as_me' instantiates files and other configuration actions
17425 from templates according to the current configuration. Unless the files
17426 and actions are specified as TAGs, all are instantiated by default.
17428 Usage: $0 [OPTION]... [TAG]...
17430 -h, --help print this help, then exit
17431 -V, --version print version number and configuration settings, then exit
17432 --config print configuration, then exit
17433 -q, --quiet, --silent
17434 do not print progress messages
17435 -d, --debug don't remove temporary files
17436 --recheck update $as_me by reconfiguring in the same conditions
17437 --file=FILE[:TEMPLATE]
17438 instantiate the configuration file FILE
17439 --header=FILE[:TEMPLATE]
17440 instantiate the configuration header FILE
17442 Configuration files:
17443 $config_files
17445 Configuration headers:
17446 $config_headers
17448 Configuration commands:
17449 $config_commands
17451 Report bugs to <openvpn-users@lists.sourceforge.net>."
17453 _ACEOF
17454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17455 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17456 ac_cs_version="\\
17457 OpenVPN config.status 2.3.6
17458 configured by $0, generated by GNU Autoconf 2.69,
17459 with options \\"\$ac_cs_config\\"
17461 Copyright (C) 2012 Free Software Foundation, Inc.
17462 This config.status script is free software; the Free Software Foundation
17463 gives unlimited permission to copy, distribute and modify it."
17465 ac_pwd='$ac_pwd'
17466 srcdir='$srcdir'
17467 INSTALL='$INSTALL'
17468 MKDIR_P='$MKDIR_P'
17469 AWK='$AWK'
17470 test -n "\$AWK" || AWK=awk
17471 _ACEOF
17473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17474 # The default lists apply if the user does not specify any file.
17475 ac_need_defaults=:
17476 while test $# != 0
17478 case $1 in
17479 --*=?*)
17480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17482 ac_shift=:
17484 --*=)
17485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17486 ac_optarg=
17487 ac_shift=:
17490 ac_option=$1
17491 ac_optarg=$2
17492 ac_shift=shift
17494 esac
17496 case $ac_option in
17497 # Handling of the options.
17498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17499 ac_cs_recheck=: ;;
17500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17501 $as_echo "$ac_cs_version"; exit ;;
17502 --config | --confi | --conf | --con | --co | --c )
17503 $as_echo "$ac_cs_config"; exit ;;
17504 --debug | --debu | --deb | --de | --d | -d )
17505 debug=: ;;
17506 --file | --fil | --fi | --f )
17507 $ac_shift
17508 case $ac_optarg in
17509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17510 '') as_fn_error $? "missing file argument" ;;
17511 esac
17512 as_fn_append CONFIG_FILES " '$ac_optarg'"
17513 ac_need_defaults=false;;
17514 --header | --heade | --head | --hea )
17515 $ac_shift
17516 case $ac_optarg in
17517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17518 esac
17519 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17520 ac_need_defaults=false;;
17521 --he | --h)
17522 # Conflict between --help and --header
17523 as_fn_error $? "ambiguous option: \`$1'
17524 Try \`$0 --help' for more information.";;
17525 --help | --hel | -h )
17526 $as_echo "$ac_cs_usage"; exit ;;
17527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17529 ac_cs_silent=: ;;
17531 # This is an error.
17532 -*) as_fn_error $? "unrecognized option: \`$1'
17533 Try \`$0 --help' for more information." ;;
17535 *) as_fn_append ac_config_targets " $1"
17536 ac_need_defaults=false ;;
17538 esac
17539 shift
17540 done
17542 ac_configure_extra_args=
17544 if $ac_cs_silent; then
17545 exec 6>/dev/null
17546 ac_configure_extra_args="$ac_configure_extra_args --silent"
17549 _ACEOF
17550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17551 if \$ac_cs_recheck; then
17552 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17553 shift
17554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17555 CONFIG_SHELL='$SHELL'
17556 export CONFIG_SHELL
17557 exec "\$@"
17560 _ACEOF
17561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17562 exec 5>>config.log
17564 echo
17565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17566 ## Running $as_me. ##
17567 _ASBOX
17568 $as_echo "$ac_log"
17569 } >&5
17571 _ACEOF
17572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17574 # INIT-COMMANDS
17576 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17579 # The HP-UX ksh and POSIX shell print the target directory to stdout
17580 # if CDPATH is set.
17581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17583 sed_quote_subst='$sed_quote_subst'
17584 double_quote_subst='$double_quote_subst'
17585 delay_variable_subst='$delay_variable_subst'
17586 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17587 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17588 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17589 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17590 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17591 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17592 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17593 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17594 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17595 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17596 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17597 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17598 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17599 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17600 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17601 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17602 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17603 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17604 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17605 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17606 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17607 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17608 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17609 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17610 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17611 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17612 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17613 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17614 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17615 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17616 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17617 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17618 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17619 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17620 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17621 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17622 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17623 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17624 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17625 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17626 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17627 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17628 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17629 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17630 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17631 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17632 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17633 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17634 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17635 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17636 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17637 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17638 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17639 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17640 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17641 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17642 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17643 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"`'
17644 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17645 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17646 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17647 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17648 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17649 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17650 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17651 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17652 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17653 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17654 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17655 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17656 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17657 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17658 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17659 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17660 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17661 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17662 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17663 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17664 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17665 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17666 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17667 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17668 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17669 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17670 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17671 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17672 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17673 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17674 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17675 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17676 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17677 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17678 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17679 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17680 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17681 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17682 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17683 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17684 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17685 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17686 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17687 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17688 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17689 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17690 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17691 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17692 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17693 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17694 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17695 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17696 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17697 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17698 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17699 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17700 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17701 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17702 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17703 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17704 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17705 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17706 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17707 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17708 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17709 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17710 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17711 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17712 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17713 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17714 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17715 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17716 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17717 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17718 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17719 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17720 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17721 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17722 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17723 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17724 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17725 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17726 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17727 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17728 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17729 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17730 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17731 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17732 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17733 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17734 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17735 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17736 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17737 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17738 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17739 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17740 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17741 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17742 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17743 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17744 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17745 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17746 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17747 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17748 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17749 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17750 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17751 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17752 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17753 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17754 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17755 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17756 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17757 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17758 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17760 LTCC='$LTCC'
17761 LTCFLAGS='$LTCFLAGS'
17762 compiler='$compiler_DEFAULT'
17764 # A function that is used when there is no print builtin or printf.
17765 func_fallback_echo ()
17767 eval 'cat <<_LTECHO_EOF
17769 _LTECHO_EOF'
17772 # Quote evaled strings.
17773 for var in AS \
17774 DLLTOOL \
17775 OBJDUMP \
17776 SHELL \
17777 ECHO \
17778 PATH_SEPARATOR \
17779 SED \
17780 GREP \
17781 EGREP \
17782 FGREP \
17783 LD \
17784 NM \
17785 LN_S \
17786 lt_SP2NL \
17787 lt_NL2SP \
17788 reload_flag \
17789 deplibs_check_method \
17790 file_magic_cmd \
17791 file_magic_glob \
17792 want_nocaseglob \
17793 sharedlib_from_linklib_cmd \
17794 AR \
17795 AR_FLAGS \
17796 archiver_list_spec \
17797 STRIP \
17798 RANLIB \
17799 CC \
17800 CFLAGS \
17801 compiler \
17802 lt_cv_sys_global_symbol_pipe \
17803 lt_cv_sys_global_symbol_to_cdecl \
17804 lt_cv_sys_global_symbol_to_c_name_address \
17805 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17806 nm_file_list_spec \
17807 lt_prog_compiler_no_builtin_flag \
17808 lt_prog_compiler_pic \
17809 lt_prog_compiler_wl \
17810 lt_prog_compiler_static \
17811 lt_cv_prog_compiler_c_o \
17812 need_locks \
17813 MANIFEST_TOOL \
17814 DSYMUTIL \
17815 NMEDIT \
17816 LIPO \
17817 OTOOL \
17818 OTOOL64 \
17819 shrext_cmds \
17820 export_dynamic_flag_spec \
17821 whole_archive_flag_spec \
17822 compiler_needs_object \
17823 with_gnu_ld \
17824 allow_undefined_flag \
17825 no_undefined_flag \
17826 hardcode_libdir_flag_spec \
17827 hardcode_libdir_separator \
17828 exclude_expsyms \
17829 include_expsyms \
17830 file_list_spec \
17831 variables_saved_for_relink \
17832 libname_spec \
17833 library_names_spec \
17834 soname_spec \
17835 install_override_mode \
17836 finish_eval \
17837 old_striplib \
17838 striplib \
17839 LD_RC \
17840 reload_flag_RC \
17841 compiler_RC \
17842 lt_prog_compiler_no_builtin_flag_RC \
17843 lt_prog_compiler_pic_RC \
17844 lt_prog_compiler_wl_RC \
17845 lt_prog_compiler_static_RC \
17846 lt_cv_prog_compiler_c_o_RC \
17847 export_dynamic_flag_spec_RC \
17848 whole_archive_flag_spec_RC \
17849 compiler_needs_object_RC \
17850 with_gnu_ld_RC \
17851 allow_undefined_flag_RC \
17852 no_undefined_flag_RC \
17853 hardcode_libdir_flag_spec_RC \
17854 hardcode_libdir_separator_RC \
17855 exclude_expsyms_RC \
17856 include_expsyms_RC \
17857 file_list_spec_RC; do
17858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17859 *[\\\\\\\`\\"\\\$]*)
17860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17865 esac
17866 done
17868 # Double-quote double-evaled strings.
17869 for var in reload_cmds \
17870 old_postinstall_cmds \
17871 old_postuninstall_cmds \
17872 old_archive_cmds \
17873 extract_expsyms_cmds \
17874 old_archive_from_new_cmds \
17875 old_archive_from_expsyms_cmds \
17876 archive_cmds \
17877 archive_expsym_cmds \
17878 module_cmds \
17879 module_expsym_cmds \
17880 export_symbols_cmds \
17881 prelink_cmds \
17882 postlink_cmds \
17883 postinstall_cmds \
17884 postuninstall_cmds \
17885 finish_cmds \
17886 sys_lib_search_path_spec \
17887 sys_lib_dlsearch_path_spec \
17888 reload_cmds_RC \
17889 old_archive_cmds_RC \
17890 old_archive_from_new_cmds_RC \
17891 old_archive_from_expsyms_cmds_RC \
17892 archive_cmds_RC \
17893 archive_expsym_cmds_RC \
17894 module_cmds_RC \
17895 module_expsym_cmds_RC \
17896 export_symbols_cmds_RC \
17897 prelink_cmds_RC \
17898 postlink_cmds_RC; do
17899 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17900 *[\\\\\\\`\\"\\\$]*)
17901 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17904 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17906 esac
17907 done
17909 ac_aux_dir='$ac_aux_dir'
17910 xsi_shell='$xsi_shell'
17911 lt_shell_append='$lt_shell_append'
17913 # See if we are running on zsh, and set the options which allow our
17914 # commands through without removal of \ escapes INIT.
17915 if test -n "\${ZSH_VERSION+set}" ; then
17916 setopt NO_GLOB_SUBST
17920 PACKAGE='$PACKAGE'
17921 VERSION='$VERSION'
17922 TIMESTAMP='$TIMESTAMP'
17923 RM='$RM'
17924 ofile='$ofile'
17931 _ACEOF
17933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17935 # Handling of arguments.
17936 for ac_config_target in $ac_config_targets
17938 case $ac_config_target in
17939 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17940 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17941 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17942 "version.sh") CONFIG_FILES="$CONFIG_FILES version.sh" ;;
17943 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17944 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
17945 "build/msvc/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/Makefile" ;;
17946 "build/msvc/msvc-generate/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
17947 "distro/Makefile") CONFIG_FILES="$CONFIG_FILES distro/Makefile" ;;
17948 "distro/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES distro/rpm/Makefile" ;;
17949 "distro/rpm/openvpn.spec") CONFIG_FILES="$CONFIG_FILES distro/rpm/openvpn.spec" ;;
17950 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17951 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17952 "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
17953 "src/openvpn/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpn/Makefile" ;;
17954 "src/openvpnserv/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpnserv/Makefile" ;;
17955 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
17956 "src/plugins/auth-pam/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
17957 "src/plugins/down-root/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
17958 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17959 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
17960 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17961 "tests/t_client.sh") CONFIG_FILES="$CONFIG_FILES tests/t_client.sh" ;;
17963 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17964 esac
17965 done
17968 # If the user did not use the arguments to specify the items to instantiate,
17969 # then the envvar interface is used. Set only those that are not.
17970 # We use the long form for the default assignment because of an extremely
17971 # bizarre bug on SunOS 4.1.3.
17972 if $ac_need_defaults; then
17973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17978 # Have a temporary directory for convenience. Make it in the build tree
17979 # simply because there is no reason against having it here, and in addition,
17980 # creating and moving files from /tmp can sometimes cause problems.
17981 # Hook for its removal unless debugging.
17982 # Note that there is a small window in which the directory will not be cleaned:
17983 # after its creation but before its name has been assigned to `$tmp'.
17984 $debug ||
17986 tmp= ac_tmp=
17987 trap 'exit_status=$?
17988 : "${ac_tmp:=$tmp}"
17989 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17991 trap 'as_fn_exit 1' 1 2 13 15
17993 # Create a (secure) tmp directory for tmp files.
17996 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17997 test -d "$tmp"
17998 } ||
18000 tmp=./conf$$-$RANDOM
18001 (umask 077 && mkdir "$tmp")
18002 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18003 ac_tmp=$tmp
18005 # Set up the scripts for CONFIG_FILES section.
18006 # No need to generate them if there are no CONFIG_FILES.
18007 # This happens for instance with `./config.status config.h'.
18008 if test -n "$CONFIG_FILES"; then
18011 ac_cr=`echo X | tr X '\015'`
18012 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18013 # But we know of no other shell where ac_cr would be empty at this
18014 # point, so we can use a bashism as a fallback.
18015 if test "x$ac_cr" = x; then
18016 eval ac_cr=\$\'\\r\'
18018 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18019 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18020 ac_cs_awk_cr='\\r'
18021 else
18022 ac_cs_awk_cr=$ac_cr
18025 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18026 _ACEOF
18030 echo "cat >conf$$subs.awk <<_ACEOF" &&
18031 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18032 echo "_ACEOF"
18033 } >conf$$subs.sh ||
18034 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18035 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18036 ac_delim='%!_!# '
18037 for ac_last_try in false false false false false :; do
18038 . ./conf$$subs.sh ||
18039 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18041 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18042 if test $ac_delim_n = $ac_delim_num; then
18043 break
18044 elif $ac_last_try; then
18045 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18046 else
18047 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18049 done
18050 rm -f conf$$subs.sh
18052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18054 _ACEOF
18055 sed -n '
18057 s/^/S["/; s/!.*/"]=/
18060 s/^[^!]*!//
18061 :repl
18062 t repl
18063 s/'"$ac_delim"'$//
18064 t delim
18067 s/\(.\{148\}\)..*/\1/
18068 t more1
18069 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18072 b repl
18073 :more1
18074 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18077 s/.\{148\}//
18078 t nl
18079 :delim
18081 s/\(.\{148\}\)..*/\1/
18082 t more2
18083 s/["\\]/\\&/g; s/^/"/; s/$/"/
18086 :more2
18087 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18090 s/.\{148\}//
18091 t delim
18092 ' <conf$$subs.awk | sed '
18093 /^[^""]/{
18095 s/\n//
18097 ' >>$CONFIG_STATUS || ac_write_fail=1
18098 rm -f conf$$subs.awk
18099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18100 _ACAWK
18101 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18102 for (key in S) S_is_set[key] = 1
18103 FS = "\a"
18107 line = $ 0
18108 nfields = split(line, field, "@")
18109 substed = 0
18110 len = length(field[1])
18111 for (i = 2; i < nfields; i++) {
18112 key = field[i]
18113 keylen = length(key)
18114 if (S_is_set[key]) {
18115 value = S[key]
18116 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18117 len += length(value) + length(field[++i])
18118 substed = 1
18119 } else
18120 len += 1 + keylen
18123 print line
18126 _ACAWK
18127 _ACEOF
18128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18129 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18130 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18131 else
18133 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18134 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18135 _ACEOF
18137 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18138 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18139 # trailing colons and then remove the whole line if VPATH becomes empty
18140 # (actually we leave an empty line to preserve line numbers).
18141 if test "x$srcdir" = x.; then
18142 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18144 s///
18145 s/^/:/
18146 s/[ ]*$/:/
18147 s/:\$(srcdir):/:/g
18148 s/:\${srcdir}:/:/g
18149 s/:@srcdir@:/:/g
18150 s/^:*//
18151 s/:*$//
18153 s/\(=[ ]*\).*/\1/
18155 s/\n//
18156 s/^[^=]*=[ ]*$//
18160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18161 fi # test -n "$CONFIG_FILES"
18163 # Set up the scripts for CONFIG_HEADERS section.
18164 # No need to generate them if there are no CONFIG_HEADERS.
18165 # This happens for instance with `./config.status Makefile'.
18166 if test -n "$CONFIG_HEADERS"; then
18167 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18168 BEGIN {
18169 _ACEOF
18171 # Transform confdefs.h into an awk script `defines.awk', embedded as
18172 # here-document in config.status, that substitutes the proper values into
18173 # config.h.in to produce config.h.
18175 # Create a delimiter string that does not exist in confdefs.h, to ease
18176 # handling of long lines.
18177 ac_delim='%!_!# '
18178 for ac_last_try in false false :; do
18179 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18180 if test -z "$ac_tt"; then
18181 break
18182 elif $ac_last_try; then
18183 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18184 else
18185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18187 done
18189 # For the awk script, D is an array of macro values keyed by name,
18190 # likewise P contains macro parameters if any. Preserve backslash
18191 # newline sequences.
18193 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18194 sed -n '
18195 s/.\{148\}/&'"$ac_delim"'/g
18196 t rset
18197 :rset
18198 s/^[ ]*#[ ]*define[ ][ ]*/ /
18199 t def
18201 :def
18202 s/\\$//
18203 t bsnl
18204 s/["\\]/\\&/g
18205 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18206 D["\1"]=" \3"/p
18207 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18209 :bsnl
18210 s/["\\]/\\&/g
18211 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18212 D["\1"]=" \3\\\\\\n"\\/p
18213 t cont
18214 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18215 t cont
18217 :cont
18219 s/.\{148\}/&'"$ac_delim"'/g
18220 t clear
18221 :clear
18222 s/\\$//
18223 t bsnlc
18224 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18226 :bsnlc
18227 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18228 b cont
18229 ' <confdefs.h | sed '
18230 s/'"$ac_delim"'/"\\\
18231 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18234 for (key in D) D_is_set[key] = 1
18235 FS = "\a"
18237 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18238 line = \$ 0
18239 split(line, arg, " ")
18240 if (arg[1] == "#") {
18241 defundef = arg[2]
18242 mac1 = arg[3]
18243 } else {
18244 defundef = substr(arg[1], 2)
18245 mac1 = arg[2]
18247 split(mac1, mac2, "(") #)
18248 macro = mac2[1]
18249 prefix = substr(line, 1, index(line, defundef) - 1)
18250 if (D_is_set[macro]) {
18251 # Preserve the white space surrounding the "#".
18252 print prefix "define", macro P[macro] D[macro]
18253 next
18254 } else {
18255 # Replace #undef with comments. This is necessary, for example,
18256 # in the case of _POSIX_SOURCE, which is predefined and required
18257 # on some systems where configure will not decide to define it.
18258 if (defundef == "undef") {
18259 print "/*", prefix defundef, macro, "*/"
18260 next
18264 { print }
18265 _ACAWK
18266 _ACEOF
18267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18268 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18269 fi # test -n "$CONFIG_HEADERS"
18272 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18273 shift
18274 for ac_tag
18276 case $ac_tag in
18277 :[FHLC]) ac_mode=$ac_tag; continue;;
18278 esac
18279 case $ac_mode$ac_tag in
18280 :[FHL]*:*);;
18281 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18282 :[FH]-) ac_tag=-:-;;
18283 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18284 esac
18285 ac_save_IFS=$IFS
18286 IFS=:
18287 set x $ac_tag
18288 IFS=$ac_save_IFS
18289 shift
18290 ac_file=$1
18291 shift
18293 case $ac_mode in
18294 :L) ac_source=$1;;
18295 :[FH])
18296 ac_file_inputs=
18297 for ac_f
18299 case $ac_f in
18300 -) ac_f="$ac_tmp/stdin";;
18301 *) # Look for the file first in the build tree, then in the source tree
18302 # (if the path is not absolute). The absolute path cannot be DOS-style,
18303 # because $ac_f cannot contain `:'.
18304 test -f "$ac_f" ||
18305 case $ac_f in
18306 [\\/$]*) false;;
18307 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18308 esac ||
18309 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18310 esac
18311 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18312 as_fn_append ac_file_inputs " '$ac_f'"
18313 done
18315 # Let's still pretend it is `configure' which instantiates (i.e., don't
18316 # use $as_me), people would be surprised to read:
18317 # /* config.h. Generated by config.status. */
18318 configure_input='Generated from '`
18319 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18320 `' by configure.'
18321 if test x"$ac_file" != x-; then
18322 configure_input="$ac_file. $configure_input"
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18324 $as_echo "$as_me: creating $ac_file" >&6;}
18326 # Neutralize special characters interpreted by sed in replacement strings.
18327 case $configure_input in #(
18328 *\&* | *\|* | *\\* )
18329 ac_sed_conf_input=`$as_echo "$configure_input" |
18330 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18331 *) ac_sed_conf_input=$configure_input;;
18332 esac
18334 case $ac_tag in
18335 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18337 esac
18339 esac
18341 ac_dir=`$as_dirname -- "$ac_file" ||
18342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18343 X"$ac_file" : 'X\(//\)[^/]' \| \
18344 X"$ac_file" : 'X\(//\)$' \| \
18345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18346 $as_echo X"$ac_file" |
18347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18348 s//\1/
18351 /^X\(\/\/\)[^/].*/{
18352 s//\1/
18355 /^X\(\/\/\)$/{
18356 s//\1/
18359 /^X\(\/\).*/{
18360 s//\1/
18363 s/.*/./; q'`
18364 as_dir="$ac_dir"; as_fn_mkdir_p
18365 ac_builddir=.
18367 case "$ac_dir" in
18368 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18370 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18371 # A ".." for each directory in $ac_dir_suffix.
18372 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18373 case $ac_top_builddir_sub in
18374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18376 esac ;;
18377 esac
18378 ac_abs_top_builddir=$ac_pwd
18379 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18380 # for backward compatibility:
18381 ac_top_builddir=$ac_top_build_prefix
18383 case $srcdir in
18384 .) # We are building in place.
18385 ac_srcdir=.
18386 ac_top_srcdir=$ac_top_builddir_sub
18387 ac_abs_top_srcdir=$ac_pwd ;;
18388 [\\/]* | ?:[\\/]* ) # Absolute name.
18389 ac_srcdir=$srcdir$ac_dir_suffix;
18390 ac_top_srcdir=$srcdir
18391 ac_abs_top_srcdir=$srcdir ;;
18392 *) # Relative name.
18393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18394 ac_top_srcdir=$ac_top_build_prefix$srcdir
18395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18396 esac
18397 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18400 case $ac_mode in
18403 # CONFIG_FILE
18406 case $INSTALL in
18407 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18408 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18409 esac
18410 ac_MKDIR_P=$MKDIR_P
18411 case $MKDIR_P in
18412 [\\/$]* | ?:[\\/]* ) ;;
18413 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18414 esac
18415 _ACEOF
18417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18418 # If the template does not know about datarootdir, expand it.
18419 # FIXME: This hack should be removed a few years after 2.60.
18420 ac_datarootdir_hack=; ac_datarootdir_seen=
18421 ac_sed_dataroot='
18422 /datarootdir/ {
18426 /@datadir@/p
18427 /@docdir@/p
18428 /@infodir@/p
18429 /@localedir@/p
18430 /@mandir@/p'
18431 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18432 *datarootdir*) ac_datarootdir_seen=yes;;
18433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18435 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18436 _ACEOF
18437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18438 ac_datarootdir_hack='
18439 s&@datadir@&$datadir&g
18440 s&@docdir@&$docdir&g
18441 s&@infodir@&$infodir&g
18442 s&@localedir@&$localedir&g
18443 s&@mandir@&$mandir&g
18444 s&\\\${datarootdir}&$datarootdir&g' ;;
18445 esac
18446 _ACEOF
18448 # Neutralize VPATH when `$srcdir' = `.'.
18449 # Shell code in configure.ac might set extrasub.
18450 # FIXME: do we really want to maintain this feature?
18451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18452 ac_sed_extra="$ac_vpsub
18453 $extrasub
18454 _ACEOF
18455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18458 s|@configure_input@|$ac_sed_conf_input|;t t
18459 s&@top_builddir@&$ac_top_builddir_sub&;t t
18460 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18461 s&@srcdir@&$ac_srcdir&;t t
18462 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18463 s&@top_srcdir@&$ac_top_srcdir&;t t
18464 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18465 s&@builddir@&$ac_builddir&;t t
18466 s&@abs_builddir@&$ac_abs_builddir&;t t
18467 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18468 s&@INSTALL@&$ac_INSTALL&;t t
18469 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18470 $ac_datarootdir_hack
18472 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18473 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18475 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18476 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18477 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18478 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18480 which seems to be undefined. Please make sure it is defined" >&5
18481 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18482 which seems to be undefined. Please make sure it is defined" >&2;}
18484 rm -f "$ac_tmp/stdin"
18485 case $ac_file in
18486 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18487 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18488 esac \
18489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18493 # CONFIG_HEADER
18495 if test x"$ac_file" != x-; then
18497 $as_echo "/* $configure_input */" \
18498 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18499 } >"$ac_tmp/config.h" \
18500 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18501 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18503 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18504 else
18505 rm -f "$ac_file"
18506 mv "$ac_tmp/config.h" "$ac_file" \
18507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18509 else
18510 $as_echo "/* $configure_input */" \
18511 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18512 || as_fn_error $? "could not create -" "$LINENO" 5
18514 # Compute "$ac_file"'s index in $config_headers.
18515 _am_arg="$ac_file"
18516 _am_stamp_count=1
18517 for _am_header in $config_headers :; do
18518 case $_am_header in
18519 $_am_arg | $_am_arg:* )
18520 break ;;
18522 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18523 esac
18524 done
18525 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18526 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18527 X"$_am_arg" : 'X\(//\)[^/]' \| \
18528 X"$_am_arg" : 'X\(//\)$' \| \
18529 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18530 $as_echo X"$_am_arg" |
18531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18532 s//\1/
18535 /^X\(\/\/\)[^/].*/{
18536 s//\1/
18539 /^X\(\/\/\)$/{
18540 s//\1/
18543 /^X\(\/\).*/{
18544 s//\1/
18547 s/.*/./; q'`/stamp-h$_am_stamp_count
18550 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18551 $as_echo "$as_me: executing $ac_file commands" >&6;}
18553 esac
18556 case $ac_file$ac_mode in
18557 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18558 # Older Autoconf quotes --file arguments for eval, but not when files
18559 # are listed without --file. Let's play safe and only enable the eval
18560 # if we detect the quoting.
18561 case $CONFIG_FILES in
18562 *\'*) eval set x "$CONFIG_FILES" ;;
18563 *) set x $CONFIG_FILES ;;
18564 esac
18565 shift
18566 for mf
18568 # Strip MF so we end up with the name of the file.
18569 mf=`echo "$mf" | sed -e 's/:.*$//'`
18570 # Check whether this is an Automake generated Makefile or not.
18571 # We used to match only the files named 'Makefile.in', but
18572 # some people rename them; so instead we look at the file content.
18573 # Grep'ing the first line is not enough: some people post-process
18574 # each Makefile.in and add a new line on top of each file to say so.
18575 # Grep'ing the whole file is not good either: AIX grep has a line
18576 # limit of 2048, but all sed's we know have understand at least 4000.
18577 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18578 dirpart=`$as_dirname -- "$mf" ||
18579 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18580 X"$mf" : 'X\(//\)[^/]' \| \
18581 X"$mf" : 'X\(//\)$' \| \
18582 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18583 $as_echo X"$mf" |
18584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18585 s//\1/
18588 /^X\(\/\/\)[^/].*/{
18589 s//\1/
18592 /^X\(\/\/\)$/{
18593 s//\1/
18596 /^X\(\/\).*/{
18597 s//\1/
18600 s/.*/./; q'`
18601 else
18602 continue
18604 # Extract the definition of DEPDIR, am__include, and am__quote
18605 # from the Makefile without running 'make'.
18606 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18607 test -z "$DEPDIR" && continue
18608 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18609 test -z "$am__include" && continue
18610 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18611 # Find all dependency output files, they are included files with
18612 # $(DEPDIR) in their names. We invoke sed twice because it is the
18613 # simplest approach to changing $(DEPDIR) to its actual value in the
18614 # expansion.
18615 for file in `sed -n "
18616 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18617 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18618 # Make sure the directory exists.
18619 test -f "$dirpart/$file" && continue
18620 fdir=`$as_dirname -- "$file" ||
18621 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18622 X"$file" : 'X\(//\)[^/]' \| \
18623 X"$file" : 'X\(//\)$' \| \
18624 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18625 $as_echo X"$file" |
18626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18627 s//\1/
18630 /^X\(\/\/\)[^/].*/{
18631 s//\1/
18634 /^X\(\/\/\)$/{
18635 s//\1/
18638 /^X\(\/\).*/{
18639 s//\1/
18642 s/.*/./; q'`
18643 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18644 # echo "creating $dirpart/$file"
18645 echo '# dummy' > "$dirpart/$file"
18646 done
18647 done
18650 "libtool":C)
18652 # See if we are running on zsh, and set the options which allow our
18653 # commands through without removal of \ escapes.
18654 if test -n "${ZSH_VERSION+set}" ; then
18655 setopt NO_GLOB_SUBST
18658 cfgfile="${ofile}T"
18659 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18660 $RM "$cfgfile"
18662 cat <<_LT_EOF >> "$cfgfile"
18663 #! $SHELL
18665 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18666 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18670 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18671 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18672 # Foundation, Inc.
18673 # Written by Gordon Matzigkeit, 1996
18675 # This file is part of GNU Libtool.
18677 # GNU Libtool is free software; you can redistribute it and/or
18678 # modify it under the terms of the GNU General Public License as
18679 # published by the Free Software Foundation; either version 2 of
18680 # the License, or (at your option) any later version.
18682 # As a special exception to the GNU General Public License,
18683 # if you distribute this file as part of a program or library that
18684 # is built using GNU Libtool, you may include this file under the
18685 # same distribution terms that you use for the rest of that program.
18687 # GNU Libtool is distributed in the hope that it will be useful,
18688 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18689 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18690 # GNU General Public License for more details.
18692 # You should have received a copy of the GNU General Public License
18693 # along with GNU Libtool; see the file COPYING. If not, a copy
18694 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18695 # obtained by writing to the Free Software Foundation, Inc.,
18696 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18699 # The names of the tagged configurations supported by this script.
18700 available_tags="RC "
18702 # ### BEGIN LIBTOOL CONFIG
18704 # Which release of libtool.m4 was used?
18705 macro_version=$macro_version
18706 macro_revision=$macro_revision
18708 # Assembler program.
18709 AS=$lt_AS
18711 # DLL creation program.
18712 DLLTOOL=$lt_DLLTOOL
18714 # Object dumper program.
18715 OBJDUMP=$lt_OBJDUMP
18717 # Whether or not to build shared libraries.
18718 build_libtool_libs=$enable_shared
18720 # Whether or not to build static libraries.
18721 build_old_libs=$enable_static
18723 # What type of objects to build.
18724 pic_mode=$pic_mode
18726 # Whether or not to optimize for fast installation.
18727 fast_install=$enable_fast_install
18729 # Shell to use when invoking shell scripts.
18730 SHELL=$lt_SHELL
18732 # An echo program that protects backslashes.
18733 ECHO=$lt_ECHO
18735 # The PATH separator for the build system.
18736 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18738 # The host system.
18739 host_alias=$host_alias
18740 host=$host
18741 host_os=$host_os
18743 # The build system.
18744 build_alias=$build_alias
18745 build=$build
18746 build_os=$build_os
18748 # A sed program that does not truncate output.
18749 SED=$lt_SED
18751 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18752 Xsed="\$SED -e 1s/^X//"
18754 # A grep program that handles long lines.
18755 GREP=$lt_GREP
18757 # An ERE matcher.
18758 EGREP=$lt_EGREP
18760 # A literal string matcher.
18761 FGREP=$lt_FGREP
18763 # A BSD- or MS-compatible name lister.
18764 NM=$lt_NM
18766 # Whether we need soft or hard links.
18767 LN_S=$lt_LN_S
18769 # What is the maximum length of a command?
18770 max_cmd_len=$max_cmd_len
18772 # Object file suffix (normally "o").
18773 objext=$ac_objext
18775 # Executable file suffix (normally "").
18776 exeext=$exeext
18778 # whether the shell understands "unset".
18779 lt_unset=$lt_unset
18781 # turn spaces into newlines.
18782 SP2NL=$lt_lt_SP2NL
18784 # turn newlines into spaces.
18785 NL2SP=$lt_lt_NL2SP
18787 # convert \$build file names to \$host format.
18788 to_host_file_cmd=$lt_cv_to_host_file_cmd
18790 # convert \$build files to toolchain format.
18791 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18793 # Method to check whether dependent libraries are shared objects.
18794 deplibs_check_method=$lt_deplibs_check_method
18796 # Command to use when deplibs_check_method = "file_magic".
18797 file_magic_cmd=$lt_file_magic_cmd
18799 # How to find potential files when deplibs_check_method = "file_magic".
18800 file_magic_glob=$lt_file_magic_glob
18802 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18803 want_nocaseglob=$lt_want_nocaseglob
18805 # Command to associate shared and link libraries.
18806 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18808 # The archiver.
18809 AR=$lt_AR
18811 # Flags to create an archive.
18812 AR_FLAGS=$lt_AR_FLAGS
18814 # How to feed a file listing to the archiver.
18815 archiver_list_spec=$lt_archiver_list_spec
18817 # A symbol stripping program.
18818 STRIP=$lt_STRIP
18820 # Commands used to install an old-style archive.
18821 RANLIB=$lt_RANLIB
18822 old_postinstall_cmds=$lt_old_postinstall_cmds
18823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18825 # Whether to use a lock for old archive extraction.
18826 lock_old_archive_extraction=$lock_old_archive_extraction
18828 # A C compiler.
18829 LTCC=$lt_CC
18831 # LTCC compiler flags.
18832 LTCFLAGS=$lt_CFLAGS
18834 # Take the output of nm and produce a listing of raw symbols and C names.
18835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18837 # Transform the output of nm in a proper C declaration.
18838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18840 # Transform the output of nm in a C name address pair.
18841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18843 # Transform the output of nm in a C name address pair when lib prefix is needed.
18844 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18846 # Specify filename containing input files for \$NM.
18847 nm_file_list_spec=$lt_nm_file_list_spec
18849 # The root where to search for dependent libraries,and in which our libraries should be installed.
18850 lt_sysroot=$lt_sysroot
18852 # The name of the directory that contains temporary libtool files.
18853 objdir=$objdir
18855 # Used to examine libraries when file_magic_cmd begins with "file".
18856 MAGIC_CMD=$MAGIC_CMD
18858 # Must we lock files when doing compilation?
18859 need_locks=$lt_need_locks
18861 # Manifest tool.
18862 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18864 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18865 DSYMUTIL=$lt_DSYMUTIL
18867 # Tool to change global to local symbols on Mac OS X.
18868 NMEDIT=$lt_NMEDIT
18870 # Tool to manipulate fat objects and archives on Mac OS X.
18871 LIPO=$lt_LIPO
18873 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18874 OTOOL=$lt_OTOOL
18876 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18877 OTOOL64=$lt_OTOOL64
18879 # Old archive suffix (normally "a").
18880 libext=$libext
18882 # Shared library suffix (normally ".so").
18883 shrext_cmds=$lt_shrext_cmds
18885 # The commands to extract the exported symbol list from a shared archive.
18886 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18888 # Variables whose values should be saved in libtool wrapper scripts and
18889 # restored at link time.
18890 variables_saved_for_relink=$lt_variables_saved_for_relink
18892 # Do we need the "lib" prefix for modules?
18893 need_lib_prefix=$need_lib_prefix
18895 # Do we need a version for libraries?
18896 need_version=$need_version
18898 # Library versioning type.
18899 version_type=$version_type
18901 # Shared library runtime path variable.
18902 runpath_var=$runpath_var
18904 # Shared library path variable.
18905 shlibpath_var=$shlibpath_var
18907 # Is shlibpath searched before the hard-coded library search path?
18908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18910 # Format of library name prefix.
18911 libname_spec=$lt_libname_spec
18913 # List of archive names. First name is the real one, the rest are links.
18914 # The last name is the one that the linker finds with -lNAME
18915 library_names_spec=$lt_library_names_spec
18917 # The coded name of the library, if different from the real name.
18918 soname_spec=$lt_soname_spec
18920 # Permission mode override for installation of shared libraries.
18921 install_override_mode=$lt_install_override_mode
18923 # Command to use after installation of a shared archive.
18924 postinstall_cmds=$lt_postinstall_cmds
18926 # Command to use after uninstallation of a shared archive.
18927 postuninstall_cmds=$lt_postuninstall_cmds
18929 # Commands used to finish a libtool library installation in a directory.
18930 finish_cmds=$lt_finish_cmds
18932 # As "finish_cmds", except a single script fragment to be evaled but
18933 # not shown.
18934 finish_eval=$lt_finish_eval
18936 # Whether we should hardcode library paths into libraries.
18937 hardcode_into_libs=$hardcode_into_libs
18939 # Compile-time system search path for libraries.
18940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18942 # Run-time system search path for libraries.
18943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18945 # Whether dlopen is supported.
18946 dlopen_support=$enable_dlopen
18948 # Whether dlopen of programs is supported.
18949 dlopen_self=$enable_dlopen_self
18951 # Whether dlopen of statically linked programs is supported.
18952 dlopen_self_static=$enable_dlopen_self_static
18954 # Commands to strip libraries.
18955 old_striplib=$lt_old_striplib
18956 striplib=$lt_striplib
18959 # The linker used to build libraries.
18960 LD=$lt_LD
18962 # How to create reloadable object files.
18963 reload_flag=$lt_reload_flag
18964 reload_cmds=$lt_reload_cmds
18966 # Commands used to build an old-style archive.
18967 old_archive_cmds=$lt_old_archive_cmds
18969 # A language specific compiler.
18970 CC=$lt_compiler
18972 # Is the compiler the GNU compiler?
18973 with_gcc=$GCC
18975 # Compiler flag to turn off builtin functions.
18976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18978 # Additional compiler flags for building library objects.
18979 pic_flag=$lt_lt_prog_compiler_pic
18981 # How to pass a linker flag through the compiler.
18982 wl=$lt_lt_prog_compiler_wl
18984 # Compiler flag to prevent dynamic linking.
18985 link_static_flag=$lt_lt_prog_compiler_static
18987 # Does compiler simultaneously support -c and -o options?
18988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18990 # Whether or not to add -lc for building shared libraries.
18991 build_libtool_need_lc=$archive_cmds_need_lc
18993 # Whether or not to disallow shared libs when runtime libs are static.
18994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18996 # Compiler flag to allow reflexive dlopens.
18997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18999 # Compiler flag to generate shared objects directly from archives.
19000 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19002 # Whether the compiler copes with passing no objects directly.
19003 compiler_needs_object=$lt_compiler_needs_object
19005 # Create an old-style archive from a shared archive.
19006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19008 # Create a temporary old-style archive to link instead of a shared archive.
19009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19011 # Commands used to build a shared archive.
19012 archive_cmds=$lt_archive_cmds
19013 archive_expsym_cmds=$lt_archive_expsym_cmds
19015 # Commands used to build a loadable module if different from building
19016 # a shared archive.
19017 module_cmds=$lt_module_cmds
19018 module_expsym_cmds=$lt_module_expsym_cmds
19020 # Whether we are building with GNU ld or not.
19021 with_gnu_ld=$lt_with_gnu_ld
19023 # Flag that allows shared libraries with undefined symbols to be built.
19024 allow_undefined_flag=$lt_allow_undefined_flag
19026 # Flag that enforces no undefined symbols.
19027 no_undefined_flag=$lt_no_undefined_flag
19029 # Flag to hardcode \$libdir into a binary during linking.
19030 # This must work even if \$libdir does not exist
19031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19033 # Whether we need a single "-rpath" flag with a separated argument.
19034 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19036 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19037 # DIR into the resulting binary.
19038 hardcode_direct=$hardcode_direct
19040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19041 # DIR into the resulting binary and the resulting library dependency is
19042 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19043 # library is relocated.
19044 hardcode_direct_absolute=$hardcode_direct_absolute
19046 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19047 # into the resulting binary.
19048 hardcode_minus_L=$hardcode_minus_L
19050 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19051 # into the resulting binary.
19052 hardcode_shlibpath_var=$hardcode_shlibpath_var
19054 # Set to "yes" if building a shared library automatically hardcodes DIR
19055 # into the library and all subsequent libraries and executables linked
19056 # against it.
19057 hardcode_automatic=$hardcode_automatic
19059 # Set to yes if linker adds runtime paths of dependent libraries
19060 # to runtime path list.
19061 inherit_rpath=$inherit_rpath
19063 # Whether libtool must link a program against all its dependency libraries.
19064 link_all_deplibs=$link_all_deplibs
19066 # Set to "yes" if exported symbols are required.
19067 always_export_symbols=$always_export_symbols
19069 # The commands to list exported symbols.
19070 export_symbols_cmds=$lt_export_symbols_cmds
19072 # Symbols that should not be listed in the preloaded symbols.
19073 exclude_expsyms=$lt_exclude_expsyms
19075 # Symbols that must always be exported.
19076 include_expsyms=$lt_include_expsyms
19078 # Commands necessary for linking programs (against libraries) with templates.
19079 prelink_cmds=$lt_prelink_cmds
19081 # Commands necessary for finishing linking programs.
19082 postlink_cmds=$lt_postlink_cmds
19084 # Specify filename containing input files.
19085 file_list_spec=$lt_file_list_spec
19087 # How to hardcode a shared library path into an executable.
19088 hardcode_action=$hardcode_action
19090 # ### END LIBTOOL CONFIG
19092 _LT_EOF
19094 case $host_os in
19095 aix3*)
19096 cat <<\_LT_EOF >> "$cfgfile"
19097 # AIX sometimes has problems with the GCC collect2 program. For some
19098 # reason, if we set the COLLECT_NAMES environment variable, the problems
19099 # vanish in a puff of smoke.
19100 if test "X${COLLECT_NAMES+set}" != Xset; then
19101 COLLECT_NAMES=
19102 export COLLECT_NAMES
19104 _LT_EOF
19106 esac
19109 ltmain="$ac_aux_dir/ltmain.sh"
19112 # We use sed instead of cat because bash on DJGPP gets confused if
19113 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19114 # text mode, it properly converts lines to CR/LF. This bash problem
19115 # is reportedly fixed, but why not run on old versions too?
19116 sed '$q' "$ltmain" >> "$cfgfile" \
19117 || (rm -f "$cfgfile"; exit 1)
19119 if test x"$xsi_shell" = xyes; then
19120 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19121 func_dirname ()\
19123 \ case ${1} in\
19124 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19125 \ * ) func_dirname_result="${3}" ;;\
19126 \ esac\
19127 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19128 && mv -f "$cfgfile.tmp" "$cfgfile" \
19129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19130 test 0 -eq $? || _lt_function_replace_fail=:
19133 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19134 func_basename ()\
19136 \ func_basename_result="${1##*/}"\
19137 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19138 && mv -f "$cfgfile.tmp" "$cfgfile" \
19139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19140 test 0 -eq $? || _lt_function_replace_fail=:
19143 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19144 func_dirname_and_basename ()\
19146 \ case ${1} in\
19147 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19148 \ * ) func_dirname_result="${3}" ;;\
19149 \ esac\
19150 \ func_basename_result="${1##*/}"\
19151 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19152 && mv -f "$cfgfile.tmp" "$cfgfile" \
19153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19154 test 0 -eq $? || _lt_function_replace_fail=:
19157 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19158 func_stripname ()\
19160 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19161 \ # positional parameters, so assign one to ordinary parameter first.\
19162 \ func_stripname_result=${3}\
19163 \ func_stripname_result=${func_stripname_result#"${1}"}\
19164 \ func_stripname_result=${func_stripname_result%"${2}"}\
19165 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19166 && mv -f "$cfgfile.tmp" "$cfgfile" \
19167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19168 test 0 -eq $? || _lt_function_replace_fail=:
19171 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19172 func_split_long_opt ()\
19174 \ func_split_long_opt_name=${1%%=*}\
19175 \ func_split_long_opt_arg=${1#*=}\
19176 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19177 && mv -f "$cfgfile.tmp" "$cfgfile" \
19178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19179 test 0 -eq $? || _lt_function_replace_fail=:
19182 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19183 func_split_short_opt ()\
19185 \ func_split_short_opt_arg=${1#??}\
19186 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19187 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19188 && mv -f "$cfgfile.tmp" "$cfgfile" \
19189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19190 test 0 -eq $? || _lt_function_replace_fail=:
19193 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19194 func_lo2o ()\
19196 \ case ${1} in\
19197 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19198 \ *) func_lo2o_result=${1} ;;\
19199 \ esac\
19200 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19201 && mv -f "$cfgfile.tmp" "$cfgfile" \
19202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19203 test 0 -eq $? || _lt_function_replace_fail=:
19206 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19207 func_xform ()\
19209 func_xform_result=${1%.*}.lo\
19210 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19211 && mv -f "$cfgfile.tmp" "$cfgfile" \
19212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19213 test 0 -eq $? || _lt_function_replace_fail=:
19216 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19217 func_arith ()\
19219 func_arith_result=$(( $* ))\
19220 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19221 && mv -f "$cfgfile.tmp" "$cfgfile" \
19222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19223 test 0 -eq $? || _lt_function_replace_fail=:
19226 sed -e '/^func_len ()$/,/^} # func_len /c\
19227 func_len ()\
19229 func_len_result=${#1}\
19230 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19231 && mv -f "$cfgfile.tmp" "$cfgfile" \
19232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19233 test 0 -eq $? || _lt_function_replace_fail=:
19237 if test x"$lt_shell_append" = xyes; then
19238 sed -e '/^func_append ()$/,/^} # func_append /c\
19239 func_append ()\
19241 eval "${1}+=\\${2}"\
19242 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19243 && mv -f "$cfgfile.tmp" "$cfgfile" \
19244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19245 test 0 -eq $? || _lt_function_replace_fail=:
19248 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19249 func_append_quoted ()\
19251 \ func_quote_for_eval "${2}"\
19252 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19253 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19254 && mv -f "$cfgfile.tmp" "$cfgfile" \
19255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19256 test 0 -eq $? || _lt_function_replace_fail=:
19259 # Save a `func_append' function call where possible by direct use of '+='
19260 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19261 && mv -f "$cfgfile.tmp" "$cfgfile" \
19262 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19263 test 0 -eq $? || _lt_function_replace_fail=:
19264 else
19265 # Save a `func_append' function call even when '+=' is not available
19266 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19267 && mv -f "$cfgfile.tmp" "$cfgfile" \
19268 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19269 test 0 -eq $? || _lt_function_replace_fail=:
19272 if test x"$_lt_function_replace_fail" = x":"; then
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19274 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19278 mv -f "$cfgfile" "$ofile" ||
19279 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19280 chmod +x "$ofile"
19283 cat <<_LT_EOF >> "$ofile"
19285 # ### BEGIN LIBTOOL TAG CONFIG: RC
19287 # The linker used to build libraries.
19288 LD=$lt_LD_RC
19290 # How to create reloadable object files.
19291 reload_flag=$lt_reload_flag_RC
19292 reload_cmds=$lt_reload_cmds_RC
19294 # Commands used to build an old-style archive.
19295 old_archive_cmds=$lt_old_archive_cmds_RC
19297 # A language specific compiler.
19298 CC=$lt_compiler_RC
19300 # Is the compiler the GNU compiler?
19301 with_gcc=$GCC_RC
19303 # Compiler flag to turn off builtin functions.
19304 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19306 # Additional compiler flags for building library objects.
19307 pic_flag=$lt_lt_prog_compiler_pic_RC
19309 # How to pass a linker flag through the compiler.
19310 wl=$lt_lt_prog_compiler_wl_RC
19312 # Compiler flag to prevent dynamic linking.
19313 link_static_flag=$lt_lt_prog_compiler_static_RC
19315 # Does compiler simultaneously support -c and -o options?
19316 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19318 # Whether or not to add -lc for building shared libraries.
19319 build_libtool_need_lc=$archive_cmds_need_lc_RC
19321 # Whether or not to disallow shared libs when runtime libs are static.
19322 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19324 # Compiler flag to allow reflexive dlopens.
19325 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19327 # Compiler flag to generate shared objects directly from archives.
19328 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19330 # Whether the compiler copes with passing no objects directly.
19331 compiler_needs_object=$lt_compiler_needs_object_RC
19333 # Create an old-style archive from a shared archive.
19334 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19336 # Create a temporary old-style archive to link instead of a shared archive.
19337 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19339 # Commands used to build a shared archive.
19340 archive_cmds=$lt_archive_cmds_RC
19341 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19343 # Commands used to build a loadable module if different from building
19344 # a shared archive.
19345 module_cmds=$lt_module_cmds_RC
19346 module_expsym_cmds=$lt_module_expsym_cmds_RC
19348 # Whether we are building with GNU ld or not.
19349 with_gnu_ld=$lt_with_gnu_ld_RC
19351 # Flag that allows shared libraries with undefined symbols to be built.
19352 allow_undefined_flag=$lt_allow_undefined_flag_RC
19354 # Flag that enforces no undefined symbols.
19355 no_undefined_flag=$lt_no_undefined_flag_RC
19357 # Flag to hardcode \$libdir into a binary during linking.
19358 # This must work even if \$libdir does not exist
19359 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19361 # Whether we need a single "-rpath" flag with a separated argument.
19362 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19364 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19365 # DIR into the resulting binary.
19366 hardcode_direct=$hardcode_direct_RC
19368 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19369 # DIR into the resulting binary and the resulting library dependency is
19370 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19371 # library is relocated.
19372 hardcode_direct_absolute=$hardcode_direct_absolute_RC
19374 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19375 # into the resulting binary.
19376 hardcode_minus_L=$hardcode_minus_L_RC
19378 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19379 # into the resulting binary.
19380 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19382 # Set to "yes" if building a shared library automatically hardcodes DIR
19383 # into the library and all subsequent libraries and executables linked
19384 # against it.
19385 hardcode_automatic=$hardcode_automatic_RC
19387 # Set to yes if linker adds runtime paths of dependent libraries
19388 # to runtime path list.
19389 inherit_rpath=$inherit_rpath_RC
19391 # Whether libtool must link a program against all its dependency libraries.
19392 link_all_deplibs=$link_all_deplibs_RC
19394 # Set to "yes" if exported symbols are required.
19395 always_export_symbols=$always_export_symbols_RC
19397 # The commands to list exported symbols.
19398 export_symbols_cmds=$lt_export_symbols_cmds_RC
19400 # Symbols that should not be listed in the preloaded symbols.
19401 exclude_expsyms=$lt_exclude_expsyms_RC
19403 # Symbols that must always be exported.
19404 include_expsyms=$lt_include_expsyms_RC
19406 # Commands necessary for linking programs (against libraries) with templates.
19407 prelink_cmds=$lt_prelink_cmds_RC
19409 # Commands necessary for finishing linking programs.
19410 postlink_cmds=$lt_postlink_cmds_RC
19412 # Specify filename containing input files.
19413 file_list_spec=$lt_file_list_spec_RC
19415 # How to hardcode a shared library path into an executable.
19416 hardcode_action=$hardcode_action_RC
19418 # ### END LIBTOOL TAG CONFIG: RC
19419 _LT_EOF
19422 "tests/t_client.sh":F) chmod +x tests/t_client.sh ;;
19424 esac
19425 done # for ac_tag
19428 as_fn_exit 0
19429 _ACEOF
19430 ac_clean_files=$ac_clean_files_save
19432 test $ac_write_fail = 0 ||
19433 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19436 # configure is writing to config.log, and then calls config.status.
19437 # config.status does its own redirection, appending to config.log.
19438 # Unfortunately, on DOS this fails, as config.log is still kept open
19439 # by configure, so config.status won't be able to write to it; its
19440 # output is simply discarded. So we exec the FD to /dev/null,
19441 # effectively closing config.log, so it can be properly (re)opened and
19442 # appended to by config.status. When coming back to configure, we
19443 # need to make the FD available again.
19444 if test "$no_create" != yes; then
19445 ac_cs_success=:
19446 ac_config_status_args=
19447 test "$silent" = yes &&
19448 ac_config_status_args="$ac_config_status_args --quiet"
19449 exec 5>/dev/null
19450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19451 exec 5>>config.log
19452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19453 # would make configure fail if this is the last instruction.
19454 $ac_cs_success || as_fn_exit 1
19456 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19458 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}