openvpn 2.3.10
[tomato.git] / release / src / router / openvpn / configure
blobd7495cf6d75ddb5740cbb0eb95701a9bde3e03c8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenVPN 2.3.10.
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.10'
594 PACKAGE_STRING='OpenVPN 2.3.10'
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 P11KIT_LIBS
664 P11KIT_CFLAGS
665 libsystemd_LIBS
666 libsystemd_CFLAGS
667 LZO_LIBS
668 LZO_CFLAGS
669 POLARSSL_LIBS
670 POLARSSL_CFLAGS
671 OPENSSL_SSL_LIBS
672 OPENSSL_SSL_CFLAGS
673 OPENSSL_CRYPTO_LIBS
674 OPENSSL_CRYPTO_CFLAGS
675 PKCS11_HELPER_LIBS
676 PKCS11_HELPER_CFLAGS
677 LIBPAM_LIBS
678 LIBPAM_CFLAGS
679 SELINUX_LIBS
680 TAP_CFLAGS
681 SOCKETS_LIBS
682 DL_LIBS
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 RANLIB
691 ac_ct_AR
694 ac_ct_DUMPBIN
695 DUMPBIN
697 FGREP
698 LIBTOOL
699 OBJDUMP
700 DLLTOOL
702 SYSTEMD_ASK_PASSWORD
704 MAN2HTML
705 NETSTAT
706 IPROUTE
707 ROUTE
708 IFCONFIG
710 LN_S
711 PKG_CONFIG_LIBDIR
712 PKG_CONFIG_PATH
713 PKG_CONFIG
714 EGREP
715 GREP
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_dependency_tracking
812 enable_lzo
813 enable_lzo_stub
814 enable_crypto
815 enable_ofb_cfb
816 enable_ssl
817 enable_x509_alt_username
818 enable_multi
819 enable_server
820 enable_plugins
821 enable_management
822 enable_pkcs11
823 enable_socks
824 enable_http_proxy
825 enable_fragment
826 enable_multihome
827 enable_port_share
828 enable_debug
829 enable_small
830 enable_iproute2
831 enable_def_auth
832 enable_pf
833 enable_plugin_auth_pam
834 enable_plugin_down_root
835 enable_pam_dlopen
836 enable_strict
837 enable_pedantic
838 enable_strict_options
839 enable_selinux
840 enable_systemd
841 with_special_build
842 with_mem_check
843 with_crypto_library
844 with_plugindir
845 enable_shared
846 enable_static
847 with_pic
848 enable_fast_install
849 with_gnu_ld
850 with_sysroot
851 enable_libtool_lock
853 ac_precious_vars='build_alias
854 host_alias
855 target_alias
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
862 PKG_CONFIG
863 PKG_CONFIG_PATH
864 PKG_CONFIG_LIBDIR
865 IFCONFIG
866 ROUTE
867 IPROUTE
868 NETSTAT
869 MAN2HTML
871 SYSTEMD_ASK_PASSWORD
872 TAP_CFLAGS
873 LIBPAM_CFLAGS
874 LIBPAM_LIBS
875 PKCS11_HELPER_CFLAGS
876 PKCS11_HELPER_LIBS
877 OPENSSL_CRYPTO_CFLAGS
878 OPENSSL_CRYPTO_LIBS
879 OPENSSL_SSL_CFLAGS
880 OPENSSL_SSL_LIBS
881 POLARSSL_CFLAGS
882 POLARSSL_LIBS
883 LZO_CFLAGS
884 LZO_LIBS
885 libsystemd_CFLAGS
886 libsystemd_LIBS
887 P11KIT_CFLAGS
888 P11KIT_LIBS'
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
939 ac_prev=
940 ac_dashdash=
941 for ac_option
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
950 case $ac_option in
951 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *=) ac_optarg= ;;
953 *) ac_optarg=yes ;;
954 esac
956 # Accept the important Cygnus configure options, so we can diagnose typos.
958 case $ac_dashdash$ac_option in
960 ac_dashdash=yes ;;
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
979 --config-cache | -C)
980 cache_file=config.cache ;;
982 -datadir | --datadir | --datadi | --datad)
983 ac_prev=datadir ;;
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
994 -disable-* | --disable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1020 -enable-* | --enable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1224 -with-* | --with-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1274 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284 esac
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1296 esac
1297 done
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 as_fn_error $? "missing argument to $ac_option"
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 test "$silent" = yes && exec 6>/dev/null
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 as_fn_error $? "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 as_fn_error $? "pwd does not report name of working directory"
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365 ac_srcdir_defaulted=yes
1366 # Try the directory containing this script, then the parent directory.
1367 ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369 X"$as_myself" : 'X\(//\)[^/]' \| \
1370 X"$as_myself" : 'X\(//\)$' \| \
1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 s//\1/
1377 /^X\(\/\/\)[^/].*/{
1378 s//\1/
1381 /^X\(\/\/\)$/{
1382 s//\1/
1385 /^X\(\/\).*/{
1386 s//\1/
1389 s/.*/./; q'`
1390 srcdir=$ac_confdir
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 srcdir=..
1394 else
1395 ac_srcdir_defaulted=no
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404 pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 srcdir=.
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1428 cat <<_ACEOF
1429 \`configure' configures OpenVPN 2.3.10 to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1438 Configuration:
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking ...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 [PREFIX]
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1482 _ACEOF
1484 cat <<\_ACEOF
1486 Program names:
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1491 System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of OpenVPN 2.3.10:";;
1500 esac
1501 cat <<\_ACEOF
1503 Optional Features:
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --enable-silent-rules less verbose build output (undo: "make V=1")
1508 --disable-silent-rules verbose build output (undo: "make V=0")
1509 --enable-dependency-tracking
1510 do not reject slow dependency extractors
1511 --disable-dependency-tracking
1512 speeds up one-time build
1513 --disable-lzo disable LZO compression support [default=yes]
1514 --enable-lzo-stub don't compile LZO compression support but still
1515 allow limited interoperability with LZO-enabled
1516 peers [default=no]
1517 --disable-crypto disable crypto support [default=yes]
1518 --disable-ofb-cfb disable support for OFB and CFB cipher modes
1519 [default=yes]
1520 --disable-ssl disable SSL support for TLS-based key exchange
1521 [default=yes]
1522 --enable-x509-alt-username
1523 enable the --x509-username-field feature
1524 [default=no]
1525 --disable-multi disable client/server support (--mode server +
1526 client mode) [default=yes]
1527 --disable-server disable server support only (but retain client
1528 support) [default=yes]
1529 --disable-plugins disable plug-in support [default=yes]
1530 --disable-management disable management server support [default=yes]
1531 --enable-pkcs11 enable pkcs11 support [default=no]
1532 --disable-socks disable Socks support [default=yes]
1533 --disable-http-proxy disable HTTP proxy support [default=yes]
1534 --disable-fragment disable internal fragmentation support (--fragment)
1535 [default=yes]
1536 --disable-multihome disable multi-homed UDP server support (--multihome)
1537 [default=yes]
1538 --disable-port-share disable TCP server port-share support (--port-share)
1539 [default=yes]
1540 --disable-debug disable debugging support (disable gremlin and verb
1541 7+ messages) [default=yes]
1542 --enable-small enable smaller executable size (disable OCC, usage
1543 message, and verb 4 parm list) [default=no]
1544 --enable-iproute2 enable support for iproute2 [default=no]
1545 --disable-def-auth disable deferred authentication [default=yes]
1546 --disable-pf disable internal packet filter [default=yes]
1547 --disable-plugin-auth-pam
1548 disable auth-pam plugin [default=platform specific]
1549 --disable-plugin-down-root
1550 disable down-root plugin [default=platform specific]
1551 --enable-pam-dlopen dlopen libpam [default=no]
1552 --enable-strict enable strict compiler warnings (debugging option)
1553 [default=no]
1554 --enable-pedantic enable pedantic compiler warnings, will not generate
1555 a working executable (debugging option) [default=no]
1556 --enable-strict-options enable strict options check between peers (debugging
1557 option) [default=no]
1558 --enable-selinux enable SELinux support [default=no]
1559 --enable-systemd enable systemd suppport [default=no]
1560 --enable-shared[=PKGS] build shared libraries [default=yes]
1561 --enable-static[=PKGS] build static libraries [default=yes]
1562 --enable-fast-install[=PKGS]
1563 optimize for fast installation [default=yes]
1564 --disable-libtool-lock avoid locking (might break parallel builds)
1566 Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-special-build=STRING
1570 specify special build string
1571 --with-mem-check=TYPE build with debug memory checking,
1572 TYPE=no|dmalloc|valgrind|ssl [default=no]
1573 --with-crypto-library=library
1574 build with the given crypto library,
1575 TYPE=openssl|polarssl [default=openssl]
1576 --with-plugindir plugin directory [default=LIBDIR/openvpn]
1577 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1578 both]
1579 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1580 --with-sysroot=DIR Search for dependent libraries within DIR
1581 (or the compiler's sysroot if not specified).
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CPP C preprocessor
1592 PKG_CONFIG path to pkg-config utility
1593 PKG_CONFIG_PATH
1594 directories to add to pkg-config's search path
1595 PKG_CONFIG_LIBDIR
1596 path overriding pkg-config's built-in search path
1597 IFCONFIG full path to ipconfig utility
1598 ROUTE full path to route utility
1599 IPROUTE full path to ip utility
1600 NETSTAT path to netstat utility
1601 MAN2HTML path to man2html utility
1602 GIT path to git utility
1603 SYSTEMD_ASK_PASSWORD
1604 path to systemd-ask-password utility
1605 TAP_CFLAGS C compiler flags for tap
1606 LIBPAM_CFLAGS
1607 C compiler flags for libpam
1608 LIBPAM_LIBS linker flags for libpam
1609 PKCS11_HELPER_CFLAGS
1610 C compiler flags for PKCS11_HELPER, overriding pkg-config
1611 PKCS11_HELPER_LIBS
1612 linker flags for PKCS11_HELPER, overriding pkg-config
1613 OPENSSL_CRYPTO_CFLAGS
1614 C compiler flags for OPENSSL_CRYPTO, overriding pkg-config
1615 OPENSSL_CRYPTO_LIBS
1616 linker flags for OPENSSL_CRYPTO, overriding pkg-config
1617 OPENSSL_SSL_CFLAGS
1618 C compiler flags for OPENSSL_SSL, overriding pkg-config
1619 OPENSSL_SSL_LIBS
1620 linker flags for OPENSSL_SSL, overriding pkg-config
1621 POLARSSL_CFLAGS
1622 C compiler flags for polarssl
1623 POLARSSL_LIBS
1624 linker flags for polarssl
1625 LZO_CFLAGS C compiler flags for lzo
1626 LZO_LIBS linker flags for lzo
1627 libsystemd_CFLAGS
1628 C compiler flags for libsystemd, overriding pkg-config
1629 libsystemd_LIBS
1630 linker flags for libsystemd, overriding pkg-config
1631 P11KIT_CFLAGS
1632 C compiler flags for P11KIT, overriding pkg-config
1633 P11KIT_LIBS linker flags for P11KIT, overriding pkg-config
1635 Use these variables to override the choices made by `configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1638 Report bugs to <openvpn-users@lists.sourceforge.net>.
1639 _ACEOF
1640 ac_status=$?
1643 if test "$ac_init_help" = "recursive"; then
1644 # If there are subdirs, report their specific --help.
1645 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1646 test -d "$ac_dir" ||
1647 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648 continue
1649 ac_builddir=.
1651 case "$ac_dir" in
1652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1655 # A ".." for each directory in $ac_dir_suffix.
1656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1657 case $ac_top_builddir_sub in
1658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660 esac ;;
1661 esac
1662 ac_abs_top_builddir=$ac_pwd
1663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1664 # for backward compatibility:
1665 ac_top_builddir=$ac_top_build_prefix
1667 case $srcdir in
1668 .) # We are building in place.
1669 ac_srcdir=.
1670 ac_top_srcdir=$ac_top_builddir_sub
1671 ac_abs_top_srcdir=$ac_pwd ;;
1672 [\\/]* | ?:[\\/]* ) # Absolute name.
1673 ac_srcdir=$srcdir$ac_dir_suffix;
1674 ac_top_srcdir=$srcdir
1675 ac_abs_top_srcdir=$srcdir ;;
1676 *) # Relative name.
1677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1678 ac_top_srcdir=$ac_top_build_prefix$srcdir
1679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680 esac
1681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683 cd "$ac_dir" || { ac_status=$?; continue; }
1684 # Check for guested configure.
1685 if test -f "$ac_srcdir/configure.gnu"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1688 elif test -f "$ac_srcdir/configure"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure" --help=recursive
1691 else
1692 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1693 fi || ac_status=$?
1694 cd "$ac_pwd" || { ac_status=$?; break; }
1695 done
1698 test -n "$ac_init_help" && exit $ac_status
1699 if $ac_init_version; then
1700 cat <<\_ACEOF
1701 OpenVPN configure 2.3.10
1702 generated by GNU Autoconf 2.69
1704 Copyright (C) 2012 Free Software Foundation, Inc.
1705 This configure script is free software; the Free Software Foundation
1706 gives unlimited permission to copy, distribute and modify it.
1707 _ACEOF
1708 exit
1711 ## ------------------------ ##
1712 ## Autoconf initialization. ##
1713 ## ------------------------ ##
1715 # ac_fn_c_try_compile LINENO
1716 # --------------------------
1717 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_compile ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext
1722 if { { ac_try="$ac_compile"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_compile") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest.$ac_objext; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=1
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1751 } # ac_fn_c_try_compile
1753 # ac_fn_c_try_cpp LINENO
1754 # ----------------------
1755 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_cpp ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_cpp conftest.$ac_ext"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } > conftest.i && {
1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1783 ac_retval=1
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1788 } # ac_fn_c_try_cpp
1790 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1793 # the include files in INCLUDES and setting the cache variable VAR
1794 # accordingly.
1795 ac_fn_c_check_header_mongrel ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if eval \${$3+:} false; then :
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1804 eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 else
1808 # Is the header compilable?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1810 $as_echo_n "checking $2 usability... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1814 #include <$2>
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817 ac_header_compiler=yes
1818 else
1819 ac_header_compiler=no
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1823 $as_echo "$ac_header_compiler" >&6; }
1825 # Is the header present?
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1827 $as_echo_n "checking $2 presence... " >&6; }
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_cpp "$LINENO"; then :
1833 ac_header_preproc=yes
1834 else
1835 ac_header_preproc=no
1837 rm -f conftest.err conftest.i conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1839 $as_echo "$ac_header_preproc" >&6; }
1841 # So? What about this header?
1842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 yes:no: )
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1845 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 no:yes:* )
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1851 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1853 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1855 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1857 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 ( $as_echo "## -------------------------------------------------- ##
1861 ## Report this to openvpn-users@lists.sourceforge.net ##
1862 ## -------------------------------------------------- ##"
1863 ) | sed "s/^/$as_me: WARNING: /" >&2
1865 esac
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval \${$3+:} false; then :
1869 $as_echo_n "(cached) " >&6
1870 else
1871 eval "$3=\$ac_header_compiler"
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } # ac_fn_c_check_header_mongrel
1881 # ac_fn_c_try_run LINENO
1882 # ----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1884 # that executables *can* be run.
1885 ac_fn_c_try_run ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>&5
1896 ac_status=$?
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899 { { case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_try") 2>&5
1906 ac_status=$?
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; }; }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: program exited with status $ac_status" >&5
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1915 ac_retval=$ac_status
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1921 } # ac_fn_c_try_run
1923 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1924 # -------------------------------------------------------
1925 # Tests whether HEADER exists and can be compiled using the include files in
1926 # INCLUDES, setting the cache variable VAR accordingly.
1927 ac_fn_c_check_header_compile ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1934 else
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1938 #include <$2>
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 eval "$3=yes"
1942 else
1943 eval "$3=no"
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 } # ac_fn_c_check_header_compile
1954 # ac_fn_c_try_link LINENO
1955 # -----------------------
1956 # Try to link conftest.$ac_ext, and return whether this succeeded.
1957 ac_fn_c_try_link ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 rm -f conftest.$ac_objext conftest$ac_exeext
1961 if { { ac_try="$ac_link"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_link") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } && {
1977 test -z "$ac_c_werror_flag" ||
1978 test ! -s conftest.err
1979 } && test -s conftest$ac_exeext && {
1980 test "$cross_compiling" = yes ||
1981 test -x conftest$ac_exeext
1982 }; then :
1983 ac_retval=0
1984 else
1985 $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1988 ac_retval=1
1990 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1991 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1992 # interfere with the next link command; also delete a directory that is
1993 # left behind by Apple's compiler. We do this before executing the actions.
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
1998 } # ac_fn_c_try_link
2000 # ac_fn_c_check_func LINENO FUNC VAR
2001 # ----------------------------------
2002 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2003 ac_fn_c_check_func ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2015 #define $2 innocuous_$2
2017 /* System header to define __stub macros and hopefully few prototypes,
2018 which can conflict with char $2 (); below.
2019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2020 <limits.h> exists even on freestanding compilers. */
2022 #ifdef __STDC__
2023 # include <limits.h>
2024 #else
2025 # include <assert.h>
2026 #endif
2028 #undef $2
2030 /* Override any GCC internal prototype to avoid an error.
2031 Use char because int might match the return type of a GCC
2032 builtin and then its argument prototype would still apply. */
2033 #ifdef __cplusplus
2034 extern "C"
2035 #endif
2036 char $2 ();
2037 /* The GNU C library defines this for functions which it implements
2038 to always fail with ENOSYS. Some functions are actually named
2039 something starting with __ and the normal name is an alias. */
2040 #if defined __stub_$2 || defined __stub___$2
2041 choke me
2042 #endif
2045 main ()
2047 return $2 ();
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_link "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2057 rm -f core conftest.err conftest.$ac_objext \
2058 conftest$ac_exeext conftest.$ac_ext
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065 } # ac_fn_c_check_func
2067 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2068 # -------------------------------------------
2069 # Tests whether TYPE exists after having included INCLUDES, setting cache
2070 # variable VAR accordingly.
2071 ac_fn_c_check_type ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if eval \${$3+:} false; then :
2077 $as_echo_n "(cached) " >&6
2078 else
2079 eval "$3=no"
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 if (sizeof ($2))
2087 return 0;
2089 return 0;
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2097 main ()
2099 if (sizeof (($2)))
2100 return 0;
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2107 else
2108 eval "$3=yes"
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 } # ac_fn_c_check_type
2121 # ac_fn_c_find_intX_t LINENO BITS VAR
2122 # -----------------------------------
2123 # Finds a signed integer type with width BITS, setting cache variable VAR
2124 # accordingly.
2125 ac_fn_c_find_intX_t ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2129 $as_echo_n "checking for int$2_t... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 eval "$3=no"
2134 # Order is important - never check a type that is potentially smaller
2135 # than half of the expected target width.
2136 for ac_type in int$2_t 'int' 'long int' \
2137 'long long int' 'short int' 'signed char'; do
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2140 $ac_includes_default
2141 enum { N = $2 / 2 - 1 };
2143 main ()
2145 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2146 test_array [0] = 0;
2147 return test_array [0];
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 $ac_includes_default
2157 enum { N = $2 / 2 - 1 };
2159 main ()
2161 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2162 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2163 test_array [0] = 0;
2164 return test_array [0];
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2172 else
2173 case $ac_type in #(
2174 int$2_t) :
2175 eval "$3=yes" ;; #(
2176 *) :
2177 eval "$3=\$ac_type" ;;
2178 esac
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 if eval test \"x\$"$3"\" = x"no"; then :
2185 else
2186 break
2188 done
2190 eval ac_res=\$$3
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195 } # ac_fn_c_find_intX_t
2197 # ac_fn_c_find_uintX_t LINENO BITS VAR
2198 # ------------------------------------
2199 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2200 # accordingly.
2201 ac_fn_c_find_uintX_t ()
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2205 $as_echo_n "checking for uint$2_t... " >&6; }
2206 if eval \${$3+:} false; then :
2207 $as_echo_n "(cached) " >&6
2208 else
2209 eval "$3=no"
2210 # Order is important - never check a type that is potentially smaller
2211 # than half of the expected target width.
2212 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2213 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 $ac_includes_default
2218 main ()
2220 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2221 test_array [0] = 0;
2222 return test_array [0];
2225 return 0;
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 case $ac_type in #(
2230 uint$2_t) :
2231 eval "$3=yes" ;; #(
2232 *) :
2233 eval "$3=\$ac_type" ;;
2234 esac
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 if eval test \"x\$"$3"\" = x"no"; then :
2239 else
2240 break
2242 done
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 } # ac_fn_c_find_uintX_t
2251 # ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2252 # --------------------------------------------------------------
2253 # Tries to find the compile-time value of EXPR in a program that includes
2254 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2255 # computed
2256 ac_fn_c_compute_int ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 if test "$cross_compiling" = yes; then
2260 # Depending upon the size, compute the lo and hi bounds.
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2265 main ()
2267 static int test_array [1 - 2 * !(($2) >= 0)];
2268 test_array [0] = 0;
2269 return test_array [0];
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 ac_lo=0 ac_mid=0
2277 while :; do
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2282 main ()
2284 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2285 test_array [0] = 0;
2286 return test_array [0];
2289 return 0;
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293 ac_hi=$ac_mid; break
2294 else
2295 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2296 if test $ac_lo -le $ac_mid; then
2297 ac_lo= ac_hi=
2298 break
2300 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 done
2304 else
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2309 main ()
2311 static int test_array [1 - 2 * !(($2) < 0)];
2312 test_array [0] = 0;
2313 return test_array [0];
2316 return 0;
2318 _ACEOF
2319 if ac_fn_c_try_compile "$LINENO"; then :
2320 ac_hi=-1 ac_mid=-1
2321 while :; do
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2326 main ()
2328 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2329 test_array [0] = 0;
2330 return test_array [0];
2333 return 0;
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337 ac_lo=$ac_mid; break
2338 else
2339 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2340 if test $ac_mid -le $ac_hi; then
2341 ac_lo= ac_hi=
2342 break
2344 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 done
2348 else
2349 ac_lo= ac_hi=
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 # Binary search between lo and hi bounds.
2355 while test "x$ac_lo" != "x$ac_hi"; do
2356 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2361 main ()
2363 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2364 test_array [0] = 0;
2365 return test_array [0];
2368 return 0;
2370 _ACEOF
2371 if ac_fn_c_try_compile "$LINENO"; then :
2372 ac_hi=$ac_mid
2373 else
2374 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 done
2378 case $ac_lo in #((
2379 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2380 '') ac_retval=1 ;;
2381 esac
2382 else
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2386 static long int longval () { return $2; }
2387 static unsigned long int ulongval () { return $2; }
2388 #include <stdio.h>
2389 #include <stdlib.h>
2391 main ()
2394 FILE *f = fopen ("conftest.val", "w");
2395 if (! f)
2396 return 1;
2397 if (($2) < 0)
2399 long int i = longval ();
2400 if (i != ($2))
2401 return 1;
2402 fprintf (f, "%ld", i);
2404 else
2406 unsigned long int i = ulongval ();
2407 if (i != ($2))
2408 return 1;
2409 fprintf (f, "%lu", i);
2411 /* Do not output a trailing newline, as this causes \r\n confusion
2412 on some platforms. */
2413 return ferror (f) || fclose (f) != 0;
2416 return 0;
2418 _ACEOF
2419 if ac_fn_c_try_run "$LINENO"; then :
2420 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2421 else
2422 ac_retval=1
2424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2425 conftest.$ac_objext conftest.beam conftest.$ac_ext
2426 rm -f conftest.val
2429 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430 as_fn_set_status $ac_retval
2432 } # ac_fn_c_compute_int
2434 # ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2435 # ---------------------------------------------------------------
2436 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2437 # accordingly.
2438 ac_fn_c_check_decl ()
2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441 as_decl_name=`echo $2|sed 's/ *(.*//'`
2442 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2444 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2445 if eval \${$3+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2452 main ()
2454 #ifndef $as_decl_name
2455 #ifdef __cplusplus
2456 (void) $as_decl_use;
2457 #else
2458 (void) $as_decl_name;
2459 #endif
2460 #endif
2463 return 0;
2465 _ACEOF
2466 if ac_fn_c_try_compile "$LINENO"; then :
2467 eval "$3=yes"
2468 else
2469 eval "$3=no"
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 eval ac_res=\$$3
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478 } # ac_fn_c_check_decl
2479 cat >config.log <<_ACEOF
2480 This file contains any messages produced by compilers while
2481 running configure, to aid debugging if configure makes a mistake.
2483 It was created by OpenVPN $as_me 2.3.10, which was
2484 generated by GNU Autoconf 2.69. Invocation command line was
2486 $ $0 $@
2488 _ACEOF
2489 exec 5>>config.log
2491 cat <<_ASUNAME
2492 ## --------- ##
2493 ## Platform. ##
2494 ## --------- ##
2496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2505 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2506 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2508 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2509 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2510 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2511 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2513 _ASUNAME
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 $as_echo "PATH: $as_dir"
2521 done
2522 IFS=$as_save_IFS
2524 } >&5
2526 cat >&5 <<_ACEOF
2529 ## ----------- ##
2530 ## Core tests. ##
2531 ## ----------- ##
2533 _ACEOF
2536 # Keep a trace of the command line.
2537 # Strip out --no-create and --no-recursion so they do not pile up.
2538 # Strip out --silent because we don't want to record it for future runs.
2539 # Also quote any args containing shell meta-characters.
2540 # Make two passes to allow for proper duplicate-argument suppression.
2541 ac_configure_args=
2542 ac_configure_args0=
2543 ac_configure_args1=
2544 ac_must_keep_next=false
2545 for ac_pass in 1 2
2547 for ac_arg
2549 case $ac_arg in
2550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2552 | -silent | --silent | --silen | --sile | --sil)
2553 continue ;;
2554 *\'*)
2555 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2556 esac
2557 case $ac_pass in
2558 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2560 as_fn_append ac_configure_args1 " '$ac_arg'"
2561 if test $ac_must_keep_next = true; then
2562 ac_must_keep_next=false # Got value, back to normal.
2563 else
2564 case $ac_arg in
2565 *=* | --config-cache | -C | -disable-* | --disable-* \
2566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2568 | -with-* | --with-* | -without-* | --without-* | --x)
2569 case "$ac_configure_args0 " in
2570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2571 esac
2573 -* ) ac_must_keep_next=true ;;
2574 esac
2576 as_fn_append ac_configure_args " '$ac_arg'"
2578 esac
2579 done
2580 done
2581 { ac_configure_args0=; unset ac_configure_args0;}
2582 { ac_configure_args1=; unset ac_configure_args1;}
2584 # When interrupted or exit'd, cleanup temporary files, and complete
2585 # config.log. We remove comments because anyway the quotes in there
2586 # would cause problems or look ugly.
2587 # WARNING: Use '\'' to represent an apostrophe within the trap.
2588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2589 trap 'exit_status=$?
2590 # Save into config.log some information that might help in debugging.
2592 echo
2594 $as_echo "## ---------------- ##
2595 ## Cache variables. ##
2596 ## ---------------- ##"
2597 echo
2598 # The following way of writing the cache mishandles newlines in values,
2600 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2601 eval ac_val=\$$ac_var
2602 case $ac_val in #(
2603 *${as_nl}*)
2604 case $ac_var in #(
2605 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2606 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2607 esac
2608 case $ac_var in #(
2609 _ | IFS | as_nl) ;; #(
2610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2611 *) { eval $ac_var=; unset $ac_var;} ;;
2612 esac ;;
2613 esac
2614 done
2615 (set) 2>&1 |
2616 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2617 *${as_nl}ac_space=\ *)
2618 sed -n \
2619 "s/'\''/'\''\\\\'\'''\''/g;
2620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2621 ;; #(
2623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2625 esac |
2626 sort
2628 echo
2630 $as_echo "## ----------------- ##
2631 ## Output variables. ##
2632 ## ----------------- ##"
2633 echo
2634 for ac_var in $ac_subst_vars
2636 eval ac_val=\$$ac_var
2637 case $ac_val in
2638 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2639 esac
2640 $as_echo "$ac_var='\''$ac_val'\''"
2641 done | sort
2642 echo
2644 if test -n "$ac_subst_files"; then
2645 $as_echo "## ------------------- ##
2646 ## File substitutions. ##
2647 ## ------------------- ##"
2648 echo
2649 for ac_var in $ac_subst_files
2651 eval ac_val=\$$ac_var
2652 case $ac_val in
2653 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2654 esac
2655 $as_echo "$ac_var='\''$ac_val'\''"
2656 done | sort
2657 echo
2660 if test -s confdefs.h; then
2661 $as_echo "## ----------- ##
2662 ## confdefs.h. ##
2663 ## ----------- ##"
2664 echo
2665 cat confdefs.h
2666 echo
2668 test "$ac_signal" != 0 &&
2669 $as_echo "$as_me: caught signal $ac_signal"
2670 $as_echo "$as_me: exit $exit_status"
2671 } >&5
2672 rm -f core *.core core.conftest.* &&
2673 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2674 exit $exit_status
2676 for ac_signal in 1 2 13 15; do
2677 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2678 done
2679 ac_signal=0
2681 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2682 rm -f -r conftest* confdefs.h
2684 $as_echo "/* confdefs.h */" > confdefs.h
2686 # Predefined preprocessor variables.
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE_NAME "$PACKAGE_NAME"
2690 _ACEOF
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2694 _ACEOF
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2698 _ACEOF
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_STRING "$PACKAGE_STRING"
2702 _ACEOF
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2706 _ACEOF
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_URL "$PACKAGE_URL"
2710 _ACEOF
2713 # Let the site file select an alternate cache file if it wants to.
2714 # Prefer an explicitly selected file to automatically selected ones.
2715 ac_site_file1=NONE
2716 ac_site_file2=NONE
2717 if test -n "$CONFIG_SITE"; then
2718 # We do not want a PATH search for config.site.
2719 case $CONFIG_SITE in #((
2720 -*) ac_site_file1=./$CONFIG_SITE;;
2721 */*) ac_site_file1=$CONFIG_SITE;;
2722 *) ac_site_file1=./$CONFIG_SITE;;
2723 esac
2724 elif test "x$prefix" != xNONE; then
2725 ac_site_file1=$prefix/share/config.site
2726 ac_site_file2=$prefix/etc/config.site
2727 else
2728 ac_site_file1=$ac_default_prefix/share/config.site
2729 ac_site_file2=$ac_default_prefix/etc/config.site
2731 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2733 test "x$ac_site_file" = xNONE && continue
2734 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2736 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2737 sed 's/^/| /' "$ac_site_file" >&5
2738 . "$ac_site_file" \
2739 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2741 as_fn_error $? "failed to load site script $ac_site_file
2742 See \`config.log' for more details" "$LINENO" 5; }
2744 done
2746 if test -r "$cache_file"; then
2747 # Some versions of bash will fail to source /dev/null (special files
2748 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2749 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2751 $as_echo "$as_me: loading cache $cache_file" >&6;}
2752 case $cache_file in
2753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2754 *) . "./$cache_file";;
2755 esac
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2759 $as_echo "$as_me: creating cache $cache_file" >&6;}
2760 >$cache_file
2763 # Check that the precious variables saved in the cache have kept the same
2764 # value.
2765 ac_cache_corrupted=false
2766 for ac_var in $ac_precious_vars; do
2767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2768 eval ac_new_set=\$ac_env_${ac_var}_set
2769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2770 eval ac_new_val=\$ac_env_${ac_var}_value
2771 case $ac_old_set,$ac_new_set in
2772 set,)
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2774 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2775 ac_cache_corrupted=: ;;
2776 ,set)
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2778 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2779 ac_cache_corrupted=: ;;
2780 ,);;
2782 if test "x$ac_old_val" != "x$ac_new_val"; then
2783 # differences in whitespace do not lead to failure.
2784 ac_old_val_w=`echo x $ac_old_val`
2785 ac_new_val_w=`echo x $ac_new_val`
2786 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2788 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2789 ac_cache_corrupted=:
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2792 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2793 eval $ac_var=\$ac_old_val
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2796 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2798 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2799 fi;;
2800 esac
2801 # Pass precious variables to config.status.
2802 if test "$ac_new_set" = set; then
2803 case $ac_new_val in
2804 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2805 *) ac_arg=$ac_var=$ac_new_val ;;
2806 esac
2807 case " $ac_configure_args " in
2808 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2809 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2810 esac
2812 done
2813 if $ac_cache_corrupted; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2817 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2818 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2820 ## -------------------- ##
2821 ## Main body of script. ##
2822 ## -------------------- ##
2824 ac_ext=c
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 if test -z "${docdir}"; then
2838 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
2841 if test -z "${htmldir}"; then
2842 htmldir="\$(docdir)"
2847 $as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,10,0" >>confdefs.h
2850 ac_aux_dir=
2851 for ac_dir in . "$srcdir"/.; do
2852 if 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/install.sh"; then
2857 ac_aux_dir=$ac_dir
2858 ac_install_sh="$ac_aux_dir/install.sh -c"
2859 break
2860 elif test -f "$ac_dir/shtool"; then
2861 ac_aux_dir=$ac_dir
2862 ac_install_sh="$ac_aux_dir/shtool install -c"
2863 break
2865 done
2866 if test -z "$ac_aux_dir"; then
2867 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2870 # These three variables are undocumented and unsupported,
2871 # and are intended to be withdrawn in a future Autoconf release.
2872 # They can cause serious problems if a builder's source tree is in a directory
2873 # whose full name contains unusual characters.
2874 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2875 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2876 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2879 ac_config_headers="$ac_config_headers config.h"
2885 am__api_version='1.14'
2887 # Find a good install program. We prefer a C program (faster),
2888 # so one script is as good as another. But avoid the broken or
2889 # incompatible versions:
2890 # SysV /etc/install, /usr/sbin/install
2891 # SunOS /usr/etc/install
2892 # IRIX /sbin/install
2893 # AIX /bin/install
2894 # AmigaOS /C/install, which installs bootblocks on floppy discs
2895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2898 # OS/2's system install, which has a completely different semantic
2899 # ./install, which can be erroneously created by make from ./install.sh.
2900 # Reject install programs that cannot install multiple files.
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2902 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2903 if test -z "$INSTALL"; then
2904 if ${ac_cv_path_install+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 # Account for people who put trailing slashes in PATH elements.
2913 case $as_dir/ in #((
2914 ./ | .// | /[cC]/* | \
2915 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2916 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2917 /usr/ucb/* ) ;;
2919 # OSF1 and SCO ODT 3.0 have their own names for install.
2920 # Don't use installbsd from OSF since it installs stuff as root
2921 # by default.
2922 for ac_prog in ginstall scoinst install; do
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2925 if test $ac_prog = install &&
2926 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2927 # AIX install. It has an incompatible calling convention.
2929 elif test $ac_prog = install &&
2930 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2931 # program-specific install script used by HP pwplus--don't use.
2933 else
2934 rm -rf conftest.one conftest.two conftest.dir
2935 echo one > conftest.one
2936 echo two > conftest.two
2937 mkdir conftest.dir
2938 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2939 test -s conftest.one && test -s conftest.two &&
2940 test -s conftest.dir/conftest.one &&
2941 test -s conftest.dir/conftest.two
2942 then
2943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2944 break 3
2948 done
2949 done
2951 esac
2953 done
2954 IFS=$as_save_IFS
2956 rm -rf conftest.one conftest.two conftest.dir
2959 if test "${ac_cv_path_install+set}" = set; then
2960 INSTALL=$ac_cv_path_install
2961 else
2962 # As a last resort, use the slow shell script. Don't cache a
2963 # value for INSTALL within a source directory, because that will
2964 # break other packages using the cache if that directory is
2965 # removed, or if the value is a relative name.
2966 INSTALL=$ac_install_sh
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2970 $as_echo "$INSTALL" >&6; }
2972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2973 # It thinks the first close brace ends the variable substitution.
2974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2981 $as_echo_n "checking whether build environment is sane... " >&6; }
2982 # Reject unsafe characters in $srcdir or the absolute working directory
2983 # name. Accept space and tab only in the latter.
2984 am_lf='
2986 case `pwd` in
2987 *[\\\"\#\$\&\'\`$am_lf]*)
2988 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2989 esac
2990 case $srcdir in
2991 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2992 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2993 esac
2995 # Do 'set' in a subshell so we don't clobber the current shell's
2996 # arguments. Must try -L first in case configure is actually a
2997 # symlink; some systems play weird games with the mod time of symlinks
2998 # (eg FreeBSD returns the mod time of the symlink's containing
2999 # directory).
3000 if (
3001 am_has_slept=no
3002 for am_try in 1 2; do
3003 echo "timestamp, slept: $am_has_slept" > conftest.file
3004 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3005 if test "$*" = "X"; then
3006 # -L didn't work.
3007 set X `ls -t "$srcdir/configure" conftest.file`
3009 if test "$*" != "X $srcdir/configure conftest.file" \
3010 && test "$*" != "X conftest.file $srcdir/configure"; then
3012 # If neither matched, then we have a broken ls. This can happen
3013 # if, for instance, CONFIG_SHELL is bash and it inherits a
3014 # broken ls alias from the environment. This has actually
3015 # happened. Such a system could not be considered "sane".
3016 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3017 alias in your environment" "$LINENO" 5
3019 if test "$2" = conftest.file || test $am_try -eq 2; then
3020 break
3022 # Just in case.
3023 sleep 1
3024 am_has_slept=yes
3025 done
3026 test "$2" = conftest.file
3028 then
3029 # Ok.
3031 else
3032 as_fn_error $? "newly created file is older than distributed files!
3033 Check your system clock" "$LINENO" 5
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3036 $as_echo "yes" >&6; }
3037 # If we didn't sleep, we still need to ensure time stamps of config.status and
3038 # generated files are strictly newer.
3039 am_sleep_pid=
3040 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3041 ( sleep 1 ) &
3042 am_sleep_pid=$!
3045 rm -f conftest.file
3047 test "$program_prefix" != NONE &&
3048 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3049 # Use a double $ so make ignores it.
3050 test "$program_suffix" != NONE &&
3051 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3052 # Double any \ or $.
3053 # By default was `s,x,x', remove it if useless.
3054 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3055 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3057 # expand $ac_aux_dir to an absolute path
3058 am_aux_dir=`cd $ac_aux_dir && pwd`
3060 if test x"${MISSING+set}" != xset; then
3061 case $am_aux_dir in
3062 *\ * | *\ *)
3063 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3065 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3066 esac
3068 # Use eval to expand $SHELL
3069 if eval "$MISSING --is-lightweight"; then
3070 am_missing_run="$MISSING "
3071 else
3072 am_missing_run=
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3074 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3077 if test x"${install_sh}" != xset; then
3078 case $am_aux_dir in
3079 *\ * | *\ *)
3080 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3082 install_sh="\${SHELL} $am_aux_dir/install-sh"
3083 esac
3086 # Installed binaries are usually stripped using 'strip' when the user
3087 # run "make install-strip". However 'strip' might not be the right
3088 # tool to use in cross-compilation environments, therefore Automake
3089 # will honor the 'STRIP' environment variable to overrule this program.
3090 if test "$cross_compiling" != no; then
3091 if test -n "$ac_tool_prefix"; then
3092 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3093 set dummy ${ac_tool_prefix}strip; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if ${ac_cv_prog_STRIP+:} false; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 if test -n "$STRIP"; then
3100 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3113 done
3114 done
3115 IFS=$as_save_IFS
3119 STRIP=$ac_cv_prog_STRIP
3120 if test -n "$STRIP"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3122 $as_echo "$STRIP" >&6; }
3123 else
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3130 if test -z "$ac_cv_prog_STRIP"; then
3131 ac_ct_STRIP=$STRIP
3132 # Extract the first word of "strip", so it can be a program name with args.
3133 set dummy strip; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test -n "$ac_ct_STRIP"; then
3140 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_ac_ct_STRIP="strip"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3153 done
3154 done
3155 IFS=$as_save_IFS
3159 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3160 if test -n "$ac_ct_STRIP"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3162 $as_echo "$ac_ct_STRIP" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3168 if test "x$ac_ct_STRIP" = x; then
3169 STRIP=":"
3170 else
3171 case $cross_compiling:$ac_tool_warned in
3172 yes:)
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175 ac_tool_warned=yes ;;
3176 esac
3177 STRIP=$ac_ct_STRIP
3179 else
3180 STRIP="$ac_cv_prog_STRIP"
3184 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3187 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3188 if test -z "$MKDIR_P"; then
3189 if ${ac_cv_path_mkdir+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_prog in mkdir gmkdir; do
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3200 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3201 'mkdir (GNU coreutils) '* | \
3202 'mkdir (coreutils) '* | \
3203 'mkdir (fileutils) '4.1*)
3204 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3205 break 3;;
3206 esac
3207 done
3208 done
3209 done
3210 IFS=$as_save_IFS
3214 test -d ./--version && rmdir ./--version
3215 if test "${ac_cv_path_mkdir+set}" = set; then
3216 MKDIR_P="$ac_cv_path_mkdir -p"
3217 else
3218 # As a last resort, use the slow shell script. Don't cache a
3219 # value for MKDIR_P within a source directory, because that will
3220 # break other packages using the cache if that directory is
3221 # removed, or if the value is a relative name.
3222 MKDIR_P="$ac_install_sh -d"
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3226 $as_echo "$MKDIR_P" >&6; }
3228 for ac_prog in gawk mawk nawk awk
3230 # Extract the first word of "$ac_prog", so it can be a program name with args.
3231 set dummy $ac_prog; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_prog_AWK+:} false; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 if test -n "$AWK"; then
3238 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_AWK="$ac_prog"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 break 2
3251 done
3252 done
3253 IFS=$as_save_IFS
3257 AWK=$ac_cv_prog_AWK
3258 if test -n "$AWK"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3260 $as_echo "$AWK" >&6; }
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3267 test -n "$AWK" && break
3268 done
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3271 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3272 set x ${MAKE-make}
3273 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3274 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 cat >conftest.make <<\_ACEOF
3278 SHELL = /bin/sh
3279 all:
3280 @echo '@@@%%%=$(MAKE)=@@@%%%'
3281 _ACEOF
3282 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3283 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3284 *@@@%%%=?*=@@@%%%*)
3285 eval ac_cv_prog_make_${ac_make}_set=yes;;
3287 eval ac_cv_prog_make_${ac_make}_set=no;;
3288 esac
3289 rm -f conftest.make
3291 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3293 $as_echo "yes" >&6; }
3294 SET_MAKE=
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 SET_MAKE="MAKE=${MAKE-make}"
3301 rm -rf .tst 2>/dev/null
3302 mkdir .tst 2>/dev/null
3303 if test -d .tst; then
3304 am__leading_dot=.
3305 else
3306 am__leading_dot=_
3308 rmdir .tst 2>/dev/null
3310 # Check whether --enable-silent-rules was given.
3311 if test "${enable_silent_rules+set}" = set; then :
3312 enableval=$enable_silent_rules;
3315 case $enable_silent_rules in # (((
3316 yes) AM_DEFAULT_VERBOSITY=0;;
3317 no) AM_DEFAULT_VERBOSITY=1;;
3318 *) AM_DEFAULT_VERBOSITY=1;;
3319 esac
3320 am_make=${MAKE-make}
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3322 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3323 if ${am_cv_make_support_nested_variables+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 if $as_echo 'TRUE=$(BAR$(V))
3327 BAR0=false
3328 BAR1=true
3330 am__doit:
3331 @$(TRUE)
3332 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3333 am_cv_make_support_nested_variables=yes
3334 else
3335 am_cv_make_support_nested_variables=no
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3339 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3340 if test $am_cv_make_support_nested_variables = yes; then
3341 AM_V='$(V)'
3342 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3343 else
3344 AM_V=$AM_DEFAULT_VERBOSITY
3345 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3347 AM_BACKSLASH='\'
3349 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3350 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3351 # is not polluted with repeated "-I."
3352 am__isrc=' -I$(srcdir)'
3353 # test to see if srcdir already configured
3354 if test -f $srcdir/config.status; then
3355 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3359 # test whether we have cygpath
3360 if test -z "$CYGPATH_W"; then
3361 if (cygpath --version) >/dev/null 2>/dev/null; then
3362 CYGPATH_W='cygpath -w'
3363 else
3364 CYGPATH_W=echo
3369 # Define the identity of the package.
3370 PACKAGE='openvpn'
3371 VERSION='2.3.10'
3374 cat >>confdefs.h <<_ACEOF
3375 #define PACKAGE "$PACKAGE"
3376 _ACEOF
3379 cat >>confdefs.h <<_ACEOF
3380 #define VERSION "$VERSION"
3381 _ACEOF
3383 # Some tools Automake needs.
3385 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3388 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3391 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3394 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3397 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3399 # For better backward compatibility. To be removed once Automake 1.9.x
3400 # dies out for good. For more background, see:
3401 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3402 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3403 mkdir_p='$(MKDIR_P)'
3405 # We need awk for the "check" target. The system "awk" is bad on
3406 # some platforms.
3407 # Always define AMTAR for backward compatibility. Yes, it's still used
3408 # in the wild :-( We should find a proper way to deprecate it ...
3409 AMTAR='$${TAR-tar}'
3412 # We'll loop over all known methods to create a tar archive until one works.
3413 _am_tools='gnutar pax cpio none'
3415 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3422 # POSIX will say in a future version that running "rm -f" with no argument
3423 # is OK; and we want to be able to make that assumption in our Makefile
3424 # recipes. So use an aggressive probe to check that the usage we want is
3425 # actually supported "in the wild" to an acceptable degree.
3426 # See automake bug#10828.
3427 # To make any issue more visible, cause the running configure to be aborted
3428 # by default if the 'rm' program in use doesn't match our expectations; the
3429 # user can still override this though.
3430 if rm -f && rm -fr && rm -rf; then : OK; else
3431 cat >&2 <<'END'
3432 Oops!
3434 Your 'rm' program seems unable to run without file operands specified
3435 on the command line, even when the '-f' option is present. This is contrary
3436 to the behaviour of most rm programs out there, and not conforming with
3437 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3439 Please tell bug-automake@gnu.org about your system, including the value
3440 of your $PATH and any error possibly output before this message. This
3441 can help us improve future automake versions.
3444 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3445 echo 'Configuration will proceed anyway, since you have set the' >&2
3446 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3447 echo >&2
3448 else
3449 cat >&2 <<'END'
3450 Aborting the configuration process, to ensure you take notice of the issue.
3452 You can download and install GNU coreutils to get an 'rm' implementation
3453 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3455 If you want to complete the configuration process using your problematic
3456 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3457 to "yes", and re-run configure.
3460 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3462 fi # Make sure we can run config.sub.
3463 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3464 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3467 $as_echo_n "checking build system type... " >&6; }
3468 if ${ac_cv_build+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 ac_build_alias=$build_alias
3472 test "x$ac_build_alias" = x &&
3473 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3474 test "x$ac_build_alias" = x &&
3475 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3476 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3481 $as_echo "$ac_cv_build" >&6; }
3482 case $ac_cv_build in
3483 *-*-*) ;;
3484 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3485 esac
3486 build=$ac_cv_build
3487 ac_save_IFS=$IFS; IFS='-'
3488 set x $ac_cv_build
3489 shift
3490 build_cpu=$1
3491 build_vendor=$2
3492 shift; shift
3493 # Remember, the first character of IFS is used to create $*,
3494 # except with old shells:
3495 build_os=$*
3496 IFS=$ac_save_IFS
3497 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3501 $as_echo_n "checking host system type... " >&6; }
3502 if ${ac_cv_host+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if test "x$host_alias" = x; then
3506 ac_cv_host=$ac_cv_build
3507 else
3508 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3514 $as_echo "$ac_cv_host" >&6; }
3515 case $ac_cv_host in
3516 *-*-*) ;;
3517 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3518 esac
3519 host=$ac_cv_host
3520 ac_save_IFS=$IFS; IFS='-'
3521 set x $ac_cv_host
3522 shift
3523 host_cpu=$1
3524 host_vendor=$2
3525 shift; shift
3526 # Remember, the first character of IFS is used to create $*,
3527 # except with old shells:
3528 host_os=$*
3529 IFS=$ac_save_IFS
3530 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3533 DEPDIR="${am__leading_dot}deps"
3535 ac_config_commands="$ac_config_commands depfiles"
3538 am_make=${MAKE-make}
3539 cat > confinc << 'END'
3540 am__doit:
3541 @echo this is the am__doit target
3542 .PHONY: am__doit
3544 # If we don't find an include directive, just comment out the code.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3546 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3547 am__include="#"
3548 am__quote=
3549 _am_result=none
3550 # First try GNU make style include.
3551 echo "include confinc" > confmf
3552 # Ignore all kinds of additional output from 'make'.
3553 case `$am_make -s -f confmf 2> /dev/null` in #(
3554 *the\ am__doit\ target*)
3555 am__include=include
3556 am__quote=
3557 _am_result=GNU
3559 esac
3560 # Now try BSD make style include.
3561 if test "$am__include" = "#"; then
3562 echo '.include "confinc"' > confmf
3563 case `$am_make -s -f confmf 2> /dev/null` in #(
3564 *the\ am__doit\ target*)
3565 am__include=.include
3566 am__quote="\""
3567 _am_result=BSD
3569 esac
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3574 $as_echo "$_am_result" >&6; }
3575 rm -f confinc confmf
3577 # Check whether --enable-dependency-tracking was given.
3578 if test "${enable_dependency_tracking+set}" = set; then :
3579 enableval=$enable_dependency_tracking;
3582 if test "x$enable_dependency_tracking" != xno; then
3583 am_depcomp="$ac_aux_dir/depcomp"
3584 AMDEPBACKSLASH='\'
3585 am__nodep='_no'
3587 if test "x$enable_dependency_tracking" != xno; then
3588 AMDEP_TRUE=
3589 AMDEP_FALSE='#'
3590 else
3591 AMDEP_TRUE='#'
3592 AMDEP_FALSE=
3596 ac_ext=c
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CC+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3623 done
3624 done
3625 IFS=$as_save_IFS
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3640 if test -z "$ac_cv_prog_CC"; then
3641 ac_ct_CC=$CC
3642 # Extract the first word of "gcc", so it can be a program name with args.
3643 set dummy gcc; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$ac_ct_CC"; then
3650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_ac_ct_CC="gcc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3663 done
3664 done
3665 IFS=$as_save_IFS
3669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3670 if test -n "$ac_ct_CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3672 $as_echo "$ac_ct_CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3678 if test "x$ac_ct_CC" = x; then
3679 CC=""
3680 else
3681 case $cross_compiling:$ac_tool_warned in
3682 yes:)
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3685 ac_tool_warned=yes ;;
3686 esac
3687 CC=$ac_ct_CC
3689 else
3690 CC="$ac_cv_prog_CC"
3693 if test -z "$CC"; then
3694 if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3696 set dummy ${ac_tool_prefix}cc; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_CC="${ac_tool_prefix}cc"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3734 if test -z "$CC"; then
3735 # Extract the first word of "cc", so it can be a program name with args.
3736 set dummy cc; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CC+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 ac_prog_rejected=no
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3754 ac_prog_rejected=yes
3755 continue
3757 ac_cv_prog_CC="cc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3761 done
3762 done
3763 IFS=$as_save_IFS
3765 if test $ac_prog_rejected = yes; then
3766 # We found a bogon in the path, so make sure we never use it.
3767 set dummy $ac_cv_prog_CC
3768 shift
3769 if test $# != 0; then
3770 # We chose a different compiler from the bogus one.
3771 # However, it has the same basename, so the bogon will be chosen
3772 # first if we set CC to just the basename; use the full file name.
3773 shift
3774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3779 CC=$ac_cv_prog_CC
3780 if test -n "$CC"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3782 $as_echo "$CC" >&6; }
3783 else
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3790 if test -z "$CC"; then
3791 if test -n "$ac_tool_prefix"; then
3792 for ac_prog in cl.exe
3794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_CC+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3817 IFS=$as_save_IFS
3821 CC=$ac_cv_prog_CC
3822 if test -n "$CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3831 test -n "$CC" && break
3832 done
3834 if test -z "$CC"; then
3835 ac_ct_CC=$CC
3836 for ac_prog in cl.exe
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 if test -n "$ac_ct_CC"; then
3846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_ac_ct_CC="$ac_prog"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3859 done
3860 done
3861 IFS=$as_save_IFS
3865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3866 if test -n "$ac_ct_CC"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3868 $as_echo "$ac_ct_CC" >&6; }
3869 else
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3875 test -n "$ac_ct_CC" && break
3876 done
3878 if test "x$ac_ct_CC" = x; then
3879 CC=""
3880 else
3881 case $cross_compiling:$ac_tool_warned in
3882 yes:)
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3885 ac_tool_warned=yes ;;
3886 esac
3887 CC=$ac_ct_CC
3894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error $? "no acceptable C compiler found in \$PATH
3897 See \`config.log' for more details" "$LINENO" 5; }
3899 # Provide some information about the compiler.
3900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3901 set X $ac_compile
3902 ac_compiler=$2
3903 for ac_option in --version -v -V -qversion; do
3904 { { ac_try="$ac_compiler $ac_option >&5"
3905 case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3912 ac_status=$?
3913 if test -s conftest.err; then
3914 sed '10a\
3915 ... rest of stderr output deleted ...
3916 10q' conftest.err >conftest.er1
3917 cat conftest.er1 >&5
3919 rm -f conftest.er1 conftest.err
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }
3922 done
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3928 main ()
3932 return 0;
3934 _ACEOF
3935 ac_clean_files_save=$ac_clean_files
3936 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3937 # Try to create an executable without -o first, disregard a.out.
3938 # It will help us diagnose broken compilers, and finding out an intuition
3939 # of exeext.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3941 $as_echo_n "checking whether the C compiler works... " >&6; }
3942 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3944 # The possible output files:
3945 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3947 ac_rmfiles=
3948 for ac_file in $ac_files
3950 case $ac_file in
3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3952 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3953 esac
3954 done
3955 rm -f $ac_rmfiles
3957 if { { ac_try="$ac_link_default"
3958 case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link_default") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3969 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3970 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3971 # so that the user can short-circuit this test for compilers unknown to
3972 # Autoconf.
3973 for ac_file in $ac_files ''
3975 test -f "$ac_file" || continue
3976 case $ac_file in
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3979 [ab].out )
3980 # We found the default executable, but exeext='' is most
3981 # certainly right.
3982 break;;
3983 *.* )
3984 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3985 then :; else
3986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3988 # We set ac_cv_exeext here because the later test for it is not
3989 # safe: cross compilers may not add the suffix if given an `-o'
3990 # argument, so we may need to know it at that point already.
3991 # Even if this section looks crufty: it has the advantage of
3992 # actually working.
3993 break;;
3995 break;;
3996 esac
3997 done
3998 test "$ac_cv_exeext" = no && ac_cv_exeext=
4000 else
4001 ac_file=''
4003 if test -z "$ac_file"; then :
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 $as_echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error 77 "C compiler cannot create executables
4012 See \`config.log' for more details" "$LINENO" 5; }
4013 else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015 $as_echo "yes" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4018 $as_echo_n "checking for C compiler default output file name... " >&6; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4020 $as_echo "$ac_file" >&6; }
4021 ac_exeext=$ac_cv_exeext
4023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4024 ac_clean_files=$ac_clean_files_save
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4026 $as_echo_n "checking for suffix of executables... " >&6; }
4027 if { { ac_try="$ac_link"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_link") 2>&5
4035 ac_status=$?
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; then :
4038 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4039 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4040 # work properly (i.e., refer to `conftest.exe'), while it won't with
4041 # `rm'.
4042 for ac_file in conftest.exe conftest conftest.*; do
4043 test -f "$ac_file" || continue
4044 case $ac_file in
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4046 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4047 break;;
4048 * ) break;;
4049 esac
4050 done
4051 else
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4055 See \`config.log' for more details" "$LINENO" 5; }
4057 rm -f conftest conftest$ac_cv_exeext
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4059 $as_echo "$ac_cv_exeext" >&6; }
4061 rm -f conftest.$ac_ext
4062 EXEEXT=$ac_cv_exeext
4063 ac_exeext=$EXEEXT
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <stdio.h>
4068 main ()
4070 FILE *f = fopen ("conftest.out", "w");
4071 return ferror (f) || fclose (f) != 0;
4074 return 0;
4076 _ACEOF
4077 ac_clean_files="$ac_clean_files conftest.out"
4078 # Check that the compiler produces executables we can run. If not, either
4079 # the compiler is broken, or we cross compile.
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4081 $as_echo_n "checking whether we are cross compiling... " >&6; }
4082 if test "$cross_compiling" != yes; then
4083 { { ac_try="$ac_link"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 $as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_link") 2>&5
4091 ac_status=$?
4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }
4094 if { ac_try='./conftest$ac_cv_exeext'
4095 { { case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_try") 2>&5
4102 ac_status=$?
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; }; then
4105 cross_compiling=no
4106 else
4107 if test "$cross_compiling" = maybe; then
4108 cross_compiling=yes
4109 else
4110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4112 as_fn_error $? "cannot run C compiled programs.
4113 If you meant to cross compile, use \`--host'.
4114 See \`config.log' for more details" "$LINENO" 5; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4119 $as_echo "$cross_compiling" >&6; }
4121 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4122 ac_clean_files=$ac_clean_files_save
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4124 $as_echo_n "checking for suffix of object files... " >&6; }
4125 if ${ac_cv_objext+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 main ()
4136 return 0;
4138 _ACEOF
4139 rm -f conftest.o conftest.obj
4140 if { { ac_try="$ac_compile"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146 $as_echo "$ac_try_echo"; } >&5
4147 (eval "$ac_compile") 2>&5
4148 ac_status=$?
4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150 test $ac_status = 0; }; then :
4151 for ac_file in conftest.o conftest.obj conftest.*; do
4152 test -f "$ac_file" || continue;
4153 case $ac_file in
4154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4155 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4156 break;;
4157 esac
4158 done
4159 else
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4165 as_fn_error $? "cannot compute suffix of object files: cannot compile
4166 See \`config.log' for more details" "$LINENO" 5; }
4168 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4171 $as_echo "$ac_cv_objext" >&6; }
4172 OBJEXT=$ac_cv_objext
4173 ac_objext=$OBJEXT
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4175 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4176 if ${ac_cv_c_compiler_gnu+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4183 main ()
4185 #ifndef __GNUC__
4186 choke me
4187 #endif
4190 return 0;
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_compiler_gnu=yes
4195 else
4196 ac_compiler_gnu=no
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4204 if test $ac_compiler_gnu = yes; then
4205 GCC=yes
4206 else
4207 GCC=
4209 ac_test_CFLAGS=${CFLAGS+set}
4210 ac_save_CFLAGS=$CFLAGS
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4213 if ${ac_cv_prog_cc_g+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 ac_save_c_werror_flag=$ac_c_werror_flag
4217 ac_c_werror_flag=yes
4218 ac_cv_prog_cc_g=no
4219 CFLAGS="-g"
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4224 main ()
4228 return 0;
4230 _ACEOF
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232 ac_cv_prog_cc_g=yes
4233 else
4234 CFLAGS=""
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4239 main ()
4243 return 0;
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4248 else
4249 ac_c_werror_flag=$ac_save_c_werror_flag
4250 CFLAGS="-g"
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4255 main ()
4259 return 0;
4261 _ACEOF
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_prog_cc_g=yes
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_c_werror_flag=$ac_save_c_werror_flag
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4273 $as_echo "$ac_cv_prog_cc_g" >&6; }
4274 if test "$ac_test_CFLAGS" = set; then
4275 CFLAGS=$ac_save_CFLAGS
4276 elif test $ac_cv_prog_cc_g = yes; then
4277 if test "$GCC" = yes; then
4278 CFLAGS="-g -O2"
4279 else
4280 CFLAGS="-g"
4282 else
4283 if test "$GCC" = yes; then
4284 CFLAGS="-O2"
4285 else
4286 CFLAGS=
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4290 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4291 if ${ac_cv_prog_cc_c89+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 ac_cv_prog_cc_c89=no
4295 ac_save_CC=$CC
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 #include <stdarg.h>
4299 #include <stdio.h>
4300 struct stat;
4301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4302 struct buf { int x; };
4303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4304 static char *e (p, i)
4305 char **p;
4306 int i;
4308 return p[i];
4310 static char *f (char * (*g) (char **, int), char **p, ...)
4312 char *s;
4313 va_list v;
4314 va_start (v,p);
4315 s = g (p, va_arg (v,int));
4316 va_end (v);
4317 return s;
4320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4321 function prototypes and stuff, but not '\xHH' hex character constants.
4322 These don't provoke an error unfortunately, instead are silently treated
4323 as 'x'. The following induces an error, until -std is added to get
4324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4325 array size at least. It's necessary to write '\x00'==0 to get something
4326 that's true only with -std. */
4327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4330 inside strings and character constants. */
4331 #define FOO(x) 'x'
4332 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4334 int test (int i, double x);
4335 struct s1 {int (*f) (int a);};
4336 struct s2 {int (*f) (double a);};
4337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4338 int argc;
4339 char **argv;
4341 main ()
4343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4345 return 0;
4347 _ACEOF
4348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4349 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4351 CC="$ac_save_CC $ac_arg"
4352 if ac_fn_c_try_compile "$LINENO"; then :
4353 ac_cv_prog_cc_c89=$ac_arg
4355 rm -f core conftest.err conftest.$ac_objext
4356 test "x$ac_cv_prog_cc_c89" != "xno" && break
4357 done
4358 rm -f conftest.$ac_ext
4359 CC=$ac_save_CC
4362 # AC_CACHE_VAL
4363 case "x$ac_cv_prog_cc_c89" in
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4366 $as_echo "none needed" >&6; } ;;
4367 xno)
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4369 $as_echo "unsupported" >&6; } ;;
4371 CC="$CC $ac_cv_prog_cc_c89"
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4373 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4374 esac
4375 if test "x$ac_cv_prog_cc_c89" != xno; then :
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4391 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4392 if ${am_cv_prog_cc_c_o+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4399 main ()
4403 return 0;
4405 _ACEOF
4406 # Make sure it works both with $CC and with simple cc.
4407 # Following AC_PROG_CC_C_O, we do the test twice because some
4408 # compilers refuse to overwrite an existing .o file with -o,
4409 # though they will create one.
4410 am_cv_prog_cc_c_o=yes
4411 for am_i in 1 2; do
4412 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4413 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } \
4417 && test -f conftest2.$ac_objext; then
4418 : OK
4419 else
4420 am_cv_prog_cc_c_o=no
4421 break
4423 done
4424 rm -f core conftest*
4425 unset am_i
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4428 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4429 if test "$am_cv_prog_cc_c_o" != yes; then
4430 # Losing compiler, so override with the script.
4431 # FIXME: It is wrong to rewrite CC.
4432 # But if we don't then we get into trouble of one sort or another.
4433 # A longer-term fix would be to have automake use am__CC in this case,
4434 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4435 CC="$am_aux_dir/compile $CC"
4437 ac_ext=c
4438 ac_cpp='$CPP $CPPFLAGS'
4439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444 depcc="$CC" am_compiler_list=
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4447 $as_echo_n "checking dependency style of $depcc... " >&6; }
4448 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4452 # We make a subdir and do the tests there. Otherwise we can end up
4453 # making bogus files that we don't know about and never remove. For
4454 # instance it was reported that on HP-UX the gcc test will end up
4455 # making a dummy file named 'D' -- because '-MD' means "put the output
4456 # in D".
4457 rm -rf conftest.dir
4458 mkdir conftest.dir
4459 # Copy depcomp to subdir because otherwise we won't find it if we're
4460 # using a relative directory.
4461 cp "$am_depcomp" conftest.dir
4462 cd conftest.dir
4463 # We will build objects and dependencies in a subdirectory because
4464 # it helps to detect inapplicable dependency modes. For instance
4465 # both Tru64's cc and ICC support -MD to output dependencies as a
4466 # side effect of compilation, but ICC will put the dependencies in
4467 # the current directory while Tru64 will put them in the object
4468 # directory.
4469 mkdir sub
4471 am_cv_CC_dependencies_compiler_type=none
4472 if test "$am_compiler_list" = ""; then
4473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4475 am__universal=false
4476 case " $depcc " in #(
4477 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4478 esac
4480 for depmode in $am_compiler_list; do
4481 # Setup a source with many dependencies, because some compilers
4482 # like to wrap large dependency lists on column 80 (with \), and
4483 # we should not choose a depcomp mode which is confused by this.
4485 # We need to recreate these files for each test, as the compiler may
4486 # overwrite some of them when testing with obscure command lines.
4487 # This happens at least with the AIX C compiler.
4488 : > sub/conftest.c
4489 for i in 1 2 3 4 5 6; do
4490 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4491 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4492 # Solaris 10 /bin/sh.
4493 echo '/* dummy */' > sub/conftst$i.h
4494 done
4495 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4497 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4498 # mode. It turns out that the SunPro C++ compiler does not properly
4499 # handle '-M -o', and we need to detect this. Also, some Intel
4500 # versions had trouble with output in subdirs.
4501 am__obj=sub/conftest.${OBJEXT-o}
4502 am__minus_obj="-o $am__obj"
4503 case $depmode in
4504 gcc)
4505 # This depmode causes a compiler race in universal mode.
4506 test "$am__universal" = false || continue
4508 nosideeffect)
4509 # After this tag, mechanisms are not by side-effect, so they'll
4510 # only be used when explicitly requested.
4511 if test "x$enable_dependency_tracking" = xyes; then
4512 continue
4513 else
4514 break
4517 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4518 # This compiler won't grok '-c -o', but also, the minuso test has
4519 # not run yet. These depmodes are late enough in the game, and
4520 # so weak that their functioning should not be impacted.
4521 am__obj=conftest.${OBJEXT-o}
4522 am__minus_obj=
4524 none) break ;;
4525 esac
4526 if depmode=$depmode \
4527 source=sub/conftest.c object=$am__obj \
4528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4529 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4530 >/dev/null 2>conftest.err &&
4531 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4532 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4533 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4534 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4535 # icc doesn't choke on unknown options, it will just issue warnings
4536 # or remarks (even with -Werror). So we grep stderr for any message
4537 # that says an option was ignored or not supported.
4538 # When given -MP, icc 7.0 and 7.1 complain thusly:
4539 # icc: Command line warning: ignoring option '-M'; no argument required
4540 # The diagnosis changed in icc 8.0:
4541 # icc: Command line remark: option '-MP' not supported
4542 if (grep 'ignoring option' conftest.err ||
4543 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4544 am_cv_CC_dependencies_compiler_type=$depmode
4545 break
4548 done
4550 cd ..
4551 rm -rf conftest.dir
4552 else
4553 am_cv_CC_dependencies_compiler_type=none
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4558 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4559 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4562 test "x$enable_dependency_tracking" != xno \
4563 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4564 am__fastdepCC_TRUE=
4565 am__fastdepCC_FALSE='#'
4566 else
4567 am__fastdepCC_TRUE='#'
4568 am__fastdepCC_FALSE=
4573 ac_ext=c
4574 ac_cpp='$CPP $CPPFLAGS'
4575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4579 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4580 # On Suns, sometimes $CPP names a directory.
4581 if test -n "$CPP" && test -d "$CPP"; then
4582 CPP=
4584 if test -z "$CPP"; then
4585 if ${ac_cv_prog_CPP+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 # Double quotes because CPP needs to be expanded
4589 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4591 ac_preproc_ok=false
4592 for ac_c_preproc_warn_flag in '' yes
4594 # Use a header file that comes with gcc, so configuring glibc
4595 # with a fresh cross-compiler works.
4596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597 # <limits.h> exists even on freestanding compilers.
4598 # On the NeXT, cc -E runs the code through the compiler's parser,
4599 # not just through cpp. "Syntax error" is here to catch this case.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #ifdef __STDC__
4603 # include <limits.h>
4604 #else
4605 # include <assert.h>
4606 #endif
4607 Syntax error
4608 _ACEOF
4609 if ac_fn_c_try_cpp "$LINENO"; then :
4611 else
4612 # Broken: fails on valid input.
4613 continue
4615 rm -f conftest.err conftest.i conftest.$ac_ext
4617 # OK, works on sane cases. Now check whether nonexistent headers
4618 # can be detected and how.
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <ac_nonexistent.h>
4622 _ACEOF
4623 if ac_fn_c_try_cpp "$LINENO"; then :
4624 # Broken: success on invalid input.
4625 continue
4626 else
4627 # Passes both tests.
4628 ac_preproc_ok=:
4629 break
4631 rm -f conftest.err conftest.i conftest.$ac_ext
4633 done
4634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4635 rm -f conftest.i conftest.err conftest.$ac_ext
4636 if $ac_preproc_ok; then :
4637 break
4640 done
4641 ac_cv_prog_CPP=$CPP
4644 CPP=$ac_cv_prog_CPP
4645 else
4646 ac_cv_prog_CPP=$CPP
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4649 $as_echo "$CPP" >&6; }
4650 ac_preproc_ok=false
4651 for ac_c_preproc_warn_flag in '' yes
4653 # Use a header file that comes with gcc, so configuring glibc
4654 # with a fresh cross-compiler works.
4655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4656 # <limits.h> exists even on freestanding compilers.
4657 # On the NeXT, cc -E runs the code through the compiler's parser,
4658 # not just through cpp. "Syntax error" is here to catch this case.
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661 #ifdef __STDC__
4662 # include <limits.h>
4663 #else
4664 # include <assert.h>
4665 #endif
4666 Syntax error
4667 _ACEOF
4668 if ac_fn_c_try_cpp "$LINENO"; then :
4670 else
4671 # Broken: fails on valid input.
4672 continue
4674 rm -f conftest.err conftest.i conftest.$ac_ext
4676 # OK, works on sane cases. Now check whether nonexistent headers
4677 # can be detected and how.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #include <ac_nonexistent.h>
4681 _ACEOF
4682 if ac_fn_c_try_cpp "$LINENO"; then :
4683 # Broken: success on invalid input.
4684 continue
4685 else
4686 # Passes both tests.
4687 ac_preproc_ok=:
4688 break
4690 rm -f conftest.err conftest.i conftest.$ac_ext
4692 done
4693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4694 rm -f conftest.i conftest.err conftest.$ac_ext
4695 if $ac_preproc_ok; then :
4697 else
4698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4700 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4701 See \`config.log' for more details" "$LINENO" 5; }
4704 ac_ext=c
4705 ac_cpp='$CPP $CPPFLAGS'
4706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4712 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4713 if ${ac_cv_path_GREP+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 if test -z "$GREP"; then
4717 ac_path_GREP_found=false
4718 # Loop through the user's path and test for each of PROGNAME-LIST
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_prog in grep ggrep; do
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4727 as_fn_executable_p "$ac_path_GREP" || continue
4728 # Check for GNU ac_path_GREP and select it if it is found.
4729 # Check for GNU $ac_path_GREP
4730 case `"$ac_path_GREP" --version 2>&1` in
4731 *GNU*)
4732 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4734 ac_count=0
4735 $as_echo_n 0123456789 >"conftest.in"
4736 while :
4738 cat "conftest.in" "conftest.in" >"conftest.tmp"
4739 mv "conftest.tmp" "conftest.in"
4740 cp "conftest.in" "conftest.nl"
4741 $as_echo 'GREP' >> "conftest.nl"
4742 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4744 as_fn_arith $ac_count + 1 && ac_count=$as_val
4745 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4746 # Best one so far, save it but keep looking for a better one
4747 ac_cv_path_GREP="$ac_path_GREP"
4748 ac_path_GREP_max=$ac_count
4750 # 10*(2^10) chars as input seems more than enough
4751 test $ac_count -gt 10 && break
4752 done
4753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4754 esac
4756 $ac_path_GREP_found && break 3
4757 done
4758 done
4759 done
4760 IFS=$as_save_IFS
4761 if test -z "$ac_cv_path_GREP"; then
4762 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4764 else
4765 ac_cv_path_GREP=$GREP
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4770 $as_echo "$ac_cv_path_GREP" >&6; }
4771 GREP="$ac_cv_path_GREP"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4775 $as_echo_n "checking for egrep... " >&6; }
4776 if ${ac_cv_path_EGREP+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4780 then ac_cv_path_EGREP="$GREP -E"
4781 else
4782 if test -z "$EGREP"; then
4783 ac_path_EGREP_found=false
4784 # Loop through the user's path and test for each of PROGNAME-LIST
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_prog in egrep; do
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4793 as_fn_executable_p "$ac_path_EGREP" || continue
4794 # Check for GNU ac_path_EGREP and select it if it is found.
4795 # Check for GNU $ac_path_EGREP
4796 case `"$ac_path_EGREP" --version 2>&1` in
4797 *GNU*)
4798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4800 ac_count=0
4801 $as_echo_n 0123456789 >"conftest.in"
4802 while :
4804 cat "conftest.in" "conftest.in" >"conftest.tmp"
4805 mv "conftest.tmp" "conftest.in"
4806 cp "conftest.in" "conftest.nl"
4807 $as_echo 'EGREP' >> "conftest.nl"
4808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4810 as_fn_arith $ac_count + 1 && ac_count=$as_val
4811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4812 # Best one so far, save it but keep looking for a better one
4813 ac_cv_path_EGREP="$ac_path_EGREP"
4814 ac_path_EGREP_max=$ac_count
4816 # 10*(2^10) chars as input seems more than enough
4817 test $ac_count -gt 10 && break
4818 done
4819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4820 esac
4822 $ac_path_EGREP_found && break 3
4823 done
4824 done
4825 done
4826 IFS=$as_save_IFS
4827 if test -z "$ac_cv_path_EGREP"; then
4828 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4830 else
4831 ac_cv_path_EGREP=$EGREP
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4837 $as_echo "$ac_cv_path_EGREP" >&6; }
4838 EGREP="$ac_cv_path_EGREP"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4842 $as_echo_n "checking for ANSI C header files... " >&6; }
4843 if ${ac_cv_header_stdc+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4848 #include <stdlib.h>
4849 #include <stdarg.h>
4850 #include <string.h>
4851 #include <float.h>
4854 main ()
4858 return 0;
4860 _ACEOF
4861 if ac_fn_c_try_compile "$LINENO"; then :
4862 ac_cv_header_stdc=yes
4863 else
4864 ac_cv_header_stdc=no
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 if test $ac_cv_header_stdc = yes; then
4869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872 #include <string.h>
4874 _ACEOF
4875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4876 $EGREP "memchr" >/dev/null 2>&1; then :
4878 else
4879 ac_cv_header_stdc=no
4881 rm -f conftest*
4885 if test $ac_cv_header_stdc = yes; then
4886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #include <stdlib.h>
4891 _ACEOF
4892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893 $EGREP "free" >/dev/null 2>&1; then :
4895 else
4896 ac_cv_header_stdc=no
4898 rm -f conftest*
4902 if test $ac_cv_header_stdc = yes; then
4903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4904 if test "$cross_compiling" = yes; then :
4906 else
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909 #include <ctype.h>
4910 #include <stdlib.h>
4911 #if ((' ' & 0x0FF) == 0x020)
4912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4914 #else
4915 # define ISLOWER(c) \
4916 (('a' <= (c) && (c) <= 'i') \
4917 || ('j' <= (c) && (c) <= 'r') \
4918 || ('s' <= (c) && (c) <= 'z'))
4919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4920 #endif
4922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4924 main ()
4926 int i;
4927 for (i = 0; i < 256; i++)
4928 if (XOR (islower (i), ISLOWER (i))
4929 || toupper (i) != TOUPPER (i))
4930 return 2;
4931 return 0;
4933 _ACEOF
4934 if ac_fn_c_try_run "$LINENO"; then :
4936 else
4937 ac_cv_header_stdc=no
4939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4940 conftest.$ac_objext conftest.beam conftest.$ac_ext
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4946 $as_echo "$ac_cv_header_stdc" >&6; }
4947 if test $ac_cv_header_stdc = yes; then
4949 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4953 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4954 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4955 inttypes.h stdint.h unistd.h
4956 do :
4957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4958 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4960 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4961 cat >>confdefs.h <<_ACEOF
4962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963 _ACEOF
4967 done
4971 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4972 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4973 MINIX=yes
4974 else
4975 MINIX=
4979 if test "$MINIX" = yes; then
4981 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4984 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4987 $as_echo "#define _MINIX 1" >>confdefs.h
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4993 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4994 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5000 # define __EXTENSIONS__ 1
5001 $ac_includes_default
5003 main ()
5007 return 0;
5009 _ACEOF
5010 if ac_fn_c_try_compile "$LINENO"; then :
5011 ac_cv_safe_to_define___extensions__=yes
5012 else
5013 ac_cv_safe_to_define___extensions__=no
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5018 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5019 test $ac_cv_safe_to_define___extensions__ = yes &&
5020 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5022 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5024 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5026 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5028 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5032 # Check whether --enable-lzo was given.
5033 if test "${enable_lzo+set}" = set; then :
5034 enableval=$enable_lzo;
5035 else
5036 enable_lzo="yes"
5041 # Check whether --enable-lzo-stub was given.
5042 if test "${enable_lzo_stub+set}" = set; then :
5043 enableval=$enable_lzo_stub;
5044 else
5045 enable_lzo_stub="no"
5050 # Check whether --enable-crypto was given.
5051 if test "${enable_crypto+set}" = set; then :
5052 enableval=$enable_crypto;
5053 else
5054 enable_crypto="yes"
5059 # Check whether --enable-ofb-cfb was given.
5060 if test "${enable_ofb_cfb+set}" = set; then :
5061 enableval=$enable_ofb_cfb;
5062 else
5063 enable_crypto_ofb_cfb="yes"
5068 # Check whether --enable-ssl was given.
5069 if test "${enable_ssl+set}" = set; then :
5070 enableval=$enable_ssl;
5071 else
5072 enable_ssl="yes"
5077 # Check whether --enable-x509-alt-username was given.
5078 if test "${enable_x509_alt_username+set}" = set; then :
5079 enableval=$enable_x509_alt_username;
5080 else
5081 enable_x509_alt_username="no"
5086 # Check whether --enable-multi was given.
5087 if test "${enable_multi+set}" = set; then :
5088 enableval=$enable_multi;
5089 else
5090 enable_multi="yes"
5095 # Check whether --enable-server was given.
5096 if test "${enable_server+set}" = set; then :
5097 enableval=$enable_server;
5098 else
5099 enable_server="yes"
5104 # Check whether --enable-plugins was given.
5105 if test "${enable_plugins+set}" = set; then :
5106 enableval=$enable_plugins;
5107 else
5108 enable_plugins="yes"
5113 # Check whether --enable-management was given.
5114 if test "${enable_management+set}" = set; then :
5115 enableval=$enable_management;
5116 else
5117 enable_management="yes"
5122 # Check whether --enable-pkcs11 was given.
5123 if test "${enable_pkcs11+set}" = set; then :
5124 enableval=$enable_pkcs11;
5125 else
5126 enable_pkcs11="no"
5131 # Check whether --enable-socks was given.
5132 if test "${enable_socks+set}" = set; then :
5133 enableval=$enable_socks;
5134 else
5135 enable_socks="yes"
5140 # Check whether --enable-http-proxy was given.
5141 if test "${enable_http_proxy+set}" = set; then :
5142 enableval=$enable_http_proxy;
5143 else
5144 enable_http_proxy="yes"
5149 # Check whether --enable-fragment was given.
5150 if test "${enable_fragment+set}" = set; then :
5151 enableval=$enable_fragment;
5152 else
5153 enable_fragment="yes"
5158 # Check whether --enable-multihome was given.
5159 if test "${enable_multihome+set}" = set; then :
5160 enableval=$enable_multihome;
5161 else
5162 enable_multihome="yes"
5167 # Check whether --enable-port-share was given.
5168 if test "${enable_port_share+set}" = set; then :
5169 enableval=$enable_port_share;
5170 else
5171 enable_port_share="yes"
5176 # Check whether --enable-debug was given.
5177 if test "${enable_debug+set}" = set; then :
5178 enableval=$enable_debug;
5179 else
5180 enable_debug="yes"
5185 # Check whether --enable-small was given.
5186 if test "${enable_small+set}" = set; then :
5187 enableval=$enable_small;
5188 else
5189 enable_small="no"
5194 # Check whether --enable-iproute2 was given.
5195 if test "${enable_iproute2+set}" = set; then :
5196 enableval=$enable_iproute2;
5197 else
5198 enable_iproute2="no"
5203 # Check whether --enable-def-auth was given.
5204 if test "${enable_def_auth+set}" = set; then :
5205 enableval=$enable_def_auth;
5206 else
5207 enable_def_auth="yes"
5212 # Check whether --enable-pf was given.
5213 if test "${enable_pf+set}" = set; then :
5214 enableval=$enable_pf;
5215 else
5216 enable_pf="yes"
5221 # Check whether --enable-plugin-auth-pam was given.
5222 if test "${enable_plugin_auth_pam+set}" = set; then :
5223 enableval=$enable_plugin_auth_pam;
5224 else
5226 case "$host" in
5227 *-*-openbsd*) enable_plugin_auth_pam="no";;
5228 *-mingw*) enable_plugin_auth_pam="no";;
5229 *) enable_plugin_auth_pam="yes";;
5230 esac
5236 # Check whether --enable-plugin-down-root was given.
5237 if test "${enable_plugin_down_root+set}" = set; then :
5238 enableval=$enable_plugin_down_root;
5239 else
5241 case "$host" in
5242 *-mingw*) enable_plugin_down_root="no";;
5243 *) enable_plugin_down_root="yes";;
5244 esac
5250 # Check whether --enable-pam-dlopen was given.
5251 if test "${enable_pam_dlopen+set}" = set; then :
5252 enableval=$enable_pam_dlopen;
5253 else
5254 enable_pam_dlopen="no"
5259 # Check whether --enable-strict was given.
5260 if test "${enable_strict+set}" = set; then :
5261 enableval=$enable_strict;
5262 else
5263 enable_strict="no"
5268 # Check whether --enable-pedantic was given.
5269 if test "${enable_pedantic+set}" = set; then :
5270 enableval=$enable_pedantic;
5271 else
5272 enable_pedantic="no"
5277 # Check whether --enable-strict-options was given.
5278 if test "${enable_strict_options+set}" = set; then :
5279 enableval=$enable_strict_options;
5280 else
5281 enable_strict_options="no"
5286 # Check whether --enable-selinux was given.
5287 if test "${enable_selinux+set}" = set; then :
5288 enableval=$enable_selinux;
5289 else
5290 enable_selinux="no"
5295 # Check whether --enable-systemd was given.
5296 if test "${enable_systemd+set}" = set; then :
5297 enableval=$enable_systemd;
5298 else
5299 enable_systemd="no"
5305 # Check whether --with-special-build was given.
5306 if test "${with_special_build+set}" = set; then :
5307 withval=$with_special_build; test -n "${withval}" &&
5308 cat >>confdefs.h <<_ACEOF
5309 #define CONFIGURE_SPECIAL_BUILD "${withval}"
5310 _ACEOF
5317 # Check whether --with-mem-check was given.
5318 if test "${with_mem_check+set}" = set; then :
5319 withval=$with_mem_check;
5320 case "${withval}" in
5321 dmalloc|valgrind|ssl|no) ;;
5322 *) as_fn_error $? "bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5323 esac
5325 else
5326 with_mem_check="no"
5332 # Check whether --with-crypto-library was given.
5333 if test "${with_crypto_library+set}" = set; then :
5334 withval=$with_crypto_library;
5335 case "${withval}" in
5336 openssl|polarssl) ;;
5337 *) as_fn_error $? "bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5338 esac
5340 else
5341 with_crypto_library="openssl"
5347 # Check whether --with-plugindir was given.
5348 if test "${with_plugindir+set}" = set; then :
5349 withval=$with_plugindir;
5350 else
5351 with_plugindir="\$(libdir)/openvpn/plugins"
5358 cat >>confdefs.h <<_ACEOF
5359 #define TARGET_ALIAS "${host}"
5360 _ACEOF
5362 case "$host" in
5363 *-*-linux*)
5365 $as_echo "#define TARGET_LINUX 1" >>confdefs.h
5368 cat >>confdefs.h <<_ACEOF
5369 #define TARGET_PREFIX "L"
5370 _ACEOF
5373 *-*-solaris*)
5375 $as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5378 cat >>confdefs.h <<_ACEOF
5379 #define TARGET_PREFIX "S"
5380 _ACEOF
5383 *-*-openbsd*)
5385 $as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5388 cat >>confdefs.h <<_ACEOF
5389 #define TARGET_PREFIX "O"
5390 _ACEOF
5393 *-*-freebsd*)
5395 $as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5398 cat >>confdefs.h <<_ACEOF
5399 #define TARGET_PREFIX "F"
5400 _ACEOF
5403 *-*-netbsd*)
5405 $as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5408 cat >>confdefs.h <<_ACEOF
5409 #define TARGET_PREFIX "N"
5410 _ACEOF
5413 *-*-darwin*)
5415 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5418 cat >>confdefs.h <<_ACEOF
5419 #define TARGET_PREFIX "M"
5420 _ACEOF
5422 have_tap_header="yes"
5423 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
5425 *-mingw*)
5427 $as_echo "#define TARGET_WIN32 1" >>confdefs.h
5430 cat >>confdefs.h <<_ACEOF
5431 #define TARGET_PREFIX "W"
5432 _ACEOF
5434 CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5435 CPPFLAGS="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
5436 WIN32=yes
5438 *-*-dragonfly*)
5440 $as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5443 cat >>confdefs.h <<_ACEOF
5444 #define TARGET_PREFIX "D"
5445 _ACEOF
5450 cat >>confdefs.h <<_ACEOF
5451 #define TARGET_PREFIX "X"
5452 _ACEOF
5454 have_tap_header="yes"
5456 esac
5465 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5466 if test -n "$ac_tool_prefix"; then
5467 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5468 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 case $PKG_CONFIG in
5475 [\\/]* | ?:[\\/]*)
5476 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5490 done
5491 done
5492 IFS=$as_save_IFS
5495 esac
5497 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5498 if test -n "$PKG_CONFIG"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5500 $as_echo "$PKG_CONFIG" >&6; }
5501 else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5508 if test -z "$ac_cv_path_PKG_CONFIG"; then
5509 ac_pt_PKG_CONFIG=$PKG_CONFIG
5510 # Extract the first word of "pkg-config", so it can be a program name with args.
5511 set dummy pkg-config; ac_word=$2
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 case $ac_pt_PKG_CONFIG in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5533 done
5534 done
5535 IFS=$as_save_IFS
5538 esac
5540 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5541 if test -n "$ac_pt_PKG_CONFIG"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5543 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5549 if test "x$ac_pt_PKG_CONFIG" = x; then
5550 PKG_CONFIG=""
5551 else
5552 case $cross_compiling:$ac_tool_warned in
5553 yes:)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556 ac_tool_warned=yes ;;
5557 esac
5558 PKG_CONFIG=$ac_pt_PKG_CONFIG
5560 else
5561 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5565 if test -n "$PKG_CONFIG"; then
5566 _pkg_min_version=0.9.0
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5568 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5569 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5571 $as_echo "yes" >&6; }
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 PKG_CONFIG=""
5578 ac_ext=c
5579 ac_cpp='$CPP $CPPFLAGS'
5580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5584 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5585 # On Suns, sometimes $CPP names a directory.
5586 if test -n "$CPP" && test -d "$CPP"; then
5587 CPP=
5589 if test -z "$CPP"; then
5590 if ${ac_cv_prog_CPP+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 # Double quotes because CPP needs to be expanded
5594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5596 ac_preproc_ok=false
5597 for ac_c_preproc_warn_flag in '' yes
5599 # Use a header file that comes with gcc, so configuring glibc
5600 # with a fresh cross-compiler works.
5601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602 # <limits.h> exists even on freestanding compilers.
5603 # On the NeXT, cc -E runs the code through the compiler's parser,
5604 # not just through cpp. "Syntax error" is here to catch this case.
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 #ifdef __STDC__
5608 # include <limits.h>
5609 #else
5610 # include <assert.h>
5611 #endif
5612 Syntax error
5613 _ACEOF
5614 if ac_fn_c_try_cpp "$LINENO"; then :
5616 else
5617 # Broken: fails on valid input.
5618 continue
5620 rm -f conftest.err conftest.i conftest.$ac_ext
5622 # OK, works on sane cases. Now check whether nonexistent headers
5623 # can be detected and how.
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 #include <ac_nonexistent.h>
5627 _ACEOF
5628 if ac_fn_c_try_cpp "$LINENO"; then :
5629 # Broken: success on invalid input.
5630 continue
5631 else
5632 # Passes both tests.
5633 ac_preproc_ok=:
5634 break
5636 rm -f conftest.err conftest.i conftest.$ac_ext
5638 done
5639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5640 rm -f conftest.i conftest.err conftest.$ac_ext
5641 if $ac_preproc_ok; then :
5642 break
5645 done
5646 ac_cv_prog_CPP=$CPP
5649 CPP=$ac_cv_prog_CPP
5650 else
5651 ac_cv_prog_CPP=$CPP
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5654 $as_echo "$CPP" >&6; }
5655 ac_preproc_ok=false
5656 for ac_c_preproc_warn_flag in '' yes
5658 # Use a header file that comes with gcc, so configuring glibc
5659 # with a fresh cross-compiler works.
5660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5661 # <limits.h> exists even on freestanding compilers.
5662 # On the NeXT, cc -E runs the code through the compiler's parser,
5663 # not just through cpp. "Syntax error" is here to catch this case.
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 #ifdef __STDC__
5667 # include <limits.h>
5668 #else
5669 # include <assert.h>
5670 #endif
5671 Syntax error
5672 _ACEOF
5673 if ac_fn_c_try_cpp "$LINENO"; then :
5675 else
5676 # Broken: fails on valid input.
5677 continue
5679 rm -f conftest.err conftest.i conftest.$ac_ext
5681 # OK, works on sane cases. Now check whether nonexistent headers
5682 # can be detected and how.
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 #include <ac_nonexistent.h>
5686 _ACEOF
5687 if ac_fn_c_try_cpp "$LINENO"; then :
5688 # Broken: success on invalid input.
5689 continue
5690 else
5691 # Passes both tests.
5692 ac_preproc_ok=:
5693 break
5695 rm -f conftest.err conftest.i conftest.$ac_ext
5697 done
5698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5699 rm -f conftest.i conftest.err conftest.$ac_ext
5700 if $ac_preproc_ok; then :
5702 else
5703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5705 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5706 See \`config.log' for more details" "$LINENO" 5; }
5709 ac_ext=c
5710 ac_cpp='$CPP $CPPFLAGS'
5711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5717 $as_echo_n "checking whether ln -s works... " >&6; }
5718 LN_S=$as_ln_s
5719 if test "$LN_S" = "ln -s"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721 $as_echo "yes" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5724 $as_echo "no, using $LN_S" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5728 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5729 if ${ac_cv_path_SED+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5733 for ac_i in 1 2 3 4 5 6 7; do
5734 ac_script="$ac_script$as_nl$ac_script"
5735 done
5736 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5737 { ac_script=; unset ac_script;}
5738 if test -z "$SED"; then
5739 ac_path_SED_found=false
5740 # Loop through the user's path and test for each of PROGNAME-LIST
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_prog in sed gsed; do
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5749 as_fn_executable_p "$ac_path_SED" || continue
5750 # Check for GNU ac_path_SED and select it if it is found.
5751 # Check for GNU $ac_path_SED
5752 case `"$ac_path_SED" --version 2>&1` in
5753 *GNU*)
5754 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5756 ac_count=0
5757 $as_echo_n 0123456789 >"conftest.in"
5758 while :
5760 cat "conftest.in" "conftest.in" >"conftest.tmp"
5761 mv "conftest.tmp" "conftest.in"
5762 cp "conftest.in" "conftest.nl"
5763 $as_echo '' >> "conftest.nl"
5764 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5766 as_fn_arith $ac_count + 1 && ac_count=$as_val
5767 if test $ac_count -gt ${ac_path_SED_max-0}; then
5768 # Best one so far, save it but keep looking for a better one
5769 ac_cv_path_SED="$ac_path_SED"
5770 ac_path_SED_max=$ac_count
5772 # 10*(2^10) chars as input seems more than enough
5773 test $ac_count -gt 10 && break
5774 done
5775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5776 esac
5778 $ac_path_SED_found && break 3
5779 done
5780 done
5781 done
5782 IFS=$as_save_IFS
5783 if test -z "$ac_cv_path_SED"; then
5784 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5786 else
5787 ac_cv_path_SED=$SED
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5792 $as_echo "$ac_cv_path_SED" >&6; }
5793 SED="$ac_cv_path_SED"
5794 rm -f conftest.sed
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5797 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5798 set x ${MAKE-make}
5799 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5800 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 cat >conftest.make <<\_ACEOF
5804 SHELL = /bin/sh
5805 all:
5806 @echo '@@@%%%=$(MAKE)=@@@%%%'
5807 _ACEOF
5808 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5809 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5810 *@@@%%%=?*=@@@%%%*)
5811 eval ac_cv_prog_make_${ac_make}_set=yes;;
5813 eval ac_cv_prog_make_${ac_make}_set=no;;
5814 esac
5815 rm -f conftest.make
5817 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5819 $as_echo "yes" >&6; }
5820 SET_MAKE=
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 SET_MAKE="MAKE=${MAKE-make}"
5831 # tests
5835 for ac_prog in ifconfig
5837 # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_path_IFCONFIG+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 case $IFCONFIG in
5845 [\\/]* | ?:[\\/]*)
5846 ac_cv_path_IFCONFIG="$IFCONFIG" # Let the user override the test with a path.
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5851 for as_dir in $as_dummy
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5861 done
5862 done
5863 IFS=$as_save_IFS
5866 esac
5868 IFCONFIG=$ac_cv_path_IFCONFIG
5869 if test -n "$IFCONFIG"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
5871 $as_echo "$IFCONFIG" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5878 test -n "$IFCONFIG" && break
5879 done
5881 for ac_prog in route
5883 # Extract the first word of "$ac_prog", so it can be a program name with args.
5884 set dummy $ac_prog; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_path_ROUTE+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 case $ROUTE in
5891 [\\/]* | ?:[\\/]*)
5892 ac_cv_path_ROUTE="$ROUTE" # Let the user override the test with a path.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5897 for as_dir in $as_dummy
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5907 done
5908 done
5909 IFS=$as_save_IFS
5912 esac
5914 ROUTE=$ac_cv_path_ROUTE
5915 if test -n "$ROUTE"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
5917 $as_echo "$ROUTE" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5924 test -n "$ROUTE" && break
5925 done
5927 for ac_prog in ip
5929 # Extract the first word of "$ac_prog", so it can be a program name with args.
5930 set dummy $ac_prog; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if ${ac_cv_path_IPROUTE+:} false; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 case $IPROUTE in
5937 [\\/]* | ?:[\\/]*)
5938 ac_cv_path_IPROUTE="$IPROUTE" # Let the user override the test with a path.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5943 for as_dir in $as_dummy
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5953 done
5954 done
5955 IFS=$as_save_IFS
5958 esac
5960 IPROUTE=$ac_cv_path_IPROUTE
5961 if test -n "$IPROUTE"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
5963 $as_echo "$IPROUTE" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5970 test -n "$IPROUTE" && break
5971 done
5973 for ac_prog in systemd-ask-password
5975 # Extract the first word of "$ac_prog", so it can be a program name with args.
5976 set dummy $ac_prog; ac_word=$2
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978 $as_echo_n "checking for $ac_word... " >&6; }
5979 if ${ac_cv_path_SYSTEMD_ASK_PASSWORD+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 case $SYSTEMD_ASK_PASSWORD in
5983 [\\/]* | ?:[\\/]*)
5984 ac_cv_path_SYSTEMD_ASK_PASSWORD="$SYSTEMD_ASK_PASSWORD" # Let the user override the test with a path.
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5989 for as_dir in $as_dummy
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995 ac_cv_path_SYSTEMD_ASK_PASSWORD="$as_dir/$ac_word$ac_exec_ext"
5996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5999 done
6000 done
6001 IFS=$as_save_IFS
6004 esac
6006 SYSTEMD_ASK_PASSWORD=$ac_cv_path_SYSTEMD_ASK_PASSWORD
6007 if test -n "$SYSTEMD_ASK_PASSWORD"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_ASK_PASSWORD" >&5
6009 $as_echo "$SYSTEMD_ASK_PASSWORD" >&6; }
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6016 test -n "$SYSTEMD_ASK_PASSWORD" && break
6017 done
6019 for ac_prog in netstat
6021 # Extract the first word of "$ac_prog", so it can be a program name with args.
6022 set dummy $ac_prog; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if ${ac_cv_prog_NETSTAT+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 if test -n "$NETSTAT"; then
6029 ac_cv_prog_NETSTAT="$NETSTAT" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
6033 for as_dir in $as_dummy
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_NETSTAT="$ac_prog"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6043 done
6044 done
6045 IFS=$as_save_IFS
6049 NETSTAT=$ac_cv_prog_NETSTAT
6050 if test -n "$NETSTAT"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
6052 $as_echo "$NETSTAT" >&6; }
6053 else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6059 test -n "$NETSTAT" && break
6060 done
6061 test -n "$NETSTAT" || NETSTAT="netstat"
6062 # tests
6063 for ac_prog in man2html
6065 # Extract the first word of "$ac_prog", so it can be a program name with args.
6066 set dummy $ac_prog; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if ${ac_cv_prog_MAN2HTML+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$MAN2HTML"; then
6073 ac_cv_prog_MAN2HTML="$MAN2HTML" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_prog_MAN2HTML="$ac_prog"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6086 done
6087 done
6088 IFS=$as_save_IFS
6092 MAN2HTML=$ac_cv_prog_MAN2HTML
6093 if test -n "$MAN2HTML"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
6095 $as_echo "$MAN2HTML" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6102 test -n "$MAN2HTML" && break
6103 done
6105 for ac_prog in git
6107 # Extract the first word of "$ac_prog", so it can be a program name with args.
6108 set dummy $ac_prog; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_GIT+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 if test -n "$GIT"; then
6115 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_GIT="$ac_prog"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6128 done
6129 done
6130 IFS=$as_save_IFS
6134 GIT=$ac_cv_prog_GIT
6135 if test -n "$GIT"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6137 $as_echo "$GIT" >&6; }
6138 else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6144 test -n "$GIT" && break
6145 done
6146 # optional
6148 cat >>confdefs.h <<_ACEOF
6149 #define IFCONFIG_PATH "$IFCONFIG"
6150 _ACEOF
6153 cat >>confdefs.h <<_ACEOF
6154 #define IPROUTE_PATH "$IPROUTE"
6155 _ACEOF
6158 cat >>confdefs.h <<_ACEOF
6159 #define ROUTE_PATH "$ROUTE"
6160 _ACEOF
6163 cat >>confdefs.h <<_ACEOF
6164 #define SYSTEMD_ASK_PASSWORD_PATH "$SYSTEMD_ASK_PASSWORD"
6165 _ACEOF
6169 # Libtool
6172 case `pwd` in
6173 *\ * | *\ *)
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6175 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6176 esac
6180 macro_version='2.4.2'
6181 macro_revision='1.3337'
6195 ltmain="$ac_aux_dir/ltmain.sh"
6197 # Backslashify metacharacters that are still active within
6198 # double-quoted strings.
6199 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6201 # Same as above, but do not quote variable references.
6202 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6204 # Sed substitution to delay expansion of an escaped shell variable in a
6205 # double_quote_subst'ed string.
6206 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6208 # Sed substitution to delay expansion of an escaped single quote.
6209 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6211 # Sed substitution to avoid accidental globbing in evaled expressions
6212 no_glob_subst='s/\*/\\\*/g'
6214 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6215 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6216 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6219 $as_echo_n "checking how to print strings... " >&6; }
6220 # Test print first, because it will be a builtin if present.
6221 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6222 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6223 ECHO='print -r --'
6224 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6225 ECHO='printf %s\n'
6226 else
6227 # Use this function as a fallback that always works.
6228 func_fallback_echo ()
6230 eval 'cat <<_LTECHO_EOF
6232 _LTECHO_EOF'
6234 ECHO='func_fallback_echo'
6237 # func_echo_all arg...
6238 # Invoke $ECHO with all args, space-separated.
6239 func_echo_all ()
6241 $ECHO ""
6244 case "$ECHO" in
6245 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6246 $as_echo "printf" >&6; } ;;
6247 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6248 $as_echo "print -r" >&6; } ;;
6249 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6250 $as_echo "cat" >&6; } ;;
6251 esac
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6267 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6268 if ${ac_cv_path_SED+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6272 for ac_i in 1 2 3 4 5 6 7; do
6273 ac_script="$ac_script$as_nl$ac_script"
6274 done
6275 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6276 { ac_script=; unset ac_script;}
6277 if test -z "$SED"; then
6278 ac_path_SED_found=false
6279 # Loop through the user's path and test for each of PROGNAME-LIST
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_prog in sed gsed; do
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6288 as_fn_executable_p "$ac_path_SED" || continue
6289 # Check for GNU ac_path_SED and select it if it is found.
6290 # Check for GNU $ac_path_SED
6291 case `"$ac_path_SED" --version 2>&1` in
6292 *GNU*)
6293 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6295 ac_count=0
6296 $as_echo_n 0123456789 >"conftest.in"
6297 while :
6299 cat "conftest.in" "conftest.in" >"conftest.tmp"
6300 mv "conftest.tmp" "conftest.in"
6301 cp "conftest.in" "conftest.nl"
6302 $as_echo '' >> "conftest.nl"
6303 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6305 as_fn_arith $ac_count + 1 && ac_count=$as_val
6306 if test $ac_count -gt ${ac_path_SED_max-0}; then
6307 # Best one so far, save it but keep looking for a better one
6308 ac_cv_path_SED="$ac_path_SED"
6309 ac_path_SED_max=$ac_count
6311 # 10*(2^10) chars as input seems more than enough
6312 test $ac_count -gt 10 && break
6313 done
6314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6315 esac
6317 $ac_path_SED_found && break 3
6318 done
6319 done
6320 done
6321 IFS=$as_save_IFS
6322 if test -z "$ac_cv_path_SED"; then
6323 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6325 else
6326 ac_cv_path_SED=$SED
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6331 $as_echo "$ac_cv_path_SED" >&6; }
6332 SED="$ac_cv_path_SED"
6333 rm -f conftest.sed
6335 test -z "$SED" && SED=sed
6336 Xsed="$SED -e 1s/^X//"
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6349 $as_echo_n "checking for fgrep... " >&6; }
6350 if ${ac_cv_path_FGREP+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6354 then ac_cv_path_FGREP="$GREP -F"
6355 else
6356 if test -z "$FGREP"; then
6357 ac_path_FGREP_found=false
6358 # Loop through the user's path and test for each of PROGNAME-LIST
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_prog in fgrep; do
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6367 as_fn_executable_p "$ac_path_FGREP" || continue
6368 # Check for GNU ac_path_FGREP and select it if it is found.
6369 # Check for GNU $ac_path_FGREP
6370 case `"$ac_path_FGREP" --version 2>&1` in
6371 *GNU*)
6372 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6374 ac_count=0
6375 $as_echo_n 0123456789 >"conftest.in"
6376 while :
6378 cat "conftest.in" "conftest.in" >"conftest.tmp"
6379 mv "conftest.tmp" "conftest.in"
6380 cp "conftest.in" "conftest.nl"
6381 $as_echo 'FGREP' >> "conftest.nl"
6382 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6384 as_fn_arith $ac_count + 1 && ac_count=$as_val
6385 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6386 # Best one so far, save it but keep looking for a better one
6387 ac_cv_path_FGREP="$ac_path_FGREP"
6388 ac_path_FGREP_max=$ac_count
6390 # 10*(2^10) chars as input seems more than enough
6391 test $ac_count -gt 10 && break
6392 done
6393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6394 esac
6396 $ac_path_FGREP_found && break 3
6397 done
6398 done
6399 done
6400 IFS=$as_save_IFS
6401 if test -z "$ac_cv_path_FGREP"; then
6402 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6404 else
6405 ac_cv_path_FGREP=$FGREP
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6411 $as_echo "$ac_cv_path_FGREP" >&6; }
6412 FGREP="$ac_cv_path_FGREP"
6415 test -z "$GREP" && GREP=grep
6435 # Check whether --with-gnu-ld was given.
6436 if test "${with_gnu_ld+set}" = set; then :
6437 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6438 else
6439 with_gnu_ld=no
6442 ac_prog=ld
6443 if test "$GCC" = yes; then
6444 # Check if gcc -print-prog-name=ld gives a path.
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6446 $as_echo_n "checking for ld used by $CC... " >&6; }
6447 case $host in
6448 *-*-mingw*)
6449 # gcc leaves a trailing carriage return which upsets mingw
6450 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6452 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6453 esac
6454 case $ac_prog in
6455 # Accept absolute paths.
6456 [\\/]* | ?:[\\/]*)
6457 re_direlt='/[^/][^/]*/\.\./'
6458 # Canonicalize the pathname of ld
6459 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6460 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6461 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6462 done
6463 test -z "$LD" && LD="$ac_prog"
6466 # If it fails, then pretend we aren't using GCC.
6467 ac_prog=ld
6470 # If it is relative, then search for the first ld in PATH.
6471 with_gnu_ld=unknown
6473 esac
6474 elif test "$with_gnu_ld" = yes; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6476 $as_echo_n "checking for GNU ld... " >&6; }
6477 else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6479 $as_echo_n "checking for non-GNU ld... " >&6; }
6481 if ${lt_cv_path_LD+:} false; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 if test -z "$LD"; then
6485 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6486 for ac_dir in $PATH; do
6487 IFS="$lt_save_ifs"
6488 test -z "$ac_dir" && ac_dir=.
6489 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6490 lt_cv_path_LD="$ac_dir/$ac_prog"
6491 # Check to see if the program is GNU ld. I'd rather use --version,
6492 # but apparently some variants of GNU ld only accept -v.
6493 # Break only if it was the GNU/non-GNU ld that we prefer.
6494 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6495 *GNU* | *'with BFD'*)
6496 test "$with_gnu_ld" != no && break
6499 test "$with_gnu_ld" != yes && break
6501 esac
6503 done
6504 IFS="$lt_save_ifs"
6505 else
6506 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6510 LD="$lt_cv_path_LD"
6511 if test -n "$LD"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6513 $as_echo "$LD" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6518 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6520 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6521 if ${lt_cv_prog_gnu_ld+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6525 case `$LD -v 2>&1 </dev/null` in
6526 *GNU* | *'with BFD'*)
6527 lt_cv_prog_gnu_ld=yes
6530 lt_cv_prog_gnu_ld=no
6532 esac
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6535 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6536 with_gnu_ld=$lt_cv_prog_gnu_ld
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6547 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6548 if ${lt_cv_path_NM+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if test -n "$NM"; then
6552 # Let the user override the test.
6553 lt_cv_path_NM="$NM"
6554 else
6555 lt_nm_to_check="${ac_tool_prefix}nm"
6556 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6557 lt_nm_to_check="$lt_nm_to_check nm"
6559 for lt_tmp_nm in $lt_nm_to_check; do
6560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6561 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6562 IFS="$lt_save_ifs"
6563 test -z "$ac_dir" && ac_dir=.
6564 tmp_nm="$ac_dir/$lt_tmp_nm"
6565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6566 # Check to see if the nm accepts a BSD-compat flag.
6567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6568 # nm: unknown option "B" ignored
6569 # Tru64's nm complains that /dev/null is an invalid object file
6570 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6571 */dev/null* | *'Invalid file or object type'*)
6572 lt_cv_path_NM="$tmp_nm -B"
6573 break
6576 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6577 */dev/null*)
6578 lt_cv_path_NM="$tmp_nm -p"
6579 break
6582 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6583 continue # so that we can try to find one that supports BSD flags
6585 esac
6587 esac
6589 done
6590 IFS="$lt_save_ifs"
6591 done
6592 : ${lt_cv_path_NM=no}
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6596 $as_echo "$lt_cv_path_NM" >&6; }
6597 if test "$lt_cv_path_NM" != "no"; then
6598 NM="$lt_cv_path_NM"
6599 else
6600 # Didn't find any BSD compatible name lister, look for dumpbin.
6601 if test -n "$DUMPBIN"; then :
6602 # Let the user override the test.
6603 else
6604 if test -n "$ac_tool_prefix"; then
6605 for ac_prog in dumpbin "link -dump"
6607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_DUMPBIN+:} false; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 if test -n "$DUMPBIN"; then
6615 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6628 done
6629 done
6630 IFS=$as_save_IFS
6634 DUMPBIN=$ac_cv_prog_DUMPBIN
6635 if test -n "$DUMPBIN"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6637 $as_echo "$DUMPBIN" >&6; }
6638 else
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6644 test -n "$DUMPBIN" && break
6645 done
6647 if test -z "$DUMPBIN"; then
6648 ac_ct_DUMPBIN=$DUMPBIN
6649 for ac_prog in dumpbin "link -dump"
6651 # Extract the first word of "$ac_prog", so it can be a program name with args.
6652 set dummy $ac_prog; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 if test -n "$ac_ct_DUMPBIN"; then
6659 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6672 done
6673 done
6674 IFS=$as_save_IFS
6678 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6679 if test -n "$ac_ct_DUMPBIN"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6681 $as_echo "$ac_ct_DUMPBIN" >&6; }
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6688 test -n "$ac_ct_DUMPBIN" && break
6689 done
6691 if test "x$ac_ct_DUMPBIN" = x; then
6692 DUMPBIN=":"
6693 else
6694 case $cross_compiling:$ac_tool_warned in
6695 yes:)
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6699 esac
6700 DUMPBIN=$ac_ct_DUMPBIN
6704 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6705 *COFF*)
6706 DUMPBIN="$DUMPBIN -symbols"
6709 DUMPBIN=:
6711 esac
6714 if test "$DUMPBIN" != ":"; then
6715 NM="$DUMPBIN"
6718 test -z "$NM" && NM=nm
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6726 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6727 if ${lt_cv_nm_interface+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 lt_cv_nm_interface="BSD nm"
6731 echo "int some_variable = 0;" > conftest.$ac_ext
6732 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6733 (eval "$ac_compile" 2>conftest.err)
6734 cat conftest.err >&5
6735 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6736 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6737 cat conftest.err >&5
6738 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6739 cat conftest.out >&5
6740 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6741 lt_cv_nm_interface="MS dumpbin"
6743 rm -f conftest*
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6746 $as_echo "$lt_cv_nm_interface" >&6; }
6748 # find the maximum length of command line arguments
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6750 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6751 if ${lt_cv_sys_max_cmd_len+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6755 teststring="ABCD"
6757 case $build_os in
6758 msdosdjgpp*)
6759 # On DJGPP, this test can blow up pretty badly due to problems in libc
6760 # (any single argument exceeding 2000 bytes causes a buffer overrun
6761 # during glob expansion). Even if it were fixed, the result of this
6762 # check would be larger than it should be.
6763 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6766 gnu*)
6767 # Under GNU Hurd, this test is not required because there is
6768 # no limit to the length of command line arguments.
6769 # Libtool will interpret -1 as no limit whatsoever
6770 lt_cv_sys_max_cmd_len=-1;
6773 cygwin* | mingw* | cegcc*)
6774 # On Win9x/ME, this test blows up -- it succeeds, but takes
6775 # about 5 minutes as the teststring grows exponentially.
6776 # Worse, since 9x/ME are not pre-emptively multitasking,
6777 # you end up with a "frozen" computer, even though with patience
6778 # the test eventually succeeds (with a max line length of 256k).
6779 # Instead, let's just punt: use the minimum linelength reported by
6780 # all of the supported platforms: 8192 (on NT/2K/XP).
6781 lt_cv_sys_max_cmd_len=8192;
6784 mint*)
6785 # On MiNT this can take a long time and run out of memory.
6786 lt_cv_sys_max_cmd_len=8192;
6789 amigaos*)
6790 # On AmigaOS with pdksh, this test takes hours, literally.
6791 # So we just punt and use a minimum line length of 8192.
6792 lt_cv_sys_max_cmd_len=8192;
6795 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6796 # This has been around since 386BSD, at least. Likely further.
6797 if test -x /sbin/sysctl; then
6798 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6799 elif test -x /usr/sbin/sysctl; then
6800 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6801 else
6802 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6804 # And add a safety zone
6805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6809 interix*)
6810 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6811 lt_cv_sys_max_cmd_len=196608
6814 os2*)
6815 # The test takes a long time on OS/2.
6816 lt_cv_sys_max_cmd_len=8192
6819 osf*)
6820 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6821 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6822 # nice to cause kernel panics so lets avoid the loop below.
6823 # First set a reasonable default.
6824 lt_cv_sys_max_cmd_len=16384
6826 if test -x /sbin/sysconfig; then
6827 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6828 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6829 esac
6832 sco3.2v5*)
6833 lt_cv_sys_max_cmd_len=102400
6835 sysv5* | sco5v6* | sysv4.2uw2*)
6836 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6837 if test -n "$kargmax"; then
6838 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6839 else
6840 lt_cv_sys_max_cmd_len=32768
6844 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6845 if test -n "$lt_cv_sys_max_cmd_len"; then
6846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6847 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6848 else
6849 # Make teststring a little bigger before we do anything with it.
6850 # a 1K string should be a reasonable start.
6851 for i in 1 2 3 4 5 6 7 8 ; do
6852 teststring=$teststring$teststring
6853 done
6854 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6855 # If test is not a shell built-in, we'll probably end up computing a
6856 # maximum length that is only half of the actual maximum length, but
6857 # we can't tell.
6858 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6859 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6860 test $i != 17 # 1/2 MB should be enough
6862 i=`expr $i + 1`
6863 teststring=$teststring$teststring
6864 done
6865 # Only check the string length outside the loop.
6866 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6867 teststring=
6868 # Add a significant safety factor because C++ compilers can tack on
6869 # massive amounts of additional arguments before passing them to the
6870 # linker. It appears as though 1/2 is a usable value.
6871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6874 esac
6878 if test -n $lt_cv_sys_max_cmd_len ; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6880 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6883 $as_echo "none" >&6; }
6885 max_cmd_len=$lt_cv_sys_max_cmd_len
6892 : ${CP="cp -f"}
6893 : ${MV="mv -f"}
6894 : ${RM="rm -f"}
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6897 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6898 # Try some XSI features
6899 xsi_shell=no
6900 ( _lt_dummy="a/b/c"
6901 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6902 = c,a/b,b/c, \
6903 && eval 'test $(( 1 + 1 )) -eq 2 \
6904 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6905 && xsi_shell=yes
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6907 $as_echo "$xsi_shell" >&6; }
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6911 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6912 lt_shell_append=no
6913 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6914 >/dev/null 2>&1 \
6915 && lt_shell_append=yes
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6917 $as_echo "$lt_shell_append" >&6; }
6920 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6921 lt_unset=unset
6922 else
6923 lt_unset=false
6930 # test EBCDIC or ASCII
6931 case `echo X|tr X '\101'` in
6932 A) # ASCII based system
6933 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6934 lt_SP2NL='tr \040 \012'
6935 lt_NL2SP='tr \015\012 \040\040'
6937 *) # EBCDIC based system
6938 lt_SP2NL='tr \100 \n'
6939 lt_NL2SP='tr \r\n \100\100'
6941 esac
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6952 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6953 if ${lt_cv_to_host_file_cmd+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 case $host in
6957 *-*-mingw* )
6958 case $build in
6959 *-*-mingw* ) # actually msys
6960 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6962 *-*-cygwin* )
6963 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6965 * ) # otherwise, assume *nix
6966 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6968 esac
6970 *-*-cygwin* )
6971 case $build in
6972 *-*-mingw* ) # actually msys
6973 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6975 *-*-cygwin* )
6976 lt_cv_to_host_file_cmd=func_convert_file_noop
6978 * ) # otherwise, assume *nix
6979 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6981 esac
6983 * ) # unhandled hosts (and "normal" native builds)
6984 lt_cv_to_host_file_cmd=func_convert_file_noop
6986 esac
6990 to_host_file_cmd=$lt_cv_to_host_file_cmd
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6992 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6999 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7000 if ${lt_cv_to_tool_file_cmd+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 #assume ordinary cross tools, or native build.
7004 lt_cv_to_tool_file_cmd=func_convert_file_noop
7005 case $host in
7006 *-*-mingw* )
7007 case $build in
7008 *-*-mingw* ) # actually msys
7009 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7011 esac
7013 esac
7017 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7019 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7026 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7027 if ${lt_cv_ld_reload_flag+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 lt_cv_ld_reload_flag='-r'
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7033 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7034 reload_flag=$lt_cv_ld_reload_flag
7035 case $reload_flag in
7036 "" | " "*) ;;
7037 *) reload_flag=" $reload_flag" ;;
7038 esac
7039 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7040 case $host_os in
7041 cygwin* | mingw* | pw32* | cegcc*)
7042 if test "$GCC" != yes; then
7043 reload_cmds=false
7046 darwin*)
7047 if test "$GCC" = yes; then
7048 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7049 else
7050 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7053 esac
7063 if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7065 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_OBJDUMP+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$OBJDUMP"; then
7072 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7085 done
7086 done
7087 IFS=$as_save_IFS
7091 OBJDUMP=$ac_cv_prog_OBJDUMP
7092 if test -n "$OBJDUMP"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7094 $as_echo "$OBJDUMP" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7102 if test -z "$ac_cv_prog_OBJDUMP"; then
7103 ac_ct_OBJDUMP=$OBJDUMP
7104 # Extract the first word of "objdump", so it can be a program name with args.
7105 set dummy objdump; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 if test -n "$ac_ct_OBJDUMP"; then
7112 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7125 done
7126 done
7127 IFS=$as_save_IFS
7131 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7132 if test -n "$ac_ct_OBJDUMP"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7134 $as_echo "$ac_ct_OBJDUMP" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7140 if test "x$ac_ct_OBJDUMP" = x; then
7141 OBJDUMP="false"
7142 else
7143 case $cross_compiling:$ac_tool_warned in
7144 yes:)
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147 ac_tool_warned=yes ;;
7148 esac
7149 OBJDUMP=$ac_ct_OBJDUMP
7151 else
7152 OBJDUMP="$ac_cv_prog_OBJDUMP"
7155 test -z "$OBJDUMP" && OBJDUMP=objdump
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7163 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7164 if ${lt_cv_deplibs_check_method+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 lt_cv_file_magic_cmd='$MAGIC_CMD'
7168 lt_cv_file_magic_test_file=
7169 lt_cv_deplibs_check_method='unknown'
7170 # Need to set the preceding variable on all platforms that support
7171 # interlibrary dependencies.
7172 # 'none' -- dependencies not supported.
7173 # `unknown' -- same as none, but documents that we really don't know.
7174 # 'pass_all' -- all dependencies passed with no checks.
7175 # 'test_compile' -- check by making test program.
7176 # 'file_magic [[regex]]' -- check by looking for files in library path
7177 # which responds to the $file_magic_cmd with a given extended regex.
7178 # If you have `file' or equivalent on your system and you're not sure
7179 # whether `pass_all' will *always* work, you probably want this one.
7181 case $host_os in
7182 aix[4-9]*)
7183 lt_cv_deplibs_check_method=pass_all
7186 beos*)
7187 lt_cv_deplibs_check_method=pass_all
7190 bsdi[45]*)
7191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7192 lt_cv_file_magic_cmd='/usr/bin/file -L'
7193 lt_cv_file_magic_test_file=/shlib/libc.so
7196 cygwin*)
7197 # func_win32_libid is a shell function defined in ltmain.sh
7198 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7199 lt_cv_file_magic_cmd='func_win32_libid'
7202 mingw* | pw32*)
7203 # Base MSYS/MinGW do not provide the 'file' command needed by
7204 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7205 # unless we find 'file', for example because we are cross-compiling.
7206 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7207 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7208 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7209 lt_cv_file_magic_cmd='func_win32_libid'
7210 else
7211 # Keep this pattern in sync with the one in func_win32_libid.
7212 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7213 lt_cv_file_magic_cmd='$OBJDUMP -f'
7217 cegcc*)
7218 # use the weaker test based on 'objdump'. See mingw*.
7219 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7220 lt_cv_file_magic_cmd='$OBJDUMP -f'
7223 darwin* | rhapsody*)
7224 lt_cv_deplibs_check_method=pass_all
7227 freebsd* | dragonfly*)
7228 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7229 case $host_cpu in
7230 i*86 )
7231 # Not sure whether the presence of OpenBSD here was a mistake.
7232 # Let's accept both of them until this is cleared up.
7233 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7234 lt_cv_file_magic_cmd=/usr/bin/file
7235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7237 esac
7238 else
7239 lt_cv_deplibs_check_method=pass_all
7243 gnu*)
7244 lt_cv_deplibs_check_method=pass_all
7247 haiku*)
7248 lt_cv_deplibs_check_method=pass_all
7251 hpux10.20* | hpux11*)
7252 lt_cv_file_magic_cmd=/usr/bin/file
7253 case $host_cpu in
7254 ia64*)
7255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7256 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7258 hppa*64*)
7259 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]'
7260 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7263 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7264 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7266 esac
7269 interix[3-9]*)
7270 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7274 irix5* | irix6* | nonstopux*)
7275 case $LD in
7276 *-32|*"-32 ") libmagic=32-bit;;
7277 *-n32|*"-n32 ") libmagic=N32;;
7278 *-64|*"-64 ") libmagic=64-bit;;
7279 *) libmagic=never-match;;
7280 esac
7281 lt_cv_deplibs_check_method=pass_all
7284 # This must be glibc/ELF.
7285 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7286 lt_cv_deplibs_check_method=pass_all
7289 netbsd*)
7290 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7292 else
7293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7297 newos6*)
7298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7299 lt_cv_file_magic_cmd=/usr/bin/file
7300 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7303 *nto* | *qnx*)
7304 lt_cv_deplibs_check_method=pass_all
7307 openbsd*)
7308 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7310 else
7311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7315 osf3* | osf4* | osf5*)
7316 lt_cv_deplibs_check_method=pass_all
7319 rdos*)
7320 lt_cv_deplibs_check_method=pass_all
7323 solaris*)
7324 lt_cv_deplibs_check_method=pass_all
7327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7328 lt_cv_deplibs_check_method=pass_all
7331 sysv4 | sysv4.3*)
7332 case $host_vendor in
7333 motorola)
7334 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]'
7335 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7337 ncr)
7338 lt_cv_deplibs_check_method=pass_all
7340 sequent)
7341 lt_cv_file_magic_cmd='/bin/file'
7342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7344 sni)
7345 lt_cv_file_magic_cmd='/bin/file'
7346 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7347 lt_cv_file_magic_test_file=/lib/libc.so
7349 siemens)
7350 lt_cv_deplibs_check_method=pass_all
7353 lt_cv_deplibs_check_method=pass_all
7355 esac
7358 tpf*)
7359 lt_cv_deplibs_check_method=pass_all
7361 esac
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7365 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7367 file_magic_glob=
7368 want_nocaseglob=no
7369 if test "$build" = "$host"; then
7370 case $host_os in
7371 mingw* | pw32*)
7372 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7373 want_nocaseglob=yes
7374 else
7375 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7378 esac
7381 file_magic_cmd=$lt_cv_file_magic_cmd
7382 deplibs_check_method=$lt_cv_deplibs_check_method
7383 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_DLLTOOL+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$DLLTOOL"; then
7415 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7428 done
7429 done
7430 IFS=$as_save_IFS
7434 DLLTOOL=$ac_cv_prog_DLLTOOL
7435 if test -n "$DLLTOOL"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7437 $as_echo "$DLLTOOL" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7445 if test -z "$ac_cv_prog_DLLTOOL"; then
7446 ac_ct_DLLTOOL=$DLLTOOL
7447 # Extract the first word of "dlltool", so it can be a program name with args.
7448 set dummy dlltool; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$ac_ct_DLLTOOL"; then
7455 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7468 done
7469 done
7470 IFS=$as_save_IFS
7474 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7475 if test -n "$ac_ct_DLLTOOL"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7477 $as_echo "$ac_ct_DLLTOOL" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7483 if test "x$ac_ct_DLLTOOL" = x; then
7484 DLLTOOL="false"
7485 else
7486 case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7491 esac
7492 DLLTOOL=$ac_ct_DLLTOOL
7494 else
7495 DLLTOOL="$ac_cv_prog_DLLTOOL"
7498 test -z "$DLLTOOL" && DLLTOOL=dlltool
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7507 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7508 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 lt_cv_sharedlib_from_linklib_cmd='unknown'
7513 case $host_os in
7514 cygwin* | mingw* | pw32* | cegcc*)
7515 # two different shell functions defined in ltmain.sh
7516 # decide which to use based on capabilities of $DLLTOOL
7517 case `$DLLTOOL --help 2>&1` in
7518 *--identify-strict*)
7519 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7522 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7524 esac
7527 # fallback: assume linklib IS sharedlib
7528 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7530 esac
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7534 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7535 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7536 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7544 if test -n "$ac_tool_prefix"; then
7545 for ac_prog in ar
7547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_prog_AR+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 if test -n "$AR"; then
7555 ac_cv_prog_AR="$AR" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7568 done
7569 done
7570 IFS=$as_save_IFS
7574 AR=$ac_cv_prog_AR
7575 if test -n "$AR"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7577 $as_echo "$AR" >&6; }
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7584 test -n "$AR" && break
7585 done
7587 if test -z "$AR"; then
7588 ac_ct_AR=$AR
7589 for ac_prog in ar
7591 # Extract the first word of "$ac_prog", so it can be a program name with args.
7592 set dummy $ac_prog; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 if test -n "$ac_ct_AR"; then
7599 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_ac_ct_AR="$ac_prog"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7612 done
7613 done
7614 IFS=$as_save_IFS
7618 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7619 if test -n "$ac_ct_AR"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7621 $as_echo "$ac_ct_AR" >&6; }
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7628 test -n "$ac_ct_AR" && break
7629 done
7631 if test "x$ac_ct_AR" = x; then
7632 AR="false"
7633 else
7634 case $cross_compiling:$ac_tool_warned in
7635 yes:)
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7638 ac_tool_warned=yes ;;
7639 esac
7640 AR=$ac_ct_AR
7644 : ${AR=ar}
7645 : ${AR_FLAGS=cru}
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7658 $as_echo_n "checking for archiver @FILE support... " >&6; }
7659 if ${lt_cv_ar_at_file+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 lt_cv_ar_at_file=no
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7667 main ()
7671 return 0;
7673 _ACEOF
7674 if ac_fn_c_try_compile "$LINENO"; then :
7675 echo conftest.$ac_objext > conftest.lst
7676 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7678 (eval $lt_ar_try) 2>&5
7679 ac_status=$?
7680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681 test $ac_status = 0; }
7682 if test "$ac_status" -eq 0; then
7683 # Ensure the archiver fails upon bogus file names.
7684 rm -f conftest.$ac_objext libconftest.a
7685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7686 (eval $lt_ar_try) 2>&5
7687 ac_status=$?
7688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7689 test $ac_status = 0; }
7690 if test "$ac_status" -ne 0; then
7691 lt_cv_ar_at_file=@
7694 rm -f conftest.* libconftest.a
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7701 $as_echo "$lt_cv_ar_at_file" >&6; }
7703 if test "x$lt_cv_ar_at_file" = xno; then
7704 archiver_list_spec=
7705 else
7706 archiver_list_spec=$lt_cv_ar_at_file
7715 if test -n "$ac_tool_prefix"; then
7716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7717 set dummy ${ac_tool_prefix}strip; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_STRIP+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 if test -n "$STRIP"; then
7724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7737 done
7738 done
7739 IFS=$as_save_IFS
7743 STRIP=$ac_cv_prog_STRIP
7744 if test -n "$STRIP"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7746 $as_echo "$STRIP" >&6; }
7747 else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7754 if test -z "$ac_cv_prog_STRIP"; then
7755 ac_ct_STRIP=$STRIP
7756 # Extract the first word of "strip", so it can be a program name with args.
7757 set dummy strip; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 if test -n "$ac_ct_STRIP"; then
7764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_ac_ct_STRIP="strip"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7777 done
7778 done
7779 IFS=$as_save_IFS
7783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7784 if test -n "$ac_ct_STRIP"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7786 $as_echo "$ac_ct_STRIP" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7792 if test "x$ac_ct_STRIP" = x; then
7793 STRIP=":"
7794 else
7795 case $cross_compiling:$ac_tool_warned in
7796 yes:)
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799 ac_tool_warned=yes ;;
7800 esac
7801 STRIP=$ac_ct_STRIP
7803 else
7804 STRIP="$ac_cv_prog_STRIP"
7807 test -z "$STRIP" && STRIP=:
7814 if test -n "$ac_tool_prefix"; then
7815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if ${ac_cv_prog_RANLIB+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 if test -n "$RANLIB"; then
7823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7824 else
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 break 2
7836 done
7837 done
7838 IFS=$as_save_IFS
7842 RANLIB=$ac_cv_prog_RANLIB
7843 if test -n "$RANLIB"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7845 $as_echo "$RANLIB" >&6; }
7846 else
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7853 if test -z "$ac_cv_prog_RANLIB"; then
7854 ac_ct_RANLIB=$RANLIB
7855 # Extract the first word of "ranlib", so it can be a program name with args.
7856 set dummy ranlib; ac_word=$2
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 $as_echo_n "checking for $ac_word... " >&6; }
7859 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 if test -n "$ac_ct_RANLIB"; then
7863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7864 else
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7868 IFS=$as_save_IFS
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872 ac_cv_prog_ac_ct_RANLIB="ranlib"
7873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 break 2
7876 done
7877 done
7878 IFS=$as_save_IFS
7882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7883 if test -n "$ac_ct_RANLIB"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7885 $as_echo "$ac_ct_RANLIB" >&6; }
7886 else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7891 if test "x$ac_ct_RANLIB" = x; then
7892 RANLIB=":"
7893 else
7894 case $cross_compiling:$ac_tool_warned in
7895 yes:)
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7898 ac_tool_warned=yes ;;
7899 esac
7900 RANLIB=$ac_ct_RANLIB
7902 else
7903 RANLIB="$ac_cv_prog_RANLIB"
7906 test -z "$RANLIB" && RANLIB=:
7913 # Determine commands to create old-style static archives.
7914 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7915 old_postinstall_cmds='chmod 644 $oldlib'
7916 old_postuninstall_cmds=
7918 if test -n "$RANLIB"; then
7919 case $host_os in
7920 openbsd*)
7921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7924 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7926 esac
7927 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7930 case $host_os in
7931 darwin*)
7932 lock_old_archive_extraction=yes ;;
7934 lock_old_archive_extraction=no ;;
7935 esac
7975 # If no C compiler was specified, use CC.
7976 LTCC=${LTCC-"$CC"}
7978 # If no C compiler flags were specified, use CFLAGS.
7979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7981 # Allow CC to be a program name with arguments.
7982 compiler=$CC
7985 # Check for command to grab the raw symbol name followed by C symbol from nm.
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7987 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7988 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7992 # These are sane defaults that work on at least a few old systems.
7993 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7995 # Character class describing NM global symbol codes.
7996 symcode='[BCDEGRST]'
7998 # Regexp to match symbols that can be accessed directly from C.
7999 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8001 # Define system-specific variables.
8002 case $host_os in
8003 aix*)
8004 symcode='[BCDT]'
8006 cygwin* | mingw* | pw32* | cegcc*)
8007 symcode='[ABCDGISTW]'
8009 hpux*)
8010 if test "$host_cpu" = ia64; then
8011 symcode='[ABCDEGRST]'
8014 irix* | nonstopux*)
8015 symcode='[BCDEGRST]'
8017 osf*)
8018 symcode='[BCDEGQRST]'
8020 solaris*)
8021 symcode='[BDRT]'
8023 sco3.2v5*)
8024 symcode='[DT]'
8026 sysv4.2uw2*)
8027 symcode='[DT]'
8029 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8030 symcode='[ABDT]'
8032 sysv4)
8033 symcode='[DFNSTU]'
8035 esac
8037 # If we're using GNU nm, then use its standard symbol codes.
8038 case `$NM -V 2>&1` in
8039 *GNU* | *'with BFD'*)
8040 symcode='[ABCDGIRSTW]' ;;
8041 esac
8043 # Transform an extracted symbol line into a proper C declaration.
8044 # Some systems (esp. on ia64) link data and code symbols differently,
8045 # so use this general approach.
8046 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8048 # Transform an extracted symbol line into symbol name and symbol address
8049 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8050 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'"
8052 # Handle CRLF in mingw tool chain
8053 opt_cr=
8054 case $build_os in
8055 mingw*)
8056 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8058 esac
8060 # Try without a prefix underscore, then with it.
8061 for ac_symprfx in "" "_"; do
8063 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8064 symxfrm="\\1 $ac_symprfx\\2 \\2"
8066 # Write the raw and C identifiers.
8067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8068 # Fake it for dumpbin and say T for any non-static function
8069 # and D for any global variable.
8070 # Also find C++ and __fastcall symbols from MSVC++,
8071 # which start with @ or ?.
8072 lt_cv_sys_global_symbol_pipe="$AWK '"\
8073 " {last_section=section; section=\$ 3};"\
8074 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8075 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8076 " \$ 0!~/External *\|/{next};"\
8077 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8078 " {if(hide[section]) next};"\
8079 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8080 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8081 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8082 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8083 " ' prfx=^$ac_symprfx"
8084 else
8085 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8087 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8089 # Check to see that the pipe works correctly.
8090 pipe_works=no
8092 rm -f conftest*
8093 cat > conftest.$ac_ext <<_LT_EOF
8094 #ifdef __cplusplus
8095 extern "C" {
8096 #endif
8097 char nm_test_var;
8098 void nm_test_func(void);
8099 void nm_test_func(void){}
8100 #ifdef __cplusplus
8102 #endif
8103 int main(){nm_test_var='a';nm_test_func();return(0);}
8104 _LT_EOF
8106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8107 (eval $ac_compile) 2>&5
8108 ac_status=$?
8109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8110 test $ac_status = 0; }; then
8111 # Now try to grab the symbols.
8112 nlist=conftest.nm
8113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8114 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8115 ac_status=$?
8116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117 test $ac_status = 0; } && test -s "$nlist"; then
8118 # Try sorting and uniquifying the output.
8119 if sort "$nlist" | uniq > "$nlist"T; then
8120 mv -f "$nlist"T "$nlist"
8121 else
8122 rm -f "$nlist"T
8125 # Make sure that we snagged all the symbols we need.
8126 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8127 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8128 cat <<_LT_EOF > conftest.$ac_ext
8129 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8130 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8131 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8132 relocations are performed -- see ld's documentation on pseudo-relocs. */
8133 # define LT_DLSYM_CONST
8134 #elif defined(__osf__)
8135 /* This system does not cope well with relocations in const data. */
8136 # define LT_DLSYM_CONST
8137 #else
8138 # define LT_DLSYM_CONST const
8139 #endif
8141 #ifdef __cplusplus
8142 extern "C" {
8143 #endif
8145 _LT_EOF
8146 # Now generate the symbol file.
8147 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8149 cat <<_LT_EOF >> conftest.$ac_ext
8151 /* The mapping between symbol names and symbols. */
8152 LT_DLSYM_CONST struct {
8153 const char *name;
8154 void *address;
8156 lt__PROGRAM__LTX_preloaded_symbols[] =
8158 { "@PROGRAM@", (void *) 0 },
8159 _LT_EOF
8160 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8161 cat <<\_LT_EOF >> conftest.$ac_ext
8162 {0, (void *) 0}
8165 /* This works around a problem in FreeBSD linker */
8166 #ifdef FREEBSD_WORKAROUND
8167 static const void *lt_preloaded_setup() {
8168 return lt__PROGRAM__LTX_preloaded_symbols;
8170 #endif
8172 #ifdef __cplusplus
8174 #endif
8175 _LT_EOF
8176 # Now try linking the two files.
8177 mv conftest.$ac_objext conftstm.$ac_objext
8178 lt_globsym_save_LIBS=$LIBS
8179 lt_globsym_save_CFLAGS=$CFLAGS
8180 LIBS="conftstm.$ac_objext"
8181 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8183 (eval $ac_link) 2>&5
8184 ac_status=$?
8185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8186 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8187 pipe_works=yes
8189 LIBS=$lt_globsym_save_LIBS
8190 CFLAGS=$lt_globsym_save_CFLAGS
8191 else
8192 echo "cannot find nm_test_func in $nlist" >&5
8194 else
8195 echo "cannot find nm_test_var in $nlist" >&5
8197 else
8198 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8200 else
8201 echo "$progname: failed program was:" >&5
8202 cat conftest.$ac_ext >&5
8204 rm -rf conftest* conftst*
8206 # Do not use the global_symbol_pipe unless it works.
8207 if test "$pipe_works" = yes; then
8208 break
8209 else
8210 lt_cv_sys_global_symbol_pipe=
8212 done
8216 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8217 lt_cv_sys_global_symbol_to_cdecl=
8219 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8221 $as_echo "failed" >&6; }
8222 else
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8224 $as_echo "ok" >&6; }
8227 # Response file support.
8228 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8229 nm_file_list_spec='@'
8230 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8231 nm_file_list_spec='@'
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8261 $as_echo_n "checking for sysroot... " >&6; }
8263 # Check whether --with-sysroot was given.
8264 if test "${with_sysroot+set}" = set; then :
8265 withval=$with_sysroot;
8266 else
8267 with_sysroot=no
8271 lt_sysroot=
8272 case ${with_sysroot} in #(
8273 yes)
8274 if test "$GCC" = yes; then
8275 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8277 ;; #(
8279 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8280 ;; #(
8281 no|'')
8282 ;; #(
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8285 $as_echo "${with_sysroot}" >&6; }
8286 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8288 esac
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8291 $as_echo "${lt_sysroot:-no}" >&6; }
8297 # Check whether --enable-libtool-lock was given.
8298 if test "${enable_libtool_lock+set}" = set; then :
8299 enableval=$enable_libtool_lock;
8302 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8304 # Some flags need to be propagated to the compiler or linker for good
8305 # libtool support.
8306 case $host in
8307 ia64-*-hpux*)
8308 # Find out which ABI we are using.
8309 echo 'int i;' > conftest.$ac_ext
8310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8311 (eval $ac_compile) 2>&5
8312 ac_status=$?
8313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8314 test $ac_status = 0; }; then
8315 case `/usr/bin/file conftest.$ac_objext` in
8316 *ELF-32*)
8317 HPUX_IA64_MODE="32"
8319 *ELF-64*)
8320 HPUX_IA64_MODE="64"
8322 esac
8324 rm -rf conftest*
8326 *-*-irix6*)
8327 # Find out which ABI we are using.
8328 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8330 (eval $ac_compile) 2>&5
8331 ac_status=$?
8332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8333 test $ac_status = 0; }; then
8334 if test "$lt_cv_prog_gnu_ld" = yes; then
8335 case `/usr/bin/file conftest.$ac_objext` in
8336 *32-bit*)
8337 LD="${LD-ld} -melf32bsmip"
8339 *N32*)
8340 LD="${LD-ld} -melf32bmipn32"
8342 *64-bit*)
8343 LD="${LD-ld} -melf64bmip"
8345 esac
8346 else
8347 case `/usr/bin/file conftest.$ac_objext` in
8348 *32-bit*)
8349 LD="${LD-ld} -32"
8351 *N32*)
8352 LD="${LD-ld} -n32"
8354 *64-bit*)
8355 LD="${LD-ld} -64"
8357 esac
8360 rm -rf conftest*
8363 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8364 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8365 # Find out which ABI we are using.
8366 echo 'int i;' > conftest.$ac_ext
8367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8368 (eval $ac_compile) 2>&5
8369 ac_status=$?
8370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8371 test $ac_status = 0; }; then
8372 case `/usr/bin/file conftest.o` in
8373 *32-bit*)
8374 case $host in
8375 x86_64-*kfreebsd*-gnu)
8376 LD="${LD-ld} -m elf_i386_fbsd"
8378 x86_64-*linux*)
8379 LD="${LD-ld} -m elf_i386"
8381 powerpc64le-*linux*)
8382 LD="${LD-ld} -m elf32lppclinux"
8384 powerpc64-*linux*)
8385 LD="${LD-ld} -m elf32ppclinux"
8387 s390x-*linux*)
8388 LD="${LD-ld} -m elf_s390"
8390 sparc64-*linux*)
8391 LD="${LD-ld} -m elf32_sparc"
8393 esac
8395 *64-bit*)
8396 case $host in
8397 x86_64-*kfreebsd*-gnu)
8398 LD="${LD-ld} -m elf_x86_64_fbsd"
8400 x86_64-*linux*)
8401 LD="${LD-ld} -m elf_x86_64"
8403 powerpcle-*linux*)
8404 LD="${LD-ld} -m elf64lppc"
8406 powerpc-*linux*)
8407 LD="${LD-ld} -m elf64ppc"
8409 s390*-*linux*|s390*-*tpf*)
8410 LD="${LD-ld} -m elf64_s390"
8412 sparc*-*linux*)
8413 LD="${LD-ld} -m elf64_sparc"
8415 esac
8417 esac
8419 rm -rf conftest*
8422 *-*-sco3.2v5*)
8423 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8424 SAVE_CFLAGS="$CFLAGS"
8425 CFLAGS="$CFLAGS -belf"
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8427 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8428 if ${lt_cv_cc_needs_belf+:} false; then :
8429 $as_echo_n "(cached) " >&6
8430 else
8431 ac_ext=c
8432 ac_cpp='$CPP $CPPFLAGS'
8433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8441 main ()
8445 return 0;
8447 _ACEOF
8448 if ac_fn_c_try_link "$LINENO"; then :
8449 lt_cv_cc_needs_belf=yes
8450 else
8451 lt_cv_cc_needs_belf=no
8453 rm -f core conftest.err conftest.$ac_objext \
8454 conftest$ac_exeext conftest.$ac_ext
8455 ac_ext=c
8456 ac_cpp='$CPP $CPPFLAGS'
8457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8463 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8464 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8465 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8466 CFLAGS="$SAVE_CFLAGS"
8469 *-*solaris*)
8470 # Find out which ABI we are using.
8471 echo 'int i;' > conftest.$ac_ext
8472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8473 (eval $ac_compile) 2>&5
8474 ac_status=$?
8475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8476 test $ac_status = 0; }; then
8477 case `/usr/bin/file conftest.o` in
8478 *64-bit*)
8479 case $lt_cv_prog_gnu_ld in
8480 yes*)
8481 case $host in
8482 i?86-*-solaris*)
8483 LD="${LD-ld} -m elf_x86_64"
8485 sparc*-*-solaris*)
8486 LD="${LD-ld} -m elf64_sparc"
8488 esac
8489 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8490 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8491 LD="${LD-ld}_sol2"
8495 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8496 LD="${LD-ld} -64"
8499 esac
8501 esac
8503 rm -rf conftest*
8505 esac
8507 need_locks="$enable_libtool_lock"
8509 if test -n "$ac_tool_prefix"; then
8510 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8511 set dummy ${ac_tool_prefix}mt; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 if test -n "$MANIFEST_TOOL"; then
8518 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8519 else
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 break 2
8531 done
8532 done
8533 IFS=$as_save_IFS
8537 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8538 if test -n "$MANIFEST_TOOL"; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8540 $as_echo "$MANIFEST_TOOL" >&6; }
8541 else
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8548 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8549 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8550 # Extract the first word of "mt", so it can be a program name with args.
8551 set dummy mt; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 if test -n "$ac_ct_MANIFEST_TOOL"; then
8558 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8559 else
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8567 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8571 done
8572 done
8573 IFS=$as_save_IFS
8577 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8578 if test -n "$ac_ct_MANIFEST_TOOL"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8580 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8581 else
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8586 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8587 MANIFEST_TOOL=":"
8588 else
8589 case $cross_compiling:$ac_tool_warned in
8590 yes:)
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8593 ac_tool_warned=yes ;;
8594 esac
8595 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8597 else
8598 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8601 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8603 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8604 if ${lt_cv_path_mainfest_tool+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 lt_cv_path_mainfest_tool=no
8608 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8609 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8610 cat conftest.err >&5
8611 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8612 lt_cv_path_mainfest_tool=yes
8614 rm -f conftest*
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8617 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8618 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8619 MANIFEST_TOOL=:
8627 case $host_os in
8628 rhapsody* | darwin*)
8629 if test -n "$ac_tool_prefix"; then
8630 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8631 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 if test -n "$DSYMUTIL"; then
8638 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8639 else
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8647 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8651 done
8652 done
8653 IFS=$as_save_IFS
8657 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8658 if test -n "$DSYMUTIL"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8660 $as_echo "$DSYMUTIL" >&6; }
8661 else
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8668 if test -z "$ac_cv_prog_DSYMUTIL"; then
8669 ac_ct_DSYMUTIL=$DSYMUTIL
8670 # Extract the first word of "dsymutil", so it can be a program name with args.
8671 set dummy dsymutil; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 if test -n "$ac_ct_DSYMUTIL"; then
8678 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8679 else
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8687 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 break 2
8691 done
8692 done
8693 IFS=$as_save_IFS
8697 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8698 if test -n "$ac_ct_DSYMUTIL"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8700 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8706 if test "x$ac_ct_DSYMUTIL" = x; then
8707 DSYMUTIL=":"
8708 else
8709 case $cross_compiling:$ac_tool_warned in
8710 yes:)
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8713 ac_tool_warned=yes ;;
8714 esac
8715 DSYMUTIL=$ac_ct_DSYMUTIL
8717 else
8718 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8721 if test -n "$ac_tool_prefix"; then
8722 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8723 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if ${ac_cv_prog_NMEDIT+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 if test -n "$NMEDIT"; then
8730 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8739 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 break 2
8743 done
8744 done
8745 IFS=$as_save_IFS
8749 NMEDIT=$ac_cv_prog_NMEDIT
8750 if test -n "$NMEDIT"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8752 $as_echo "$NMEDIT" >&6; }
8753 else
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8760 if test -z "$ac_cv_prog_NMEDIT"; then
8761 ac_ct_NMEDIT=$NMEDIT
8762 # Extract the first word of "nmedit", so it can be a program name with args.
8763 set dummy nmedit; ac_word=$2
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 $as_echo_n "checking for $ac_word... " >&6; }
8766 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 if test -n "$ac_ct_NMEDIT"; then
8770 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8771 else
8772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773 for as_dir in $PATH
8775 IFS=$as_save_IFS
8776 test -z "$as_dir" && as_dir=.
8777 for ac_exec_ext in '' $ac_executable_extensions; do
8778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8779 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 break 2
8783 done
8784 done
8785 IFS=$as_save_IFS
8789 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8790 if test -n "$ac_ct_NMEDIT"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8792 $as_echo "$ac_ct_NMEDIT" >&6; }
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8798 if test "x$ac_ct_NMEDIT" = x; then
8799 NMEDIT=":"
8800 else
8801 case $cross_compiling:$ac_tool_warned in
8802 yes:)
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8805 ac_tool_warned=yes ;;
8806 esac
8807 NMEDIT=$ac_ct_NMEDIT
8809 else
8810 NMEDIT="$ac_cv_prog_NMEDIT"
8813 if test -n "$ac_tool_prefix"; then
8814 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8815 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if ${ac_cv_prog_LIPO+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 if test -n "$LIPO"; then
8822 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8835 done
8836 done
8837 IFS=$as_save_IFS
8841 LIPO=$ac_cv_prog_LIPO
8842 if test -n "$LIPO"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8844 $as_echo "$LIPO" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8852 if test -z "$ac_cv_prog_LIPO"; then
8853 ac_ct_LIPO=$LIPO
8854 # Extract the first word of "lipo", so it can be a program name with args.
8855 set dummy lipo; ac_word=$2
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857 $as_echo_n "checking for $ac_word... " >&6; }
8858 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 if test -n "$ac_ct_LIPO"; then
8862 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8863 else
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8871 ac_cv_prog_ac_ct_LIPO="lipo"
8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 break 2
8875 done
8876 done
8877 IFS=$as_save_IFS
8881 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8882 if test -n "$ac_ct_LIPO"; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8884 $as_echo "$ac_ct_LIPO" >&6; }
8885 else
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8890 if test "x$ac_ct_LIPO" = x; then
8891 LIPO=":"
8892 else
8893 case $cross_compiling:$ac_tool_warned in
8894 yes:)
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8897 ac_tool_warned=yes ;;
8898 esac
8899 LIPO=$ac_ct_LIPO
8901 else
8902 LIPO="$ac_cv_prog_LIPO"
8905 if test -n "$ac_tool_prefix"; then
8906 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8907 set dummy ${ac_tool_prefix}otool; ac_word=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if ${ac_cv_prog_OTOOL+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 if test -n "$OTOOL"; then
8914 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 break 2
8927 done
8928 done
8929 IFS=$as_save_IFS
8933 OTOOL=$ac_cv_prog_OTOOL
8934 if test -n "$OTOOL"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8936 $as_echo "$OTOOL" >&6; }
8937 else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8944 if test -z "$ac_cv_prog_OTOOL"; then
8945 ac_ct_OTOOL=$OTOOL
8946 # Extract the first word of "otool", so it can be a program name with args.
8947 set dummy otool; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 if test -n "$ac_ct_OTOOL"; then
8954 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8955 else
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8963 ac_cv_prog_ac_ct_OTOOL="otool"
8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 break 2
8967 done
8968 done
8969 IFS=$as_save_IFS
8973 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8974 if test -n "$ac_ct_OTOOL"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8976 $as_echo "$ac_ct_OTOOL" >&6; }
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8982 if test "x$ac_ct_OTOOL" = x; then
8983 OTOOL=":"
8984 else
8985 case $cross_compiling:$ac_tool_warned in
8986 yes:)
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8989 ac_tool_warned=yes ;;
8990 esac
8991 OTOOL=$ac_ct_OTOOL
8993 else
8994 OTOOL="$ac_cv_prog_OTOOL"
8997 if test -n "$ac_tool_prefix"; then
8998 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8999 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 $as_echo_n "checking for $ac_word... " >&6; }
9002 if ${ac_cv_prog_OTOOL64+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 if test -n "$OTOOL64"; then
9006 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9007 else
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 for as_dir in $PATH
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9015 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 break 2
9019 done
9020 done
9021 IFS=$as_save_IFS
9025 OTOOL64=$ac_cv_prog_OTOOL64
9026 if test -n "$OTOOL64"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9028 $as_echo "$OTOOL64" >&6; }
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9036 if test -z "$ac_cv_prog_OTOOL64"; then
9037 ac_ct_OTOOL64=$OTOOL64
9038 # Extract the first word of "otool64", so it can be a program name with args.
9039 set dummy otool64; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 if test -n "$ac_ct_OTOOL64"; then
9046 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_ac_ct_OTOOL64="otool64"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9059 done
9060 done
9061 IFS=$as_save_IFS
9065 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9066 if test -n "$ac_ct_OTOOL64"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9068 $as_echo "$ac_ct_OTOOL64" >&6; }
9069 else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9074 if test "x$ac_ct_OTOOL64" = x; then
9075 OTOOL64=":"
9076 else
9077 case $cross_compiling:$ac_tool_warned in
9078 yes:)
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9081 ac_tool_warned=yes ;;
9082 esac
9083 OTOOL64=$ac_ct_OTOOL64
9085 else
9086 OTOOL64="$ac_cv_prog_OTOOL64"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9116 $as_echo_n "checking for -single_module linker flag... " >&6; }
9117 if ${lt_cv_apple_cc_single_mod+:} false; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 lt_cv_apple_cc_single_mod=no
9121 if test -z "${LT_MULTI_MODULE}"; then
9122 # By default we will add the -single_module flag. You can override
9123 # by either setting the environment variable LT_MULTI_MODULE
9124 # non-empty at configure time, or by adding -multi_module to the
9125 # link flags.
9126 rm -rf libconftest.dylib*
9127 echo "int foo(void){return 1;}" > conftest.c
9128 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9129 -dynamiclib -Wl,-single_module conftest.c" >&5
9130 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9131 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9132 _lt_result=$?
9133 # If there is a non-empty error log, and "single_module"
9134 # appears in it, assume the flag caused a linker warning
9135 if test -s conftest.err && $GREP single_module conftest.err; then
9136 cat conftest.err >&5
9137 # Otherwise, if the output was created with a 0 exit code from
9138 # the compiler, it worked.
9139 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9140 lt_cv_apple_cc_single_mod=yes
9141 else
9142 cat conftest.err >&5
9144 rm -rf libconftest.dylib*
9145 rm -f conftest.*
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9149 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9152 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9153 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 lt_cv_ld_exported_symbols_list=no
9157 save_LDFLAGS=$LDFLAGS
9158 echo "_main" > conftest.sym
9159 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9164 main ()
9168 return 0;
9170 _ACEOF
9171 if ac_fn_c_try_link "$LINENO"; then :
9172 lt_cv_ld_exported_symbols_list=yes
9173 else
9174 lt_cv_ld_exported_symbols_list=no
9176 rm -f core conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178 LDFLAGS="$save_LDFLAGS"
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9182 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9185 $as_echo_n "checking for -force_load linker flag... " >&6; }
9186 if ${lt_cv_ld_force_load+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 lt_cv_ld_force_load=no
9190 cat > conftest.c << _LT_EOF
9191 int forced_loaded() { return 2;}
9192 _LT_EOF
9193 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9194 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9195 echo "$AR cru libconftest.a conftest.o" >&5
9196 $AR cru libconftest.a conftest.o 2>&5
9197 echo "$RANLIB libconftest.a" >&5
9198 $RANLIB libconftest.a 2>&5
9199 cat > conftest.c << _LT_EOF
9200 int main() { return 0;}
9201 _LT_EOF
9202 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9203 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9204 _lt_result=$?
9205 if test -s conftest.err && $GREP force_load conftest.err; then
9206 cat conftest.err >&5
9207 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9208 lt_cv_ld_force_load=yes
9209 else
9210 cat conftest.err >&5
9212 rm -f conftest.err libconftest.a conftest conftest.c
9213 rm -rf conftest.dSYM
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9217 $as_echo "$lt_cv_ld_force_load" >&6; }
9218 case $host_os in
9219 rhapsody* | darwin1.[012])
9220 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9221 darwin1.*)
9222 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9223 darwin*) # darwin 5.x on
9224 # if running on 10.5 or later, the deployment target defaults
9225 # to the OS version, if on x86, and 10.4, the deployment
9226 # target defaults to 10.4. Don't you love it?
9227 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9228 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9229 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9230 10.[012]*)
9231 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9232 10.*)
9233 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9234 esac
9236 esac
9237 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9238 _lt_dar_single_mod='$single_module'
9240 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9241 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9242 else
9243 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9245 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9246 _lt_dsymutil='~$DSYMUTIL $lib || :'
9247 else
9248 _lt_dsymutil=
9251 esac
9253 for ac_header in dlfcn.h
9254 do :
9255 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9257 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9258 cat >>confdefs.h <<_ACEOF
9259 #define HAVE_DLFCN_H 1
9260 _ACEOF
9264 done
9270 # Set options
9271 enable_win32_dll=yes
9273 case $host in
9274 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9275 if test -n "$ac_tool_prefix"; then
9276 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9277 set dummy ${ac_tool_prefix}as; ac_word=$2
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279 $as_echo_n "checking for $ac_word... " >&6; }
9280 if ${ac_cv_prog_AS+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 if test -n "$AS"; then
9284 ac_cv_prog_AS="$AS" # Let the user override the test.
9285 else
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9289 IFS=$as_save_IFS
9290 test -z "$as_dir" && as_dir=.
9291 for ac_exec_ext in '' $ac_executable_extensions; do
9292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9293 ac_cv_prog_AS="${ac_tool_prefix}as"
9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295 break 2
9297 done
9298 done
9299 IFS=$as_save_IFS
9303 AS=$ac_cv_prog_AS
9304 if test -n "$AS"; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9306 $as_echo "$AS" >&6; }
9307 else
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9314 if test -z "$ac_cv_prog_AS"; then
9315 ac_ct_AS=$AS
9316 # Extract the first word of "as", so it can be a program name with args.
9317 set dummy as; ac_word=$2
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 $as_echo_n "checking for $ac_word... " >&6; }
9320 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 if test -n "$ac_ct_AS"; then
9324 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9325 else
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327 for as_dir in $PATH
9329 IFS=$as_save_IFS
9330 test -z "$as_dir" && as_dir=.
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9333 ac_cv_prog_ac_ct_AS="as"
9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9335 break 2
9337 done
9338 done
9339 IFS=$as_save_IFS
9343 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9344 if test -n "$ac_ct_AS"; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9346 $as_echo "$ac_ct_AS" >&6; }
9347 else
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9352 if test "x$ac_ct_AS" = x; then
9353 AS="false"
9354 else
9355 case $cross_compiling:$ac_tool_warned in
9356 yes:)
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9359 ac_tool_warned=yes ;;
9360 esac
9361 AS=$ac_ct_AS
9363 else
9364 AS="$ac_cv_prog_AS"
9367 if test -n "$ac_tool_prefix"; then
9368 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9369 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if ${ac_cv_prog_DLLTOOL+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 if test -n "$DLLTOOL"; then
9376 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9377 else
9378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379 for as_dir in $PATH
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9385 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387 break 2
9389 done
9390 done
9391 IFS=$as_save_IFS
9395 DLLTOOL=$ac_cv_prog_DLLTOOL
9396 if test -n "$DLLTOOL"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9398 $as_echo "$DLLTOOL" >&6; }
9399 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9406 if test -z "$ac_cv_prog_DLLTOOL"; then
9407 ac_ct_DLLTOOL=$DLLTOOL
9408 # Extract the first word of "dlltool", so it can be a program name with args.
9409 set dummy dlltool; ac_word=$2
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411 $as_echo_n "checking for $ac_word... " >&6; }
9412 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 if test -n "$ac_ct_DLLTOOL"; then
9416 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9417 else
9418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419 for as_dir in $PATH
9421 IFS=$as_save_IFS
9422 test -z "$as_dir" && as_dir=.
9423 for ac_exec_ext in '' $ac_executable_extensions; do
9424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9425 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9427 break 2
9429 done
9430 done
9431 IFS=$as_save_IFS
9435 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9436 if test -n "$ac_ct_DLLTOOL"; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9438 $as_echo "$ac_ct_DLLTOOL" >&6; }
9439 else
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441 $as_echo "no" >&6; }
9444 if test "x$ac_ct_DLLTOOL" = x; then
9445 DLLTOOL="false"
9446 else
9447 case $cross_compiling:$ac_tool_warned in
9448 yes:)
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9451 ac_tool_warned=yes ;;
9452 esac
9453 DLLTOOL=$ac_ct_DLLTOOL
9455 else
9456 DLLTOOL="$ac_cv_prog_DLLTOOL"
9459 if test -n "$ac_tool_prefix"; then
9460 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9461 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 $as_echo_n "checking for $ac_word... " >&6; }
9464 if ${ac_cv_prog_OBJDUMP+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 if test -n "$OBJDUMP"; then
9468 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9469 else
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 for as_dir in $PATH
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9477 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 break 2
9481 done
9482 done
9483 IFS=$as_save_IFS
9487 OBJDUMP=$ac_cv_prog_OBJDUMP
9488 if test -n "$OBJDUMP"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9490 $as_echo "$OBJDUMP" >&6; }
9491 else
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9498 if test -z "$ac_cv_prog_OBJDUMP"; then
9499 ac_ct_OBJDUMP=$OBJDUMP
9500 # Extract the first word of "objdump", so it can be a program name with args.
9501 set dummy objdump; ac_word=$2
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9503 $as_echo_n "checking for $ac_word... " >&6; }
9504 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 if test -n "$ac_ct_OBJDUMP"; then
9508 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9509 else
9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511 for as_dir in $PATH
9513 IFS=$as_save_IFS
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9517 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9519 break 2
9521 done
9522 done
9523 IFS=$as_save_IFS
9527 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9528 if test -n "$ac_ct_OBJDUMP"; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9530 $as_echo "$ac_ct_OBJDUMP" >&6; }
9531 else
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 $as_echo "no" >&6; }
9536 if test "x$ac_ct_OBJDUMP" = x; then
9537 OBJDUMP="false"
9538 else
9539 case $cross_compiling:$ac_tool_warned in
9540 yes:)
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9543 ac_tool_warned=yes ;;
9544 esac
9545 OBJDUMP=$ac_ct_OBJDUMP
9547 else
9548 OBJDUMP="$ac_cv_prog_OBJDUMP"
9552 esac
9554 test -z "$AS" && AS=as
9560 test -z "$DLLTOOL" && DLLTOOL=dlltool
9566 test -z "$OBJDUMP" && OBJDUMP=objdump
9574 enable_dlopen=no
9578 # Check whether --enable-shared was given.
9579 if test "${enable_shared+set}" = set; then :
9580 enableval=$enable_shared; p=${PACKAGE-default}
9581 case $enableval in
9582 yes) enable_shared=yes ;;
9583 no) enable_shared=no ;;
9585 enable_shared=no
9586 # Look at the argument we got. We use all the common list separators.
9587 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9588 for pkg in $enableval; do
9589 IFS="$lt_save_ifs"
9590 if test "X$pkg" = "X$p"; then
9591 enable_shared=yes
9593 done
9594 IFS="$lt_save_ifs"
9596 esac
9597 else
9598 enable_shared=yes
9609 # Check whether --enable-static was given.
9610 if test "${enable_static+set}" = set; then :
9611 enableval=$enable_static; p=${PACKAGE-default}
9612 case $enableval in
9613 yes) enable_static=yes ;;
9614 no) enable_static=no ;;
9616 enable_static=no
9617 # Look at the argument we got. We use all the common list separators.
9618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9619 for pkg in $enableval; do
9620 IFS="$lt_save_ifs"
9621 if test "X$pkg" = "X$p"; then
9622 enable_static=yes
9624 done
9625 IFS="$lt_save_ifs"
9627 esac
9628 else
9629 enable_static=yes
9641 # Check whether --with-pic was given.
9642 if test "${with_pic+set}" = set; then :
9643 withval=$with_pic; lt_p=${PACKAGE-default}
9644 case $withval in
9645 yes|no) pic_mode=$withval ;;
9647 pic_mode=default
9648 # Look at the argument we got. We use all the common list separators.
9649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9650 for lt_pkg in $withval; do
9651 IFS="$lt_save_ifs"
9652 if test "X$lt_pkg" = "X$lt_p"; then
9653 pic_mode=yes
9655 done
9656 IFS="$lt_save_ifs"
9658 esac
9659 else
9660 pic_mode=default
9664 test -z "$pic_mode" && pic_mode=default
9672 # Check whether --enable-fast-install was given.
9673 if test "${enable_fast_install+set}" = set; then :
9674 enableval=$enable_fast_install; p=${PACKAGE-default}
9675 case $enableval in
9676 yes) enable_fast_install=yes ;;
9677 no) enable_fast_install=no ;;
9679 enable_fast_install=no
9680 # Look at the argument we got. We use all the common list separators.
9681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9682 for pkg in $enableval; do
9683 IFS="$lt_save_ifs"
9684 if test "X$pkg" = "X$p"; then
9685 enable_fast_install=yes
9687 done
9688 IFS="$lt_save_ifs"
9690 esac
9691 else
9692 enable_fast_install=yes
9705 # This can be used to rebuild libtool when needed
9706 LIBTOOL_DEPS="$ltmain"
9708 # Always use our own libtool.
9709 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9740 test -z "$LN_S" && LN_S="ln -s"
9755 if test -n "${ZSH_VERSION+set}" ; then
9756 setopt NO_GLOB_SUBST
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9760 $as_echo_n "checking for objdir... " >&6; }
9761 if ${lt_cv_objdir+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 rm -f .libs 2>/dev/null
9765 mkdir .libs 2>/dev/null
9766 if test -d .libs; then
9767 lt_cv_objdir=.libs
9768 else
9769 # MS-DOS does not allow filenames that begin with a dot.
9770 lt_cv_objdir=_libs
9772 rmdir .libs 2>/dev/null
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9775 $as_echo "$lt_cv_objdir" >&6; }
9776 objdir=$lt_cv_objdir
9782 cat >>confdefs.h <<_ACEOF
9783 #define LT_OBJDIR "$lt_cv_objdir/"
9784 _ACEOF
9789 case $host_os in
9790 aix3*)
9791 # AIX sometimes has problems with the GCC collect2 program. For some
9792 # reason, if we set the COLLECT_NAMES environment variable, the problems
9793 # vanish in a puff of smoke.
9794 if test "X${COLLECT_NAMES+set}" != Xset; then
9795 COLLECT_NAMES=
9796 export COLLECT_NAMES
9799 esac
9801 # Global variables:
9802 ofile=libtool
9803 can_build_shared=yes
9805 # All known linkers require a `.a' archive for static linking (except MSVC,
9806 # which needs '.lib').
9807 libext=a
9809 with_gnu_ld="$lt_cv_prog_gnu_ld"
9811 old_CC="$CC"
9812 old_CFLAGS="$CFLAGS"
9814 # Set sane defaults for various variables
9815 test -z "$CC" && CC=cc
9816 test -z "$LTCC" && LTCC=$CC
9817 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9818 test -z "$LD" && LD=ld
9819 test -z "$ac_objext" && ac_objext=o
9821 for cc_temp in $compiler""; do
9822 case $cc_temp in
9823 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9824 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9825 \-*) ;;
9826 *) break;;
9827 esac
9828 done
9829 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9832 # Only perform the check for file, if the check method requires it
9833 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9834 case $deplibs_check_method in
9835 file_magic*)
9836 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9838 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9839 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 case $MAGIC_CMD in
9843 [\\/*] | ?:[\\/]*)
9844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9847 lt_save_MAGIC_CMD="$MAGIC_CMD"
9848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9849 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9850 for ac_dir in $ac_dummy; do
9851 IFS="$lt_save_ifs"
9852 test -z "$ac_dir" && ac_dir=.
9853 if test -f $ac_dir/${ac_tool_prefix}file; then
9854 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9855 if test -n "$file_magic_test_file"; then
9856 case $deplibs_check_method in
9857 "file_magic "*)
9858 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9861 $EGREP "$file_magic_regex" > /dev/null; then
9863 else
9864 cat <<_LT_EOF 1>&2
9866 *** Warning: the command libtool uses to detect shared libraries,
9867 *** $file_magic_cmd, produces output that libtool cannot recognize.
9868 *** The result is that libtool may fail to recognize shared libraries
9869 *** as such. This will affect the creation of libtool libraries that
9870 *** depend on shared libraries, but programs linked with such libtool
9871 *** libraries will work regardless of this problem. Nevertheless, you
9872 *** may want to report the problem to your system manager and/or to
9873 *** bug-libtool@gnu.org
9875 _LT_EOF
9876 fi ;;
9877 esac
9879 break
9881 done
9882 IFS="$lt_save_ifs"
9883 MAGIC_CMD="$lt_save_MAGIC_CMD"
9885 esac
9888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9889 if test -n "$MAGIC_CMD"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9891 $as_echo "$MAGIC_CMD" >&6; }
9892 else
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9901 if test -z "$lt_cv_path_MAGIC_CMD"; then
9902 if test -n "$ac_tool_prefix"; then
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9904 $as_echo_n "checking for file... " >&6; }
9905 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 case $MAGIC_CMD in
9909 [\\/*] | ?:[\\/]*)
9910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9913 lt_save_MAGIC_CMD="$MAGIC_CMD"
9914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9916 for ac_dir in $ac_dummy; do
9917 IFS="$lt_save_ifs"
9918 test -z "$ac_dir" && ac_dir=.
9919 if test -f $ac_dir/file; then
9920 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9921 if test -n "$file_magic_test_file"; then
9922 case $deplibs_check_method in
9923 "file_magic "*)
9924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9927 $EGREP "$file_magic_regex" > /dev/null; then
9929 else
9930 cat <<_LT_EOF 1>&2
9932 *** Warning: the command libtool uses to detect shared libraries,
9933 *** $file_magic_cmd, produces output that libtool cannot recognize.
9934 *** The result is that libtool may fail to recognize shared libraries
9935 *** as such. This will affect the creation of libtool libraries that
9936 *** depend on shared libraries, but programs linked with such libtool
9937 *** libraries will work regardless of this problem. Nevertheless, you
9938 *** may want to report the problem to your system manager and/or to
9939 *** bug-libtool@gnu.org
9941 _LT_EOF
9942 fi ;;
9943 esac
9945 break
9947 done
9948 IFS="$lt_save_ifs"
9949 MAGIC_CMD="$lt_save_MAGIC_CMD"
9951 esac
9954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9955 if test -n "$MAGIC_CMD"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9957 $as_echo "$MAGIC_CMD" >&6; }
9958 else
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9964 else
9965 MAGIC_CMD=:
9971 esac
9973 # Use C for the default configuration in the libtool script
9975 lt_save_CC="$CC"
9976 ac_ext=c
9977 ac_cpp='$CPP $CPPFLAGS'
9978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9983 # Source file extension for C test sources.
9984 ac_ext=c
9986 # Object file extension for compiled C test sources.
9987 objext=o
9988 objext=$objext
9990 # Code to be used in simple compile tests
9991 lt_simple_compile_test_code="int some_variable = 0;"
9993 # Code to be used in simple link tests
9994 lt_simple_link_test_code='int main(){return(0);}'
10002 # If no C compiler was specified, use CC.
10003 LTCC=${LTCC-"$CC"}
10005 # If no C compiler flags were specified, use CFLAGS.
10006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10008 # Allow CC to be a program name with arguments.
10009 compiler=$CC
10011 # Save the default compiler, since it gets overwritten when the other
10012 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10013 compiler_DEFAULT=$CC
10015 # save warnings/boilerplate of simple test code
10016 ac_outfile=conftest.$ac_objext
10017 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10018 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10019 _lt_compiler_boilerplate=`cat conftest.err`
10020 $RM conftest*
10022 ac_outfile=conftest.$ac_objext
10023 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10024 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10025 _lt_linker_boilerplate=`cat conftest.err`
10026 $RM -r conftest*
10029 ## CAVEAT EMPTOR:
10030 ## There is no encapsulation within the following macros, do not change
10031 ## the running order or otherwise move them around unless you know exactly
10032 ## what you are doing...
10033 if test -n "$compiler"; then
10035 lt_prog_compiler_no_builtin_flag=
10037 if test "$GCC" = yes; then
10038 case $cc_basename in
10039 nvcc*)
10040 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10042 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10043 esac
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10046 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10047 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 lt_cv_prog_compiler_rtti_exceptions=no
10051 ac_outfile=conftest.$ac_objext
10052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10053 lt_compiler_flag="-fno-rtti -fno-exceptions"
10054 # Insert the option either (1) after the last *FLAGS variable, or
10055 # (2) before a word containing "conftest.", or (3) at the end.
10056 # Note that $ac_compile itself does not contain backslashes and begins
10057 # with a dollar sign (not a hyphen), so the echo should work correctly.
10058 # The option is referenced via a variable to avoid confusing sed.
10059 lt_compile=`echo "$ac_compile" | $SED \
10060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10062 -e 's:$: $lt_compiler_flag:'`
10063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10064 (eval "$lt_compile" 2>conftest.err)
10065 ac_status=$?
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 if (exit $ac_status) && test -s "$ac_outfile"; then
10069 # The compiler can only warn and ignore the option if not recognized
10070 # So say no if there are warnings other than the usual output.
10071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10074 lt_cv_prog_compiler_rtti_exceptions=yes
10077 $RM conftest*
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10081 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10083 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10084 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10085 else
10096 lt_prog_compiler_wl=
10097 lt_prog_compiler_pic=
10098 lt_prog_compiler_static=
10101 if test "$GCC" = yes; then
10102 lt_prog_compiler_wl='-Wl,'
10103 lt_prog_compiler_static='-static'
10105 case $host_os in
10106 aix*)
10107 # All AIX code is PIC.
10108 if test "$host_cpu" = ia64; then
10109 # AIX 5 now supports IA64 processor
10110 lt_prog_compiler_static='-Bstatic'
10114 amigaos*)
10115 case $host_cpu in
10116 powerpc)
10117 # see comment about AmigaOS4 .so support
10118 lt_prog_compiler_pic='-fPIC'
10120 m68k)
10121 # FIXME: we need at least 68020 code to build shared libraries, but
10122 # adding the `-m68020' flag to GCC prevents building anything better,
10123 # like `-m68040'.
10124 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10126 esac
10129 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10130 # PIC is the default for these OSes.
10133 mingw* | cygwin* | pw32* | os2* | cegcc*)
10134 # This hack is so that the source file can tell whether it is being
10135 # built for inclusion in a dll (and should export symbols for example).
10136 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10137 # (--disable-auto-import) libraries
10138 lt_prog_compiler_pic='-DDLL_EXPORT'
10141 darwin* | rhapsody*)
10142 # PIC is the default on this platform
10143 # Common symbols not allowed in MH_DYLIB files
10144 lt_prog_compiler_pic='-fno-common'
10147 haiku*)
10148 # PIC is the default for Haiku.
10149 # The "-static" flag exists, but is broken.
10150 lt_prog_compiler_static=
10153 hpux*)
10154 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10155 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10156 # sets the default TLS model and affects inlining.
10157 case $host_cpu in
10158 hppa*64*)
10159 # +Z the default
10162 lt_prog_compiler_pic='-fPIC'
10164 esac
10167 interix[3-9]*)
10168 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10169 # Instead, we relocate shared libraries at runtime.
10172 msdosdjgpp*)
10173 # Just because we use GCC doesn't mean we suddenly get shared libraries
10174 # on systems that don't support them.
10175 lt_prog_compiler_can_build_shared=no
10176 enable_shared=no
10179 *nto* | *qnx*)
10180 # QNX uses GNU C++, but need to define -shared option too, otherwise
10181 # it will coredump.
10182 lt_prog_compiler_pic='-fPIC -shared'
10185 sysv4*MP*)
10186 if test -d /usr/nec; then
10187 lt_prog_compiler_pic=-Kconform_pic
10192 lt_prog_compiler_pic='-fPIC'
10194 esac
10196 case $cc_basename in
10197 nvcc*) # Cuda Compiler Driver 2.2
10198 lt_prog_compiler_wl='-Xlinker '
10199 if test -n "$lt_prog_compiler_pic"; then
10200 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10203 esac
10204 else
10205 # PORTME Check for flag to pass linker flags through the system compiler.
10206 case $host_os in
10207 aix*)
10208 lt_prog_compiler_wl='-Wl,'
10209 if test "$host_cpu" = ia64; then
10210 # AIX 5 now supports IA64 processor
10211 lt_prog_compiler_static='-Bstatic'
10212 else
10213 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10217 mingw* | cygwin* | pw32* | os2* | cegcc*)
10218 # This hack is so that the source file can tell whether it is being
10219 # built for inclusion in a dll (and should export symbols for example).
10220 lt_prog_compiler_pic='-DDLL_EXPORT'
10223 hpux9* | hpux10* | hpux11*)
10224 lt_prog_compiler_wl='-Wl,'
10225 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10226 # not for PA HP-UX.
10227 case $host_cpu in
10228 hppa*64*|ia64*)
10229 # +Z the default
10232 lt_prog_compiler_pic='+Z'
10234 esac
10235 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10236 lt_prog_compiler_static='${wl}-a ${wl}archive'
10239 irix5* | irix6* | nonstopux*)
10240 lt_prog_compiler_wl='-Wl,'
10241 # PIC (with -KPIC) is the default.
10242 lt_prog_compiler_static='-non_shared'
10245 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10246 case $cc_basename in
10247 # old Intel for x86_64 which still supported -KPIC.
10248 ecc*)
10249 lt_prog_compiler_wl='-Wl,'
10250 lt_prog_compiler_pic='-KPIC'
10251 lt_prog_compiler_static='-static'
10253 # icc used to be incompatible with GCC.
10254 # ICC 10 doesn't accept -KPIC any more.
10255 icc* | ifort*)
10256 lt_prog_compiler_wl='-Wl,'
10257 lt_prog_compiler_pic='-fPIC'
10258 lt_prog_compiler_static='-static'
10260 # Lahey Fortran 8.1.
10261 lf95*)
10262 lt_prog_compiler_wl='-Wl,'
10263 lt_prog_compiler_pic='--shared'
10264 lt_prog_compiler_static='--static'
10266 nagfor*)
10267 # NAG Fortran compiler
10268 lt_prog_compiler_wl='-Wl,-Wl,,'
10269 lt_prog_compiler_pic='-PIC'
10270 lt_prog_compiler_static='-Bstatic'
10272 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10273 # Portland Group compilers (*not* the Pentium gcc compiler,
10274 # which looks to be a dead project)
10275 lt_prog_compiler_wl='-Wl,'
10276 lt_prog_compiler_pic='-fpic'
10277 lt_prog_compiler_static='-Bstatic'
10279 ccc*)
10280 lt_prog_compiler_wl='-Wl,'
10281 # All Alpha code is PIC.
10282 lt_prog_compiler_static='-non_shared'
10284 xl* | bgxl* | bgf* | mpixl*)
10285 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10286 lt_prog_compiler_wl='-Wl,'
10287 lt_prog_compiler_pic='-qpic'
10288 lt_prog_compiler_static='-qstaticlink'
10291 case `$CC -V 2>&1 | sed 5q` in
10292 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10293 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10294 lt_prog_compiler_pic='-KPIC'
10295 lt_prog_compiler_static='-Bstatic'
10296 lt_prog_compiler_wl=''
10298 *Sun\ F* | *Sun*Fortran*)
10299 lt_prog_compiler_pic='-KPIC'
10300 lt_prog_compiler_static='-Bstatic'
10301 lt_prog_compiler_wl='-Qoption ld '
10303 *Sun\ C*)
10304 # Sun C 5.9
10305 lt_prog_compiler_pic='-KPIC'
10306 lt_prog_compiler_static='-Bstatic'
10307 lt_prog_compiler_wl='-Wl,'
10309 *Intel*\ [CF]*Compiler*)
10310 lt_prog_compiler_wl='-Wl,'
10311 lt_prog_compiler_pic='-fPIC'
10312 lt_prog_compiler_static='-static'
10314 *Portland\ Group*)
10315 lt_prog_compiler_wl='-Wl,'
10316 lt_prog_compiler_pic='-fpic'
10317 lt_prog_compiler_static='-Bstatic'
10319 esac
10321 esac
10324 newsos6)
10325 lt_prog_compiler_pic='-KPIC'
10326 lt_prog_compiler_static='-Bstatic'
10329 *nto* | *qnx*)
10330 # QNX uses GNU C++, but need to define -shared option too, otherwise
10331 # it will coredump.
10332 lt_prog_compiler_pic='-fPIC -shared'
10335 osf3* | osf4* | osf5*)
10336 lt_prog_compiler_wl='-Wl,'
10337 # All OSF/1 code is PIC.
10338 lt_prog_compiler_static='-non_shared'
10341 rdos*)
10342 lt_prog_compiler_static='-non_shared'
10345 solaris*)
10346 lt_prog_compiler_pic='-KPIC'
10347 lt_prog_compiler_static='-Bstatic'
10348 case $cc_basename in
10349 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10350 lt_prog_compiler_wl='-Qoption ld ';;
10352 lt_prog_compiler_wl='-Wl,';;
10353 esac
10356 sunos4*)
10357 lt_prog_compiler_wl='-Qoption ld '
10358 lt_prog_compiler_pic='-PIC'
10359 lt_prog_compiler_static='-Bstatic'
10362 sysv4 | sysv4.2uw2* | sysv4.3*)
10363 lt_prog_compiler_wl='-Wl,'
10364 lt_prog_compiler_pic='-KPIC'
10365 lt_prog_compiler_static='-Bstatic'
10368 sysv4*MP*)
10369 if test -d /usr/nec ;then
10370 lt_prog_compiler_pic='-Kconform_pic'
10371 lt_prog_compiler_static='-Bstatic'
10375 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10376 lt_prog_compiler_wl='-Wl,'
10377 lt_prog_compiler_pic='-KPIC'
10378 lt_prog_compiler_static='-Bstatic'
10381 unicos*)
10382 lt_prog_compiler_wl='-Wl,'
10383 lt_prog_compiler_can_build_shared=no
10386 uts4*)
10387 lt_prog_compiler_pic='-pic'
10388 lt_prog_compiler_static='-Bstatic'
10392 lt_prog_compiler_can_build_shared=no
10394 esac
10397 case $host_os in
10398 # For platforms which do not support PIC, -DPIC is meaningless:
10399 *djgpp*)
10400 lt_prog_compiler_pic=
10403 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10405 esac
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10408 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10409 if ${lt_cv_prog_compiler_pic+:} false; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10415 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10416 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10419 # Check to make sure the PIC flag actually works.
10421 if test -n "$lt_prog_compiler_pic"; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10423 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10424 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 lt_cv_prog_compiler_pic_works=no
10428 ac_outfile=conftest.$ac_objext
10429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10430 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10431 # Insert the option either (1) after the last *FLAGS variable, or
10432 # (2) before a word containing "conftest.", or (3) at the end.
10433 # Note that $ac_compile itself does not contain backslashes and begins
10434 # with a dollar sign (not a hyphen), so the echo should work correctly.
10435 # The option is referenced via a variable to avoid confusing sed.
10436 lt_compile=`echo "$ac_compile" | $SED \
10437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10439 -e 's:$: $lt_compiler_flag:'`
10440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10441 (eval "$lt_compile" 2>conftest.err)
10442 ac_status=$?
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 if (exit $ac_status) && test -s "$ac_outfile"; then
10446 # The compiler can only warn and ignore the option if not recognized
10447 # So say no if there are warnings other than the usual output.
10448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10451 lt_cv_prog_compiler_pic_works=yes
10454 $RM conftest*
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10458 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10460 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10461 case $lt_prog_compiler_pic in
10462 "" | " "*) ;;
10463 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10464 esac
10465 else
10466 lt_prog_compiler_pic=
10467 lt_prog_compiler_can_build_shared=no
10483 # Check to make sure the static flag actually works.
10485 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10487 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10488 if ${lt_cv_prog_compiler_static_works+:} false; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 lt_cv_prog_compiler_static_works=no
10492 save_LDFLAGS="$LDFLAGS"
10493 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10494 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10496 # The linker can only warn and ignore the option if not recognized
10497 # So say no if there are warnings
10498 if test -s conftest.err; then
10499 # Append any errors to the config.log.
10500 cat conftest.err 1>&5
10501 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10503 if diff conftest.exp conftest.er2 >/dev/null; then
10504 lt_cv_prog_compiler_static_works=yes
10506 else
10507 lt_cv_prog_compiler_static_works=yes
10510 $RM -r conftest*
10511 LDFLAGS="$save_LDFLAGS"
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10515 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10517 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10519 else
10520 lt_prog_compiler_static=
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10530 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10531 if ${lt_cv_prog_compiler_c_o+:} false; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 lt_cv_prog_compiler_c_o=no
10535 $RM -r conftest 2>/dev/null
10536 mkdir conftest
10537 cd conftest
10538 mkdir out
10539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10541 lt_compiler_flag="-o out/conftest2.$ac_objext"
10542 # Insert the option either (1) after the last *FLAGS variable, or
10543 # (2) before a word containing "conftest.", or (3) at the end.
10544 # Note that $ac_compile itself does not contain backslashes and begins
10545 # with a dollar sign (not a hyphen), so the echo should work correctly.
10546 lt_compile=`echo "$ac_compile" | $SED \
10547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10549 -e 's:$: $lt_compiler_flag:'`
10550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10551 (eval "$lt_compile" 2>out/conftest.err)
10552 ac_status=$?
10553 cat out/conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10556 then
10557 # The compiler can only warn and ignore the option if not recognized
10558 # So say no if there are warnings
10559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10562 lt_cv_prog_compiler_c_o=yes
10565 chmod u+w . 2>&5
10566 $RM conftest*
10567 # SGI C++ compiler will create directory out/ii_files/ for
10568 # template instantiation
10569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10570 $RM out/* && rmdir out
10571 cd ..
10572 $RM -r conftest
10573 $RM conftest*
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10577 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10585 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10586 if ${lt_cv_prog_compiler_c_o+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 lt_cv_prog_compiler_c_o=no
10590 $RM -r conftest 2>/dev/null
10591 mkdir conftest
10592 cd conftest
10593 mkdir out
10594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10596 lt_compiler_flag="-o out/conftest2.$ac_objext"
10597 # Insert the option either (1) after the last *FLAGS variable, or
10598 # (2) before a word containing "conftest.", or (3) at the end.
10599 # Note that $ac_compile itself does not contain backslashes and begins
10600 # with a dollar sign (not a hyphen), so the echo should work correctly.
10601 lt_compile=`echo "$ac_compile" | $SED \
10602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10604 -e 's:$: $lt_compiler_flag:'`
10605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10606 (eval "$lt_compile" 2>out/conftest.err)
10607 ac_status=$?
10608 cat out/conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10611 then
10612 # The compiler can only warn and ignore the option if not recognized
10613 # So say no if there are warnings
10614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10617 lt_cv_prog_compiler_c_o=yes
10620 chmod u+w . 2>&5
10621 $RM conftest*
10622 # SGI C++ compiler will create directory out/ii_files/ for
10623 # template instantiation
10624 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10625 $RM out/* && rmdir out
10626 cd ..
10627 $RM -r conftest
10628 $RM conftest*
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10632 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10637 hard_links="nottested"
10638 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10639 # do not overwrite the value of need_locks provided by the user
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10641 $as_echo_n "checking if we can lock with hard links... " >&6; }
10642 hard_links=yes
10643 $RM conftest*
10644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10645 touch conftest.a
10646 ln conftest.a conftest.b 2>&5 || hard_links=no
10647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10649 $as_echo "$hard_links" >&6; }
10650 if test "$hard_links" = no; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10652 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10653 need_locks=warn
10655 else
10656 need_locks=no
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10665 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10667 runpath_var=
10668 allow_undefined_flag=
10669 always_export_symbols=no
10670 archive_cmds=
10671 archive_expsym_cmds=
10672 compiler_needs_object=no
10673 enable_shared_with_static_runtimes=no
10674 export_dynamic_flag_spec=
10675 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10676 hardcode_automatic=no
10677 hardcode_direct=no
10678 hardcode_direct_absolute=no
10679 hardcode_libdir_flag_spec=
10680 hardcode_libdir_separator=
10681 hardcode_minus_L=no
10682 hardcode_shlibpath_var=unsupported
10683 inherit_rpath=no
10684 link_all_deplibs=unknown
10685 module_cmds=
10686 module_expsym_cmds=
10687 old_archive_from_new_cmds=
10688 old_archive_from_expsyms_cmds=
10689 thread_safe_flag_spec=
10690 whole_archive_flag_spec=
10691 # include_expsyms should be a list of space-separated symbols to be *always*
10692 # included in the symbol list
10693 include_expsyms=
10694 # exclude_expsyms can be an extended regexp of symbols to exclude
10695 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10696 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10697 # as well as any symbol that contains `d'.
10698 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10699 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10700 # platforms (ab)use it in PIC code, but their linkers get confused if
10701 # the symbol is explicitly referenced. Since portable code cannot
10702 # rely on this symbol name, it's probably fine to never include it in
10703 # preloaded symbol tables.
10704 # Exclude shared library initialization/finalization symbols.
10705 extract_expsyms_cmds=
10707 case $host_os in
10708 cygwin* | mingw* | pw32* | cegcc*)
10709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10710 # When not using gcc, we currently assume that we are using
10711 # Microsoft Visual C++.
10712 if test "$GCC" != yes; then
10713 with_gnu_ld=no
10716 interix*)
10717 # we just hope/assume this is gcc and not c89 (= MSVC++)
10718 with_gnu_ld=yes
10720 openbsd*)
10721 with_gnu_ld=no
10723 esac
10725 ld_shlibs=yes
10727 # On some targets, GNU ld is compatible enough with the native linker
10728 # that we're better off using the native interface for both.
10729 lt_use_gnu_ld_interface=no
10730 if test "$with_gnu_ld" = yes; then
10731 case $host_os in
10732 aix*)
10733 # The AIX port of GNU ld has always aspired to compatibility
10734 # with the native linker. However, as the warning in the GNU ld
10735 # block says, versions before 2.19.5* couldn't really create working
10736 # shared libraries, regardless of the interface used.
10737 case `$LD -v 2>&1` in
10738 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10739 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10740 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10742 lt_use_gnu_ld_interface=yes
10744 esac
10747 lt_use_gnu_ld_interface=yes
10749 esac
10752 if test "$lt_use_gnu_ld_interface" = yes; then
10753 # If archive_cmds runs LD, not CC, wlarc should be empty
10754 wlarc='${wl}'
10756 # Set some defaults for GNU ld with shared library support. These
10757 # are reset later if shared libraries are not supported. Putting them
10758 # here allows them to be overridden if necessary.
10759 runpath_var=LD_RUN_PATH
10760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10761 export_dynamic_flag_spec='${wl}--export-dynamic'
10762 # ancient GNU ld didn't support --whole-archive et. al.
10763 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10764 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10765 else
10766 whole_archive_flag_spec=
10768 supports_anon_versioning=no
10769 case `$LD -v 2>&1` in
10770 *GNU\ gold*) supports_anon_versioning=yes ;;
10771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10774 *\ 2.11.*) ;; # other 2.11 versions
10775 *) supports_anon_versioning=yes ;;
10776 esac
10778 # See if GNU ld supports shared libraries.
10779 case $host_os in
10780 aix[3-9]*)
10781 # On AIX/PPC, the GNU linker is very broken
10782 if test "$host_cpu" != ia64; then
10783 ld_shlibs=no
10784 cat <<_LT_EOF 1>&2
10786 *** Warning: the GNU linker, at least up to release 2.19, is reported
10787 *** to be unable to reliably create shared libraries on AIX.
10788 *** Therefore, libtool is disabling shared libraries support. If you
10789 *** really care for shared libraries, you may want to install binutils
10790 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10791 *** You will then need to restart the configuration process.
10793 _LT_EOF
10797 amigaos*)
10798 case $host_cpu in
10799 powerpc)
10800 # see comment about AmigaOS4 .so support
10801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10802 archive_expsym_cmds=''
10804 m68k)
10805 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)'
10806 hardcode_libdir_flag_spec='-L$libdir'
10807 hardcode_minus_L=yes
10809 esac
10812 beos*)
10813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10814 allow_undefined_flag=unsupported
10815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10816 # support --undefined. This deserves some investigation. FIXME
10817 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818 else
10819 ld_shlibs=no
10823 cygwin* | mingw* | pw32* | cegcc*)
10824 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10825 # as there is no search path for DLLs.
10826 hardcode_libdir_flag_spec='-L$libdir'
10827 export_dynamic_flag_spec='${wl}--export-all-symbols'
10828 allow_undefined_flag=unsupported
10829 always_export_symbols=no
10830 enable_shared_with_static_runtimes=yes
10831 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'
10832 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10834 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10836 # If the export-symbols file already is a .def file (1st line
10837 # is EXPORTS), use it as is; otherwise, prepend...
10838 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10839 cp $export_symbols $output_objdir/$soname.def;
10840 else
10841 echo EXPORTS > $output_objdir/$soname.def;
10842 cat $export_symbols >> $output_objdir/$soname.def;
10844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10845 else
10846 ld_shlibs=no
10850 haiku*)
10851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10852 link_all_deplibs=yes
10855 interix[3-9]*)
10856 hardcode_direct=no
10857 hardcode_shlibpath_var=no
10858 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10859 export_dynamic_flag_spec='${wl}-E'
10860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10861 # Instead, shared libraries are loaded at an image base (0x10000000 by
10862 # default) and relocated if they conflict, which is a slow very memory
10863 # consuming and fragmenting process. To avoid this, we pick a random,
10864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10867 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'
10870 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10871 tmp_diet=no
10872 if test "$host_os" = linux-dietlibc; then
10873 case $cc_basename in
10874 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10875 esac
10877 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10878 && test "$tmp_diet" = no
10879 then
10880 tmp_addflag=' $pic_flag'
10881 tmp_sharedflag='-shared'
10882 case $cc_basename,$host_cpu in
10883 pgcc*) # Portland Group C compiler
10884 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'
10885 tmp_addflag=' $pic_flag'
10887 pgf77* | pgf90* | pgf95* | pgfortran*)
10888 # Portland Group f77 and f90 compilers
10889 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'
10890 tmp_addflag=' $pic_flag -Mnomain' ;;
10891 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10892 tmp_addflag=' -i_dynamic' ;;
10893 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10894 tmp_addflag=' -i_dynamic -nofor_main' ;;
10895 ifc* | ifort*) # Intel Fortran compiler
10896 tmp_addflag=' -nofor_main' ;;
10897 lf95*) # Lahey Fortran 8.1
10898 whole_archive_flag_spec=
10899 tmp_sharedflag='--shared' ;;
10900 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10901 tmp_sharedflag='-qmkshrobj'
10902 tmp_addflag= ;;
10903 nvcc*) # Cuda Compiler Driver 2.2
10904 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'
10905 compiler_needs_object=yes
10907 esac
10908 case `$CC -V 2>&1 | sed 5q` in
10909 *Sun\ C*) # Sun C 5.9
10910 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'
10911 compiler_needs_object=yes
10912 tmp_sharedflag='-G' ;;
10913 *Sun\ F*) # Sun Fortran 8.3
10914 tmp_sharedflag='-G' ;;
10915 esac
10916 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10918 if test "x$supports_anon_versioning" = xyes; then
10919 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10920 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10921 echo "local: *; };" >> $output_objdir/$libname.ver~
10922 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10925 case $cc_basename in
10926 xlf* | bgf* | bgxlf* | mpixlf*)
10927 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10928 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10930 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10931 if test "x$supports_anon_versioning" = xyes; then
10932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10934 echo "local: *; };" >> $output_objdir/$libname.ver~
10935 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10938 esac
10939 else
10940 ld_shlibs=no
10944 netbsd*)
10945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10946 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10947 wlarc=
10948 else
10949 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10950 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10954 solaris*)
10955 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10956 ld_shlibs=no
10957 cat <<_LT_EOF 1>&2
10959 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10960 *** create shared libraries on Solaris systems. Therefore, libtool
10961 *** is disabling shared libraries support. We urge you to upgrade GNU
10962 *** binutils to release 2.9.1 or newer. Another option is to modify
10963 *** your PATH or compiler configuration so that the native linker is
10964 *** used, and then restart.
10966 _LT_EOF
10967 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10969 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10970 else
10971 ld_shlibs=no
10975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10976 case `$LD -v 2>&1` in
10977 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10978 ld_shlibs=no
10979 cat <<_LT_EOF 1>&2
10981 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10982 *** reliably create shared libraries on SCO systems. Therefore, libtool
10983 *** is disabling shared libraries support. We urge you to upgrade GNU
10984 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10985 *** your PATH or compiler configuration so that the native linker is
10986 *** used, and then restart.
10988 _LT_EOF
10991 # For security reasons, it is highly recommended that you always
10992 # use absolute paths for naming shared libraries, and exclude the
10993 # DT_RUNPATH tag from executables and libraries. But doing so
10994 # requires that you compile everything twice, which is a pain.
10995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10999 else
11000 ld_shlibs=no
11003 esac
11006 sunos4*)
11007 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11008 wlarc=
11009 hardcode_direct=yes
11010 hardcode_shlibpath_var=no
11014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11016 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11017 else
11018 ld_shlibs=no
11021 esac
11023 if test "$ld_shlibs" = no; then
11024 runpath_var=
11025 hardcode_libdir_flag_spec=
11026 export_dynamic_flag_spec=
11027 whole_archive_flag_spec=
11029 else
11030 # PORTME fill in a description of your system's linker (not GNU ld)
11031 case $host_os in
11032 aix3*)
11033 allow_undefined_flag=unsupported
11034 always_export_symbols=yes
11035 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'
11036 # Note: this linker hardcodes the directories in LIBPATH if there
11037 # are no directories specified by -L.
11038 hardcode_minus_L=yes
11039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11040 # Neither direct hardcoding nor static linking is supported with a
11041 # broken collect2.
11042 hardcode_direct=unsupported
11046 aix[4-9]*)
11047 if test "$host_cpu" = ia64; then
11048 # On IA64, the linker does run time linking by default, so we don't
11049 # have to do anything special.
11050 aix_use_runtimelinking=no
11051 exp_sym_flag='-Bexport'
11052 no_entry_flag=""
11053 else
11054 # If we're using GNU nm, then we don't want the "-C" option.
11055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11056 # Also, AIX nm treats weak defined symbols like other global
11057 # defined symbols, whereas GNU nm marks them as "W".
11058 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11059 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'
11060 else
11061 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'
11063 aix_use_runtimelinking=no
11065 # Test if we are trying to use run time linking or normal
11066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11067 # need to do runtime linking.
11068 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11069 for ld_flag in $LDFLAGS; do
11070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11071 aix_use_runtimelinking=yes
11072 break
11074 done
11076 esac
11078 exp_sym_flag='-bexport'
11079 no_entry_flag='-bnoentry'
11082 # When large executables or shared objects are built, AIX ld can
11083 # have problems creating the table of contents. If linking a library
11084 # or program results in "error TOC overflow" add -mminimal-toc to
11085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11088 archive_cmds=''
11089 hardcode_direct=yes
11090 hardcode_direct_absolute=yes
11091 hardcode_libdir_separator=':'
11092 link_all_deplibs=yes
11093 file_list_spec='${wl}-f,'
11095 if test "$GCC" = yes; then
11096 case $host_os in aix4.[012]|aix4.[012].*)
11097 # We only want to do this on AIX 4.2 and lower, the check
11098 # below for broken collect2 doesn't work under 4.3+
11099 collect2name=`${CC} -print-prog-name=collect2`
11100 if test -f "$collect2name" &&
11101 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11102 then
11103 # We have reworked collect2
11105 else
11106 # We have old collect2
11107 hardcode_direct=unsupported
11108 # It fails to find uninstalled libraries when the uninstalled
11109 # path is not listed in the libpath. Setting hardcode_minus_L
11110 # to unsupported forces relinking
11111 hardcode_minus_L=yes
11112 hardcode_libdir_flag_spec='-L$libdir'
11113 hardcode_libdir_separator=
11116 esac
11117 shared_flag='-shared'
11118 if test "$aix_use_runtimelinking" = yes; then
11119 shared_flag="$shared_flag "'${wl}-G'
11121 else
11122 # not using gcc
11123 if test "$host_cpu" = ia64; then
11124 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11125 # chokes on -Wl,-G. The following line is correct:
11126 shared_flag='-G'
11127 else
11128 if test "$aix_use_runtimelinking" = yes; then
11129 shared_flag='${wl}-G'
11130 else
11131 shared_flag='${wl}-bM:SRE'
11136 export_dynamic_flag_spec='${wl}-bexpall'
11137 # It seems that -bexpall does not export symbols beginning with
11138 # underscore (_), so it is better to generate a list of symbols to export.
11139 always_export_symbols=yes
11140 if test "$aix_use_runtimelinking" = yes; then
11141 # Warning - without using the other runtime loading flags (-brtl),
11142 # -berok will link without error, but may produce a broken library.
11143 allow_undefined_flag='-berok'
11144 # Determine the default libpath from the value encoded in an
11145 # empty executable.
11146 if test "${lt_cv_aix_libpath+set}" = set; then
11147 aix_libpath=$lt_cv_aix_libpath
11148 else
11149 if ${lt_cv_aix_libpath_+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11156 main ()
11160 return 0;
11162 _ACEOF
11163 if ac_fn_c_try_link "$LINENO"; then :
11165 lt_aix_libpath_sed='
11166 /Import File Strings/,/^$/ {
11167 /^0/ {
11168 s/^0 *\([^ ]*\) *$/\1/
11172 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11173 # Check for a 64-bit object if we didn't find anything.
11174 if test -z "$lt_cv_aix_libpath_"; then
11175 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11178 rm -f core conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11180 if test -z "$lt_cv_aix_libpath_"; then
11181 lt_cv_aix_libpath_="/usr/lib:/lib"
11186 aix_libpath=$lt_cv_aix_libpath_
11189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11190 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"
11191 else
11192 if test "$host_cpu" = ia64; then
11193 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11194 allow_undefined_flag="-z nodefs"
11195 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"
11196 else
11197 # Determine the default libpath from the value encoded in an
11198 # empty executable.
11199 if test "${lt_cv_aix_libpath+set}" = set; then
11200 aix_libpath=$lt_cv_aix_libpath
11201 else
11202 if ${lt_cv_aix_libpath_+:} false; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11209 main ()
11213 return 0;
11215 _ACEOF
11216 if ac_fn_c_try_link "$LINENO"; then :
11218 lt_aix_libpath_sed='
11219 /Import File Strings/,/^$/ {
11220 /^0/ {
11221 s/^0 *\([^ ]*\) *$/\1/
11225 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11226 # Check for a 64-bit object if we didn't find anything.
11227 if test -z "$lt_cv_aix_libpath_"; then
11228 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11231 rm -f core conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11233 if test -z "$lt_cv_aix_libpath_"; then
11234 lt_cv_aix_libpath_="/usr/lib:/lib"
11239 aix_libpath=$lt_cv_aix_libpath_
11242 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11243 # Warning - without using the other run time loading flags,
11244 # -berok will link without error, but may produce a broken library.
11245 no_undefined_flag=' ${wl}-bernotok'
11246 allow_undefined_flag=' ${wl}-berok'
11247 if test "$with_gnu_ld" = yes; then
11248 # We only use this code for GNU lds that support --whole-archive.
11249 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11250 else
11251 # Exported symbols can be pulled into shared objects from archives
11252 whole_archive_flag_spec='$convenience'
11254 archive_cmds_need_lc=yes
11255 # This is similar to how AIX traditionally builds its shared libraries.
11256 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'
11261 amigaos*)
11262 case $host_cpu in
11263 powerpc)
11264 # see comment about AmigaOS4 .so support
11265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11266 archive_expsym_cmds=''
11268 m68k)
11269 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)'
11270 hardcode_libdir_flag_spec='-L$libdir'
11271 hardcode_minus_L=yes
11273 esac
11276 bsdi[45]*)
11277 export_dynamic_flag_spec=-rdynamic
11280 cygwin* | mingw* | pw32* | cegcc*)
11281 # When not using gcc, we currently assume that we are using
11282 # Microsoft Visual C++.
11283 # hardcode_libdir_flag_spec is actually meaningless, as there is
11284 # no search path for DLLs.
11285 case $cc_basename in
11286 cl*)
11287 # Native MSVC
11288 hardcode_libdir_flag_spec=' '
11289 allow_undefined_flag=unsupported
11290 always_export_symbols=yes
11291 file_list_spec='@'
11292 # Tell ltmain to make .lib files, not .a files.
11293 libext=lib
11294 # Tell ltmain to make .dll files, not .so files.
11295 shrext_cmds=".dll"
11296 # FIXME: Setting linknames here is a bad hack.
11297 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11298 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11299 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11300 else
11301 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11303 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11304 linknames='
11305 # The linker will not automatically build a static lib if we build a DLL.
11306 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11307 enable_shared_with_static_runtimes=yes
11308 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11309 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11310 # Don't use ranlib
11311 old_postinstall_cmds='chmod 644 $oldlib'
11312 postlink_cmds='lt_outputfile="@OUTPUT@"~
11313 lt_tool_outputfile="@TOOL_OUTPUT@"~
11314 case $lt_outputfile in
11315 *.exe|*.EXE) ;;
11317 lt_outputfile="$lt_outputfile.exe"
11318 lt_tool_outputfile="$lt_tool_outputfile.exe"
11320 esac~
11321 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11322 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11323 $RM "$lt_outputfile.manifest";
11327 # Assume MSVC wrapper
11328 hardcode_libdir_flag_spec=' '
11329 allow_undefined_flag=unsupported
11330 # Tell ltmain to make .lib files, not .a files.
11331 libext=lib
11332 # Tell ltmain to make .dll files, not .so files.
11333 shrext_cmds=".dll"
11334 # FIXME: Setting linknames here is a bad hack.
11335 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11336 # The linker will automatically build a .lib file if we build a DLL.
11337 old_archive_from_new_cmds='true'
11338 # FIXME: Should let the user specify the lib program.
11339 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11340 enable_shared_with_static_runtimes=yes
11342 esac
11345 darwin* | rhapsody*)
11348 archive_cmds_need_lc=no
11349 hardcode_direct=no
11350 hardcode_automatic=yes
11351 hardcode_shlibpath_var=unsupported
11352 if test "$lt_cv_ld_force_load" = "yes"; then
11353 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\"`'
11355 else
11356 whole_archive_flag_spec=''
11358 link_all_deplibs=yes
11359 allow_undefined_flag="$_lt_dar_allow_undefined"
11360 case $cc_basename in
11361 ifort*) _lt_dar_can_shared=yes ;;
11362 *) _lt_dar_can_shared=$GCC ;;
11363 esac
11364 if test "$_lt_dar_can_shared" = "yes"; then
11365 output_verbose_link_cmd=func_echo_all
11366 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11367 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11368 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}"
11369 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}"
11371 else
11372 ld_shlibs=no
11377 dgux*)
11378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11379 hardcode_libdir_flag_spec='-L$libdir'
11380 hardcode_shlibpath_var=no
11383 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11384 # support. Future versions do this automatically, but an explicit c++rt0.o
11385 # does not break anything, and helps significantly (at the cost of a little
11386 # extra space).
11387 freebsd2.2*)
11388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11389 hardcode_libdir_flag_spec='-R$libdir'
11390 hardcode_direct=yes
11391 hardcode_shlibpath_var=no
11394 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11395 freebsd2.*)
11396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11397 hardcode_direct=yes
11398 hardcode_minus_L=yes
11399 hardcode_shlibpath_var=no
11402 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11403 freebsd* | dragonfly*)
11404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11405 hardcode_libdir_flag_spec='-R$libdir'
11406 hardcode_direct=yes
11407 hardcode_shlibpath_var=no
11410 hpux9*)
11411 if test "$GCC" = yes; then
11412 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'
11413 else
11414 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'
11416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11417 hardcode_libdir_separator=:
11418 hardcode_direct=yes
11420 # hardcode_minus_L: Not really in the search PATH,
11421 # but as the default location of the library.
11422 hardcode_minus_L=yes
11423 export_dynamic_flag_spec='${wl}-E'
11426 hpux10*)
11427 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11428 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11429 else
11430 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11432 if test "$with_gnu_ld" = no; then
11433 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11434 hardcode_libdir_separator=:
11435 hardcode_direct=yes
11436 hardcode_direct_absolute=yes
11437 export_dynamic_flag_spec='${wl}-E'
11438 # hardcode_minus_L: Not really in the search PATH,
11439 # but as the default location of the library.
11440 hardcode_minus_L=yes
11444 hpux11*)
11445 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11446 case $host_cpu in
11447 hppa*64*)
11448 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11450 ia64*)
11451 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11454 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11456 esac
11457 else
11458 case $host_cpu in
11459 hppa*64*)
11460 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11462 ia64*)
11463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11467 # Older versions of the 11.00 compiler do not understand -b yet
11468 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11470 $as_echo_n "checking if $CC understands -b... " >&6; }
11471 if ${lt_cv_prog_compiler__b+:} false; then :
11472 $as_echo_n "(cached) " >&6
11473 else
11474 lt_cv_prog_compiler__b=no
11475 save_LDFLAGS="$LDFLAGS"
11476 LDFLAGS="$LDFLAGS -b"
11477 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11478 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11479 # The linker can only warn and ignore the option if not recognized
11480 # So say no if there are warnings
11481 if test -s conftest.err; then
11482 # Append any errors to the config.log.
11483 cat conftest.err 1>&5
11484 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11486 if diff conftest.exp conftest.er2 >/dev/null; then
11487 lt_cv_prog_compiler__b=yes
11489 else
11490 lt_cv_prog_compiler__b=yes
11493 $RM -r conftest*
11494 LDFLAGS="$save_LDFLAGS"
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11498 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11500 if test x"$lt_cv_prog_compiler__b" = xyes; then
11501 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11502 else
11503 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11507 esac
11509 if test "$with_gnu_ld" = no; then
11510 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11511 hardcode_libdir_separator=:
11513 case $host_cpu in
11514 hppa*64*|ia64*)
11515 hardcode_direct=no
11516 hardcode_shlibpath_var=no
11519 hardcode_direct=yes
11520 hardcode_direct_absolute=yes
11521 export_dynamic_flag_spec='${wl}-E'
11523 # hardcode_minus_L: Not really in the search PATH,
11524 # but as the default location of the library.
11525 hardcode_minus_L=yes
11527 esac
11531 irix5* | irix6* | nonstopux*)
11532 if test "$GCC" = yes; then
11533 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'
11534 # Try to use the -exported_symbol ld option, if it does not
11535 # work, assume that -exports_file does not work either and
11536 # implicitly export all symbols.
11537 # This should be the same for all languages, so no per-tag cache variable.
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11539 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11540 if ${lt_cv_irix_exported_symbol+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 save_LDFLAGS="$LDFLAGS"
11544 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11547 int foo (void) { return 0; }
11548 _ACEOF
11549 if ac_fn_c_try_link "$LINENO"; then :
11550 lt_cv_irix_exported_symbol=yes
11551 else
11552 lt_cv_irix_exported_symbol=no
11554 rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11556 LDFLAGS="$save_LDFLAGS"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11559 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11560 if test "$lt_cv_irix_exported_symbol" = yes; then
11561 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'
11563 else
11564 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'
11565 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'
11567 archive_cmds_need_lc='no'
11568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11569 hardcode_libdir_separator=:
11570 inherit_rpath=yes
11571 link_all_deplibs=yes
11574 netbsd*)
11575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11577 else
11578 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11580 hardcode_libdir_flag_spec='-R$libdir'
11581 hardcode_direct=yes
11582 hardcode_shlibpath_var=no
11585 newsos6)
11586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11587 hardcode_direct=yes
11588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11589 hardcode_libdir_separator=:
11590 hardcode_shlibpath_var=no
11593 *nto* | *qnx*)
11596 openbsd*)
11597 if test -f /usr/libexec/ld.so; then
11598 hardcode_direct=yes
11599 hardcode_shlibpath_var=no
11600 hardcode_direct_absolute=yes
11601 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11602 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11603 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11604 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11605 export_dynamic_flag_spec='${wl}-E'
11606 else
11607 case $host_os in
11608 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11610 hardcode_libdir_flag_spec='-R$libdir'
11613 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11616 esac
11618 else
11619 ld_shlibs=no
11623 os2*)
11624 hardcode_libdir_flag_spec='-L$libdir'
11625 hardcode_minus_L=yes
11626 allow_undefined_flag=unsupported
11627 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'
11628 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11631 osf3*)
11632 if test "$GCC" = yes; then
11633 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11634 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'
11635 else
11636 allow_undefined_flag=' -expect_unresolved \*'
11637 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'
11639 archive_cmds_need_lc='no'
11640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11641 hardcode_libdir_separator=:
11644 osf4* | osf5*) # as osf3* with the addition of -msym flag
11645 if test "$GCC" = yes; then
11646 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11647 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'
11648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11649 else
11650 allow_undefined_flag=' -expect_unresolved \*'
11651 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'
11652 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~
11653 $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'
11655 # Both c and cxx compiler support -rpath directly
11656 hardcode_libdir_flag_spec='-rpath $libdir'
11658 archive_cmds_need_lc='no'
11659 hardcode_libdir_separator=:
11662 solaris*)
11663 no_undefined_flag=' -z defs'
11664 if test "$GCC" = yes; then
11665 wlarc='${wl}'
11666 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11667 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11668 $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'
11669 else
11670 case `$CC -V 2>&1` in
11671 *"Compilers 5.0"*)
11672 wlarc=''
11673 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11674 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11675 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11678 wlarc='${wl}'
11679 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11680 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11681 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11683 esac
11685 hardcode_libdir_flag_spec='-R$libdir'
11686 hardcode_shlibpath_var=no
11687 case $host_os in
11688 solaris2.[0-5] | solaris2.[0-5].*) ;;
11690 # The compiler driver will combine and reorder linker options,
11691 # but understands `-z linker_flag'. GCC discards it without `$wl',
11692 # but is careful enough not to reorder.
11693 # Supported since Solaris 2.6 (maybe 2.5.1?)
11694 if test "$GCC" = yes; then
11695 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11696 else
11697 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11700 esac
11701 link_all_deplibs=yes
11704 sunos4*)
11705 if test "x$host_vendor" = xsequent; then
11706 # Use $CC to link under sequent, because it throws in some extra .o
11707 # files that make .init and .fini sections work.
11708 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11709 else
11710 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11712 hardcode_libdir_flag_spec='-L$libdir'
11713 hardcode_direct=yes
11714 hardcode_minus_L=yes
11715 hardcode_shlibpath_var=no
11718 sysv4)
11719 case $host_vendor in
11720 sni)
11721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11722 hardcode_direct=yes # is this really true???
11724 siemens)
11725 ## LD is ld it makes a PLAMLIB
11726 ## CC just makes a GrossModule.
11727 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11728 reload_cmds='$CC -r -o $output$reload_objs'
11729 hardcode_direct=no
11731 motorola)
11732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11733 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11735 esac
11736 runpath_var='LD_RUN_PATH'
11737 hardcode_shlibpath_var=no
11740 sysv4.3*)
11741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11742 hardcode_shlibpath_var=no
11743 export_dynamic_flag_spec='-Bexport'
11746 sysv4*MP*)
11747 if test -d /usr/nec; then
11748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11749 hardcode_shlibpath_var=no
11750 runpath_var=LD_RUN_PATH
11751 hardcode_runpath_var=yes
11752 ld_shlibs=yes
11756 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11757 no_undefined_flag='${wl}-z,text'
11758 archive_cmds_need_lc=no
11759 hardcode_shlibpath_var=no
11760 runpath_var='LD_RUN_PATH'
11762 if test "$GCC" = yes; then
11763 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11764 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11765 else
11766 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11767 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11771 sysv5* | sco3.2v5* | sco5v6*)
11772 # Note: We can NOT use -z defs as we might desire, because we do not
11773 # link with -lc, and that would cause any symbols used from libc to
11774 # always be unresolved, which means just about no library would
11775 # ever link correctly. If we're not using GNU ld we use -z text
11776 # though, which does catch some bad symbols but isn't as heavy-handed
11777 # as -z defs.
11778 no_undefined_flag='${wl}-z,text'
11779 allow_undefined_flag='${wl}-z,nodefs'
11780 archive_cmds_need_lc=no
11781 hardcode_shlibpath_var=no
11782 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11783 hardcode_libdir_separator=':'
11784 link_all_deplibs=yes
11785 export_dynamic_flag_spec='${wl}-Bexport'
11786 runpath_var='LD_RUN_PATH'
11788 if test "$GCC" = yes; then
11789 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11790 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11791 else
11792 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11793 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 uts4*)
11798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11799 hardcode_libdir_flag_spec='-L$libdir'
11800 hardcode_shlibpath_var=no
11804 ld_shlibs=no
11806 esac
11808 if test x$host_vendor = xsni; then
11809 case $host in
11810 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11811 export_dynamic_flag_spec='${wl}-Blargedynsym'
11813 esac
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11818 $as_echo "$ld_shlibs" >&6; }
11819 test "$ld_shlibs" = no && can_build_shared=no
11821 with_gnu_ld=$with_gnu_ld
11838 # Do we need to explicitly link libc?
11840 case "x$archive_cmds_need_lc" in
11841 x|xyes)
11842 # Assume -lc should be added
11843 archive_cmds_need_lc=yes
11845 if test "$enable_shared" = yes && test "$GCC" = yes; then
11846 case $archive_cmds in
11847 *'~'*)
11848 # FIXME: we may have to deal with multi-command sequences.
11850 '$CC '*)
11851 # Test whether the compiler implicitly links with -lc since on some
11852 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11853 # to ld, don't add -lc before -lgcc.
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11855 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11856 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 $RM conftest*
11860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11863 (eval $ac_compile) 2>&5
11864 ac_status=$?
11865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11866 test $ac_status = 0; } 2>conftest.err; then
11867 soname=conftest
11868 lib=conftest
11869 libobjs=conftest.$ac_objext
11870 deplibs=
11871 wl=$lt_prog_compiler_wl
11872 pic_flag=$lt_prog_compiler_pic
11873 compiler_flags=-v
11874 linker_flags=-v
11875 verstring=
11876 output_objdir=.
11877 libname=conftest
11878 lt_save_allow_undefined_flag=$allow_undefined_flag
11879 allow_undefined_flag=
11880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11881 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11882 ac_status=$?
11883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11884 test $ac_status = 0; }
11885 then
11886 lt_cv_archive_cmds_need_lc=no
11887 else
11888 lt_cv_archive_cmds_need_lc=yes
11890 allow_undefined_flag=$lt_save_allow_undefined_flag
11891 else
11892 cat conftest.err 1>&5
11894 $RM conftest*
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11898 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11899 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11901 esac
11904 esac
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12058 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12060 if test "$GCC" = yes; then
12061 case $host_os in
12062 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12063 *) lt_awk_arg="/^libraries:/" ;;
12064 esac
12065 case $host_os in
12066 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12067 *) lt_sed_strip_eq="s,=/,/,g" ;;
12068 esac
12069 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12070 case $lt_search_path_spec in
12071 *\;*)
12072 # if the path contains ";" then we assume it to be the separator
12073 # otherwise default to the standard path separator (i.e. ":") - it is
12074 # assumed that no part of a normal pathname contains ";" but that should
12075 # okay in the real world where ";" in dirpaths is itself problematic.
12076 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12079 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12081 esac
12082 # Ok, now we have the path, separated by spaces, we can step through it
12083 # and add multilib dir if necessary.
12084 lt_tmp_lt_search_path_spec=
12085 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12086 for lt_sys_path in $lt_search_path_spec; do
12087 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12088 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12089 else
12090 test -d "$lt_sys_path" && \
12091 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12093 done
12094 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12095 BEGIN {RS=" "; FS="/|\n";} {
12096 lt_foo="";
12097 lt_count=0;
12098 for (lt_i = NF; lt_i > 0; lt_i--) {
12099 if ($lt_i != "" && $lt_i != ".") {
12100 if ($lt_i == "..") {
12101 lt_count++;
12102 } else {
12103 if (lt_count == 0) {
12104 lt_foo="/" $lt_i lt_foo;
12105 } else {
12106 lt_count--;
12111 if (lt_foo != "") { lt_freq[lt_foo]++; }
12112 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12114 # AWK program above erroneously prepends '/' to C:/dos/paths
12115 # for these hosts.
12116 case $host_os in
12117 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12118 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12119 esac
12120 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12121 else
12122 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12124 library_names_spec=
12125 libname_spec='lib$name'
12126 soname_spec=
12127 shrext_cmds=".so"
12128 postinstall_cmds=
12129 postuninstall_cmds=
12130 finish_cmds=
12131 finish_eval=
12132 shlibpath_var=
12133 shlibpath_overrides_runpath=unknown
12134 version_type=none
12135 dynamic_linker="$host_os ld.so"
12136 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12137 need_lib_prefix=unknown
12138 hardcode_into_libs=no
12140 # when you set need_version to no, make sure it does not cause -set_version
12141 # flags to be left without arguments
12142 need_version=unknown
12144 case $host_os in
12145 aix3*)
12146 version_type=linux # correct to gnu/linux during the next big refactor
12147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12148 shlibpath_var=LIBPATH
12150 # AIX 3 has no versioning support, so we append a major version to the name.
12151 soname_spec='${libname}${release}${shared_ext}$major'
12154 aix[4-9]*)
12155 version_type=linux # correct to gnu/linux during the next big refactor
12156 need_lib_prefix=no
12157 need_version=no
12158 hardcode_into_libs=yes
12159 if test "$host_cpu" = ia64; then
12160 # AIX 5 supports IA64
12161 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 else
12164 # With GCC up to 2.95.x, collect2 would create an import file
12165 # for dependence libraries. The import file would start with
12166 # the line `#! .'. This would cause the generated library to
12167 # depend on `.', always an invalid library. This was fixed in
12168 # development snapshots of GCC prior to 3.0.
12169 case $host_os in
12170 aix4 | aix4.[01] | aix4.[01].*)
12171 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12172 echo ' yes '
12173 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12175 else
12176 can_build_shared=no
12179 esac
12180 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12181 # soname into executable. Probably we can add versioning support to
12182 # collect2, so additional links can be useful in future.
12183 if test "$aix_use_runtimelinking" = yes; then
12184 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12185 # instead of lib<name>.a to let people know that these are not
12186 # typical AIX shared libraries.
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188 else
12189 # We preserve .a as extension for shared libraries through AIX4.2
12190 # and later when we are not doing run time linking.
12191 library_names_spec='${libname}${release}.a $libname.a'
12192 soname_spec='${libname}${release}${shared_ext}$major'
12194 shlibpath_var=LIBPATH
12198 amigaos*)
12199 case $host_cpu in
12200 powerpc)
12201 # Since July 2007 AmigaOS4 officially supports .so libraries.
12202 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205 m68k)
12206 library_names_spec='$libname.ixlibrary $libname.a'
12207 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12208 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'
12210 esac
12213 beos*)
12214 library_names_spec='${libname}${shared_ext}'
12215 dynamic_linker="$host_os ld.so"
12216 shlibpath_var=LIBRARY_PATH
12219 bsdi[45]*)
12220 version_type=linux # correct to gnu/linux during the next big refactor
12221 need_version=no
12222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12223 soname_spec='${libname}${release}${shared_ext}$major'
12224 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12227 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12228 # the default ld.so.conf also contains /usr/contrib/lib and
12229 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12230 # libtool to hard-code these into programs
12233 cygwin* | mingw* | pw32* | cegcc*)
12234 version_type=windows
12235 shrext_cmds=".dll"
12236 need_version=no
12237 need_lib_prefix=no
12239 case $GCC,$cc_basename in
12240 yes,*)
12241 # gcc
12242 library_names_spec='$libname.dll.a'
12243 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12244 postinstall_cmds='base_file=`basename \${file}`~
12245 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12246 dldir=$destdir/`dirname \$dlpath`~
12247 test -d \$dldir || mkdir -p \$dldir~
12248 $install_prog $dir/$dlname \$dldir/$dlname~
12249 chmod a+x \$dldir/$dlname~
12250 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12251 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12253 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12254 dlpath=$dir/\$dldll~
12255 $RM \$dlpath'
12256 shlibpath_overrides_runpath=yes
12258 case $host_os in
12259 cygwin*)
12260 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12261 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12265 mingw* | cegcc*)
12266 # MinGW DLLs use traditional 'lib' prefix
12267 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12269 pw32*)
12270 # pw32 DLLs use 'pw' prefix rather than 'lib'
12271 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12273 esac
12274 dynamic_linker='Win32 ld.exe'
12277 *,cl*)
12278 # Native MSVC
12279 libname_spec='$name'
12280 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12281 library_names_spec='${libname}.dll.lib'
12283 case $build_os in
12284 mingw*)
12285 sys_lib_search_path_spec=
12286 lt_save_ifs=$IFS
12287 IFS=';'
12288 for lt_path in $LIB
12290 IFS=$lt_save_ifs
12291 # Let DOS variable expansion print the short 8.3 style file name.
12292 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12293 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12294 done
12295 IFS=$lt_save_ifs
12296 # Convert to MSYS style.
12297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12299 cygwin*)
12300 # Convert to unix form, then to dos form, then back to unix form
12301 # but this time dos style (no spaces!) so that the unix form looks
12302 # like /cygdrive/c/PROGRA~1:/cygdr...
12303 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12304 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12305 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12308 sys_lib_search_path_spec="$LIB"
12309 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12310 # It is most probably a Windows format PATH.
12311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12312 else
12313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12315 # FIXME: find the short name or the path components, as spaces are
12316 # common. (e.g. "Program Files" -> "PROGRA~1")
12318 esac
12320 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12321 postinstall_cmds='base_file=`basename \${file}`~
12322 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12323 dldir=$destdir/`dirname \$dlpath`~
12324 test -d \$dldir || mkdir -p \$dldir~
12325 $install_prog $dir/$dlname \$dldir/$dlname'
12326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12327 dlpath=$dir/\$dldll~
12328 $RM \$dlpath'
12329 shlibpath_overrides_runpath=yes
12330 dynamic_linker='Win32 link.exe'
12334 # Assume MSVC wrapper
12335 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12336 dynamic_linker='Win32 ld.exe'
12338 esac
12339 # FIXME: first we should search . and the directory the executable is in
12340 shlibpath_var=PATH
12343 darwin* | rhapsody*)
12344 dynamic_linker="$host_os dyld"
12345 version_type=darwin
12346 need_lib_prefix=no
12347 need_version=no
12348 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12349 soname_spec='${libname}${release}${major}$shared_ext'
12350 shlibpath_overrides_runpath=yes
12351 shlibpath_var=DYLD_LIBRARY_PATH
12352 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12354 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12358 dgux*)
12359 version_type=linux # correct to gnu/linux during the next big refactor
12360 need_lib_prefix=no
12361 need_version=no
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12363 soname_spec='${libname}${release}${shared_ext}$major'
12364 shlibpath_var=LD_LIBRARY_PATH
12367 freebsd* | dragonfly*)
12368 # DragonFly does not have aout. When/if they implement a new
12369 # versioning mechanism, adjust this.
12370 if test -x /usr/bin/objformat; then
12371 objformat=`/usr/bin/objformat`
12372 else
12373 case $host_os in
12374 freebsd[23].*) objformat=aout ;;
12375 *) objformat=elf ;;
12376 esac
12378 version_type=freebsd-$objformat
12379 case $version_type in
12380 freebsd-elf*)
12381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12382 need_version=no
12383 need_lib_prefix=no
12385 freebsd-*)
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12387 need_version=yes
12389 esac
12390 shlibpath_var=LD_LIBRARY_PATH
12391 case $host_os in
12392 freebsd2.*)
12393 shlibpath_overrides_runpath=yes
12395 freebsd3.[01]* | freebsdelf3.[01]*)
12396 shlibpath_overrides_runpath=yes
12397 hardcode_into_libs=yes
12399 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12400 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12401 shlibpath_overrides_runpath=no
12402 hardcode_into_libs=yes
12404 *) # from 4.6 on, and DragonFly
12405 shlibpath_overrides_runpath=yes
12406 hardcode_into_libs=yes
12408 esac
12411 gnu*)
12412 version_type=linux # correct to gnu/linux during the next big refactor
12413 need_lib_prefix=no
12414 need_version=no
12415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12416 soname_spec='${libname}${release}${shared_ext}$major'
12417 shlibpath_var=LD_LIBRARY_PATH
12418 shlibpath_overrides_runpath=no
12419 hardcode_into_libs=yes
12422 haiku*)
12423 version_type=linux # correct to gnu/linux during the next big refactor
12424 need_lib_prefix=no
12425 need_version=no
12426 dynamic_linker="$host_os runtime_loader"
12427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12428 soname_spec='${libname}${release}${shared_ext}$major'
12429 shlibpath_var=LIBRARY_PATH
12430 shlibpath_overrides_runpath=yes
12431 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12432 hardcode_into_libs=yes
12435 hpux9* | hpux10* | hpux11*)
12436 # Give a soname corresponding to the major version so that dld.sl refuses to
12437 # link against other versions.
12438 version_type=sunos
12439 need_lib_prefix=no
12440 need_version=no
12441 case $host_cpu in
12442 ia64*)
12443 shrext_cmds='.so'
12444 hardcode_into_libs=yes
12445 dynamic_linker="$host_os dld.so"
12446 shlibpath_var=LD_LIBRARY_PATH
12447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12449 soname_spec='${libname}${release}${shared_ext}$major'
12450 if test "X$HPUX_IA64_MODE" = X32; then
12451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12452 else
12453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12457 hppa*64*)
12458 shrext_cmds='.sl'
12459 hardcode_into_libs=yes
12460 dynamic_linker="$host_os dld.sl"
12461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12464 soname_spec='${libname}${release}${shared_ext}$major'
12465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12469 shrext_cmds='.sl'
12470 dynamic_linker="$host_os dld.sl"
12471 shlibpath_var=SHLIB_PATH
12472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12474 soname_spec='${libname}${release}${shared_ext}$major'
12476 esac
12477 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12478 postinstall_cmds='chmod 555 $lib'
12479 # or fails outright, so override atomically:
12480 install_override_mode=555
12483 interix[3-9]*)
12484 version_type=linux # correct to gnu/linux during the next big refactor
12485 need_lib_prefix=no
12486 need_version=no
12487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12488 soname_spec='${libname}${release}${shared_ext}$major'
12489 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12490 shlibpath_var=LD_LIBRARY_PATH
12491 shlibpath_overrides_runpath=no
12492 hardcode_into_libs=yes
12495 irix5* | irix6* | nonstopux*)
12496 case $host_os in
12497 nonstopux*) version_type=nonstopux ;;
12499 if test "$lt_cv_prog_gnu_ld" = yes; then
12500 version_type=linux # correct to gnu/linux during the next big refactor
12501 else
12502 version_type=irix
12503 fi ;;
12504 esac
12505 need_lib_prefix=no
12506 need_version=no
12507 soname_spec='${libname}${release}${shared_ext}$major'
12508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12509 case $host_os in
12510 irix5* | nonstopux*)
12511 libsuff= shlibsuff=
12514 case $LD in # libtool.m4 will add one of these switches to LD
12515 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12516 libsuff= shlibsuff= libmagic=32-bit;;
12517 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12518 libsuff=32 shlibsuff=N32 libmagic=N32;;
12519 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12520 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12521 *) libsuff= shlibsuff= libmagic=never-match;;
12522 esac
12524 esac
12525 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12526 shlibpath_overrides_runpath=no
12527 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12528 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12529 hardcode_into_libs=yes
12532 # No shared lib support for Linux oldld, aout, or coff.
12533 linux*oldld* | linux*aout* | linux*coff*)
12534 dynamic_linker=no
12537 # This must be glibc/ELF.
12538 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12539 version_type=linux # correct to gnu/linux during the next big refactor
12540 need_lib_prefix=no
12541 need_version=no
12542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12543 soname_spec='${libname}${release}${shared_ext}$major'
12544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12545 shlibpath_var=LD_LIBRARY_PATH
12546 shlibpath_overrides_runpath=no
12548 # Some binutils ld are patched to set DT_RUNPATH
12549 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 lt_cv_shlibpath_overrides_runpath=no
12553 save_LDFLAGS=$LDFLAGS
12554 save_libdir=$libdir
12555 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12556 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12561 main ()
12565 return 0;
12567 _ACEOF
12568 if ac_fn_c_try_link "$LINENO"; then :
12569 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12570 lt_cv_shlibpath_overrides_runpath=yes
12573 rm -f core conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12575 LDFLAGS=$save_LDFLAGS
12576 libdir=$save_libdir
12580 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12582 # This implies no fast_install, which is unacceptable.
12583 # Some rework will be needed to allow for fast_install
12584 # before this can be enabled.
12585 hardcode_into_libs=yes
12587 # Add ABI-specific directories to the system library path.
12588 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12590 # Append ld.so.conf contents to the search path
12591 if test -f /etc/ld.so.conf; then
12592 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' ' '`
12593 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12597 # We used to test for /lib/ld.so.1 and disable shared libraries on
12598 # powerpc, because MkLinux only supported shared libraries with the
12599 # GNU dynamic linker. Since this was broken with cross compilers,
12600 # most powerpc-linux boxes support dynamic linking these days and
12601 # people can always --disable-shared, the test was removed, and we
12602 # assume the GNU/Linux dynamic linker is in use.
12603 dynamic_linker='GNU/Linux ld.so'
12606 netbsd*)
12607 version_type=sunos
12608 need_lib_prefix=no
12609 need_version=no
12610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12613 dynamic_linker='NetBSD (a.out) ld.so'
12614 else
12615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12616 soname_spec='${libname}${release}${shared_ext}$major'
12617 dynamic_linker='NetBSD ld.elf_so'
12619 shlibpath_var=LD_LIBRARY_PATH
12620 shlibpath_overrides_runpath=yes
12621 hardcode_into_libs=yes
12624 newsos6)
12625 version_type=linux # correct to gnu/linux during the next big refactor
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627 shlibpath_var=LD_LIBRARY_PATH
12628 shlibpath_overrides_runpath=yes
12631 *nto* | *qnx*)
12632 version_type=qnx
12633 need_lib_prefix=no
12634 need_version=no
12635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12636 soname_spec='${libname}${release}${shared_ext}$major'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 shlibpath_overrides_runpath=no
12639 hardcode_into_libs=yes
12640 dynamic_linker='ldqnx.so'
12643 openbsd*)
12644 version_type=sunos
12645 sys_lib_dlsearch_path_spec="/usr/lib"
12646 need_lib_prefix=no
12647 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12648 case $host_os in
12649 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12650 *) need_version=no ;;
12651 esac
12652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12654 shlibpath_var=LD_LIBRARY_PATH
12655 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12656 case $host_os in
12657 openbsd2.[89] | openbsd2.[89].*)
12658 shlibpath_overrides_runpath=no
12661 shlibpath_overrides_runpath=yes
12663 esac
12664 else
12665 shlibpath_overrides_runpath=yes
12669 os2*)
12670 libname_spec='$name'
12671 shrext_cmds=".dll"
12672 need_lib_prefix=no
12673 library_names_spec='$libname${shared_ext} $libname.a'
12674 dynamic_linker='OS/2 ld.exe'
12675 shlibpath_var=LIBPATH
12678 osf3* | osf4* | osf5*)
12679 version_type=osf
12680 need_lib_prefix=no
12681 need_version=no
12682 soname_spec='${libname}${release}${shared_ext}$major'
12683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12684 shlibpath_var=LD_LIBRARY_PATH
12685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12686 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12689 rdos*)
12690 dynamic_linker=no
12693 solaris*)
12694 version_type=linux # correct to gnu/linux during the next big refactor
12695 need_lib_prefix=no
12696 need_version=no
12697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12698 soname_spec='${libname}${release}${shared_ext}$major'
12699 shlibpath_var=LD_LIBRARY_PATH
12700 shlibpath_overrides_runpath=yes
12701 hardcode_into_libs=yes
12702 # ldd complains unless libraries are executable
12703 postinstall_cmds='chmod +x $lib'
12706 sunos4*)
12707 version_type=sunos
12708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12710 shlibpath_var=LD_LIBRARY_PATH
12711 shlibpath_overrides_runpath=yes
12712 if test "$with_gnu_ld" = yes; then
12713 need_lib_prefix=no
12715 need_version=yes
12718 sysv4 | sysv4.3*)
12719 version_type=linux # correct to gnu/linux during the next big refactor
12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12721 soname_spec='${libname}${release}${shared_ext}$major'
12722 shlibpath_var=LD_LIBRARY_PATH
12723 case $host_vendor in
12724 sni)
12725 shlibpath_overrides_runpath=no
12726 need_lib_prefix=no
12727 runpath_var=LD_RUN_PATH
12729 siemens)
12730 need_lib_prefix=no
12732 motorola)
12733 need_lib_prefix=no
12734 need_version=no
12735 shlibpath_overrides_runpath=no
12736 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12738 esac
12741 sysv4*MP*)
12742 if test -d /usr/nec ;then
12743 version_type=linux # correct to gnu/linux during the next big refactor
12744 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12745 soname_spec='$libname${shared_ext}.$major'
12746 shlibpath_var=LD_LIBRARY_PATH
12750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12751 version_type=freebsd-elf
12752 need_lib_prefix=no
12753 need_version=no
12754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12755 soname_spec='${libname}${release}${shared_ext}$major'
12756 shlibpath_var=LD_LIBRARY_PATH
12757 shlibpath_overrides_runpath=yes
12758 hardcode_into_libs=yes
12759 if test "$with_gnu_ld" = yes; then
12760 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12761 else
12762 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12763 case $host_os in
12764 sco3.2v5*)
12765 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12767 esac
12769 sys_lib_dlsearch_path_spec='/usr/lib'
12772 tpf*)
12773 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12774 version_type=linux # correct to gnu/linux during the next big refactor
12775 need_lib_prefix=no
12776 need_version=no
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12778 shlibpath_var=LD_LIBRARY_PATH
12779 shlibpath_overrides_runpath=no
12780 hardcode_into_libs=yes
12783 uts4*)
12784 version_type=linux # correct to gnu/linux during the next big refactor
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12786 soname_spec='${libname}${release}${shared_ext}$major'
12787 shlibpath_var=LD_LIBRARY_PATH
12791 dynamic_linker=no
12793 esac
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12795 $as_echo "$dynamic_linker" >&6; }
12796 test "$dynamic_linker" = no && can_build_shared=no
12798 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12799 if test "$GCC" = yes; then
12800 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12803 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12804 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12806 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12807 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12902 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12903 hardcode_action=
12904 if test -n "$hardcode_libdir_flag_spec" ||
12905 test -n "$runpath_var" ||
12906 test "X$hardcode_automatic" = "Xyes" ; then
12908 # We can hardcode non-existent directories.
12909 if test "$hardcode_direct" != no &&
12910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12911 # have to relink, otherwise we might link with an installed library
12912 # when we should be linking with a yet-to-be-installed one
12913 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12914 test "$hardcode_minus_L" != no; then
12915 # Linking always hardcodes the temporary library directory.
12916 hardcode_action=relink
12917 else
12918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12919 hardcode_action=immediate
12921 else
12922 # We cannot hardcode anything, or else we can only hardcode existing
12923 # directories.
12924 hardcode_action=unsupported
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12927 $as_echo "$hardcode_action" >&6; }
12929 if test "$hardcode_action" = relink ||
12930 test "$inherit_rpath" = yes; then
12931 # Fast installation is not supported
12932 enable_fast_install=no
12933 elif test "$shlibpath_overrides_runpath" = yes ||
12934 test "$enable_shared" = no; then
12935 # Fast installation is not necessary
12936 enable_fast_install=needless
12944 if test "x$enable_dlopen" != xyes; then
12945 enable_dlopen=unknown
12946 enable_dlopen_self=unknown
12947 enable_dlopen_self_static=unknown
12948 else
12949 lt_cv_dlopen=no
12950 lt_cv_dlopen_libs=
12952 case $host_os in
12953 beos*)
12954 lt_cv_dlopen="load_add_on"
12955 lt_cv_dlopen_libs=
12956 lt_cv_dlopen_self=yes
12959 mingw* | pw32* | cegcc*)
12960 lt_cv_dlopen="LoadLibrary"
12961 lt_cv_dlopen_libs=
12964 cygwin*)
12965 lt_cv_dlopen="dlopen"
12966 lt_cv_dlopen_libs=
12969 darwin*)
12970 # if libdl is installed we need to link against it
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12972 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12973 if ${ac_cv_lib_dl_dlopen+:} false; then :
12974 $as_echo_n "(cached) " >&6
12975 else
12976 ac_check_lib_save_LIBS=$LIBS
12977 LIBS="-ldl $LIBS"
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12981 /* Override any GCC internal prototype to avoid an error.
12982 Use char because int might match the return type of a GCC
12983 builtin and then its argument prototype would still apply. */
12984 #ifdef __cplusplus
12985 extern "C"
12986 #endif
12987 char dlopen ();
12989 main ()
12991 return dlopen ();
12993 return 0;
12995 _ACEOF
12996 if ac_fn_c_try_link "$LINENO"; then :
12997 ac_cv_lib_dl_dlopen=yes
12998 else
12999 ac_cv_lib_dl_dlopen=no
13001 rm -f core conftest.err conftest.$ac_objext \
13002 conftest$ac_exeext conftest.$ac_ext
13003 LIBS=$ac_check_lib_save_LIBS
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13006 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13007 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13008 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13009 else
13011 lt_cv_dlopen="dyld"
13012 lt_cv_dlopen_libs=
13013 lt_cv_dlopen_self=yes
13020 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13021 if test "x$ac_cv_func_shl_load" = xyes; then :
13022 lt_cv_dlopen="shl_load"
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13025 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13026 if ${ac_cv_lib_dld_shl_load+:} false; then :
13027 $as_echo_n "(cached) " >&6
13028 else
13029 ac_check_lib_save_LIBS=$LIBS
13030 LIBS="-ldld $LIBS"
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13034 /* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 char shl_load ();
13042 main ()
13044 return shl_load ();
13046 return 0;
13048 _ACEOF
13049 if ac_fn_c_try_link "$LINENO"; then :
13050 ac_cv_lib_dld_shl_load=yes
13051 else
13052 ac_cv_lib_dld_shl_load=no
13054 rm -f core conftest.err conftest.$ac_objext \
13055 conftest$ac_exeext conftest.$ac_ext
13056 LIBS=$ac_check_lib_save_LIBS
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13059 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13060 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13061 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13062 else
13063 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13064 if test "x$ac_cv_func_dlopen" = xyes; then :
13065 lt_cv_dlopen="dlopen"
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13068 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13069 if ${ac_cv_lib_dl_dlopen+:} false; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 ac_check_lib_save_LIBS=$LIBS
13073 LIBS="-ldl $LIBS"
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char dlopen ();
13085 main ()
13087 return dlopen ();
13089 return 0;
13091 _ACEOF
13092 if ac_fn_c_try_link "$LINENO"; then :
13093 ac_cv_lib_dl_dlopen=yes
13094 else
13095 ac_cv_lib_dl_dlopen=no
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099 LIBS=$ac_check_lib_save_LIBS
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13102 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13103 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13105 else
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13107 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13108 if ${ac_cv_lib_svld_dlopen+:} false; then :
13109 $as_echo_n "(cached) " >&6
13110 else
13111 ac_check_lib_save_LIBS=$LIBS
13112 LIBS="-lsvld $LIBS"
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13116 /* Override any GCC internal prototype to avoid an error.
13117 Use char because int might match the return type of a GCC
13118 builtin and then its argument prototype would still apply. */
13119 #ifdef __cplusplus
13120 extern "C"
13121 #endif
13122 char dlopen ();
13124 main ()
13126 return dlopen ();
13128 return 0;
13130 _ACEOF
13131 if ac_fn_c_try_link "$LINENO"; then :
13132 ac_cv_lib_svld_dlopen=yes
13133 else
13134 ac_cv_lib_svld_dlopen=no
13136 rm -f core conftest.err conftest.$ac_objext \
13137 conftest$ac_exeext conftest.$ac_ext
13138 LIBS=$ac_check_lib_save_LIBS
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13141 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13142 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13146 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13147 if ${ac_cv_lib_dld_dld_link+:} false; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 ac_check_lib_save_LIBS=$LIBS
13151 LIBS="-ldld $LIBS"
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13155 /* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
13157 builtin and then its argument prototype would still apply. */
13158 #ifdef __cplusplus
13159 extern "C"
13160 #endif
13161 char dld_link ();
13163 main ()
13165 return dld_link ();
13167 return 0;
13169 _ACEOF
13170 if ac_fn_c_try_link "$LINENO"; then :
13171 ac_cv_lib_dld_dld_link=yes
13172 else
13173 ac_cv_lib_dld_dld_link=no
13175 rm -f core conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13180 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13181 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13182 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13201 esac
13203 if test "x$lt_cv_dlopen" != xno; then
13204 enable_dlopen=yes
13205 else
13206 enable_dlopen=no
13209 case $lt_cv_dlopen in
13210 dlopen)
13211 save_CPPFLAGS="$CPPFLAGS"
13212 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13214 save_LDFLAGS="$LDFLAGS"
13215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13217 save_LIBS="$LIBS"
13218 LIBS="$lt_cv_dlopen_libs $LIBS"
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13221 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13222 if ${lt_cv_dlopen_self+:} false; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 if test "$cross_compiling" = yes; then :
13226 lt_cv_dlopen_self=cross
13227 else
13228 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13229 lt_status=$lt_dlunknown
13230 cat > conftest.$ac_ext <<_LT_EOF
13231 #line $LINENO "configure"
13232 #include "confdefs.h"
13234 #if HAVE_DLFCN_H
13235 #include <dlfcn.h>
13236 #endif
13238 #include <stdio.h>
13240 #ifdef RTLD_GLOBAL
13241 # define LT_DLGLOBAL RTLD_GLOBAL
13242 #else
13243 # ifdef DL_GLOBAL
13244 # define LT_DLGLOBAL DL_GLOBAL
13245 # else
13246 # define LT_DLGLOBAL 0
13247 # endif
13248 #endif
13250 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13251 find out it does not work in some platform. */
13252 #ifndef LT_DLLAZY_OR_NOW
13253 # ifdef RTLD_LAZY
13254 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13255 # else
13256 # ifdef DL_LAZY
13257 # define LT_DLLAZY_OR_NOW DL_LAZY
13258 # else
13259 # ifdef RTLD_NOW
13260 # define LT_DLLAZY_OR_NOW RTLD_NOW
13261 # else
13262 # ifdef DL_NOW
13263 # define LT_DLLAZY_OR_NOW DL_NOW
13264 # else
13265 # define LT_DLLAZY_OR_NOW 0
13266 # endif
13267 # endif
13268 # endif
13269 # endif
13270 #endif
13272 /* When -fvisbility=hidden is used, assume the code has been annotated
13273 correspondingly for the symbols needed. */
13274 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13275 int fnord () __attribute__((visibility("default")));
13276 #endif
13278 int fnord () { return 42; }
13279 int main ()
13281 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13282 int status = $lt_dlunknown;
13284 if (self)
13286 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13287 else
13289 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13290 else puts (dlerror ());
13292 /* dlclose (self); */
13294 else
13295 puts (dlerror ());
13297 return status;
13299 _LT_EOF
13300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13301 (eval $ac_link) 2>&5
13302 ac_status=$?
13303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13304 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13305 (./conftest; exit; ) >&5 2>/dev/null
13306 lt_status=$?
13307 case x$lt_status in
13308 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13309 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13310 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13311 esac
13312 else :
13313 # compilation failed
13314 lt_cv_dlopen_self=no
13317 rm -fr conftest*
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13322 $as_echo "$lt_cv_dlopen_self" >&6; }
13324 if test "x$lt_cv_dlopen_self" = xyes; then
13325 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13327 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13328 if ${lt_cv_dlopen_self_static+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 if test "$cross_compiling" = yes; then :
13332 lt_cv_dlopen_self_static=cross
13333 else
13334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13335 lt_status=$lt_dlunknown
13336 cat > conftest.$ac_ext <<_LT_EOF
13337 #line $LINENO "configure"
13338 #include "confdefs.h"
13340 #if HAVE_DLFCN_H
13341 #include <dlfcn.h>
13342 #endif
13344 #include <stdio.h>
13346 #ifdef RTLD_GLOBAL
13347 # define LT_DLGLOBAL RTLD_GLOBAL
13348 #else
13349 # ifdef DL_GLOBAL
13350 # define LT_DLGLOBAL DL_GLOBAL
13351 # else
13352 # define LT_DLGLOBAL 0
13353 # endif
13354 #endif
13356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13357 find out it does not work in some platform. */
13358 #ifndef LT_DLLAZY_OR_NOW
13359 # ifdef RTLD_LAZY
13360 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13361 # else
13362 # ifdef DL_LAZY
13363 # define LT_DLLAZY_OR_NOW DL_LAZY
13364 # else
13365 # ifdef RTLD_NOW
13366 # define LT_DLLAZY_OR_NOW RTLD_NOW
13367 # else
13368 # ifdef DL_NOW
13369 # define LT_DLLAZY_OR_NOW DL_NOW
13370 # else
13371 # define LT_DLLAZY_OR_NOW 0
13372 # endif
13373 # endif
13374 # endif
13375 # endif
13376 #endif
13378 /* When -fvisbility=hidden is used, assume the code has been annotated
13379 correspondingly for the symbols needed. */
13380 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13381 int fnord () __attribute__((visibility("default")));
13382 #endif
13384 int fnord () { return 42; }
13385 int main ()
13387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13388 int status = $lt_dlunknown;
13390 if (self)
13392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13393 else
13395 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13396 else puts (dlerror ());
13398 /* dlclose (self); */
13400 else
13401 puts (dlerror ());
13403 return status;
13405 _LT_EOF
13406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13407 (eval $ac_link) 2>&5
13408 ac_status=$?
13409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13410 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13411 (./conftest; exit; ) >&5 2>/dev/null
13412 lt_status=$?
13413 case x$lt_status in
13414 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13415 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13416 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13417 esac
13418 else :
13419 # compilation failed
13420 lt_cv_dlopen_self_static=no
13423 rm -fr conftest*
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13428 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13431 CPPFLAGS="$save_CPPFLAGS"
13432 LDFLAGS="$save_LDFLAGS"
13433 LIBS="$save_LIBS"
13435 esac
13437 case $lt_cv_dlopen_self in
13438 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13439 *) enable_dlopen_self=unknown ;;
13440 esac
13442 case $lt_cv_dlopen_self_static in
13443 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13444 *) enable_dlopen_self_static=unknown ;;
13445 esac
13464 striplib=
13465 old_striplib=
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13467 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13468 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13469 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13470 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13472 $as_echo "yes" >&6; }
13473 else
13474 # FIXME - insert some real tests, host_os isn't really good enough
13475 case $host_os in
13476 darwin*)
13477 if test -n "$STRIP" ; then
13478 striplib="$STRIP -x"
13479 old_striplib="$STRIP -S"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13481 $as_echo "yes" >&6; }
13482 else
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13484 $as_echo "no" >&6; }
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489 $as_echo "no" >&6; }
13491 esac
13505 # Report which library types will actually be built
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13507 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13509 $as_echo "$can_build_shared" >&6; }
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13512 $as_echo_n "checking whether to build shared libraries... " >&6; }
13513 test "$can_build_shared" = "no" && enable_shared=no
13515 # On AIX, shared libraries and static libraries use the same namespace, and
13516 # are all built from PIC.
13517 case $host_os in
13518 aix3*)
13519 test "$enable_shared" = yes && enable_static=no
13520 if test -n "$RANLIB"; then
13521 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13522 postinstall_cmds='$RANLIB $lib'
13526 aix[4-9]*)
13527 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13528 test "$enable_shared" = yes && enable_static=no
13531 esac
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13533 $as_echo "$enable_shared" >&6; }
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13536 $as_echo_n "checking whether to build static libraries... " >&6; }
13537 # Make sure either enable_shared or enable_static is yes.
13538 test "$enable_shared" = yes || enable_static=yes
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13540 $as_echo "$enable_static" >&6; }
13546 ac_ext=c
13547 ac_cpp='$CPP $CPPFLAGS'
13548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13552 CC="$lt_save_CC"
13568 ac_config_commands="$ac_config_commands libtool"
13573 # Only expand once:
13576 if test -n "$ac_tool_prefix"; then
13577 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13578 set dummy ${ac_tool_prefix}windres; ac_word=$2
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580 $as_echo_n "checking for $ac_word... " >&6; }
13581 if ${ac_cv_prog_RC+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 if test -n "$RC"; then
13585 ac_cv_prog_RC="$RC" # Let the user override the test.
13586 else
13587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588 for as_dir in $PATH
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
13592 for ac_exec_ext in '' $ac_executable_extensions; do
13593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13594 ac_cv_prog_RC="${ac_tool_prefix}windres"
13595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 break 2
13598 done
13599 done
13600 IFS=$as_save_IFS
13604 RC=$ac_cv_prog_RC
13605 if test -n "$RC"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
13607 $as_echo "$RC" >&6; }
13608 else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13615 if test -z "$ac_cv_prog_RC"; then
13616 ac_ct_RC=$RC
13617 # Extract the first word of "windres", so it can be a program name with args.
13618 set dummy windres; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if ${ac_cv_prog_ac_ct_RC+:} false; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 if test -n "$ac_ct_RC"; then
13625 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634 ac_cv_prog_ac_ct_RC="windres"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13638 done
13639 done
13640 IFS=$as_save_IFS
13644 ac_ct_RC=$ac_cv_prog_ac_ct_RC
13645 if test -n "$ac_ct_RC"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
13647 $as_echo "$ac_ct_RC" >&6; }
13648 else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13653 if test "x$ac_ct_RC" = x; then
13654 RC=""
13655 else
13656 case $cross_compiling:$ac_tool_warned in
13657 yes:)
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13660 ac_tool_warned=yes ;;
13661 esac
13662 RC=$ac_ct_RC
13664 else
13665 RC="$ac_cv_prog_RC"
13671 # Source file extension for RC test sources.
13672 ac_ext=rc
13674 # Object file extension for compiled RC test sources.
13675 objext=o
13676 objext_RC=$objext
13678 # Code to be used in simple compile tests
13679 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13681 # Code to be used in simple link tests
13682 lt_simple_link_test_code="$lt_simple_compile_test_code"
13684 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13691 # If no C compiler was specified, use CC.
13692 LTCC=${LTCC-"$CC"}
13694 # If no C compiler flags were specified, use CFLAGS.
13695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13697 # Allow CC to be a program name with arguments.
13698 compiler=$CC
13701 # save warnings/boilerplate of simple test code
13702 ac_outfile=conftest.$ac_objext
13703 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13704 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13705 _lt_compiler_boilerplate=`cat conftest.err`
13706 $RM conftest*
13708 ac_outfile=conftest.$ac_objext
13709 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13710 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13711 _lt_linker_boilerplate=`cat conftest.err`
13712 $RM -r conftest*
13715 # Allow CC to be a program name with arguments.
13716 lt_save_CC="$CC"
13717 lt_save_CFLAGS=$CFLAGS
13718 lt_save_GCC=$GCC
13719 GCC=
13720 CC=${RC-"windres"}
13721 CFLAGS=
13722 compiler=$CC
13723 compiler_RC=$CC
13724 for cc_temp in $compiler""; do
13725 case $cc_temp in
13726 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13727 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13728 \-*) ;;
13729 *) break;;
13730 esac
13731 done
13732 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13734 lt_cv_prog_compiler_c_o_RC=yes
13736 if test -n "$compiler"; then
13743 GCC=$lt_save_GCC
13744 ac_ext=c
13745 ac_cpp='$CPP $CPPFLAGS'
13746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13750 CC=$lt_save_CC
13751 CFLAGS=$lt_save_CFLAGS
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13756 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13757 if ${ac_cv_c_const+:} false; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13764 main ()
13767 #ifndef __cplusplus
13768 /* Ultrix mips cc rejects this sort of thing. */
13769 typedef int charset[2];
13770 const charset cs = { 0, 0 };
13771 /* SunOS 4.1.1 cc rejects this. */
13772 char const *const *pcpcc;
13773 char **ppc;
13774 /* NEC SVR4.0.2 mips cc rejects this. */
13775 struct point {int x, y;};
13776 static struct point const zero = {0,0};
13777 /* AIX XL C 1.02.0.0 rejects this.
13778 It does not let you subtract one const X* pointer from another in
13779 an arm of an if-expression whose if-part is not a constant
13780 expression */
13781 const char *g = "string";
13782 pcpcc = &g + (g ? g-g : 0);
13783 /* HPUX 7.0 cc rejects these. */
13784 ++pcpcc;
13785 ppc = (char**) pcpcc;
13786 pcpcc = (char const *const *) ppc;
13787 { /* SCO 3.2v4 cc rejects this sort of thing. */
13788 char tx;
13789 char *t = &tx;
13790 char const *s = 0 ? (char *) 0 : (char const *) 0;
13792 *t++ = 0;
13793 if (s) return 0;
13795 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13796 int x[] = {25, 17};
13797 const int *foo = &x[0];
13798 ++foo;
13800 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13801 typedef const int *iptr;
13802 iptr p = 0;
13803 ++p;
13805 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13806 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13807 struct s { int j; const int *ap[3]; } bx;
13808 struct s *b = &bx; b->j = 5;
13810 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13811 const int foo = 10;
13812 if (!foo) return 0;
13814 return !cs[0] && !zero.x;
13815 #endif
13818 return 0;
13820 _ACEOF
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822 ac_cv_c_const=yes
13823 else
13824 ac_cv_c_const=no
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13829 $as_echo "$ac_cv_c_const" >&6; }
13830 if test $ac_cv_c_const = no; then
13832 $as_echo "#define const /**/" >>confdefs.h
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13837 $as_echo_n "checking for inline... " >&6; }
13838 if ${ac_cv_c_inline+:} false; then :
13839 $as_echo_n "(cached) " >&6
13840 else
13841 ac_cv_c_inline=no
13842 for ac_kw in inline __inline__ __inline; do
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13845 #ifndef __cplusplus
13846 typedef int foo_t;
13847 static $ac_kw foo_t static_foo () {return 0; }
13848 $ac_kw foo_t foo () {return 0; }
13849 #endif
13851 _ACEOF
13852 if ac_fn_c_try_compile "$LINENO"; then :
13853 ac_cv_c_inline=$ac_kw
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 test "$ac_cv_c_inline" != no && break
13857 done
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13861 $as_echo "$ac_cv_c_inline" >&6; }
13863 case $ac_cv_c_inline in
13864 inline | yes) ;;
13866 case $ac_cv_c_inline in
13867 no) ac_val=;;
13868 *) ac_val=$ac_cv_c_inline;;
13869 esac
13870 cat >>confdefs.h <<_ACEOF
13871 #ifndef __cplusplus
13872 #define inline $ac_val
13873 #endif
13874 _ACEOF
13876 esac
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13879 $as_echo_n "checking for working volatile... " >&6; }
13880 if ${ac_cv_c_volatile+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13887 main ()
13890 volatile int x;
13891 int * volatile y = (int *) 0;
13892 return !x && !y;
13894 return 0;
13896 _ACEOF
13897 if ac_fn_c_try_compile "$LINENO"; then :
13898 ac_cv_c_volatile=yes
13899 else
13900 ac_cv_c_volatile=no
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13905 $as_echo "$ac_cv_c_volatile" >&6; }
13906 if test $ac_cv_c_volatile = no; then
13908 $as_echo "#define volatile /**/" >>confdefs.h
13912 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13913 if test "x$ac_cv_type_off_t" = xyes; then :
13915 else
13917 cat >>confdefs.h <<_ACEOF
13918 #define off_t long int
13919 _ACEOF
13923 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13924 if test "x$ac_cv_type_pid_t" = xyes; then :
13926 else
13928 cat >>confdefs.h <<_ACEOF
13929 #define pid_t int
13930 _ACEOF
13934 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13935 if test "x$ac_cv_type_size_t" = xyes; then :
13937 else
13939 cat >>confdefs.h <<_ACEOF
13940 #define size_t unsigned int
13941 _ACEOF
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13946 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13947 if ${ac_cv_type_uid_t+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13951 /* end confdefs.h. */
13952 #include <sys/types.h>
13954 _ACEOF
13955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13956 $EGREP "uid_t" >/dev/null 2>&1; then :
13957 ac_cv_type_uid_t=yes
13958 else
13959 ac_cv_type_uid_t=no
13961 rm -f conftest*
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13965 $as_echo "$ac_cv_type_uid_t" >&6; }
13966 if test $ac_cv_type_uid_t = no; then
13968 $as_echo "#define uid_t int" >>confdefs.h
13971 $as_echo "#define gid_t int" >>confdefs.h
13975 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
13976 case $ac_cv_c_int8_t in #(
13977 no|yes) ;; #(
13980 cat >>confdefs.h <<_ACEOF
13981 #define int8_t $ac_cv_c_int8_t
13982 _ACEOF
13984 esac
13986 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
13987 case $ac_cv_c_int16_t in #(
13988 no|yes) ;; #(
13991 cat >>confdefs.h <<_ACEOF
13992 #define int16_t $ac_cv_c_int16_t
13993 _ACEOF
13995 esac
13997 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13998 case $ac_cv_c_int32_t in #(
13999 no|yes) ;; #(
14002 cat >>confdefs.h <<_ACEOF
14003 #define int32_t $ac_cv_c_int32_t
14004 _ACEOF
14006 esac
14008 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14009 case $ac_cv_c_int64_t in #(
14010 no|yes) ;; #(
14013 cat >>confdefs.h <<_ACEOF
14014 #define int64_t $ac_cv_c_int64_t
14015 _ACEOF
14017 esac
14019 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14020 case $ac_cv_c_uint8_t in #(
14021 no|yes) ;; #(
14024 $as_echo "#define _UINT8_T 1" >>confdefs.h
14027 cat >>confdefs.h <<_ACEOF
14028 #define uint8_t $ac_cv_c_uint8_t
14029 _ACEOF
14031 esac
14033 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14034 case $ac_cv_c_uint16_t in #(
14035 no|yes) ;; #(
14039 cat >>confdefs.h <<_ACEOF
14040 #define uint16_t $ac_cv_c_uint16_t
14041 _ACEOF
14043 esac
14045 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14046 case $ac_cv_c_uint32_t in #(
14047 no|yes) ;; #(
14050 $as_echo "#define _UINT32_T 1" >>confdefs.h
14053 cat >>confdefs.h <<_ACEOF
14054 #define uint32_t $ac_cv_c_uint32_t
14055 _ACEOF
14057 esac
14059 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14060 case $ac_cv_c_uint64_t in #(
14061 no|yes) ;; #(
14064 $as_echo "#define _UINT64_T 1" >>confdefs.h
14067 cat >>confdefs.h <<_ACEOF
14068 #define uint64_t $ac_cv_c_uint64_t
14069 _ACEOF
14071 esac
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14074 $as_echo_n "checking return type of signal handlers... " >&6; }
14075 if ${ac_cv_type_signal+:} false; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 #include <sys/types.h>
14081 #include <signal.h>
14084 main ()
14086 return *(signal (0, 0)) (0) == 1;
14088 return 0;
14090 _ACEOF
14091 if ac_fn_c_try_compile "$LINENO"; then :
14092 ac_cv_type_signal=int
14093 else
14094 ac_cv_type_signal=void
14096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14099 $as_echo "$ac_cv_type_signal" >&6; }
14101 cat >>confdefs.h <<_ACEOF
14102 #define RETSIGTYPE $ac_cv_type_signal
14103 _ACEOF
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
14107 $as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
14108 if ${ax_cv_cpp_vararg_macro_iso+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14114 #define macro(a, ...) func(a, __VA_ARGS__)
14115 int func(int a, int b, int c);
14118 main ()
14121 int i = macro(1, 2, 3);
14125 return 0;
14127 _ACEOF
14128 if ac_fn_c_try_compile "$LINENO"; then :
14129 ax_cv_cpp_vararg_macro_iso=yes
14130 else
14131 ax_cv_cpp_vararg_macro_iso=no
14134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
14138 $as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
14139 if test "x$ax_cv_cpp_vararg_macro_iso" = xyes; then :
14141 $as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
14146 $as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
14147 if ${ax_cv_cpp_vararg_macro_gcc+:} false; then :
14148 $as_echo_n "(cached) " >&6
14149 else
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14153 #define macro(a, b...) func(a, b)
14154 int func(int a, int b, int c);
14157 main ()
14160 int i = macro(1, 2, 3);
14164 return 0;
14166 _ACEOF
14167 if ac_fn_c_try_compile "$LINENO"; then :
14168 ax_cv_cpp_vararg_macro_gcc=yes
14169 else
14170 ax_cv_cpp_vararg_macro_gcc=no
14173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
14177 $as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
14178 if test "x$ax_cv_cpp_vararg_macro_gcc" = xyes; then :
14180 $as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
14185 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14186 #include <sys/types.h>
14187 #ifdef WIN32
14188 #include <ws2tcpip.h>
14189 #else
14190 #include <sys/socket.h>
14191 #endif
14195 if test "x$ac_cv_type_socklen_t" = xyes; then :
14197 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14200 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14201 if ${ax_cv_socklen_t_equiv+:} false; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14205 #AS_CASE is not supported on <autoconf-2.60
14206 case "${host}" in
14207 *-mingw*) ax_cv_socklen_t_equiv=int ;;
14209 # Systems have either "struct sockaddr *" or
14210 # "void *" as the second argument to getpeername
14211 for arg2 in "struct sockaddr" void; do
14212 for t in int size_t unsigned long "unsigned long"; do
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14216 #include <sys/types.h>
14217 #include <sys/socket.h>
14218 int getpeername (int, $arg2 *, $t *);
14221 main ()
14224 $t len;
14225 getpeername(0,0,&len);
14229 return 0;
14231 _ACEOF
14232 if ac_fn_c_try_compile "$LINENO"; then :
14233 ax_cv_socklen_t_equiv="$t"; break
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 done
14238 test -n "$ax_cv_socklen_t_equiv" && break
14239 done
14241 esac
14243 if ${ax_cv_socklen_t_equiv:+false} :; then :
14244 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14245 else
14247 cat >>confdefs.h <<_ACEOF
14248 #define socklen_t $ax_cv_socklen_t_equiv
14249 _ACEOF
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
14256 $as_echo "$ax_cv_socklen_t_equiv" >&6; }
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
14263 $as_echo_n "checking for C compiler empty array size... " >&6; }
14264 if ${ax_cv_c_empty_array+:} false; then :
14265 $as_echo_n "(cached) " >&6
14266 else
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14271 main ()
14274 struct { int foo; int bar[0]; } mystruct;
14278 return 0;
14280 _ACEOF
14281 if ac_fn_c_try_compile "$LINENO"; then :
14282 ax_cv_c_empty_array=0
14283 else
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14288 main ()
14291 struct { int foo; int bar[]; } mystruct;
14295 return 0;
14297 _ACEOF
14298 if ac_fn_c_try_compile "$LINENO"; then :
14299 ax_cv_c_empty_array=
14300 else
14301 as_fn_error $? "C compiler is unable to creaty empty arrays" "$LINENO" 5
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
14311 $as_echo "$ax_cv_c_empty_array" >&6; }
14312 cat >>confdefs.h <<_ACEOF
14313 #define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
14314 _ACEOF
14316 # The cast to long int works around a bug in the HP C Compiler
14317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14319 # This bug is HP SR number 8606223364.
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14321 $as_echo_n "checking size of unsigned int... " >&6; }
14322 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14327 else
14328 if test "$ac_cv_type_unsigned_int" = yes; then
14329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14331 as_fn_error 77 "cannot compute sizeof (unsigned int)
14332 See \`config.log' for more details" "$LINENO" 5; }
14333 else
14334 ac_cv_sizeof_unsigned_int=0
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14340 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14344 cat >>confdefs.h <<_ACEOF
14345 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14346 _ACEOF
14349 # The cast to long int works around a bug in the HP C Compiler
14350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14352 # This bug is HP SR number 8606223364.
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14354 $as_echo_n "checking size of unsigned long... " >&6; }
14355 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14356 $as_echo_n "(cached) " >&6
14357 else
14358 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14360 else
14361 if test "$ac_cv_type_unsigned_long" = yes; then
14362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14364 as_fn_error 77 "cannot compute sizeof (unsigned long)
14365 See \`config.log' for more details" "$LINENO" 5; }
14366 else
14367 ac_cv_sizeof_unsigned_long=0
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14373 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14377 cat >>confdefs.h <<_ACEOF
14378 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14379 _ACEOF
14382 for ac_header in \
14383 stdio.h stdarg.h stdbool.h limits.h \
14384 time.h errno.h fcntl.h io.h direct.h \
14385 ctype.h sys/types.h sys/socket.h \
14386 signal.h unistd.h dlfcn.h \
14387 netinet/in.h netinet/in_systm.h \
14388 netinet/tcp.h arpa/inet.h netdb.h \
14389 windows.h winsock2.h ws2tcpip.h \
14390 versionhelpers.h \
14392 do :
14393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14394 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14395 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14396 cat >>confdefs.h <<_ACEOF
14397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14398 _ACEOF
14402 done
14404 for ac_header in \
14405 sys/time.h sys/ioctl.h sys/stat.h \
14406 sys/mman.h sys/file.h sys/wait.h \
14407 unistd.h signal.h libgen.h stropts.h \
14408 syslog.h pwd.h grp.h \
14409 sys/sockio.h sys/uio.h linux/sockios.h \
14410 linux/types.h sys/poll.h sys/epoll.h err.h \
14412 do :
14413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14414 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14416 cat >>confdefs.h <<_ACEOF
14417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14418 _ACEOF
14422 done
14425 SOCKET_INCLUDES="
14426 #ifdef HAVE_STDLIB_H
14427 #include <stdlib.h>
14428 #endif
14429 #ifdef HAVE_SYS_TYPES_H
14430 #include <sys/types.h>
14431 #endif
14432 #ifdef HAVE_SYS_SOCKET_H
14433 #include <sys/socket.h>
14434 #endif
14435 #ifdef HAVE_NETINET_IN_H
14436 #include <netinet/in.h>
14437 #endif
14438 #ifdef HAVE_WINDOWS_H
14439 #include <windows.h>
14440 #endif
14441 #ifdef HAVE_WINSOCK2_H
14442 #include <winsock2.h>
14443 #endif
14444 #ifdef HAVE_WS2TCPIP_H
14445 #include <ws2tcpip.h>
14446 #endif
14447 #ifdef HAVE_NETINET_IN_SYSTM_H
14448 #include <netinet/in_systm.h>
14449 #endif
14450 #ifdef HAVE_NETINET_IP_H
14451 #include <netinet/ip.h>
14452 #endif
14455 for ac_header in net/if.h netinet/ip.h resolv.h sys/un.h net/if_utun.h sys/kern_control.h
14456 do :
14457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14458 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
14461 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14462 cat >>confdefs.h <<_ACEOF
14463 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14464 _ACEOF
14468 done
14471 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
14474 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14476 cat >>confdefs.h <<_ACEOF
14477 #define HAVE_IN_ADDR_T 1
14478 _ACEOF
14481 else
14483 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14487 ac_fn_c_check_type "$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
14490 if test "x$ac_cv_type_struct_iphdr" = xyes; then :
14492 $as_echo "#define HAVE_IPHDR 1" >>confdefs.h
14496 ac_fn_c_check_type "$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES}
14499 if test "x$ac_cv_type_struct_sock_extended_err" = xyes; then :
14501 $as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
14505 ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
14508 if test "x$ac_cv_type_struct_msghdr" = xyes; then :
14510 $as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
14514 ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
14517 if test "x$ac_cv_type_struct_cmsghdr" = xyes; then :
14519 $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
14523 ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
14526 if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
14528 $as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
14532 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
14535 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14537 else
14538 as_fn_error $? "struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
14541 ac_fn_c_check_decl "$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
14544 if test "x$ac_cv_have_decl_SO_MARK" = xyes; then :
14545 ac_have_decl=1
14546 else
14547 ac_have_decl=0
14550 cat >>confdefs.h <<_ACEOF
14551 #define HAVE_DECL_SO_MARK $ac_have_decl
14552 _ACEOF
14555 ac_fn_c_check_decl "$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
14556 #ifdef HAVE_SIGNAL_H
14557 #include <signal.h>
14558 #endif
14562 if test "x$ac_cv_have_decl_SIGHUP" = xyes; then :
14563 ac_have_decl=1
14564 else
14565 ac_have_decl=0
14568 cat >>confdefs.h <<_ACEOF
14569 #define HAVE_DECL_SIGHUP $ac_have_decl
14570 _ACEOF
14571 if test $ac_have_decl = 1; then :
14573 else
14575 $as_echo "#define SIGHUP 1" >>confdefs.h
14579 ac_fn_c_check_decl "$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
14580 #ifdef HAVE_SIGNAL_H
14581 #include <signal.h>
14582 #endif
14586 if test "x$ac_cv_have_decl_SIGINT" = xyes; then :
14587 ac_have_decl=1
14588 else
14589 ac_have_decl=0
14592 cat >>confdefs.h <<_ACEOF
14593 #define HAVE_DECL_SIGINT $ac_have_decl
14594 _ACEOF
14595 if test $ac_have_decl = 1; then :
14597 else
14599 $as_echo "#define SIGINT 2" >>confdefs.h
14603 ac_fn_c_check_decl "$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
14604 #ifdef HAVE_SIGNAL_H
14605 #include <signal.h>
14606 #endif
14610 if test "x$ac_cv_have_decl_SIGUSR1" = xyes; then :
14611 ac_have_decl=1
14612 else
14613 ac_have_decl=0
14616 cat >>confdefs.h <<_ACEOF
14617 #define HAVE_DECL_SIGUSR1 $ac_have_decl
14618 _ACEOF
14619 if test $ac_have_decl = 1; then :
14621 else
14623 $as_echo "#define SIGUSR1 10" >>confdefs.h
14627 ac_fn_c_check_decl "$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
14628 #ifdef HAVE_SIGNAL_H
14629 #include <signal.h>
14630 #endif
14634 if test "x$ac_cv_have_decl_SIGUSR2" = xyes; then :
14635 ac_have_decl=1
14636 else
14637 ac_have_decl=0
14640 cat >>confdefs.h <<_ACEOF
14641 #define HAVE_DECL_SIGUSR2 $ac_have_decl
14642 _ACEOF
14643 if test $ac_have_decl = 1; then :
14645 else
14647 $as_echo "#define SIGUSR2 12" >>confdefs.h
14651 ac_fn_c_check_decl "$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
14652 #ifdef HAVE_SIGNAL_H
14653 #include <signal.h>
14654 #endif
14658 if test "x$ac_cv_have_decl_SIGTERM" = xyes; then :
14659 ac_have_decl=1
14660 else
14661 ac_have_decl=0
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_DECL_SIGTERM $ac_have_decl
14666 _ACEOF
14667 if test $ac_have_decl = 1; then :
14669 else
14671 $as_echo "#define SIGTERM 15" >>confdefs.h
14676 for ac_header in vfork.h
14677 do :
14678 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14679 if test "x$ac_cv_header_vfork_h" = xyes; then :
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_VFORK_H 1
14682 _ACEOF
14686 done
14688 for ac_func in fork vfork
14689 do :
14690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14691 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14692 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14693 cat >>confdefs.h <<_ACEOF
14694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14695 _ACEOF
14698 done
14700 if test "x$ac_cv_func_fork" = xyes; then
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14702 $as_echo_n "checking for working fork... " >&6; }
14703 if ${ac_cv_func_fork_works+:} false; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 if test "$cross_compiling" = yes; then :
14707 ac_cv_func_fork_works=cross
14708 else
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14711 $ac_includes_default
14713 main ()
14716 /* By Ruediger Kuhlmann. */
14717 return fork () < 0;
14720 return 0;
14722 _ACEOF
14723 if ac_fn_c_try_run "$LINENO"; then :
14724 ac_cv_func_fork_works=yes
14725 else
14726 ac_cv_func_fork_works=no
14728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14729 conftest.$ac_objext conftest.beam conftest.$ac_ext
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14734 $as_echo "$ac_cv_func_fork_works" >&6; }
14736 else
14737 ac_cv_func_fork_works=$ac_cv_func_fork
14739 if test "x$ac_cv_func_fork_works" = xcross; then
14740 case $host in
14741 *-*-amigaos* | *-*-msdosdjgpp*)
14742 # Override, as these systems have only a dummy fork() stub
14743 ac_cv_func_fork_works=no
14746 ac_cv_func_fork_works=yes
14748 esac
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14750 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14752 ac_cv_func_vfork_works=$ac_cv_func_vfork
14753 if test "x$ac_cv_func_vfork" = xyes; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14755 $as_echo_n "checking for working vfork... " >&6; }
14756 if ${ac_cv_func_vfork_works+:} false; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 if test "$cross_compiling" = yes; then :
14760 ac_cv_func_vfork_works=cross
14761 else
14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 /* Thanks to Paul Eggert for this test. */
14765 $ac_includes_default
14766 #include <sys/wait.h>
14767 #ifdef HAVE_VFORK_H
14768 # include <vfork.h>
14769 #endif
14770 /* On some sparc systems, changes by the child to local and incoming
14771 argument registers are propagated back to the parent. The compiler
14772 is told about this with #include <vfork.h>, but some compilers
14773 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14774 static variable whose address is put into a register that is
14775 clobbered by the vfork. */
14776 static void
14777 #ifdef __cplusplus
14778 sparc_address_test (int arg)
14779 # else
14780 sparc_address_test (arg) int arg;
14781 #endif
14783 static pid_t child;
14784 if (!child) {
14785 child = vfork ();
14786 if (child < 0) {
14787 perror ("vfork");
14788 _exit(2);
14790 if (!child) {
14791 arg = getpid();
14792 write(-1, "", 0);
14793 _exit (arg);
14799 main ()
14801 pid_t parent = getpid ();
14802 pid_t child;
14804 sparc_address_test (0);
14806 child = vfork ();
14808 if (child == 0) {
14809 /* Here is another test for sparc vfork register problems. This
14810 test uses lots of local variables, at least as many local
14811 variables as main has allocated so far including compiler
14812 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14813 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14814 reuse the register of parent for one of the local variables,
14815 since it will think that parent can't possibly be used any more
14816 in this routine. Assigning to the local variable will thus
14817 munge parent in the parent process. */
14818 pid_t
14819 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14820 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14821 /* Convince the compiler that p..p7 are live; otherwise, it might
14822 use the same hardware register for all 8 local variables. */
14823 if (p != p1 || p != p2 || p != p3 || p != p4
14824 || p != p5 || p != p6 || p != p7)
14825 _exit(1);
14827 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14828 from child file descriptors. If the child closes a descriptor
14829 before it execs or exits, this munges the parent's descriptor
14830 as well. Test for this by closing stdout in the child. */
14831 _exit(close(fileno(stdout)) != 0);
14832 } else {
14833 int status;
14834 struct stat st;
14836 while (wait(&status) != child)
14838 return (
14839 /* Was there some problem with vforking? */
14840 child < 0
14842 /* Did the child fail? (This shouldn't happen.) */
14843 || status
14845 /* Did the vfork/compiler bug occur? */
14846 || parent != getpid()
14848 /* Did the file descriptor bug occur? */
14849 || fstat(fileno(stdout), &st) != 0
14853 _ACEOF
14854 if ac_fn_c_try_run "$LINENO"; then :
14855 ac_cv_func_vfork_works=yes
14856 else
14857 ac_cv_func_vfork_works=no
14859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14860 conftest.$ac_objext conftest.beam conftest.$ac_ext
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14865 $as_echo "$ac_cv_func_vfork_works" >&6; }
14868 if test "x$ac_cv_func_fork_works" = xcross; then
14869 ac_cv_func_vfork_works=$ac_cv_func_vfork
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14871 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14874 if test "x$ac_cv_func_vfork_works" = xyes; then
14876 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14878 else
14880 $as_echo "#define vfork fork" >>confdefs.h
14883 if test "x$ac_cv_func_fork_works" = xyes; then
14885 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14890 for ac_func in \
14891 daemon chroot getpwnam setuid nice system getpid dup dup2 \
14892 getpass strerror syslog openlog mlockall getgrnam setgid \
14893 setgroups stat flock readv writev time gettimeofday \
14894 ctime memset vsnprintf strdup \
14895 setsid chdir putenv getpeername unlink \
14896 chsize ftruncate execve getpeereid umask basename dirname access \
14897 epoll_create \
14899 do :
14900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14901 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14902 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14903 cat >>confdefs.h <<_ACEOF
14904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14905 _ACEOF
14908 done
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14912 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14913 if ${ac_cv_lib_dl_dlopen+:} false; then :
14914 $as_echo_n "(cached) " >&6
14915 else
14916 ac_check_lib_save_LIBS=$LIBS
14917 LIBS="-ldl $LIBS"
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14921 /* Override any GCC internal prototype to avoid an error.
14922 Use char because int might match the return type of a GCC
14923 builtin and then its argument prototype would still apply. */
14924 #ifdef __cplusplus
14925 extern "C"
14926 #endif
14927 char dlopen ();
14929 main ()
14931 return dlopen ();
14933 return 0;
14935 _ACEOF
14936 if ac_fn_c_try_link "$LINENO"; then :
14937 ac_cv_lib_dl_dlopen=yes
14938 else
14939 ac_cv_lib_dl_dlopen=no
14941 rm -f core conftest.err conftest.$ac_objext \
14942 conftest$ac_exeext conftest.$ac_ext
14943 LIBS=$ac_check_lib_save_LIBS
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14946 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14947 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14948 DL_LIBS="-ldl"
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
14955 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
14956 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
14957 $as_echo_n "(cached) " >&6
14958 else
14959 ac_check_lib_save_LIBS=$LIBS
14960 LIBS="-lnsl $LIBS"
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14964 /* Override any GCC internal prototype to avoid an error.
14965 Use char because int might match the return type of a GCC
14966 builtin and then its argument prototype would still apply. */
14967 #ifdef __cplusplus
14968 extern "C"
14969 #endif
14970 char inet_ntoa ();
14972 main ()
14974 return inet_ntoa ();
14976 return 0;
14978 _ACEOF
14979 if ac_fn_c_try_link "$LINENO"; then :
14980 ac_cv_lib_nsl_inet_ntoa=yes
14981 else
14982 ac_cv_lib_nsl_inet_ntoa=no
14984 rm -f core conftest.err conftest.$ac_objext \
14985 conftest$ac_exeext conftest.$ac_ext
14986 LIBS=$ac_check_lib_save_LIBS
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
14989 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
14990 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
14991 SOCKETS_LIBS="${SOCKETS_LIBS} -lnsl"
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14996 $as_echo_n "checking for socket in -lsocket... " >&6; }
14997 if ${ac_cv_lib_socket_socket+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 ac_check_lib_save_LIBS=$LIBS
15001 LIBS="-lsocket $LIBS"
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15005 /* Override any GCC internal prototype to avoid an error.
15006 Use char because int might match the return type of a GCC
15007 builtin and then its argument prototype would still apply. */
15008 #ifdef __cplusplus
15009 extern "C"
15010 #endif
15011 char socket ();
15013 main ()
15015 return socket ();
15017 return 0;
15019 _ACEOF
15020 if ac_fn_c_try_link "$LINENO"; then :
15021 ac_cv_lib_socket_socket=yes
15022 else
15023 ac_cv_lib_socket_socket=no
15025 rm -f core conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15027 LIBS=$ac_check_lib_save_LIBS
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15030 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15031 if test "x$ac_cv_lib_socket_socket" = xyes; then :
15032 SOCKETS_LIBS="${SOCKETS_LIBS} -lsocket"
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
15037 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
15038 if ${ac_cv_lib_resolv_gethostbyname+:} false; then :
15039 $as_echo_n "(cached) " >&6
15040 else
15041 ac_check_lib_save_LIBS=$LIBS
15042 LIBS="-lresolv $LIBS"
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15046 /* Override any GCC internal prototype to avoid an error.
15047 Use char because int might match the return type of a GCC
15048 builtin and then its argument prototype would still apply. */
15049 #ifdef __cplusplus
15050 extern "C"
15051 #endif
15052 char gethostbyname ();
15054 main ()
15056 return gethostbyname ();
15058 return 0;
15060 _ACEOF
15061 if ac_fn_c_try_link "$LINENO"; then :
15062 ac_cv_lib_resolv_gethostbyname=yes
15063 else
15064 ac_cv_lib_resolv_gethostbyname=no
15066 rm -f core conftest.err conftest.$ac_objext \
15067 conftest$ac_exeext conftest.$ac_ext
15068 LIBS=$ac_check_lib_save_LIBS
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
15071 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
15072 if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then :
15073 SOCKETS_LIBS="${SOCKETS_LIBS} -lresolv"
15079 old_LIBS="${LIBS}"
15080 LIBS="${LIBS} ${SOCKETS_LIBS}"
15081 for ac_func in sendmsg recvmsg inet_ntop inet_pton
15082 do :
15083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15085 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15086 cat >>confdefs.h <<_ACEOF
15087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15088 _ACEOF
15091 done
15093 # Windows use stdcall for winsock so we cannot auto detect these
15096 if test "${WIN32}" = "yes"; then
15099 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
15103 $as_echo "#define HAVE_RECV 1" >>confdefs.h
15107 $as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
15111 $as_echo "#define HAVE_SEND 1" >>confdefs.h
15115 $as_echo "#define HAVE_SENDTO 1" >>confdefs.h
15119 $as_echo "#define HAVE_LISTEN 1" >>confdefs.h
15123 $as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
15127 $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
15131 $as_echo "#define HAVE_BIND 1" >>confdefs.h
15135 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
15139 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
15143 $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
15147 $as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
15151 $as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
15155 $as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
15159 $as_echo "#define HAVE_POLL 1" >>confdefs.h
15162 else
15163 for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa
15164 do :
15165 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15166 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15167 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15168 cat >>confdefs.h <<_ACEOF
15169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15170 _ACEOF
15172 else
15173 as_fn_error $? "Required library function not found" "$LINENO" 5
15176 done
15178 for ac_func in setsockopt getsockopt getsockname poll
15179 do :
15180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15182 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15183 cat >>confdefs.h <<_ACEOF
15184 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15185 _ACEOF
15188 done
15191 LIBS="${old_LIBS}"
15193 # we assume res_init() always exist, but need to find out *where*...
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
15195 $as_echo_n "checking for library containing __res_init... " >&6; }
15196 if ${ac_cv_search___res_init+:} false; then :
15197 $as_echo_n "(cached) " >&6
15198 else
15199 ac_func_search_save_LIBS=$LIBS
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15203 /* Override any GCC internal prototype to avoid an error.
15204 Use char because int might match the return type of a GCC
15205 builtin and then its argument prototype would still apply. */
15206 #ifdef __cplusplus
15207 extern "C"
15208 #endif
15209 char __res_init ();
15211 main ()
15213 return __res_init ();
15215 return 0;
15217 _ACEOF
15218 for ac_lib in '' resolv bind; do
15219 if test -z "$ac_lib"; then
15220 ac_res="none required"
15221 else
15222 ac_res=-l$ac_lib
15223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15225 if ac_fn_c_try_link "$LINENO"; then :
15226 ac_cv_search___res_init=$ac_res
15228 rm -f core conftest.err conftest.$ac_objext \
15229 conftest$ac_exeext
15230 if ${ac_cv_search___res_init+:} false; then :
15231 break
15233 done
15234 if ${ac_cv_search___res_init+:} false; then :
15236 else
15237 ac_cv_search___res_init=no
15239 rm conftest.$ac_ext
15240 LIBS=$ac_func_search_save_LIBS
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
15243 $as_echo "$ac_cv_search___res_init" >&6; }
15244 ac_res=$ac_cv_search___res_init
15245 if test "$ac_res" != no; then :
15246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15248 else
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
15250 $as_echo_n "checking for library containing res_9_init... " >&6; }
15251 if ${ac_cv_search_res_9_init+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254 ac_func_search_save_LIBS=$LIBS
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15258 /* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */
15261 #ifdef __cplusplus
15262 extern "C"
15263 #endif
15264 char res_9_init ();
15266 main ()
15268 return res_9_init ();
15270 return 0;
15272 _ACEOF
15273 for ac_lib in '' resolv bind; do
15274 if test -z "$ac_lib"; then
15275 ac_res="none required"
15276 else
15277 ac_res=-l$ac_lib
15278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15280 if ac_fn_c_try_link "$LINENO"; then :
15281 ac_cv_search_res_9_init=$ac_res
15283 rm -f core conftest.err conftest.$ac_objext \
15284 conftest$ac_exeext
15285 if ${ac_cv_search_res_9_init+:} false; then :
15286 break
15288 done
15289 if ${ac_cv_search_res_9_init+:} false; then :
15291 else
15292 ac_cv_search_res_9_init=no
15294 rm conftest.$ac_ext
15295 LIBS=$ac_func_search_save_LIBS
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
15298 $as_echo "$ac_cv_search_res_9_init" >&6; }
15299 ac_res=$ac_cv_search_res_9_init
15300 if test "$ac_res" != no; then :
15301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15303 else
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
15305 $as_echo_n "checking for library containing res_init... " >&6; }
15306 if ${ac_cv_search_res_init+:} false; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15309 ac_func_search_save_LIBS=$LIBS
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15313 /* Override any GCC internal prototype to avoid an error.
15314 Use char because int might match the return type of a GCC
15315 builtin and then its argument prototype would still apply. */
15316 #ifdef __cplusplus
15317 extern "C"
15318 #endif
15319 char res_init ();
15321 main ()
15323 return res_init ();
15325 return 0;
15327 _ACEOF
15328 for ac_lib in '' resolv bind; do
15329 if test -z "$ac_lib"; then
15330 ac_res="none required"
15331 else
15332 ac_res=-l$ac_lib
15333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15335 if ac_fn_c_try_link "$LINENO"; then :
15336 ac_cv_search_res_init=$ac_res
15338 rm -f core conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext
15340 if ${ac_cv_search_res_init+:} false; then :
15341 break
15343 done
15344 if ${ac_cv_search_res_init+:} false; then :
15346 else
15347 ac_cv_search_res_init=no
15349 rm conftest.$ac_ext
15350 LIBS=$ac_func_search_save_LIBS
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
15353 $as_echo "$ac_cv_search_res_init" >&6; }
15354 ac_res=$ac_cv_search_res_init
15355 if test "$ac_res" != no; then :
15356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15366 old_CFLAGS="${CFLAGS}"
15367 CFLAGS="${CFLAGS} ${TAP_CFLAGS}"
15368 for ac_header in \
15369 net/if_tun.h net/tun/if_tun.h \
15370 linux/if_tun.h \
15371 tap-windows.h \
15373 do :
15374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15375 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15377 cat >>confdefs.h <<_ACEOF
15378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379 _ACEOF
15380 have_tap_header="yes"
15384 done
15386 ac_fn_c_check_decl "$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
15387 #ifdef HAVE_LINUX_IF_TUN_H
15388 #include <linux/if_tun.h>
15389 #endif
15393 if test "x$ac_cv_have_decl_TUNSETPERSIST" = xyes; then :
15394 ac_have_decl=1
15395 else
15396 ac_have_decl=0
15399 cat >>confdefs.h <<_ACEOF
15400 #define HAVE_DECL_TUNSETPERSIST $ac_have_decl
15401 _ACEOF
15402 if test $ac_have_decl = 1; then :
15404 $as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
15408 CFLAGS="${old_CFLAGS}"
15409 test "${have_tap_header}" = "yes" || as_fn_error $? "no tap header could be found" "$LINENO" 5
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
15412 $as_echo_n "checking for setcon in -lselinux... " >&6; }
15413 if ${ac_cv_lib_selinux_setcon+:} false; then :
15414 $as_echo_n "(cached) " >&6
15415 else
15416 ac_check_lib_save_LIBS=$LIBS
15417 LIBS="-lselinux $LIBS"
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15421 /* Override any GCC internal prototype to avoid an error.
15422 Use char because int might match the return type of a GCC
15423 builtin and then its argument prototype would still apply. */
15424 #ifdef __cplusplus
15425 extern "C"
15426 #endif
15427 char setcon ();
15429 main ()
15431 return setcon ();
15433 return 0;
15435 _ACEOF
15436 if ac_fn_c_try_link "$LINENO"; then :
15437 ac_cv_lib_selinux_setcon=yes
15438 else
15439 ac_cv_lib_selinux_setcon=no
15441 rm -f core conftest.err conftest.$ac_objext \
15442 conftest$ac_exeext conftest.$ac_ext
15443 LIBS=$ac_check_lib_save_LIBS
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
15446 $as_echo "$ac_cv_lib_selinux_setcon" >&6; }
15447 if test "x$ac_cv_lib_selinux_setcon" = xyes; then :
15448 SELINUX_LIBS="-lselinux"
15456 if test -z "${LIBPAM_LIBS}"; then
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
15458 $as_echo_n "checking for pam_start in -lpam... " >&6; }
15459 if ${ac_cv_lib_pam_pam_start+:} false; then :
15460 $as_echo_n "(cached) " >&6
15461 else
15462 ac_check_lib_save_LIBS=$LIBS
15463 LIBS="-lpam $LIBS"
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15467 /* Override any GCC internal prototype to avoid an error.
15468 Use char because int might match the return type of a GCC
15469 builtin and then its argument prototype would still apply. */
15470 #ifdef __cplusplus
15471 extern "C"
15472 #endif
15473 char pam_start ();
15475 main ()
15477 return pam_start ();
15479 return 0;
15481 _ACEOF
15482 if ac_fn_c_try_link "$LINENO"; then :
15483 ac_cv_lib_pam_pam_start=yes
15484 else
15485 ac_cv_lib_pam_pam_start=no
15487 rm -f core conftest.err conftest.$ac_objext \
15488 conftest$ac_exeext conftest.$ac_ext
15489 LIBS=$ac_check_lib_save_LIBS
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
15492 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15493 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
15494 LIBPAM_LIBS="-lpam"
15500 case "${with_mem_check}" in
15501 valgrind)
15502 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
15503 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
15505 CFLAGS="${CFLAGS} -g -fno-inline"
15507 $as_echo "#define USE_VALGRIND 1" >>confdefs.h
15510 else
15511 as_fn_error $? "valgrind headers not found." "$LINENO" 5
15517 dmalloc)
15518 ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
15519 if test "x$ac_cv_header_dmalloc_h" = xyes; then :
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
15521 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
15522 if ${ac_cv_lib_dmalloc_malloc+:} false; then :
15523 $as_echo_n "(cached) " >&6
15524 else
15525 ac_check_lib_save_LIBS=$LIBS
15526 LIBS="-ldmalloc $LIBS"
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15530 /* Override any GCC internal prototype to avoid an error.
15531 Use char because int might match the return type of a GCC
15532 builtin and then its argument prototype would still apply. */
15533 #ifdef __cplusplus
15534 extern "C"
15535 #endif
15536 char malloc ();
15538 main ()
15540 return malloc ();
15542 return 0;
15544 _ACEOF
15545 if ac_fn_c_try_link "$LINENO"; then :
15546 ac_cv_lib_dmalloc_malloc=yes
15547 else
15548 ac_cv_lib_dmalloc_malloc=no
15550 rm -f core conftest.err conftest.$ac_objext \
15551 conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
15555 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
15556 if test "x$ac_cv_lib_dmalloc_malloc" = xyes; then :
15558 LIBS="${LIBS} -ldmalloc"
15560 $as_echo "#define DMALLOC 1" >>confdefs.h
15563 else
15564 as_fn_error $? "dmalloc library not found." "$LINENO" 5
15568 else
15569 as_fn_error $? "dmalloc headers not found." "$LINENO" 5
15575 ssl)
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
15577 $as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
15578 if ${ac_cv_lib_ssl_CRYPTO_mem_ctrl+:} false; then :
15579 $as_echo_n "(cached) " >&6
15580 else
15581 ac_check_lib_save_LIBS=$LIBS
15582 LIBS="-lssl $LIBS"
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15586 /* Override any GCC internal prototype to avoid an error.
15587 Use char because int might match the return type of a GCC
15588 builtin and then its argument prototype would still apply. */
15589 #ifdef __cplusplus
15590 extern "C"
15591 #endif
15592 char CRYPTO_mem_ctrl ();
15594 main ()
15596 return CRYPTO_mem_ctrl ();
15598 return 0;
15600 _ACEOF
15601 if ac_fn_c_try_link "$LINENO"; then :
15602 ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes
15603 else
15604 ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
15606 rm -f core conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
15608 LIBS=$ac_check_lib_save_LIBS
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
15611 $as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
15612 if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = xyes; then :
15615 $as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
15618 $as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
15620 else
15621 as_fn_error $? "Memory Debugging function in OpenSSL library not found." "$LINENO" 5
15626 esac
15629 pkg_failed=no
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15631 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15633 if test -n "$PKCS11_HELPER_CFLAGS"; then
15634 pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS"
15635 elif test -n "$PKG_CONFIG"; then
15636 if test -n "$PKG_CONFIG" && \
15637 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
15638 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
15639 ac_status=$?
15640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15641 test $ac_status = 0; }; then
15642 pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
15643 test "x$?" != "x0" && pkg_failed=yes
15644 else
15645 pkg_failed=yes
15647 else
15648 pkg_failed=untried
15650 if test -n "$PKCS11_HELPER_LIBS"; then
15651 pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS"
15652 elif test -n "$PKG_CONFIG"; then
15653 if test -n "$PKG_CONFIG" && \
15654 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
15655 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
15656 ac_status=$?
15657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15658 test $ac_status = 0; }; then
15659 pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
15660 test "x$?" != "x0" && pkg_failed=yes
15661 else
15662 pkg_failed=yes
15664 else
15665 pkg_failed=untried
15670 if test $pkg_failed = yes; then
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15672 $as_echo "no" >&6; }
15674 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15675 _pkg_short_errors_supported=yes
15676 else
15677 _pkg_short_errors_supported=no
15679 if test $_pkg_short_errors_supported = yes; then
15680 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
15681 else
15682 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
15684 # Put the nasty error message in config.log where it belongs
15685 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15689 elif test $pkg_failed = untried; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 $as_echo "no" >&6; }
15694 else
15695 PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS
15696 PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15698 $as_echo "yes" >&6; }
15699 have_pkcs11_helper="yes"
15703 pkg_failed=no
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5
15705 $as_echo_n "checking for OPENSSL_CRYPTO... " >&6; }
15707 if test -n "$OPENSSL_CRYPTO_CFLAGS"; then
15708 pkg_cv_OPENSSL_CRYPTO_CFLAGS="$OPENSSL_CRYPTO_CFLAGS"
15709 elif test -n "$PKG_CONFIG"; then
15710 if test -n "$PKG_CONFIG" && \
15711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15712 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15713 ac_status=$?
15714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15715 test $ac_status = 0; }; then
15716 pkg_cv_OPENSSL_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null`
15717 test "x$?" != "x0" && pkg_failed=yes
15718 else
15719 pkg_failed=yes
15721 else
15722 pkg_failed=untried
15724 if test -n "$OPENSSL_CRYPTO_LIBS"; then
15725 pkg_cv_OPENSSL_CRYPTO_LIBS="$OPENSSL_CRYPTO_LIBS"
15726 elif test -n "$PKG_CONFIG"; then
15727 if test -n "$PKG_CONFIG" && \
15728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15729 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15730 ac_status=$?
15731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15732 test $ac_status = 0; }; then
15733 pkg_cv_OPENSSL_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null`
15734 test "x$?" != "x0" && pkg_failed=yes
15735 else
15736 pkg_failed=yes
15738 else
15739 pkg_failed=untried
15744 if test $pkg_failed = yes; then
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15748 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15749 _pkg_short_errors_supported=yes
15750 else
15751 _pkg_short_errors_supported=no
15753 if test $_pkg_short_errors_supported = yes; then
15754 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15755 else
15756 OPENSSL_CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15758 # Put the nasty error message in config.log where it belongs
15759 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15762 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15763 if ${ac_cv_lib_crypto_RSA_new+:} false; then :
15764 $as_echo_n "(cached) " >&6
15765 else
15766 ac_check_lib_save_LIBS=$LIBS
15767 LIBS="-lcrypto $LIBS"
15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15769 /* end confdefs.h. */
15771 /* Override any GCC internal prototype to avoid an error.
15772 Use char because int might match the return type of a GCC
15773 builtin and then its argument prototype would still apply. */
15774 #ifdef __cplusplus
15775 extern "C"
15776 #endif
15777 char RSA_new ();
15779 main ()
15781 return RSA_new ();
15783 return 0;
15785 _ACEOF
15786 if ac_fn_c_try_link "$LINENO"; then :
15787 ac_cv_lib_crypto_RSA_new=yes
15788 else
15789 ac_cv_lib_crypto_RSA_new=no
15791 rm -f core conftest.err conftest.$ac_objext \
15792 conftest$ac_exeext conftest.$ac_ext
15793 LIBS=$ac_check_lib_save_LIBS
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15796 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15797 if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then :
15799 have_openssl_crypto="yes"
15800 OPENSSL_CRYPTO_LIBS="-lcrypto"
15806 elif test $pkg_failed = untried; then
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15808 $as_echo "no" >&6; }
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15810 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15811 if ${ac_cv_lib_crypto_RSA_new+:} false; then :
15812 $as_echo_n "(cached) " >&6
15813 else
15814 ac_check_lib_save_LIBS=$LIBS
15815 LIBS="-lcrypto $LIBS"
15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h. */
15819 /* Override any GCC internal prototype to avoid an error.
15820 Use char because int might match the return type of a GCC
15821 builtin and then its argument prototype would still apply. */
15822 #ifdef __cplusplus
15823 extern "C"
15824 #endif
15825 char RSA_new ();
15827 main ()
15829 return RSA_new ();
15831 return 0;
15833 _ACEOF
15834 if ac_fn_c_try_link "$LINENO"; then :
15835 ac_cv_lib_crypto_RSA_new=yes
15836 else
15837 ac_cv_lib_crypto_RSA_new=no
15839 rm -f core conftest.err conftest.$ac_objext \
15840 conftest$ac_exeext conftest.$ac_ext
15841 LIBS=$ac_check_lib_save_LIBS
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15844 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15845 if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then :
15847 have_openssl_crypto="yes"
15848 OPENSSL_CRYPTO_LIBS="-lcrypto"
15854 else
15855 OPENSSL_CRYPTO_CFLAGS=$pkg_cv_OPENSSL_CRYPTO_CFLAGS
15856 OPENSSL_CRYPTO_LIBS=$pkg_cv_OPENSSL_CRYPTO_LIBS
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15858 $as_echo "yes" >&6; }
15859 have_openssl_crypto="yes"
15863 pkg_failed=no
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5
15865 $as_echo_n "checking for OPENSSL_SSL... " >&6; }
15867 if test -n "$OPENSSL_SSL_CFLAGS"; then
15868 pkg_cv_OPENSSL_SSL_CFLAGS="$OPENSSL_SSL_CFLAGS"
15869 elif test -n "$PKG_CONFIG"; then
15870 if test -n "$PKG_CONFIG" && \
15871 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15872 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15873 ac_status=$?
15874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15875 test $ac_status = 0; }; then
15876 pkg_cv_OPENSSL_SSL_CFLAGS=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null`
15877 test "x$?" != "x0" && pkg_failed=yes
15878 else
15879 pkg_failed=yes
15881 else
15882 pkg_failed=untried
15884 if test -n "$OPENSSL_SSL_LIBS"; then
15885 pkg_cv_OPENSSL_SSL_LIBS="$OPENSSL_SSL_LIBS"
15886 elif test -n "$PKG_CONFIG"; then
15887 if test -n "$PKG_CONFIG" && \
15888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15889 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15890 ac_status=$?
15891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892 test $ac_status = 0; }; then
15893 pkg_cv_OPENSSL_SSL_LIBS=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null`
15894 test "x$?" != "x0" && pkg_failed=yes
15895 else
15896 pkg_failed=yes
15898 else
15899 pkg_failed=untried
15904 if test $pkg_failed = yes; then
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15909 _pkg_short_errors_supported=yes
15910 else
15911 _pkg_short_errors_supported=no
15913 if test $_pkg_short_errors_supported = yes; then
15914 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15915 else
15916 OPENSSL_SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15918 # Put the nasty error message in config.log where it belongs
15919 echo "$OPENSSL_SSL_PKG_ERRORS" >&5
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15922 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15923 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
15924 $as_echo_n "(cached) " >&6
15925 else
15926 ac_check_lib_save_LIBS=$LIBS
15927 LIBS="-lssl -lcrypto
15928 $LIBS"
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15932 /* Override any GCC internal prototype to avoid an error.
15933 Use char because int might match the return type of a GCC
15934 builtin and then its argument prototype would still apply. */
15935 #ifdef __cplusplus
15936 extern "C"
15937 #endif
15938 char SSL_CTX_new ();
15940 main ()
15942 return SSL_CTX_new ();
15944 return 0;
15946 _ACEOF
15947 if ac_fn_c_try_link "$LINENO"; then :
15948 ac_cv_lib_ssl_SSL_CTX_new=yes
15949 else
15950 ac_cv_lib_ssl_SSL_CTX_new=no
15952 rm -f core conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
15954 LIBS=$ac_check_lib_save_LIBS
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
15957 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
15958 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
15960 have_openssl_ssl="yes"
15961 OPENSSL_SSL_LIBS="-lssl"
15966 elif test $pkg_failed = untried; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968 $as_echo "no" >&6; }
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15970 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15971 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
15972 $as_echo_n "(cached) " >&6
15973 else
15974 ac_check_lib_save_LIBS=$LIBS
15975 LIBS="-lssl -lcrypto
15976 $LIBS"
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15980 /* Override any GCC internal prototype to avoid an error.
15981 Use char because int might match the return type of a GCC
15982 builtin and then its argument prototype would still apply. */
15983 #ifdef __cplusplus
15984 extern "C"
15985 #endif
15986 char SSL_CTX_new ();
15988 main ()
15990 return SSL_CTX_new ();
15992 return 0;
15994 _ACEOF
15995 if ac_fn_c_try_link "$LINENO"; then :
15996 ac_cv_lib_ssl_SSL_CTX_new=yes
15997 else
15998 ac_cv_lib_ssl_SSL_CTX_new=no
16000 rm -f core conftest.err conftest.$ac_objext \
16001 conftest$ac_exeext conftest.$ac_ext
16002 LIBS=$ac_check_lib_save_LIBS
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
16005 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
16006 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
16008 have_openssl_ssl="yes"
16009 OPENSSL_SSL_LIBS="-lssl"
16014 else
16015 OPENSSL_SSL_CFLAGS=$pkg_cv_OPENSSL_SSL_CFLAGS
16016 OPENSSL_SSL_LIBS=$pkg_cv_OPENSSL_SSL_LIBS
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16018 $as_echo "yes" >&6; }
16019 have_openssl_ssl="yes"
16022 if test "${have_openssl_crypto}" = "yes"; then
16023 saved_CFLAGS="${CFLAGS}"
16024 saved_LIBS="${LIBS}"
16025 CFLAGS="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
16026 LIBS="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
16027 for ac_func in EVP_CIPHER_CTX_set_key_length
16028 do :
16029 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
16030 if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = xyes; then :
16031 cat >>confdefs.h <<_ACEOF
16032 #define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
16033 _ACEOF
16036 done
16038 have_openssl_engine="yes"
16039 for ac_func in \
16040 ENGINE_load_builtin_engines \
16041 ENGINE_register_all_complete \
16042 ENGINE_cleanup \
16044 do :
16045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16046 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16047 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16048 cat >>confdefs.h <<_ACEOF
16049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16050 _ACEOF
16052 else
16053 have_openssl_engine="no"; break
16056 done
16059 CFLAGS="${saved_CFLAGS}"
16060 LIBS="${saved_LIBS}"
16065 have_polarssl_ssl="yes"
16066 have_polarssl_crypto="yes"
16067 if test -z "${POLARSSL_LIBS}"; then
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
16069 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
16070 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
16071 $as_echo_n "(cached) " >&6
16072 else
16073 ac_check_lib_save_LIBS=$LIBS
16074 LIBS="-lpolarssl ${PKCS11_HELPER_LIBS}
16075 $LIBS"
16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h. */
16079 /* Override any GCC internal prototype to avoid an error.
16080 Use char because int might match the return type of a GCC
16081 builtin and then its argument prototype would still apply. */
16082 #ifdef __cplusplus
16083 extern "C"
16084 #endif
16085 char ssl_init ();
16087 main ()
16089 return ssl_init ();
16091 return 0;
16093 _ACEOF
16094 if ac_fn_c_try_link "$LINENO"; then :
16095 ac_cv_lib_polarssl_ssl_init=yes
16096 else
16097 ac_cv_lib_polarssl_ssl_init=no
16099 rm -f core conftest.err conftest.$ac_objext \
16100 conftest$ac_exeext conftest.$ac_ext
16101 LIBS=$ac_check_lib_save_LIBS
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
16104 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
16105 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
16106 POLARSSL_LIBS="-lpolarssl"
16107 else
16109 have_polarssl_ssl="no"
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5
16111 $as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; }
16112 if ${ac_cv_lib_polarssl_aes_crypt_cbc+:} false; then :
16113 $as_echo_n "(cached) " >&6
16114 else
16115 ac_check_lib_save_LIBS=$LIBS
16116 LIBS="-lpolarssl ${PKCS11_HELPER_LIBS}
16117 $LIBS"
16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h. */
16121 /* Override any GCC internal prototype to avoid an error.
16122 Use char because int might match the return type of a GCC
16123 builtin and then its argument prototype would still apply. */
16124 #ifdef __cplusplus
16125 extern "C"
16126 #endif
16127 char aes_crypt_cbc ();
16129 main ()
16131 return aes_crypt_cbc ();
16133 return 0;
16135 _ACEOF
16136 if ac_fn_c_try_link "$LINENO"; then :
16137 ac_cv_lib_polarssl_aes_crypt_cbc=yes
16138 else
16139 ac_cv_lib_polarssl_aes_crypt_cbc=no
16141 rm -f core conftest.err conftest.$ac_objext \
16142 conftest$ac_exeext conftest.$ac_ext
16143 LIBS=$ac_check_lib_save_LIBS
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5
16146 $as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; }
16147 if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = xyes; then :
16148 cat >>confdefs.h <<_ACEOF
16149 #define HAVE_LIBPOLARSSL 1
16150 _ACEOF
16152 LIBS="-lpolarssl $LIBS"
16154 else
16155 have_polarssl_crypto="no"
16163 if test "${with_crypto_library}" = "polarssl" ; then
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5
16165 $as_echo_n "checking polarssl version... " >&6; }
16166 old_CFLAGS="${CFLAGS}"
16167 CFLAGS="${POLARSSL_CFLAGS} ${CFLAGS}"
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16171 #include <polarssl/version.h>
16174 main ()
16177 #if POLARSSL_VERSION_NUMBER < 0x01030800 || POLARSSL_VERSION_NUMBER >= 0x01040000
16178 #error invalid version
16179 #endif
16183 return 0;
16185 _ACEOF
16186 if ac_fn_c_try_compile "$LINENO"; then :
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16188 $as_echo "ok" >&6; }
16189 else
16190 as_fn_error $? "PolarSSL 1.3.x required and must be 1.3.8 or later" "$LINENO" 5
16193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 polarssl_with_pkcs11="no"
16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16199 #include <polarssl/config.h>
16202 main ()
16205 #ifndef POLARSSL_PKCS11_C
16206 #error pkcs11 wrapper missing
16207 #endif
16211 return 0;
16213 _ACEOF
16214 if ac_fn_c_try_compile "$LINENO"; then :
16215 polarssl_with_pkcs11="yes"
16217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218 CFLAGS="${old_CFLAGS}"
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl pkcs11 support" >&5
16221 $as_echo_n "checking polarssl pkcs11 support... " >&6; }
16222 if test "${enable_pkcs11}" = "yes"; then
16223 if test "${polarssl_with_pkcs11}" = "yes"; then
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16225 $as_echo "ok" >&6; }
16226 else
16227 as_fn_error $? "polarssl has no pkcs11 wrapper compiled in" "$LINENO" 5
16229 else
16230 if test "${polarssl_with_pkcs11}" != "yes"; then
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16232 $as_echo "ok" >&6; }
16233 else
16234 as_fn_error $? "PolarSSL compiled with PKCS11, while OpenVPN is not" "$LINENO" 5
16242 have_lzo="yes"
16243 if test -z "${LZO_LIBS}"; then
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
16245 $as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
16246 if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false; then :
16247 $as_echo_n "(cached) " >&6
16248 else
16249 ac_check_lib_save_LIBS=$LIBS
16250 LIBS="-llzo2 $LIBS"
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16254 /* Override any GCC internal prototype to avoid an error.
16255 Use char because int might match the return type of a GCC
16256 builtin and then its argument prototype would still apply. */
16257 #ifdef __cplusplus
16258 extern "C"
16259 #endif
16260 char lzo1x_1_15_compress ();
16262 main ()
16264 return lzo1x_1_15_compress ();
16266 return 0;
16268 _ACEOF
16269 if ac_fn_c_try_link "$LINENO"; then :
16270 ac_cv_lib_lzo2_lzo1x_1_15_compress=yes
16271 else
16272 ac_cv_lib_lzo2_lzo1x_1_15_compress=no
16274 rm -f core conftest.err conftest.$ac_objext \
16275 conftest$ac_exeext conftest.$ac_ext
16276 LIBS=$ac_check_lib_save_LIBS
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
16279 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
16280 if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes; then :
16281 LZO_LIBS="-llzo2"
16282 else
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
16284 $as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
16285 if ${ac_cv_lib_lzo_lzo1x_1_15_compress+:} false; then :
16286 $as_echo_n "(cached) " >&6
16287 else
16288 ac_check_lib_save_LIBS=$LIBS
16289 LIBS="-llzo $LIBS"
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16293 /* Override any GCC internal prototype to avoid an error.
16294 Use char because int might match the return type of a GCC
16295 builtin and then its argument prototype would still apply. */
16296 #ifdef __cplusplus
16297 extern "C"
16298 #endif
16299 char lzo1x_1_15_compress ();
16301 main ()
16303 return lzo1x_1_15_compress ();
16305 return 0;
16307 _ACEOF
16308 if ac_fn_c_try_link "$LINENO"; then :
16309 ac_cv_lib_lzo_lzo1x_1_15_compress=yes
16310 else
16311 ac_cv_lib_lzo_lzo1x_1_15_compress=no
16313 rm -f core conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 LIBS=$ac_check_lib_save_LIBS
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
16318 $as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
16319 if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = xyes; then :
16320 LZO_LIBS="-llzo"
16321 else
16322 have_lzo="no"
16330 if test "${have_lzo}" = "yes"; then
16331 saved_CFLAGS="${CFLAGS}"
16332 CFLAGS="${CFLAGS} ${LZO_CFLAGS}"
16333 for ac_header in lzo/lzoutil.h
16334 do :
16335 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
16336 if test "x$ac_cv_header_lzo_lzoutil_h" = xyes; then :
16337 cat >>confdefs.h <<_ACEOF
16338 #define HAVE_LZO_LZOUTIL_H 1
16339 _ACEOF
16341 else
16342 for ac_header in lzoutil.h
16343 do :
16344 ac_fn_c_check_header_mongrel "$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
16345 if test "x$ac_cv_header_lzoutil_h" = xyes; then :
16346 cat >>confdefs.h <<_ACEOF
16347 #define HAVE_LZOUTIL_H 1
16348 _ACEOF
16350 else
16351 as_fn_error $? "lzoutil.h is missing" "$LINENO" 5
16355 done
16360 done
16362 for ac_header in lzo/lzo1x.h
16363 do :
16364 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
16365 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
16366 cat >>confdefs.h <<_ACEOF
16367 #define HAVE_LZO_LZO1X_H 1
16368 _ACEOF
16370 else
16371 for ac_header in lzo1x.h
16372 do :
16373 ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
16374 if test "x$ac_cv_header_lzo1x_h" = xyes; then :
16375 cat >>confdefs.h <<_ACEOF
16376 #define HAVE_LZO1X_H 1
16377 _ACEOF
16379 else
16380 as_fn_error $? "lzo1x.h is missing" "$LINENO" 5
16384 done
16389 done
16391 CFLAGS="${saved_CFLAGS}"
16396 if test "$enable_systemd" = "yes" ; then
16398 pkg_failed=no
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16400 $as_echo_n "checking for libsystemd... " >&6; }
16402 if test -n "$libsystemd_CFLAGS"; then
16403 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
16404 elif test -n "$PKG_CONFIG"; then
16405 if test -n "$PKG_CONFIG" && \
16406 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
16407 ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
16408 ac_status=$?
16409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16410 test $ac_status = 0; }; then
16411 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "systemd libsystemd" 2>/dev/null`
16412 test "x$?" != "x0" && pkg_failed=yes
16413 else
16414 pkg_failed=yes
16416 else
16417 pkg_failed=untried
16419 if test -n "$libsystemd_LIBS"; then
16420 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
16421 elif test -n "$PKG_CONFIG"; then
16422 if test -n "$PKG_CONFIG" && \
16423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
16424 ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
16425 ac_status=$?
16426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16427 test $ac_status = 0; }; then
16428 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "systemd libsystemd" 2>/dev/null`
16429 test "x$?" != "x0" && pkg_failed=yes
16430 else
16431 pkg_failed=yes
16433 else
16434 pkg_failed=untried
16439 if test $pkg_failed = yes; then
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16441 $as_echo "no" >&6; }
16443 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16444 _pkg_short_errors_supported=yes
16445 else
16446 _pkg_short_errors_supported=no
16448 if test $_pkg_short_errors_supported = yes; then
16449 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd libsystemd" 2>&1`
16450 else
16451 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd libsystemd" 2>&1`
16453 # Put the nasty error message in config.log where it belongs
16454 echo "$libsystemd_PKG_ERRORS" >&5
16457 pkg_failed=no
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16459 $as_echo_n "checking for libsystemd... " >&6; }
16461 if test -n "$libsystemd_CFLAGS"; then
16462 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
16463 elif test -n "$PKG_CONFIG"; then
16464 if test -n "$PKG_CONFIG" && \
16465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16466 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16467 ac_status=$?
16468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16469 test $ac_status = 0; }; then
16470 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16471 test "x$?" != "x0" && pkg_failed=yes
16472 else
16473 pkg_failed=yes
16475 else
16476 pkg_failed=untried
16478 if test -n "$libsystemd_LIBS"; then
16479 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
16480 elif test -n "$PKG_CONFIG"; then
16481 if test -n "$PKG_CONFIG" && \
16482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16483 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16484 ac_status=$?
16485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16486 test $ac_status = 0; }; then
16487 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16488 test "x$?" != "x0" && pkg_failed=yes
16489 else
16490 pkg_failed=yes
16492 else
16493 pkg_failed=untried
16498 if test $pkg_failed = yes; then
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16500 $as_echo "no" >&6; }
16502 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16503 _pkg_short_errors_supported=yes
16504 else
16505 _pkg_short_errors_supported=no
16507 if test $_pkg_short_errors_supported = yes; then
16508 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16509 else
16510 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16512 # Put the nasty error message in config.log where it belongs
16513 echo "$libsystemd_PKG_ERRORS" >&5
16515 as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
16517 $libsystemd_PKG_ERRORS
16519 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16520 installed software in a non-standard prefix.
16522 Alternatively, you may set the environment variables libsystemd_CFLAGS
16523 and libsystemd_LIBS to avoid the need to call pkg-config.
16524 See the pkg-config man page for more details." "$LINENO" 5
16525 elif test $pkg_failed = untried; then
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527 $as_echo "no" >&6; }
16528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16530 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16531 is in your PATH or set the PKG_CONFIG environment variable to the full
16532 path to pkg-config.
16534 Alternatively, you may set the environment variables libsystemd_CFLAGS
16535 and libsystemd_LIBS to avoid the need to call pkg-config.
16536 See the pkg-config man page for more details.
16538 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16539 See \`config.log' for more details" "$LINENO" 5; }
16540 else
16541 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
16542 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16544 $as_echo "yes" >&6; }
16548 elif test $pkg_failed = untried; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550 $as_echo "no" >&6; }
16552 pkg_failed=no
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16554 $as_echo_n "checking for libsystemd... " >&6; }
16556 if test -n "$libsystemd_CFLAGS"; then
16557 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
16558 elif test -n "$PKG_CONFIG"; then
16559 if test -n "$PKG_CONFIG" && \
16560 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16561 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16562 ac_status=$?
16563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16564 test $ac_status = 0; }; then
16565 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16566 test "x$?" != "x0" && pkg_failed=yes
16567 else
16568 pkg_failed=yes
16570 else
16571 pkg_failed=untried
16573 if test -n "$libsystemd_LIBS"; then
16574 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
16575 elif test -n "$PKG_CONFIG"; then
16576 if test -n "$PKG_CONFIG" && \
16577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16578 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16579 ac_status=$?
16580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16581 test $ac_status = 0; }; then
16582 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16583 test "x$?" != "x0" && pkg_failed=yes
16584 else
16585 pkg_failed=yes
16587 else
16588 pkg_failed=untried
16593 if test $pkg_failed = yes; then
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595 $as_echo "no" >&6; }
16597 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16598 _pkg_short_errors_supported=yes
16599 else
16600 _pkg_short_errors_supported=no
16602 if test $_pkg_short_errors_supported = yes; then
16603 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16604 else
16605 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16607 # Put the nasty error message in config.log where it belongs
16608 echo "$libsystemd_PKG_ERRORS" >&5
16610 as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
16612 $libsystemd_PKG_ERRORS
16614 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16615 installed software in a non-standard prefix.
16617 Alternatively, you may set the environment variables libsystemd_CFLAGS
16618 and libsystemd_LIBS to avoid the need to call pkg-config.
16619 See the pkg-config man page for more details." "$LINENO" 5
16620 elif test $pkg_failed = untried; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16622 $as_echo "no" >&6; }
16623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16625 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16626 is in your PATH or set the PKG_CONFIG environment variable to the full
16627 path to pkg-config.
16629 Alternatively, you may set the environment variables libsystemd_CFLAGS
16630 and libsystemd_LIBS to avoid the need to call pkg-config.
16631 See the pkg-config man page for more details.
16633 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16634 See \`config.log' for more details" "$LINENO" 5; }
16635 else
16636 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
16637 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16639 $as_echo "yes" >&6; }
16643 else
16644 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
16645 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16647 $as_echo "yes" >&6; }
16650 for ac_header in systemd/sd-daemon.h
16651 do :
16652 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
16653 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
16654 cat >>confdefs.h <<_ACEOF
16655 #define HAVE_SYSTEMD_SD_DAEMON_H 1
16656 _ACEOF
16658 else
16660 as_fn_error $? "systemd development headers not found." "$LINENO" 5
16664 done
16667 saved_LIBS="${LIBS}"
16668 LIBS="${LIBS} ${libsystemd_LIBS}"
16669 for ac_func in sd_booted
16670 do :
16671 ac_fn_c_check_func "$LINENO" "sd_booted" "ac_cv_func_sd_booted"
16672 if test "x$ac_cv_func_sd_booted" = xyes; then :
16673 cat >>confdefs.h <<_ACEOF
16674 #define HAVE_SD_BOOTED 1
16675 _ACEOF
16677 else
16678 as_fn_error $? "systemd library is missing sd_booted()" "$LINENO" 5
16680 done
16682 OPTIONAL_SYSTEMD_LIBS="${libsystemd_LIBS}"
16684 $as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
16686 LIBS="${saved_LIBS}"
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
16691 $as_echo_n "checking git checkout... " >&6; }
16692 GIT_CHECKOUT="no"
16693 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
16695 $as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
16697 GIT_CHECKOUT="yes"
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
16700 $as_echo "${GIT_CHECKOUT}" >&6; }
16702 if test -n "${SP_PLATFORM_WINDOWS}"; then
16704 cat >>confdefs.h <<_ACEOF
16705 #define PATH_SEPARATOR '\\\\'
16706 _ACEOF
16709 cat >>confdefs.h <<_ACEOF
16710 #define PATH_SEPARATOR_STR "\\\\"
16711 _ACEOF
16713 else
16715 cat >>confdefs.h <<_ACEOF
16716 #define PATH_SEPARATOR '/'
16717 _ACEOF
16720 cat >>confdefs.h <<_ACEOF
16721 #define PATH_SEPARATOR_STR "/"
16722 _ACEOF
16726 if test "${enable_x509_alt_username}" = "yes"; then
16727 if test "${with_crypto_library}" = "polarssl" ; then
16728 as_fn_error $? "PolarSSL does not support the --x509-username-field feature" "$LINENO" 5
16732 $as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
16736 test "${ac_cv_header_sys_uio_h}" = "yes" &&
16737 $as_echo "#define HAVE_IOVEC 1" >>confdefs.h
16739 test "${enable_multi}" = "yes" &&
16740 $as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
16742 test "${enable_server}" = "no" &&
16743 $as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
16745 test "${enable_management}" = "yes" &&
16746 $as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
16748 test "${enable_socks}" = "yes" &&
16749 $as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
16751 test "${enable_http_proxy}" = "yes" &&
16752 $as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
16754 test "${enable_multihome}" = "yes" &&
16755 $as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
16757 test "${enable_debug}" = "yes" &&
16758 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
16760 test "${enable_small}" = "yes" &&
16761 $as_echo "#define ENABLE_SMALL 1" >>confdefs.h
16763 test "${enable_fragment}" = "yes" &&
16764 $as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
16766 test "${enable_port_share}" = "yes" &&
16767 $as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
16769 test "${enable_def_auth}" = "yes" &&
16770 $as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
16772 test "${enable_pf}" = "yes" &&
16773 $as_echo "#define ENABLE_PF 1" >>confdefs.h
16775 test "${enable_strict_options}" = "yes" &&
16776 $as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
16779 case "${with_crypto_library}" in
16780 openssl)
16781 have_crypto_crypto="${have_openssl_crypto}"
16782 have_crypto_ssl="${have_openssl_ssl}"
16783 CRYPTO_CRYPTO_CFLAGS="${OPENSSL_CRYPTO_CFLAGS}"
16784 CRYPTO_CRYPTO_LIBS="${OPENSSL_CRYPTO_LIBS}"
16785 CRYPTO_SSL_CFLAGS="${OPENSSL_SSL_CFLAGS}"
16786 CRYPTO_SSL_LIBS="${OPENSSL_SSL_LIBS}"
16788 $as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
16790 test "${have_openssl_engine}" = "yes" &&
16791 $as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
16794 polarssl)
16795 have_crypto_crypto="${have_polarssl_crypto}"
16796 have_crypto_ssl="${have_polarssl_ssl}"
16797 CRYPTO_CRYPTO_CFLAGS="${POLARSSL_CFLAGS}"
16798 CRYPTO_CRYPTO_LIBS="${POLARSSL_LIBS}"
16800 $as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h
16803 esac
16805 if test "${enable_ssl}" = "yes"; then
16806 test "${enable_crypto}" != "yes" && as_fn_error $? "crypto must be enabled for ssl" "$LINENO" 5
16807 test "${have_crypto_ssl}" != "yes" && as_fn_error $? "${with_ssl_library} ssl is required but missing" "$LINENO" 5
16808 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
16809 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
16811 $as_echo "#define ENABLE_SSL 1" >>confdefs.h
16815 if test "${enable_crypto}" = "yes"; then
16816 test "${have_crypto_crypto}" != "yes" && as_fn_error $? "${with_crypto_library} crypto is required but missing" "$LINENO" 5
16817 test "${enable_crypto_ofb_cfb}" = "yes" &&
16818 $as_echo "#define ENABLE_OFB_CFB_MODE 1" >>confdefs.h
16820 OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
16821 OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
16823 $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
16827 if test "${enable_plugins}" = "yes"; then
16828 OPTIONAL_DL_LIBS="${DL_LIBS}"
16830 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
16832 else
16833 enable_plugin_auth_pam="no"
16834 enable_plugin_down_root="no"
16837 if test "${enable_iproute2}" = "yes"; then
16838 test -z "${IPROUTE}" && as_fn_error $? "ip utility is required but missing" "$LINENO" 5
16840 $as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
16842 else
16843 if test "${WIN32}" != "yes"; then
16844 test -z "${ROUTE}" && as_fn_error $? "route utility is required but missing" "$LINENO" 5
16845 test -z "${IFCONFIG}" && as_fn_error $? "ifconfig utility is required but missing" "$LINENO" 5
16849 if test "${enable_selinux}" = "yes"; then
16850 test -z "${SELINUX_LIBS}" && as_fn_error $? "libselinux required but missing" "$LINENO" 5
16851 OPTIONAL_SELINUX_LIBS="${SELINUX_LIBS}"
16853 $as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
16857 if test "${enable_lzo}" = "yes"; then
16858 test "${have_lzo}" != "yes" && as_fn_error $? "lzo enabled but missing" "$LINENO" 5
16859 OPTIONAL_LZO_CFLAGS="${LZO_CFLAGS}"
16860 OPTIONAL_LZO_LIBS="${LZO_LIBS}"
16862 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16865 if test "${enable_lzo_stub}" = "yes"; then
16866 test "${enable_lzo}" = "yes" && as_fn_error $? "Cannot have both lzo stub and lzo enabled" "$LINENO" 5
16868 $as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h
16871 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16875 if test "${enable_pkcs11}" = "yes"; then
16876 test "${have_pkcs11_helper}" != "yes" && as_fn_error $? "PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
16877 test "${enable_ssl}" != "yes" && as_fn_error $? "PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5
16878 OPTIONAL_PKCS11_HELPER_CFLAGS="${PKCS11_HELPER_CFLAGS}"
16879 OPTIONAL_PKCS11_HELPER_LIBS="${PKCS11_HELPER_LIBS}"
16881 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
16884 pkg_failed=no
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11KIT" >&5
16886 $as_echo_n "checking for P11KIT... " >&6; }
16888 if test -n "$P11KIT_CFLAGS"; then
16889 pkg_cv_P11KIT_CFLAGS="$P11KIT_CFLAGS"
16890 elif test -n "$PKG_CONFIG"; then
16891 if test -n "$PKG_CONFIG" && \
16892 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1\""; } >&5
16893 ($PKG_CONFIG --exists --print-errors "p11-kit-1") 2>&5
16894 ac_status=$?
16895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16896 test $ac_status = 0; }; then
16897 pkg_cv_P11KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1" 2>/dev/null`
16898 test "x$?" != "x0" && pkg_failed=yes
16899 else
16900 pkg_failed=yes
16902 else
16903 pkg_failed=untried
16905 if test -n "$P11KIT_LIBS"; then
16906 pkg_cv_P11KIT_LIBS="$P11KIT_LIBS"
16907 elif test -n "$PKG_CONFIG"; then
16908 if test -n "$PKG_CONFIG" && \
16909 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1\""; } >&5
16910 ($PKG_CONFIG --exists --print-errors "p11-kit-1") 2>&5
16911 ac_status=$?
16912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16913 test $ac_status = 0; }; then
16914 pkg_cv_P11KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1" 2>/dev/null`
16915 test "x$?" != "x0" && pkg_failed=yes
16916 else
16917 pkg_failed=yes
16919 else
16920 pkg_failed=untried
16925 if test $pkg_failed = yes; then
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927 $as_echo "no" >&6; }
16929 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16930 _pkg_short_errors_supported=yes
16931 else
16932 _pkg_short_errors_supported=no
16934 if test $_pkg_short_errors_supported = yes; then
16935 P11KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "p11-kit-1" 2>&1`
16936 else
16937 P11KIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "p11-kit-1" 2>&1`
16939 # Put the nasty error message in config.log where it belongs
16940 echo "$P11KIT_PKG_ERRORS" >&5
16944 elif test $pkg_failed = untried; then
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16946 $as_echo "no" >&6; }
16949 else
16950 P11KIT_CFLAGS=$pkg_cv_P11KIT_CFLAGS
16951 P11KIT_LIBS=$pkg_cv_P11KIT_LIBS
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16953 $as_echo "yes" >&6; }
16954 proxy_module="`$PKG_CONFIG --variable=proxy_module p11-kit-1`"
16956 cat >>confdefs.h <<_ACEOF
16957 #define DEFAULT_PKCS11_MODULE "${proxy_module}"
16958 _ACEOF
16963 if test "${enable_pedantic}" = "yes"; then
16964 enable_strict="yes"
16965 CFLAGS="${CFLAGS} -pedantic"
16966 test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi"
16968 if test "${enable_strict}" = "yes"; then
16969 CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
16972 if test "${WIN32}" = "yes"; then
16973 test -z "${MAN2HTML}" && as_fn_error $? "man2html is required for win32" "$LINENO" 5
16976 if test "${enable_plugin_auth_pam}" = "yes"; then
16977 PLUGIN_AUTH_PAM_CFLAGS="${LIBPAM_CFLAGS}"
16978 if test "${enable_pam_dlopen}" = "yes"; then
16980 $as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
16982 PLUGIN_AUTH_PAM_LIBS="${DL_LIBS}"
16983 else
16984 test -z "${LIBPAM_LIBS}" && as_fn_error $? "libpam required but missing" "$LINENO" 5
16985 PLUGIN_AUTH_PAM_LIBS="${LIBPAM_LIBS}"
16989 CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
16991 cat >>confdefs.h <<_ACEOF
16992 #define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
16993 _ACEOF
16996 TAP_WIN_COMPONENT_ID="tap0901"
16997 TAP_WIN_MIN_MAJOR="9"
16998 TAP_WIN_MIN_MINOR="9"
17000 cat >>confdefs.h <<_ACEOF
17001 #define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
17002 _ACEOF
17005 cat >>confdefs.h <<_ACEOF
17006 #define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
17007 _ACEOF
17010 cat >>confdefs.h <<_ACEOF
17011 #define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
17012 _ACEOF
17031 if test "${WIN32}" = "yes"; then
17032 WIN32_TRUE=
17033 WIN32_FALSE='#'
17034 else
17035 WIN32_TRUE='#'
17036 WIN32_FALSE=
17039 if test "${GIT_CHECKOUT}" = "yes"; then
17040 GIT_CHECKOUT_TRUE=
17041 GIT_CHECKOUT_FALSE='#'
17042 else
17043 GIT_CHECKOUT_TRUE='#'
17044 GIT_CHECKOUT_FALSE=
17047 if test "${enable_plugin_auth_pam}" = "yes"; then
17048 ENABLE_PLUGIN_AUTH_PAM_TRUE=
17049 ENABLE_PLUGIN_AUTH_PAM_FALSE='#'
17050 else
17051 ENABLE_PLUGIN_AUTH_PAM_TRUE='#'
17052 ENABLE_PLUGIN_AUTH_PAM_FALSE=
17055 if test "${enable_plugin_down_root}" = "yes"; then
17056 ENABLE_PLUGIN_DOWN_ROOT_TRUE=
17057 ENABLE_PLUGIN_DOWN_ROOT_FALSE='#'
17058 else
17059 ENABLE_PLUGIN_DOWN_ROOT_TRUE='#'
17060 ENABLE_PLUGIN_DOWN_ROOT_FALSE=
17064 plugindir="${with_plugindir}"
17065 sampledir="\$(docdir)/sample"
17069 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"
17071 ac_config_files="$ac_config_files tests/t_client.sh"
17073 cat >confcache <<\_ACEOF
17074 # This file is a shell script that caches the results of configure
17075 # tests run on this system so they can be shared between configure
17076 # scripts and configure runs, see configure's option --config-cache.
17077 # It is not useful on other systems. If it contains results you don't
17078 # want to keep, you may remove or edit it.
17080 # config.status only pays attention to the cache file if you give it
17081 # the --recheck option to rerun configure.
17083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17085 # following values.
17087 _ACEOF
17089 # The following way of writing the cache mishandles newlines in values,
17090 # but we know of no workaround that is simple, portable, and efficient.
17091 # So, we kill variables containing newlines.
17092 # Ultrix sh set writes to stderr and can't be redirected directly,
17093 # and sets the high bit in the cache file unless we assign to the vars.
17095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17096 eval ac_val=\$$ac_var
17097 case $ac_val in #(
17098 *${as_nl}*)
17099 case $ac_var in #(
17100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17102 esac
17103 case $ac_var in #(
17104 _ | IFS | as_nl) ;; #(
17105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17106 *) { eval $ac_var=; unset $ac_var;} ;;
17107 esac ;;
17108 esac
17109 done
17111 (set) 2>&1 |
17112 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17113 *${as_nl}ac_space=\ *)
17114 # `set' does not quote correctly, so add quotes: double-quote
17115 # substitution turns \\\\ into \\, and sed turns \\ into \.
17116 sed -n \
17117 "s/'/'\\\\''/g;
17118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17119 ;; #(
17121 # `set' quotes correctly as required by POSIX, so do not add quotes.
17122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17124 esac |
17125 sort
17127 sed '
17128 /^ac_cv_env_/b end
17129 t clear
17130 :clear
17131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17132 t end
17133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17134 :end' >>confcache
17135 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17136 if test -w "$cache_file"; then
17137 if test "x$cache_file" != "x/dev/null"; then
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17139 $as_echo "$as_me: updating cache $cache_file" >&6;}
17140 if test ! -f "$cache_file" || test -h "$cache_file"; then
17141 cat confcache >"$cache_file"
17142 else
17143 case $cache_file in #(
17144 */* | ?:*)
17145 mv -f confcache "$cache_file"$$ &&
17146 mv -f "$cache_file"$$ "$cache_file" ;; #(
17148 mv -f confcache "$cache_file" ;;
17149 esac
17152 else
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17154 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17157 rm -f confcache
17159 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17160 # Let make expand exec_prefix.
17161 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17163 DEFS=-DHAVE_CONFIG_H
17165 ac_libobjs=
17166 ac_ltlibobjs=
17168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17169 # 1. Remove the extension, and $U if already installed.
17170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17171 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17173 # will be set to the directory where LIBOBJS objects are built.
17174 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17175 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17176 done
17177 LIBOBJS=$ac_libobjs
17179 LTLIBOBJS=$ac_ltlibobjs
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17183 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17184 if test -n "$am_sleep_pid"; then
17185 # Hide warnings about reused PIDs.
17186 wait $am_sleep_pid 2>/dev/null
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17189 $as_echo "done" >&6; }
17190 if test -n "$EXEEXT"; then
17191 am__EXEEXT_TRUE=
17192 am__EXEEXT_FALSE='#'
17193 else
17194 am__EXEEXT_TRUE='#'
17195 am__EXEEXT_FALSE=
17198 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17199 as_fn_error $? "conditional \"AMDEP\" was never defined.
17200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17203 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17206 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
17207 as_fn_error $? "conditional \"WIN32\" was never defined.
17208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17210 if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
17211 as_fn_error $? "conditional \"GIT_CHECKOUT\" was never defined.
17212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17214 if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
17215 as_fn_error $? "conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
17216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17218 if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
17219 as_fn_error $? "conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
17220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17223 : "${CONFIG_STATUS=./config.status}"
17224 ac_write_fail=0
17225 ac_clean_files_save=$ac_clean_files
17226 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17228 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17229 as_write_fail=0
17230 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17231 #! $SHELL
17232 # Generated by $as_me.
17233 # Run this file to recreate the current configuration.
17234 # Compiler output produced by configure, useful for debugging
17235 # configure, is in config.log if it exists.
17237 debug=false
17238 ac_cs_recheck=false
17239 ac_cs_silent=false
17241 SHELL=\${CONFIG_SHELL-$SHELL}
17242 export SHELL
17243 _ASEOF
17244 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17245 ## -------------------- ##
17246 ## M4sh Initialization. ##
17247 ## -------------------- ##
17249 # Be more Bourne compatible
17250 DUALCASE=1; export DUALCASE # for MKS sh
17251 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17252 emulate sh
17253 NULLCMD=:
17254 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17255 # is contrary to our usage. Disable this feature.
17256 alias -g '${1+"$@"}'='"$@"'
17257 setopt NO_GLOB_SUBST
17258 else
17259 case `(set -o) 2>/dev/null` in #(
17260 *posix*) :
17261 set -o posix ;; #(
17262 *) :
17264 esac
17268 as_nl='
17270 export as_nl
17271 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17272 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17274 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17275 # Prefer a ksh shell builtin over an external printf program on Solaris,
17276 # but without wasting forks for bash or zsh.
17277 if test -z "$BASH_VERSION$ZSH_VERSION" \
17278 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17279 as_echo='print -r --'
17280 as_echo_n='print -rn --'
17281 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17282 as_echo='printf %s\n'
17283 as_echo_n='printf %s'
17284 else
17285 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17286 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17287 as_echo_n='/usr/ucb/echo -n'
17288 else
17289 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17290 as_echo_n_body='eval
17291 arg=$1;
17292 case $arg in #(
17293 *"$as_nl"*)
17294 expr "X$arg" : "X\\(.*\\)$as_nl";
17295 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17296 esac;
17297 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17299 export as_echo_n_body
17300 as_echo_n='sh -c $as_echo_n_body as_echo'
17302 export as_echo_body
17303 as_echo='sh -c $as_echo_body as_echo'
17306 # The user is always right.
17307 if test "${PATH_SEPARATOR+set}" != set; then
17308 PATH_SEPARATOR=:
17309 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17310 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17311 PATH_SEPARATOR=';'
17316 # IFS
17317 # We need space, tab and new line, in precisely that order. Quoting is
17318 # there to prevent editors from complaining about space-tab.
17319 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17320 # splitting by setting IFS to empty value.)
17321 IFS=" "" $as_nl"
17323 # Find who we are. Look in the path if we contain no directory separator.
17324 as_myself=
17325 case $0 in #((
17326 *[\\/]* ) as_myself=$0 ;;
17327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17328 for as_dir in $PATH
17330 IFS=$as_save_IFS
17331 test -z "$as_dir" && as_dir=.
17332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17333 done
17334 IFS=$as_save_IFS
17337 esac
17338 # We did not find ourselves, most probably we were run as `sh COMMAND'
17339 # in which case we are not to be found in the path.
17340 if test "x$as_myself" = x; then
17341 as_myself=$0
17343 if test ! -f "$as_myself"; then
17344 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17345 exit 1
17348 # Unset variables that we do not need and which cause bugs (e.g. in
17349 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17350 # suppresses any "Segmentation fault" message there. '((' could
17351 # trigger a bug in pdksh 5.2.14.
17352 for as_var in BASH_ENV ENV MAIL MAILPATH
17353 do eval test x\${$as_var+set} = xset \
17354 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17355 done
17356 PS1='$ '
17357 PS2='> '
17358 PS4='+ '
17360 # NLS nuisances.
17361 LC_ALL=C
17362 export LC_ALL
17363 LANGUAGE=C
17364 export LANGUAGE
17366 # CDPATH.
17367 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17371 # ----------------------------------------
17372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17374 # script with STATUS, using 1 if that was 0.
17375 as_fn_error ()
17377 as_status=$1; test $as_status -eq 0 && as_status=1
17378 if test "$4"; then
17379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17382 $as_echo "$as_me: error: $2" >&2
17383 as_fn_exit $as_status
17384 } # as_fn_error
17387 # as_fn_set_status STATUS
17388 # -----------------------
17389 # Set $? to STATUS, without forking.
17390 as_fn_set_status ()
17392 return $1
17393 } # as_fn_set_status
17395 # as_fn_exit STATUS
17396 # -----------------
17397 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17398 as_fn_exit ()
17400 set +e
17401 as_fn_set_status $1
17402 exit $1
17403 } # as_fn_exit
17405 # as_fn_unset ax_cv_socklen_t_equiv
17406 # ---------------------------------
17407 # Portably unset VAR.
17408 as_fn_unset ()
17410 { eval $1=; unset $1;}
17412 as_unset=as_fn_unset
17413 # as_fn_append ax_cv_socklen_t_equiv VALUE
17414 # ----------------------------------------
17415 # Append the text in VALUE to the end of the definition contained in VAR. Take
17416 # advantage of any shell optimizations that allow amortized linear growth over
17417 # repeated appends, instead of the typical quadratic growth present in naive
17418 # implementations.
17419 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17420 eval 'as_fn_append ()
17422 eval $1+=\$2
17424 else
17425 as_fn_append ()
17427 eval $1=\$$1\$2
17429 fi # as_fn_append
17431 # as_fn_arith ARG...
17432 # ------------------
17433 # Perform arithmetic evaluation on the ARGs, and store the result in the
17434 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17435 # must be portable across $(()) and expr.
17436 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17437 eval 'as_fn_arith ()
17439 as_val=$(( $* ))
17441 else
17442 as_fn_arith ()
17444 as_val=`expr "$@" || test $? -eq 1`
17446 fi # as_fn_arith
17449 if expr a : '\(a\)' >/dev/null 2>&1 &&
17450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17451 as_expr=expr
17452 else
17453 as_expr=false
17456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17457 as_basename=basename
17458 else
17459 as_basename=false
17462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17463 as_dirname=dirname
17464 else
17465 as_dirname=false
17468 as_me=`$as_basename -- "$0" ||
17469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17470 X"$0" : 'X\(//\)$' \| \
17471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17472 $as_echo X/"$0" |
17473 sed '/^.*\/\([^/][^/]*\)\/*$/{
17474 s//\1/
17477 /^X\/\(\/\/\)$/{
17478 s//\1/
17481 /^X\/\(\/\).*/{
17482 s//\1/
17485 s/.*/./; q'`
17487 # Avoid depending upon Character Ranges.
17488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17491 as_cr_digits='0123456789'
17492 as_cr_alnum=$as_cr_Letters$as_cr_digits
17494 ECHO_C= ECHO_N= ECHO_T=
17495 case `echo -n x` in #(((((
17496 -n*)
17497 case `echo 'xy\c'` in
17498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17499 xy) ECHO_C='\c';;
17500 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17501 ECHO_T=' ';;
17502 esac;;
17504 ECHO_N='-n';;
17505 esac
17507 rm -f conf$$ conf$$.exe conf$$.file
17508 if test -d conf$$.dir; then
17509 rm -f conf$$.dir/conf$$.file
17510 else
17511 rm -f conf$$.dir
17512 mkdir conf$$.dir 2>/dev/null
17514 if (echo >conf$$.file) 2>/dev/null; then
17515 if ln -s conf$$.file conf$$ 2>/dev/null; then
17516 as_ln_s='ln -s'
17517 # ... but there are two gotchas:
17518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17520 # In both cases, we have to default to `cp -pR'.
17521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17522 as_ln_s='cp -pR'
17523 elif ln conf$$.file conf$$ 2>/dev/null; then
17524 as_ln_s=ln
17525 else
17526 as_ln_s='cp -pR'
17528 else
17529 as_ln_s='cp -pR'
17531 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17532 rmdir conf$$.dir 2>/dev/null
17535 # as_fn_mkdir_p
17536 # -------------
17537 # Create "$as_dir" as a directory, including parents if necessary.
17538 as_fn_mkdir_p ()
17541 case $as_dir in #(
17542 -*) as_dir=./$as_dir;;
17543 esac
17544 test -d "$as_dir" || eval $as_mkdir_p || {
17545 as_dirs=
17546 while :; do
17547 case $as_dir in #(
17548 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17549 *) as_qdir=$as_dir;;
17550 esac
17551 as_dirs="'$as_qdir' $as_dirs"
17552 as_dir=`$as_dirname -- "$as_dir" ||
17553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17554 X"$as_dir" : 'X\(//\)[^/]' \| \
17555 X"$as_dir" : 'X\(//\)$' \| \
17556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17557 $as_echo X"$as_dir" |
17558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17559 s//\1/
17562 /^X\(\/\/\)[^/].*/{
17563 s//\1/
17566 /^X\(\/\/\)$/{
17567 s//\1/
17570 /^X\(\/\).*/{
17571 s//\1/
17574 s/.*/./; q'`
17575 test -d "$as_dir" && break
17576 done
17577 test -z "$as_dirs" || eval "mkdir $as_dirs"
17578 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17581 } # as_fn_mkdir_p
17582 if mkdir -p . 2>/dev/null; then
17583 as_mkdir_p='mkdir -p "$as_dir"'
17584 else
17585 test -d ./-p && rmdir ./-p
17586 as_mkdir_p=false
17590 # as_fn_executable_p FILE
17591 # -----------------------
17592 # Test if FILE is an executable regular file.
17593 as_fn_executable_p ()
17595 test -f "$1" && test -x "$1"
17596 } # as_fn_executable_p
17597 as_test_x='test -x'
17598 as_executable_p=as_fn_executable_p
17600 # Sed expression to map a string onto a valid CPP name.
17601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17603 # Sed expression to map a string onto a valid variable name.
17604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17607 exec 6>&1
17608 ## ----------------------------------- ##
17609 ## Main body of $CONFIG_STATUS script. ##
17610 ## ----------------------------------- ##
17611 _ASEOF
17612 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17615 # Save the log message, to keep $0 and so on meaningful, and to
17616 # report actual input values of CONFIG_FILES etc. instead of their
17617 # values after options handling.
17618 ac_log="
17619 This file was extended by OpenVPN $as_me 2.3.10, which was
17620 generated by GNU Autoconf 2.69. Invocation command line was
17622 CONFIG_FILES = $CONFIG_FILES
17623 CONFIG_HEADERS = $CONFIG_HEADERS
17624 CONFIG_LINKS = $CONFIG_LINKS
17625 CONFIG_COMMANDS = $CONFIG_COMMANDS
17626 $ $0 $@
17628 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17631 _ACEOF
17633 case $ac_config_files in *"
17634 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17635 esac
17637 case $ac_config_headers in *"
17638 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17639 esac
17642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17643 # Files that config.status was made for.
17644 config_files="$ac_config_files"
17645 config_headers="$ac_config_headers"
17646 config_commands="$ac_config_commands"
17648 _ACEOF
17650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17651 ac_cs_usage="\
17652 \`$as_me' instantiates files and other configuration actions
17653 from templates according to the current configuration. Unless the files
17654 and actions are specified as TAGs, all are instantiated by default.
17656 Usage: $0 [OPTION]... [TAG]...
17658 -h, --help print this help, then exit
17659 -V, --version print version number and configuration settings, then exit
17660 --config print configuration, then exit
17661 -q, --quiet, --silent
17662 do not print progress messages
17663 -d, --debug don't remove temporary files
17664 --recheck update $as_me by reconfiguring in the same conditions
17665 --file=FILE[:TEMPLATE]
17666 instantiate the configuration file FILE
17667 --header=FILE[:TEMPLATE]
17668 instantiate the configuration header FILE
17670 Configuration files:
17671 $config_files
17673 Configuration headers:
17674 $config_headers
17676 Configuration commands:
17677 $config_commands
17679 Report bugs to <openvpn-users@lists.sourceforge.net>."
17681 _ACEOF
17682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17683 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17684 ac_cs_version="\\
17685 OpenVPN config.status 2.3.10
17686 configured by $0, generated by GNU Autoconf 2.69,
17687 with options \\"\$ac_cs_config\\"
17689 Copyright (C) 2012 Free Software Foundation, Inc.
17690 This config.status script is free software; the Free Software Foundation
17691 gives unlimited permission to copy, distribute and modify it."
17693 ac_pwd='$ac_pwd'
17694 srcdir='$srcdir'
17695 INSTALL='$INSTALL'
17696 MKDIR_P='$MKDIR_P'
17697 AWK='$AWK'
17698 test -n "\$AWK" || AWK=awk
17699 _ACEOF
17701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17702 # The default lists apply if the user does not specify any file.
17703 ac_need_defaults=:
17704 while test $# != 0
17706 case $1 in
17707 --*=?*)
17708 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17709 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17710 ac_shift=:
17712 --*=)
17713 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17714 ac_optarg=
17715 ac_shift=:
17718 ac_option=$1
17719 ac_optarg=$2
17720 ac_shift=shift
17722 esac
17724 case $ac_option in
17725 # Handling of the options.
17726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17727 ac_cs_recheck=: ;;
17728 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17729 $as_echo "$ac_cs_version"; exit ;;
17730 --config | --confi | --conf | --con | --co | --c )
17731 $as_echo "$ac_cs_config"; exit ;;
17732 --debug | --debu | --deb | --de | --d | -d )
17733 debug=: ;;
17734 --file | --fil | --fi | --f )
17735 $ac_shift
17736 case $ac_optarg in
17737 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17738 '') as_fn_error $? "missing file argument" ;;
17739 esac
17740 as_fn_append CONFIG_FILES " '$ac_optarg'"
17741 ac_need_defaults=false;;
17742 --header | --heade | --head | --hea )
17743 $ac_shift
17744 case $ac_optarg in
17745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17746 esac
17747 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17748 ac_need_defaults=false;;
17749 --he | --h)
17750 # Conflict between --help and --header
17751 as_fn_error $? "ambiguous option: \`$1'
17752 Try \`$0 --help' for more information.";;
17753 --help | --hel | -h )
17754 $as_echo "$ac_cs_usage"; exit ;;
17755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17756 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17757 ac_cs_silent=: ;;
17759 # This is an error.
17760 -*) as_fn_error $? "unrecognized option: \`$1'
17761 Try \`$0 --help' for more information." ;;
17763 *) as_fn_append ac_config_targets " $1"
17764 ac_need_defaults=false ;;
17766 esac
17767 shift
17768 done
17770 ac_configure_extra_args=
17772 if $ac_cs_silent; then
17773 exec 6>/dev/null
17774 ac_configure_extra_args="$ac_configure_extra_args --silent"
17777 _ACEOF
17778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17779 if \$ac_cs_recheck; then
17780 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17781 shift
17782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17783 CONFIG_SHELL='$SHELL'
17784 export CONFIG_SHELL
17785 exec "\$@"
17788 _ACEOF
17789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17790 exec 5>>config.log
17792 echo
17793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17794 ## Running $as_me. ##
17795 _ASBOX
17796 $as_echo "$ac_log"
17797 } >&5
17799 _ACEOF
17800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17802 # INIT-COMMANDS
17804 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17807 # The HP-UX ksh and POSIX shell print the target directory to stdout
17808 # if CDPATH is set.
17809 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17811 sed_quote_subst='$sed_quote_subst'
17812 double_quote_subst='$double_quote_subst'
17813 delay_variable_subst='$delay_variable_subst'
17814 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17815 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17816 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17817 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17818 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17819 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17820 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17821 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17822 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17823 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17824 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17825 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17826 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17827 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17828 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17829 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17830 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17831 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17832 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17833 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17834 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17835 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17836 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17837 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17838 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17839 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17840 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17841 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17842 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17843 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17844 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17845 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17846 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17847 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17848 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17849 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17850 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17851 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17852 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17853 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17854 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17855 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17856 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17857 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17858 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17859 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17860 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17861 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17862 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17863 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17864 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17865 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17866 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17867 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17868 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17869 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17870 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17871 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"`'
17872 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17873 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17874 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17875 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17876 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17877 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17878 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17879 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17880 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17881 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17882 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17883 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17884 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17885 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17886 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17887 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17888 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17889 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17890 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17891 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17892 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17893 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17894 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17895 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17896 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17897 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17898 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17899 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17900 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17901 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17902 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17903 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17904 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17905 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17906 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17907 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17908 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17909 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17910 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17911 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17912 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17913 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17914 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17915 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17916 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17917 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17918 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17919 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17920 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17921 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17922 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17923 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17924 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17925 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17926 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17927 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17928 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17929 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17930 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17931 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17932 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17933 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17934 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17935 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17936 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17937 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17938 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17939 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17940 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17941 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17942 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17943 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17944 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17945 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17946 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17947 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17948 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17949 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17950 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17951 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17952 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17953 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17954 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17955 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17956 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17957 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17958 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17959 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17960 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17961 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17962 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17963 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17964 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17965 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17966 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17967 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17968 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17969 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17970 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17971 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17972 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17973 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17974 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17975 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17976 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17977 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17978 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17979 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17980 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17981 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17982 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17983 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17984 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17985 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17986 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17988 LTCC='$LTCC'
17989 LTCFLAGS='$LTCFLAGS'
17990 compiler='$compiler_DEFAULT'
17992 # A function that is used when there is no print builtin or printf.
17993 func_fallback_echo ()
17995 eval 'cat <<_LTECHO_EOF
17997 _LTECHO_EOF'
18000 # Quote evaled strings.
18001 for var in AS \
18002 DLLTOOL \
18003 OBJDUMP \
18004 SHELL \
18005 ECHO \
18006 PATH_SEPARATOR \
18007 SED \
18008 GREP \
18009 EGREP \
18010 FGREP \
18011 LD \
18012 NM \
18013 LN_S \
18014 lt_SP2NL \
18015 lt_NL2SP \
18016 reload_flag \
18017 deplibs_check_method \
18018 file_magic_cmd \
18019 file_magic_glob \
18020 want_nocaseglob \
18021 sharedlib_from_linklib_cmd \
18022 AR \
18023 AR_FLAGS \
18024 archiver_list_spec \
18025 STRIP \
18026 RANLIB \
18027 CC \
18028 CFLAGS \
18029 compiler \
18030 lt_cv_sys_global_symbol_pipe \
18031 lt_cv_sys_global_symbol_to_cdecl \
18032 lt_cv_sys_global_symbol_to_c_name_address \
18033 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18034 nm_file_list_spec \
18035 lt_prog_compiler_no_builtin_flag \
18036 lt_prog_compiler_pic \
18037 lt_prog_compiler_wl \
18038 lt_prog_compiler_static \
18039 lt_cv_prog_compiler_c_o \
18040 need_locks \
18041 MANIFEST_TOOL \
18042 DSYMUTIL \
18043 NMEDIT \
18044 LIPO \
18045 OTOOL \
18046 OTOOL64 \
18047 shrext_cmds \
18048 export_dynamic_flag_spec \
18049 whole_archive_flag_spec \
18050 compiler_needs_object \
18051 with_gnu_ld \
18052 allow_undefined_flag \
18053 no_undefined_flag \
18054 hardcode_libdir_flag_spec \
18055 hardcode_libdir_separator \
18056 exclude_expsyms \
18057 include_expsyms \
18058 file_list_spec \
18059 variables_saved_for_relink \
18060 libname_spec \
18061 library_names_spec \
18062 soname_spec \
18063 install_override_mode \
18064 finish_eval \
18065 old_striplib \
18066 striplib \
18067 LD_RC \
18068 reload_flag_RC \
18069 compiler_RC \
18070 lt_prog_compiler_no_builtin_flag_RC \
18071 lt_prog_compiler_pic_RC \
18072 lt_prog_compiler_wl_RC \
18073 lt_prog_compiler_static_RC \
18074 lt_cv_prog_compiler_c_o_RC \
18075 export_dynamic_flag_spec_RC \
18076 whole_archive_flag_spec_RC \
18077 compiler_needs_object_RC \
18078 with_gnu_ld_RC \
18079 allow_undefined_flag_RC \
18080 no_undefined_flag_RC \
18081 hardcode_libdir_flag_spec_RC \
18082 hardcode_libdir_separator_RC \
18083 exclude_expsyms_RC \
18084 include_expsyms_RC \
18085 file_list_spec_RC; do
18086 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18087 *[\\\\\\\`\\"\\\$]*)
18088 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18091 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18093 esac
18094 done
18096 # Double-quote double-evaled strings.
18097 for var in reload_cmds \
18098 old_postinstall_cmds \
18099 old_postuninstall_cmds \
18100 old_archive_cmds \
18101 extract_expsyms_cmds \
18102 old_archive_from_new_cmds \
18103 old_archive_from_expsyms_cmds \
18104 archive_cmds \
18105 archive_expsym_cmds \
18106 module_cmds \
18107 module_expsym_cmds \
18108 export_symbols_cmds \
18109 prelink_cmds \
18110 postlink_cmds \
18111 postinstall_cmds \
18112 postuninstall_cmds \
18113 finish_cmds \
18114 sys_lib_search_path_spec \
18115 sys_lib_dlsearch_path_spec \
18116 reload_cmds_RC \
18117 old_archive_cmds_RC \
18118 old_archive_from_new_cmds_RC \
18119 old_archive_from_expsyms_cmds_RC \
18120 archive_cmds_RC \
18121 archive_expsym_cmds_RC \
18122 module_cmds_RC \
18123 module_expsym_cmds_RC \
18124 export_symbols_cmds_RC \
18125 prelink_cmds_RC \
18126 postlink_cmds_RC; do
18127 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18128 *[\\\\\\\`\\"\\\$]*)
18129 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18132 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18134 esac
18135 done
18137 ac_aux_dir='$ac_aux_dir'
18138 xsi_shell='$xsi_shell'
18139 lt_shell_append='$lt_shell_append'
18141 # See if we are running on zsh, and set the options which allow our
18142 # commands through without removal of \ escapes INIT.
18143 if test -n "\${ZSH_VERSION+set}" ; then
18144 setopt NO_GLOB_SUBST
18148 PACKAGE='$PACKAGE'
18149 VERSION='$VERSION'
18150 TIMESTAMP='$TIMESTAMP'
18151 RM='$RM'
18152 ofile='$ofile'
18159 _ACEOF
18161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18163 # Handling of arguments.
18164 for ac_config_target in $ac_config_targets
18166 case $ac_config_target in
18167 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18168 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18169 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18170 "version.sh") CONFIG_FILES="$CONFIG_FILES version.sh" ;;
18171 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18172 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
18173 "build/msvc/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/Makefile" ;;
18174 "build/msvc/msvc-generate/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
18175 "distro/Makefile") CONFIG_FILES="$CONFIG_FILES distro/Makefile" ;;
18176 "distro/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES distro/rpm/Makefile" ;;
18177 "distro/rpm/openvpn.spec") CONFIG_FILES="$CONFIG_FILES distro/rpm/openvpn.spec" ;;
18178 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18179 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18180 "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
18181 "src/openvpn/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpn/Makefile" ;;
18182 "src/openvpnserv/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpnserv/Makefile" ;;
18183 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
18184 "src/plugins/auth-pam/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
18185 "src/plugins/down-root/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
18186 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18187 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
18188 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18189 "tests/t_client.sh") CONFIG_FILES="$CONFIG_FILES tests/t_client.sh" ;;
18191 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18192 esac
18193 done
18196 # If the user did not use the arguments to specify the items to instantiate,
18197 # then the envvar interface is used. Set only those that are not.
18198 # We use the long form for the default assignment because of an extremely
18199 # bizarre bug on SunOS 4.1.3.
18200 if $ac_need_defaults; then
18201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18206 # Have a temporary directory for convenience. Make it in the build tree
18207 # simply because there is no reason against having it here, and in addition,
18208 # creating and moving files from /tmp can sometimes cause problems.
18209 # Hook for its removal unless debugging.
18210 # Note that there is a small window in which the directory will not be cleaned:
18211 # after its creation but before its name has been assigned to `$tmp'.
18212 $debug ||
18214 tmp= ac_tmp=
18215 trap 'exit_status=$?
18216 : "${ac_tmp:=$tmp}"
18217 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18219 trap 'as_fn_exit 1' 1 2 13 15
18221 # Create a (secure) tmp directory for tmp files.
18224 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18225 test -d "$tmp"
18226 } ||
18228 tmp=./conf$$-$RANDOM
18229 (umask 077 && mkdir "$tmp")
18230 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18231 ac_tmp=$tmp
18233 # Set up the scripts for CONFIG_FILES section.
18234 # No need to generate them if there are no CONFIG_FILES.
18235 # This happens for instance with `./config.status config.h'.
18236 if test -n "$CONFIG_FILES"; then
18239 ac_cr=`echo X | tr X '\015'`
18240 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18241 # But we know of no other shell where ac_cr would be empty at this
18242 # point, so we can use a bashism as a fallback.
18243 if test "x$ac_cr" = x; then
18244 eval ac_cr=\$\'\\r\'
18246 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18247 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18248 ac_cs_awk_cr='\\r'
18249 else
18250 ac_cs_awk_cr=$ac_cr
18253 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18254 _ACEOF
18258 echo "cat >conf$$subs.awk <<_ACEOF" &&
18259 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18260 echo "_ACEOF"
18261 } >conf$$subs.sh ||
18262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18263 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18264 ac_delim='%!_!# '
18265 for ac_last_try in false false false false false :; do
18266 . ./conf$$subs.sh ||
18267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18269 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18270 if test $ac_delim_n = $ac_delim_num; then
18271 break
18272 elif $ac_last_try; then
18273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18274 else
18275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18277 done
18278 rm -f conf$$subs.sh
18280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18281 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18282 _ACEOF
18283 sed -n '
18285 s/^/S["/; s/!.*/"]=/
18288 s/^[^!]*!//
18289 :repl
18290 t repl
18291 s/'"$ac_delim"'$//
18292 t delim
18295 s/\(.\{148\}\)..*/\1/
18296 t more1
18297 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18300 b repl
18301 :more1
18302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18305 s/.\{148\}//
18306 t nl
18307 :delim
18309 s/\(.\{148\}\)..*/\1/
18310 t more2
18311 s/["\\]/\\&/g; s/^/"/; s/$/"/
18314 :more2
18315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18318 s/.\{148\}//
18319 t delim
18320 ' <conf$$subs.awk | sed '
18321 /^[^""]/{
18323 s/\n//
18325 ' >>$CONFIG_STATUS || ac_write_fail=1
18326 rm -f conf$$subs.awk
18327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18328 _ACAWK
18329 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18330 for (key in S) S_is_set[key] = 1
18331 FS = "\a"
18335 line = $ 0
18336 nfields = split(line, field, "@")
18337 substed = 0
18338 len = length(field[1])
18339 for (i = 2; i < nfields; i++) {
18340 key = field[i]
18341 keylen = length(key)
18342 if (S_is_set[key]) {
18343 value = S[key]
18344 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18345 len += length(value) + length(field[++i])
18346 substed = 1
18347 } else
18348 len += 1 + keylen
18351 print line
18354 _ACAWK
18355 _ACEOF
18356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18357 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18358 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18359 else
18361 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18362 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18363 _ACEOF
18365 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18366 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18367 # trailing colons and then remove the whole line if VPATH becomes empty
18368 # (actually we leave an empty line to preserve line numbers).
18369 if test "x$srcdir" = x.; then
18370 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18372 s///
18373 s/^/:/
18374 s/[ ]*$/:/
18375 s/:\$(srcdir):/:/g
18376 s/:\${srcdir}:/:/g
18377 s/:@srcdir@:/:/g
18378 s/^:*//
18379 s/:*$//
18381 s/\(=[ ]*\).*/\1/
18383 s/\n//
18384 s/^[^=]*=[ ]*$//
18388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18389 fi # test -n "$CONFIG_FILES"
18391 # Set up the scripts for CONFIG_HEADERS section.
18392 # No need to generate them if there are no CONFIG_HEADERS.
18393 # This happens for instance with `./config.status Makefile'.
18394 if test -n "$CONFIG_HEADERS"; then
18395 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18396 BEGIN {
18397 _ACEOF
18399 # Transform confdefs.h into an awk script `defines.awk', embedded as
18400 # here-document in config.status, that substitutes the proper values into
18401 # config.h.in to produce config.h.
18403 # Create a delimiter string that does not exist in confdefs.h, to ease
18404 # handling of long lines.
18405 ac_delim='%!_!# '
18406 for ac_last_try in false false :; do
18407 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18408 if test -z "$ac_tt"; then
18409 break
18410 elif $ac_last_try; then
18411 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18412 else
18413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18415 done
18417 # For the awk script, D is an array of macro values keyed by name,
18418 # likewise P contains macro parameters if any. Preserve backslash
18419 # newline sequences.
18421 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18422 sed -n '
18423 s/.\{148\}/&'"$ac_delim"'/g
18424 t rset
18425 :rset
18426 s/^[ ]*#[ ]*define[ ][ ]*/ /
18427 t def
18429 :def
18430 s/\\$//
18431 t bsnl
18432 s/["\\]/\\&/g
18433 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18434 D["\1"]=" \3"/p
18435 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18437 :bsnl
18438 s/["\\]/\\&/g
18439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18440 D["\1"]=" \3\\\\\\n"\\/p
18441 t cont
18442 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18443 t cont
18445 :cont
18447 s/.\{148\}/&'"$ac_delim"'/g
18448 t clear
18449 :clear
18450 s/\\$//
18451 t bsnlc
18452 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18454 :bsnlc
18455 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18456 b cont
18457 ' <confdefs.h | sed '
18458 s/'"$ac_delim"'/"\\\
18459 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18462 for (key in D) D_is_set[key] = 1
18463 FS = "\a"
18465 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18466 line = \$ 0
18467 split(line, arg, " ")
18468 if (arg[1] == "#") {
18469 defundef = arg[2]
18470 mac1 = arg[3]
18471 } else {
18472 defundef = substr(arg[1], 2)
18473 mac1 = arg[2]
18475 split(mac1, mac2, "(") #)
18476 macro = mac2[1]
18477 prefix = substr(line, 1, index(line, defundef) - 1)
18478 if (D_is_set[macro]) {
18479 # Preserve the white space surrounding the "#".
18480 print prefix "define", macro P[macro] D[macro]
18481 next
18482 } else {
18483 # Replace #undef with comments. This is necessary, for example,
18484 # in the case of _POSIX_SOURCE, which is predefined and required
18485 # on some systems where configure will not decide to define it.
18486 if (defundef == "undef") {
18487 print "/*", prefix defundef, macro, "*/"
18488 next
18492 { print }
18493 _ACAWK
18494 _ACEOF
18495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18496 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18497 fi # test -n "$CONFIG_HEADERS"
18500 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18501 shift
18502 for ac_tag
18504 case $ac_tag in
18505 :[FHLC]) ac_mode=$ac_tag; continue;;
18506 esac
18507 case $ac_mode$ac_tag in
18508 :[FHL]*:*);;
18509 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18510 :[FH]-) ac_tag=-:-;;
18511 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18512 esac
18513 ac_save_IFS=$IFS
18514 IFS=:
18515 set x $ac_tag
18516 IFS=$ac_save_IFS
18517 shift
18518 ac_file=$1
18519 shift
18521 case $ac_mode in
18522 :L) ac_source=$1;;
18523 :[FH])
18524 ac_file_inputs=
18525 for ac_f
18527 case $ac_f in
18528 -) ac_f="$ac_tmp/stdin";;
18529 *) # Look for the file first in the build tree, then in the source tree
18530 # (if the path is not absolute). The absolute path cannot be DOS-style,
18531 # because $ac_f cannot contain `:'.
18532 test -f "$ac_f" ||
18533 case $ac_f in
18534 [\\/$]*) false;;
18535 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18536 esac ||
18537 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18538 esac
18539 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18540 as_fn_append ac_file_inputs " '$ac_f'"
18541 done
18543 # Let's still pretend it is `configure' which instantiates (i.e., don't
18544 # use $as_me), people would be surprised to read:
18545 # /* config.h. Generated by config.status. */
18546 configure_input='Generated from '`
18547 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18548 `' by configure.'
18549 if test x"$ac_file" != x-; then
18550 configure_input="$ac_file. $configure_input"
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18552 $as_echo "$as_me: creating $ac_file" >&6;}
18554 # Neutralize special characters interpreted by sed in replacement strings.
18555 case $configure_input in #(
18556 *\&* | *\|* | *\\* )
18557 ac_sed_conf_input=`$as_echo "$configure_input" |
18558 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18559 *) ac_sed_conf_input=$configure_input;;
18560 esac
18562 case $ac_tag in
18563 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18565 esac
18567 esac
18569 ac_dir=`$as_dirname -- "$ac_file" ||
18570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18571 X"$ac_file" : 'X\(//\)[^/]' \| \
18572 X"$ac_file" : 'X\(//\)$' \| \
18573 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18574 $as_echo X"$ac_file" |
18575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18576 s//\1/
18579 /^X\(\/\/\)[^/].*/{
18580 s//\1/
18583 /^X\(\/\/\)$/{
18584 s//\1/
18587 /^X\(\/\).*/{
18588 s//\1/
18591 s/.*/./; q'`
18592 as_dir="$ac_dir"; as_fn_mkdir_p
18593 ac_builddir=.
18595 case "$ac_dir" in
18596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18599 # A ".." for each directory in $ac_dir_suffix.
18600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18601 case $ac_top_builddir_sub in
18602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18604 esac ;;
18605 esac
18606 ac_abs_top_builddir=$ac_pwd
18607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18608 # for backward compatibility:
18609 ac_top_builddir=$ac_top_build_prefix
18611 case $srcdir in
18612 .) # We are building in place.
18613 ac_srcdir=.
18614 ac_top_srcdir=$ac_top_builddir_sub
18615 ac_abs_top_srcdir=$ac_pwd ;;
18616 [\\/]* | ?:[\\/]* ) # Absolute name.
18617 ac_srcdir=$srcdir$ac_dir_suffix;
18618 ac_top_srcdir=$srcdir
18619 ac_abs_top_srcdir=$srcdir ;;
18620 *) # Relative name.
18621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18622 ac_top_srcdir=$ac_top_build_prefix$srcdir
18623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18624 esac
18625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18628 case $ac_mode in
18631 # CONFIG_FILE
18634 case $INSTALL in
18635 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18636 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18637 esac
18638 ac_MKDIR_P=$MKDIR_P
18639 case $MKDIR_P in
18640 [\\/$]* | ?:[\\/]* ) ;;
18641 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18642 esac
18643 _ACEOF
18645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18646 # If the template does not know about datarootdir, expand it.
18647 # FIXME: This hack should be removed a few years after 2.60.
18648 ac_datarootdir_hack=; ac_datarootdir_seen=
18649 ac_sed_dataroot='
18650 /datarootdir/ {
18654 /@datadir@/p
18655 /@docdir@/p
18656 /@infodir@/p
18657 /@localedir@/p
18658 /@mandir@/p'
18659 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18660 *datarootdir*) ac_datarootdir_seen=yes;;
18661 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18663 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18664 _ACEOF
18665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18666 ac_datarootdir_hack='
18667 s&@datadir@&$datadir&g
18668 s&@docdir@&$docdir&g
18669 s&@infodir@&$infodir&g
18670 s&@localedir@&$localedir&g
18671 s&@mandir@&$mandir&g
18672 s&\\\${datarootdir}&$datarootdir&g' ;;
18673 esac
18674 _ACEOF
18676 # Neutralize VPATH when `$srcdir' = `.'.
18677 # Shell code in configure.ac might set extrasub.
18678 # FIXME: do we really want to maintain this feature?
18679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18680 ac_sed_extra="$ac_vpsub
18681 $extrasub
18682 _ACEOF
18683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18686 s|@configure_input@|$ac_sed_conf_input|;t t
18687 s&@top_builddir@&$ac_top_builddir_sub&;t t
18688 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18689 s&@srcdir@&$ac_srcdir&;t t
18690 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18691 s&@top_srcdir@&$ac_top_srcdir&;t t
18692 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18693 s&@builddir@&$ac_builddir&;t t
18694 s&@abs_builddir@&$ac_abs_builddir&;t t
18695 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18696 s&@INSTALL@&$ac_INSTALL&;t t
18697 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18698 $ac_datarootdir_hack
18700 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18701 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18703 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18704 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18705 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18706 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18708 which seems to be undefined. Please make sure it is defined" >&5
18709 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18710 which seems to be undefined. Please make sure it is defined" >&2;}
18712 rm -f "$ac_tmp/stdin"
18713 case $ac_file in
18714 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18715 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18716 esac \
18717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18721 # CONFIG_HEADER
18723 if test x"$ac_file" != x-; then
18725 $as_echo "/* $configure_input */" \
18726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18727 } >"$ac_tmp/config.h" \
18728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18729 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18731 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18732 else
18733 rm -f "$ac_file"
18734 mv "$ac_tmp/config.h" "$ac_file" \
18735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18737 else
18738 $as_echo "/* $configure_input */" \
18739 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18740 || as_fn_error $? "could not create -" "$LINENO" 5
18742 # Compute "$ac_file"'s index in $config_headers.
18743 _am_arg="$ac_file"
18744 _am_stamp_count=1
18745 for _am_header in $config_headers :; do
18746 case $_am_header in
18747 $_am_arg | $_am_arg:* )
18748 break ;;
18750 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18751 esac
18752 done
18753 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18754 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18755 X"$_am_arg" : 'X\(//\)[^/]' \| \
18756 X"$_am_arg" : 'X\(//\)$' \| \
18757 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18758 $as_echo X"$_am_arg" |
18759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18760 s//\1/
18763 /^X\(\/\/\)[^/].*/{
18764 s//\1/
18767 /^X\(\/\/\)$/{
18768 s//\1/
18771 /^X\(\/\).*/{
18772 s//\1/
18775 s/.*/./; q'`/stamp-h$_am_stamp_count
18778 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18779 $as_echo "$as_me: executing $ac_file commands" >&6;}
18781 esac
18784 case $ac_file$ac_mode in
18785 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18786 # Older Autoconf quotes --file arguments for eval, but not when files
18787 # are listed without --file. Let's play safe and only enable the eval
18788 # if we detect the quoting.
18789 case $CONFIG_FILES in
18790 *\'*) eval set x "$CONFIG_FILES" ;;
18791 *) set x $CONFIG_FILES ;;
18792 esac
18793 shift
18794 for mf
18796 # Strip MF so we end up with the name of the file.
18797 mf=`echo "$mf" | sed -e 's/:.*$//'`
18798 # Check whether this is an Automake generated Makefile or not.
18799 # We used to match only the files named 'Makefile.in', but
18800 # some people rename them; so instead we look at the file content.
18801 # Grep'ing the first line is not enough: some people post-process
18802 # each Makefile.in and add a new line on top of each file to say so.
18803 # Grep'ing the whole file is not good either: AIX grep has a line
18804 # limit of 2048, but all sed's we know have understand at least 4000.
18805 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18806 dirpart=`$as_dirname -- "$mf" ||
18807 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18808 X"$mf" : 'X\(//\)[^/]' \| \
18809 X"$mf" : 'X\(//\)$' \| \
18810 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18811 $as_echo X"$mf" |
18812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18813 s//\1/
18816 /^X\(\/\/\)[^/].*/{
18817 s//\1/
18820 /^X\(\/\/\)$/{
18821 s//\1/
18824 /^X\(\/\).*/{
18825 s//\1/
18828 s/.*/./; q'`
18829 else
18830 continue
18832 # Extract the definition of DEPDIR, am__include, and am__quote
18833 # from the Makefile without running 'make'.
18834 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18835 test -z "$DEPDIR" && continue
18836 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18837 test -z "$am__include" && continue
18838 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18839 # Find all dependency output files, they are included files with
18840 # $(DEPDIR) in their names. We invoke sed twice because it is the
18841 # simplest approach to changing $(DEPDIR) to its actual value in the
18842 # expansion.
18843 for file in `sed -n "
18844 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18845 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18846 # Make sure the directory exists.
18847 test -f "$dirpart/$file" && continue
18848 fdir=`$as_dirname -- "$file" ||
18849 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18850 X"$file" : 'X\(//\)[^/]' \| \
18851 X"$file" : 'X\(//\)$' \| \
18852 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18853 $as_echo X"$file" |
18854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18855 s//\1/
18858 /^X\(\/\/\)[^/].*/{
18859 s//\1/
18862 /^X\(\/\/\)$/{
18863 s//\1/
18866 /^X\(\/\).*/{
18867 s//\1/
18870 s/.*/./; q'`
18871 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18872 # echo "creating $dirpart/$file"
18873 echo '# dummy' > "$dirpart/$file"
18874 done
18875 done
18878 "libtool":C)
18880 # See if we are running on zsh, and set the options which allow our
18881 # commands through without removal of \ escapes.
18882 if test -n "${ZSH_VERSION+set}" ; then
18883 setopt NO_GLOB_SUBST
18886 cfgfile="${ofile}T"
18887 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18888 $RM "$cfgfile"
18890 cat <<_LT_EOF >> "$cfgfile"
18891 #! $SHELL
18893 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18894 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18895 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18896 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18898 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18899 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18900 # Foundation, Inc.
18901 # Written by Gordon Matzigkeit, 1996
18903 # This file is part of GNU Libtool.
18905 # GNU Libtool is free software; you can redistribute it and/or
18906 # modify it under the terms of the GNU General Public License as
18907 # published by the Free Software Foundation; either version 2 of
18908 # the License, or (at your option) any later version.
18910 # As a special exception to the GNU General Public License,
18911 # if you distribute this file as part of a program or library that
18912 # is built using GNU Libtool, you may include this file under the
18913 # same distribution terms that you use for the rest of that program.
18915 # GNU Libtool is distributed in the hope that it will be useful,
18916 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18917 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18918 # GNU General Public License for more details.
18920 # You should have received a copy of the GNU General Public License
18921 # along with GNU Libtool; see the file COPYING. If not, a copy
18922 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18923 # obtained by writing to the Free Software Foundation, Inc.,
18924 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18927 # The names of the tagged configurations supported by this script.
18928 available_tags="RC "
18930 # ### BEGIN LIBTOOL CONFIG
18932 # Which release of libtool.m4 was used?
18933 macro_version=$macro_version
18934 macro_revision=$macro_revision
18936 # Assembler program.
18937 AS=$lt_AS
18939 # DLL creation program.
18940 DLLTOOL=$lt_DLLTOOL
18942 # Object dumper program.
18943 OBJDUMP=$lt_OBJDUMP
18945 # Whether or not to build shared libraries.
18946 build_libtool_libs=$enable_shared
18948 # Whether or not to build static libraries.
18949 build_old_libs=$enable_static
18951 # What type of objects to build.
18952 pic_mode=$pic_mode
18954 # Whether or not to optimize for fast installation.
18955 fast_install=$enable_fast_install
18957 # Shell to use when invoking shell scripts.
18958 SHELL=$lt_SHELL
18960 # An echo program that protects backslashes.
18961 ECHO=$lt_ECHO
18963 # The PATH separator for the build system.
18964 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18966 # The host system.
18967 host_alias=$host_alias
18968 host=$host
18969 host_os=$host_os
18971 # The build system.
18972 build_alias=$build_alias
18973 build=$build
18974 build_os=$build_os
18976 # A sed program that does not truncate output.
18977 SED=$lt_SED
18979 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18980 Xsed="\$SED -e 1s/^X//"
18982 # A grep program that handles long lines.
18983 GREP=$lt_GREP
18985 # An ERE matcher.
18986 EGREP=$lt_EGREP
18988 # A literal string matcher.
18989 FGREP=$lt_FGREP
18991 # A BSD- or MS-compatible name lister.
18992 NM=$lt_NM
18994 # Whether we need soft or hard links.
18995 LN_S=$lt_LN_S
18997 # What is the maximum length of a command?
18998 max_cmd_len=$max_cmd_len
19000 # Object file suffix (normally "o").
19001 objext=$ac_objext
19003 # Executable file suffix (normally "").
19004 exeext=$exeext
19006 # whether the shell understands "unset".
19007 lt_unset=$lt_unset
19009 # turn spaces into newlines.
19010 SP2NL=$lt_lt_SP2NL
19012 # turn newlines into spaces.
19013 NL2SP=$lt_lt_NL2SP
19015 # convert \$build file names to \$host format.
19016 to_host_file_cmd=$lt_cv_to_host_file_cmd
19018 # convert \$build files to toolchain format.
19019 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19021 # Method to check whether dependent libraries are shared objects.
19022 deplibs_check_method=$lt_deplibs_check_method
19024 # Command to use when deplibs_check_method = "file_magic".
19025 file_magic_cmd=$lt_file_magic_cmd
19027 # How to find potential files when deplibs_check_method = "file_magic".
19028 file_magic_glob=$lt_file_magic_glob
19030 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19031 want_nocaseglob=$lt_want_nocaseglob
19033 # Command to associate shared and link libraries.
19034 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19036 # The archiver.
19037 AR=$lt_AR
19039 # Flags to create an archive.
19040 AR_FLAGS=$lt_AR_FLAGS
19042 # How to feed a file listing to the archiver.
19043 archiver_list_spec=$lt_archiver_list_spec
19045 # A symbol stripping program.
19046 STRIP=$lt_STRIP
19048 # Commands used to install an old-style archive.
19049 RANLIB=$lt_RANLIB
19050 old_postinstall_cmds=$lt_old_postinstall_cmds
19051 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19053 # Whether to use a lock for old archive extraction.
19054 lock_old_archive_extraction=$lock_old_archive_extraction
19056 # A C compiler.
19057 LTCC=$lt_CC
19059 # LTCC compiler flags.
19060 LTCFLAGS=$lt_CFLAGS
19062 # Take the output of nm and produce a listing of raw symbols and C names.
19063 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19065 # Transform the output of nm in a proper C declaration.
19066 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19068 # Transform the output of nm in a C name address pair.
19069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19071 # Transform the output of nm in a C name address pair when lib prefix is needed.
19072 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19074 # Specify filename containing input files for \$NM.
19075 nm_file_list_spec=$lt_nm_file_list_spec
19077 # The root where to search for dependent libraries,and in which our libraries should be installed.
19078 lt_sysroot=$lt_sysroot
19080 # The name of the directory that contains temporary libtool files.
19081 objdir=$objdir
19083 # Used to examine libraries when file_magic_cmd begins with "file".
19084 MAGIC_CMD=$MAGIC_CMD
19086 # Must we lock files when doing compilation?
19087 need_locks=$lt_need_locks
19089 # Manifest tool.
19090 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19092 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19093 DSYMUTIL=$lt_DSYMUTIL
19095 # Tool to change global to local symbols on Mac OS X.
19096 NMEDIT=$lt_NMEDIT
19098 # Tool to manipulate fat objects and archives on Mac OS X.
19099 LIPO=$lt_LIPO
19101 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19102 OTOOL=$lt_OTOOL
19104 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19105 OTOOL64=$lt_OTOOL64
19107 # Old archive suffix (normally "a").
19108 libext=$libext
19110 # Shared library suffix (normally ".so").
19111 shrext_cmds=$lt_shrext_cmds
19113 # The commands to extract the exported symbol list from a shared archive.
19114 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19116 # Variables whose values should be saved in libtool wrapper scripts and
19117 # restored at link time.
19118 variables_saved_for_relink=$lt_variables_saved_for_relink
19120 # Do we need the "lib" prefix for modules?
19121 need_lib_prefix=$need_lib_prefix
19123 # Do we need a version for libraries?
19124 need_version=$need_version
19126 # Library versioning type.
19127 version_type=$version_type
19129 # Shared library runtime path variable.
19130 runpath_var=$runpath_var
19132 # Shared library path variable.
19133 shlibpath_var=$shlibpath_var
19135 # Is shlibpath searched before the hard-coded library search path?
19136 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19138 # Format of library name prefix.
19139 libname_spec=$lt_libname_spec
19141 # List of archive names. First name is the real one, the rest are links.
19142 # The last name is the one that the linker finds with -lNAME
19143 library_names_spec=$lt_library_names_spec
19145 # The coded name of the library, if different from the real name.
19146 soname_spec=$lt_soname_spec
19148 # Permission mode override for installation of shared libraries.
19149 install_override_mode=$lt_install_override_mode
19151 # Command to use after installation of a shared archive.
19152 postinstall_cmds=$lt_postinstall_cmds
19154 # Command to use after uninstallation of a shared archive.
19155 postuninstall_cmds=$lt_postuninstall_cmds
19157 # Commands used to finish a libtool library installation in a directory.
19158 finish_cmds=$lt_finish_cmds
19160 # As "finish_cmds", except a single script fragment to be evaled but
19161 # not shown.
19162 finish_eval=$lt_finish_eval
19164 # Whether we should hardcode library paths into libraries.
19165 hardcode_into_libs=$hardcode_into_libs
19167 # Compile-time system search path for libraries.
19168 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19170 # Run-time system search path for libraries.
19171 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19173 # Whether dlopen is supported.
19174 dlopen_support=$enable_dlopen
19176 # Whether dlopen of programs is supported.
19177 dlopen_self=$enable_dlopen_self
19179 # Whether dlopen of statically linked programs is supported.
19180 dlopen_self_static=$enable_dlopen_self_static
19182 # Commands to strip libraries.
19183 old_striplib=$lt_old_striplib
19184 striplib=$lt_striplib
19187 # The linker used to build libraries.
19188 LD=$lt_LD
19190 # How to create reloadable object files.
19191 reload_flag=$lt_reload_flag
19192 reload_cmds=$lt_reload_cmds
19194 # Commands used to build an old-style archive.
19195 old_archive_cmds=$lt_old_archive_cmds
19197 # A language specific compiler.
19198 CC=$lt_compiler
19200 # Is the compiler the GNU compiler?
19201 with_gcc=$GCC
19203 # Compiler flag to turn off builtin functions.
19204 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19206 # Additional compiler flags for building library objects.
19207 pic_flag=$lt_lt_prog_compiler_pic
19209 # How to pass a linker flag through the compiler.
19210 wl=$lt_lt_prog_compiler_wl
19212 # Compiler flag to prevent dynamic linking.
19213 link_static_flag=$lt_lt_prog_compiler_static
19215 # Does compiler simultaneously support -c and -o options?
19216 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19218 # Whether or not to add -lc for building shared libraries.
19219 build_libtool_need_lc=$archive_cmds_need_lc
19221 # Whether or not to disallow shared libs when runtime libs are static.
19222 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19224 # Compiler flag to allow reflexive dlopens.
19225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19227 # Compiler flag to generate shared objects directly from archives.
19228 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19230 # Whether the compiler copes with passing no objects directly.
19231 compiler_needs_object=$lt_compiler_needs_object
19233 # Create an old-style archive from a shared archive.
19234 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19236 # Create a temporary old-style archive to link instead of a shared archive.
19237 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19239 # Commands used to build a shared archive.
19240 archive_cmds=$lt_archive_cmds
19241 archive_expsym_cmds=$lt_archive_expsym_cmds
19243 # Commands used to build a loadable module if different from building
19244 # a shared archive.
19245 module_cmds=$lt_module_cmds
19246 module_expsym_cmds=$lt_module_expsym_cmds
19248 # Whether we are building with GNU ld or not.
19249 with_gnu_ld=$lt_with_gnu_ld
19251 # Flag that allows shared libraries with undefined symbols to be built.
19252 allow_undefined_flag=$lt_allow_undefined_flag
19254 # Flag that enforces no undefined symbols.
19255 no_undefined_flag=$lt_no_undefined_flag
19257 # Flag to hardcode \$libdir into a binary during linking.
19258 # This must work even if \$libdir does not exist
19259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19261 # Whether we need a single "-rpath" flag with a separated argument.
19262 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19264 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19265 # DIR into the resulting binary.
19266 hardcode_direct=$hardcode_direct
19268 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19269 # DIR into the resulting binary and the resulting library dependency is
19270 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19271 # library is relocated.
19272 hardcode_direct_absolute=$hardcode_direct_absolute
19274 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19275 # into the resulting binary.
19276 hardcode_minus_L=$hardcode_minus_L
19278 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19279 # into the resulting binary.
19280 hardcode_shlibpath_var=$hardcode_shlibpath_var
19282 # Set to "yes" if building a shared library automatically hardcodes DIR
19283 # into the library and all subsequent libraries and executables linked
19284 # against it.
19285 hardcode_automatic=$hardcode_automatic
19287 # Set to yes if linker adds runtime paths of dependent libraries
19288 # to runtime path list.
19289 inherit_rpath=$inherit_rpath
19291 # Whether libtool must link a program against all its dependency libraries.
19292 link_all_deplibs=$link_all_deplibs
19294 # Set to "yes" if exported symbols are required.
19295 always_export_symbols=$always_export_symbols
19297 # The commands to list exported symbols.
19298 export_symbols_cmds=$lt_export_symbols_cmds
19300 # Symbols that should not be listed in the preloaded symbols.
19301 exclude_expsyms=$lt_exclude_expsyms
19303 # Symbols that must always be exported.
19304 include_expsyms=$lt_include_expsyms
19306 # Commands necessary for linking programs (against libraries) with templates.
19307 prelink_cmds=$lt_prelink_cmds
19309 # Commands necessary for finishing linking programs.
19310 postlink_cmds=$lt_postlink_cmds
19312 # Specify filename containing input files.
19313 file_list_spec=$lt_file_list_spec
19315 # How to hardcode a shared library path into an executable.
19316 hardcode_action=$hardcode_action
19318 # ### END LIBTOOL CONFIG
19320 _LT_EOF
19322 case $host_os in
19323 aix3*)
19324 cat <<\_LT_EOF >> "$cfgfile"
19325 # AIX sometimes has problems with the GCC collect2 program. For some
19326 # reason, if we set the COLLECT_NAMES environment variable, the problems
19327 # vanish in a puff of smoke.
19328 if test "X${COLLECT_NAMES+set}" != Xset; then
19329 COLLECT_NAMES=
19330 export COLLECT_NAMES
19332 _LT_EOF
19334 esac
19337 ltmain="$ac_aux_dir/ltmain.sh"
19340 # We use sed instead of cat because bash on DJGPP gets confused if
19341 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19342 # text mode, it properly converts lines to CR/LF. This bash problem
19343 # is reportedly fixed, but why not run on old versions too?
19344 sed '$q' "$ltmain" >> "$cfgfile" \
19345 || (rm -f "$cfgfile"; exit 1)
19347 if test x"$xsi_shell" = xyes; then
19348 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19349 func_dirname ()\
19351 \ case ${1} in\
19352 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19353 \ * ) func_dirname_result="${3}" ;;\
19354 \ esac\
19355 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19356 && mv -f "$cfgfile.tmp" "$cfgfile" \
19357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19358 test 0 -eq $? || _lt_function_replace_fail=:
19361 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19362 func_basename ()\
19364 \ func_basename_result="${1##*/}"\
19365 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19366 && mv -f "$cfgfile.tmp" "$cfgfile" \
19367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19368 test 0 -eq $? || _lt_function_replace_fail=:
19371 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19372 func_dirname_and_basename ()\
19374 \ case ${1} in\
19375 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19376 \ * ) func_dirname_result="${3}" ;;\
19377 \ esac\
19378 \ func_basename_result="${1##*/}"\
19379 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19380 && mv -f "$cfgfile.tmp" "$cfgfile" \
19381 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19382 test 0 -eq $? || _lt_function_replace_fail=:
19385 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19386 func_stripname ()\
19388 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19389 \ # positional parameters, so assign one to ordinary parameter first.\
19390 \ func_stripname_result=${3}\
19391 \ func_stripname_result=${func_stripname_result#"${1}"}\
19392 \ func_stripname_result=${func_stripname_result%"${2}"}\
19393 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19394 && mv -f "$cfgfile.tmp" "$cfgfile" \
19395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19396 test 0 -eq $? || _lt_function_replace_fail=:
19399 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19400 func_split_long_opt ()\
19402 \ func_split_long_opt_name=${1%%=*}\
19403 \ func_split_long_opt_arg=${1#*=}\
19404 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19405 && mv -f "$cfgfile.tmp" "$cfgfile" \
19406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19407 test 0 -eq $? || _lt_function_replace_fail=:
19410 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19411 func_split_short_opt ()\
19413 \ func_split_short_opt_arg=${1#??}\
19414 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19415 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19416 && mv -f "$cfgfile.tmp" "$cfgfile" \
19417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19418 test 0 -eq $? || _lt_function_replace_fail=:
19421 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19422 func_lo2o ()\
19424 \ case ${1} in\
19425 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19426 \ *) func_lo2o_result=${1} ;;\
19427 \ esac\
19428 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19429 && mv -f "$cfgfile.tmp" "$cfgfile" \
19430 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19431 test 0 -eq $? || _lt_function_replace_fail=:
19434 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19435 func_xform ()\
19437 func_xform_result=${1%.*}.lo\
19438 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19439 && mv -f "$cfgfile.tmp" "$cfgfile" \
19440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19441 test 0 -eq $? || _lt_function_replace_fail=:
19444 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19445 func_arith ()\
19447 func_arith_result=$(( $* ))\
19448 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19449 && mv -f "$cfgfile.tmp" "$cfgfile" \
19450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19451 test 0 -eq $? || _lt_function_replace_fail=:
19454 sed -e '/^func_len ()$/,/^} # func_len /c\
19455 func_len ()\
19457 func_len_result=${#1}\
19458 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19459 && mv -f "$cfgfile.tmp" "$cfgfile" \
19460 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19461 test 0 -eq $? || _lt_function_replace_fail=:
19465 if test x"$lt_shell_append" = xyes; then
19466 sed -e '/^func_append ()$/,/^} # func_append /c\
19467 func_append ()\
19469 eval "${1}+=\\${2}"\
19470 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19471 && mv -f "$cfgfile.tmp" "$cfgfile" \
19472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19473 test 0 -eq $? || _lt_function_replace_fail=:
19476 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19477 func_append_quoted ()\
19479 \ func_quote_for_eval "${2}"\
19480 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19481 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19482 && mv -f "$cfgfile.tmp" "$cfgfile" \
19483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19484 test 0 -eq $? || _lt_function_replace_fail=:
19487 # Save a `func_append' function call where possible by direct use of '+='
19488 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19489 && mv -f "$cfgfile.tmp" "$cfgfile" \
19490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19491 test 0 -eq $? || _lt_function_replace_fail=:
19492 else
19493 # Save a `func_append' function call even when '+=' is not available
19494 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19495 && mv -f "$cfgfile.tmp" "$cfgfile" \
19496 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19497 test 0 -eq $? || _lt_function_replace_fail=:
19500 if test x"$_lt_function_replace_fail" = x":"; then
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19502 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19506 mv -f "$cfgfile" "$ofile" ||
19507 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19508 chmod +x "$ofile"
19511 cat <<_LT_EOF >> "$ofile"
19513 # ### BEGIN LIBTOOL TAG CONFIG: RC
19515 # The linker used to build libraries.
19516 LD=$lt_LD_RC
19518 # How to create reloadable object files.
19519 reload_flag=$lt_reload_flag_RC
19520 reload_cmds=$lt_reload_cmds_RC
19522 # Commands used to build an old-style archive.
19523 old_archive_cmds=$lt_old_archive_cmds_RC
19525 # A language specific compiler.
19526 CC=$lt_compiler_RC
19528 # Is the compiler the GNU compiler?
19529 with_gcc=$GCC_RC
19531 # Compiler flag to turn off builtin functions.
19532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19534 # Additional compiler flags for building library objects.
19535 pic_flag=$lt_lt_prog_compiler_pic_RC
19537 # How to pass a linker flag through the compiler.
19538 wl=$lt_lt_prog_compiler_wl_RC
19540 # Compiler flag to prevent dynamic linking.
19541 link_static_flag=$lt_lt_prog_compiler_static_RC
19543 # Does compiler simultaneously support -c and -o options?
19544 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19546 # Whether or not to add -lc for building shared libraries.
19547 build_libtool_need_lc=$archive_cmds_need_lc_RC
19549 # Whether or not to disallow shared libs when runtime libs are static.
19550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19552 # Compiler flag to allow reflexive dlopens.
19553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19555 # Compiler flag to generate shared objects directly from archives.
19556 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19558 # Whether the compiler copes with passing no objects directly.
19559 compiler_needs_object=$lt_compiler_needs_object_RC
19561 # Create an old-style archive from a shared archive.
19562 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19564 # Create a temporary old-style archive to link instead of a shared archive.
19565 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19567 # Commands used to build a shared archive.
19568 archive_cmds=$lt_archive_cmds_RC
19569 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19571 # Commands used to build a loadable module if different from building
19572 # a shared archive.
19573 module_cmds=$lt_module_cmds_RC
19574 module_expsym_cmds=$lt_module_expsym_cmds_RC
19576 # Whether we are building with GNU ld or not.
19577 with_gnu_ld=$lt_with_gnu_ld_RC
19579 # Flag that allows shared libraries with undefined symbols to be built.
19580 allow_undefined_flag=$lt_allow_undefined_flag_RC
19582 # Flag that enforces no undefined symbols.
19583 no_undefined_flag=$lt_no_undefined_flag_RC
19585 # Flag to hardcode \$libdir into a binary during linking.
19586 # This must work even if \$libdir does not exist
19587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19589 # Whether we need a single "-rpath" flag with a separated argument.
19590 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19592 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19593 # DIR into the resulting binary.
19594 hardcode_direct=$hardcode_direct_RC
19596 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19597 # DIR into the resulting binary and the resulting library dependency is
19598 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19599 # library is relocated.
19600 hardcode_direct_absolute=$hardcode_direct_absolute_RC
19602 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19603 # into the resulting binary.
19604 hardcode_minus_L=$hardcode_minus_L_RC
19606 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19607 # into the resulting binary.
19608 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19610 # Set to "yes" if building a shared library automatically hardcodes DIR
19611 # into the library and all subsequent libraries and executables linked
19612 # against it.
19613 hardcode_automatic=$hardcode_automatic_RC
19615 # Set to yes if linker adds runtime paths of dependent libraries
19616 # to runtime path list.
19617 inherit_rpath=$inherit_rpath_RC
19619 # Whether libtool must link a program against all its dependency libraries.
19620 link_all_deplibs=$link_all_deplibs_RC
19622 # Set to "yes" if exported symbols are required.
19623 always_export_symbols=$always_export_symbols_RC
19625 # The commands to list exported symbols.
19626 export_symbols_cmds=$lt_export_symbols_cmds_RC
19628 # Symbols that should not be listed in the preloaded symbols.
19629 exclude_expsyms=$lt_exclude_expsyms_RC
19631 # Symbols that must always be exported.
19632 include_expsyms=$lt_include_expsyms_RC
19634 # Commands necessary for linking programs (against libraries) with templates.
19635 prelink_cmds=$lt_prelink_cmds_RC
19637 # Commands necessary for finishing linking programs.
19638 postlink_cmds=$lt_postlink_cmds_RC
19640 # Specify filename containing input files.
19641 file_list_spec=$lt_file_list_spec_RC
19643 # How to hardcode a shared library path into an executable.
19644 hardcode_action=$hardcode_action_RC
19646 # ### END LIBTOOL TAG CONFIG: RC
19647 _LT_EOF
19650 "tests/t_client.sh":F) chmod +x tests/t_client.sh ;;
19652 esac
19653 done # for ac_tag
19656 as_fn_exit 0
19657 _ACEOF
19658 ac_clean_files=$ac_clean_files_save
19660 test $ac_write_fail = 0 ||
19661 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19664 # configure is writing to config.log, and then calls config.status.
19665 # config.status does its own redirection, appending to config.log.
19666 # Unfortunately, on DOS this fails, as config.log is still kept open
19667 # by configure, so config.status won't be able to write to it; its
19668 # output is simply discarded. So we exec the FD to /dev/null,
19669 # effectively closing config.log, so it can be properly (re)opened and
19670 # appended to by config.status. When coming back to configure, we
19671 # need to make the FD available again.
19672 if test "$no_create" != yes; then
19673 ac_cs_success=:
19674 ac_config_status_args=
19675 test "$silent" = yes &&
19676 ac_config_status_args="$ac_config_status_args --quiet"
19677 exec 5>/dev/null
19678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19679 exec 5>>config.log
19680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19681 # would make configure fail if this is the last instruction.
19682 $ac_cs_success || as_fn_exit 1
19684 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19686 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}