2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenVPN 2.3.11.
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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 :
215 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
220 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir
=.
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 :
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
248 if test "x$CONFIG_SHELL" != x
; then :
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.
256 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
258 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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."
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
287 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir
=.
/$as_dir;;
332 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
336 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
366 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
385 eval 'as_fn_append ()
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 :
409 as_val
=`expr "$@" || test $? -eq 1`
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.
421 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
430 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
437 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
449 as_me
=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
507 # Exit status is that of the last command.
511 ECHO_C
= ECHO_N
= ECHO_T
=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
524 rm -f conf$$ conf$$.exe conf$$.
file
525 if test -d conf$$.dir
; then
526 rm -f conf$$.dir
/conf$$.
file
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
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 ||
540 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
554 test -d .
/-p && rmdir .
/-p
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
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`
581 ac_default_prefix
=/usr
/local
583 ac_config_libobj_dir
=.
590 # Identity of this package.
591 PACKAGE_NAME
='OpenVPN'
592 PACKAGE_TARNAME
='openvpn'
593 PACKAGE_VERSION
='2.3.11'
594 PACKAGE_STRING
='OpenVPN 2.3.11'
595 PACKAGE_BUGREPORT
='openvpn-users@lists.sourceforge.net'
598 ac_unique_file
="src/openvpn/syshead.h"
599 # Factoring default headers for most tests.
600 ac_includes_default
="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars
='am__EXEEXT_FALSE
641 ENABLE_PLUGIN_DOWN_ROOT_FALSE
642 ENABLE_PLUGIN_DOWN_ROOT_TRUE
643 ENABLE_PLUGIN_AUTH_PAM_FALSE
644 ENABLE_PLUGIN_AUTH_PAM_TRUE
650 PLUGIN_AUTH_PAM_CFLAGS
651 OPTIONAL_PKCS11_HELPER_LIBS
652 OPTIONAL_PKCS11_HELPER_CFLAGS
653 OPTIONAL_SYSTEMD_LIBS
657 OPTIONAL_CRYPTO_CFLAGS
658 OPTIONAL_SELINUX_LIBS
674 OPENSSL_CRYPTO_CFLAGS
755 INSTALL_STRIP_PROGRAM
797 program_transform_name
810 enable_option_checking
812 enable_dependency_tracking
818 enable_x509_alt_username
834 enable_plugin_auth_pam
835 enable_plugin_down_root
839 enable_strict_options
855 ac_precious_vars
='build_alias
880 OPENSSL_CRYPTO_CFLAGS
894 # Initialize some variables set by options.
896 ac_init_version
=false
897 ac_unrecognized_opts
=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
908 program_transform_name
=s
,x
,x
,
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir
='${exec_prefix}/bin'
923 sbindir
='${exec_prefix}/sbin'
924 libexecdir
='${exec_prefix}/libexec'
925 datarootdir
='${prefix}/share'
926 datadir
='${datarootdir}'
927 sysconfdir
='${prefix}/etc'
928 sharedstatedir
='${prefix}/com'
929 localstatedir
='${prefix}/var'
930 includedir
='${prefix}/include'
931 oldincludedir
='/usr/include'
932 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir
='${datarootdir}/info'
938 libdir
='${exec_prefix}/lib'
939 localedir
='${datarootdir}/locale'
940 mandir
='${datarootdir}/man'
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\
$ac_option
954 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
965 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
967 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
970 -build |
--build |
--buil |
--bui |
--bu)
971 ac_prev
=build_alias
;;
972 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
973 build_alias
=$ac_optarg ;;
975 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
976 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
977 ac_prev
=cache_file
;;
978 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
979 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
980 cache_file
=$ac_optarg ;;
983 cache_file
=config.cache
;;
985 -datadir |
--datadir |
--datadi |
--datad)
987 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
988 datadir
=$ac_optarg ;;
990 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
991 |
--dataroo |
--dataro |
--datar)
992 ac_prev
=datarootdir
;;
993 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
994 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
995 datarootdir
=$ac_optarg ;;
997 -disable-* |
--disable-*)
998 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1001 as_fn_error $?
"invalid feature name: $ac_useropt"
1002 ac_useropt_orig
=$ac_useropt
1003 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_
$ac_useropt"
1008 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep
=', ';;
1011 eval enable_
$ac_useropt=no
;;
1013 -docdir |
--docdir |
--docdi |
--doc |
--do)
1015 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1016 docdir
=$ac_optarg ;;
1018 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1020 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1021 dvidir
=$ac_optarg ;;
1023 -enable-* |
--enable-*)
1024 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1027 as_fn_error $?
"invalid feature name: $ac_useropt"
1028 ac_useropt_orig
=$ac_useropt
1029 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_
$ac_useropt"
1034 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep
=', ';;
1037 eval enable_
$ac_useropt=\
$ac_optarg ;;
1039 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1040 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1041 |
--exec |
--exe |
--ex)
1042 ac_prev
=exec_prefix
;;
1043 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1044 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1045 |
--exec=* |
--exe=* |
--ex=*)
1046 exec_prefix
=$ac_optarg ;;
1048 -gas |
--gas |
--ga |
--g)
1049 # Obsolete; use --with-gas.
1052 -help |
--help |
--hel |
--he |
-h)
1053 ac_init_help
=long
;;
1054 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1055 ac_init_help
=recursive
;;
1056 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1057 ac_init_help
=short
;;
1059 -host |
--host |
--hos |
--ho)
1060 ac_prev
=host_alias
;;
1061 -host=* |
--host=* |
--hos=* |
--ho=*)
1062 host_alias
=$ac_optarg ;;
1064 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1066 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1068 htmldir
=$ac_optarg ;;
1070 -includedir |
--includedir |
--includedi |
--included |
--include \
1071 |
--includ |
--inclu |
--incl |
--inc)
1072 ac_prev
=includedir
;;
1073 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1074 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1075 includedir
=$ac_optarg ;;
1077 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1079 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1080 infodir
=$ac_optarg ;;
1082 -libdir |
--libdir |
--libdi |
--libd)
1084 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1085 libdir
=$ac_optarg ;;
1087 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1088 |
--libexe |
--libex |
--libe)
1089 ac_prev
=libexecdir
;;
1090 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1091 |
--libexe=* |
--libex=* |
--libe=*)
1092 libexecdir
=$ac_optarg ;;
1094 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1095 ac_prev
=localedir
;;
1096 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1097 localedir
=$ac_optarg ;;
1099 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1100 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1101 ac_prev
=localstatedir
;;
1102 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1103 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1104 localstatedir
=$ac_optarg ;;
1106 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1108 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1109 mandir
=$ac_optarg ;;
1111 -nfp |
--nfp |
--nf)
1112 # Obsolete; use --without-fp.
1115 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1116 |
--no-cr |
--no-c |
-n)
1119 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1120 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1123 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1124 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1125 |
--oldin |
--oldi |
--old |
--ol |
--o)
1126 ac_prev
=oldincludedir
;;
1127 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1128 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1129 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1130 oldincludedir
=$ac_optarg ;;
1132 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1134 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1135 prefix
=$ac_optarg ;;
1137 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1138 |
--program-pre |
--program-pr |
--program-p)
1139 ac_prev
=program_prefix
;;
1140 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1141 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1142 program_prefix
=$ac_optarg ;;
1144 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1145 |
--program-suf |
--program-su |
--program-s)
1146 ac_prev
=program_suffix
;;
1147 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1148 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1149 program_suffix
=$ac_optarg ;;
1151 -program-transform-name |
--program-transform-name \
1152 |
--program-transform-nam |
--program-transform-na \
1153 |
--program-transform-n |
--program-transform- \
1154 |
--program-transform |
--program-transfor \
1155 |
--program-transfo |
--program-transf \
1156 |
--program-trans |
--program-tran \
1157 |
--progr-tra |
--program-tr |
--program-t)
1158 ac_prev
=program_transform_name
;;
1159 -program-transform-name=* |
--program-transform-name=* \
1160 |
--program-transform-nam=* |
--program-transform-na=* \
1161 |
--program-transform-n=* |
--program-transform-=* \
1162 |
--program-transform=* |
--program-transfor=* \
1163 |
--program-transfo=* |
--program-transf=* \
1164 |
--program-trans=* |
--program-tran=* \
1165 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1166 program_transform_name
=$ac_optarg ;;
1168 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1170 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1171 pdfdir
=$ac_optarg ;;
1173 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1175 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1178 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1179 |
-silent |
--silent |
--silen |
--sile |
--sil)
1182 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1184 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1186 sbindir
=$ac_optarg ;;
1188 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1189 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1190 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1192 ac_prev
=sharedstatedir
;;
1193 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1194 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1195 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1197 sharedstatedir
=$ac_optarg ;;
1199 -site |
--site |
--sit)
1201 -site=* |
--site=* |
--sit=*)
1204 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1206 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1207 srcdir
=$ac_optarg ;;
1209 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1210 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1211 ac_prev
=sysconfdir
;;
1212 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1213 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1214 sysconfdir
=$ac_optarg ;;
1216 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1217 ac_prev
=target_alias
;;
1218 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1219 target_alias
=$ac_optarg ;;
1221 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1224 -version |
--version |
--versio |
--versi |
--vers |
-V)
1225 ac_init_version
=: ;;
1228 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1231 as_fn_error $?
"invalid package name: $ac_useropt"
1232 ac_useropt_orig
=$ac_useropt
1233 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1238 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep
=', ';;
1241 eval with_
$ac_useropt=\
$ac_optarg ;;
1243 -without-* |
--without-*)
1244 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1247 as_fn_error $?
"invalid package name: $ac_useropt"
1248 ac_useropt_orig
=$ac_useropt
1249 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1254 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep
=', ';;
1257 eval with_
$ac_useropt=no
;;
1260 # Obsolete; use --with-x.
1263 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1264 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1265 ac_prev
=x_includes
;;
1266 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1267 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1268 x_includes
=$ac_optarg ;;
1270 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1271 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1272 ac_prev
=x_libraries
;;
1273 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1274 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1275 x_libraries
=$ac_optarg ;;
1277 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1282 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1286 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1288 eval $ac_envvar=\
$ac_optarg
1289 export $ac_envvar ;;
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 if test -n "$ac_prev"; then
1303 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $?
"missing argument to $ac_option"
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1310 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315 # Check all directory arguments for consistency.
1316 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val
=\$
$ac_var
1322 # Remove trailing slashes.
1325 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\
$ac_val;;
1328 # Be sure to have absolute directory names.
1330 [\\/$
]* | ?
:[\\/]* ) continue;;
1331 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1333 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1341 target
=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x
; then
1345 if test "x$build_alias" = x
; then
1346 cross_compiling
=maybe
1347 elif test "x$build_alias" != "x$host_alias"; then
1353 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1355 test "$silent" = yes && exec 6>/dev
/null
1358 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di
=`ls -di .` &&
1360 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $?
"working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $?
"pwd does not report name of working directory"
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted
=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir
=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted
=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1402 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1404 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1416 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 for ac_var
in $ac_precious_vars; do
1419 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1421 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures OpenVPN 2.3.11 to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1495 --build=BUILD configure
for building on BUILD
[guessed
]
1496 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1500 if test -n "$ac_init_help"; then
1501 case $ac_init_help in
1502 short | recursive
) echo "Configuration of OpenVPN 2.3.11:";;
1507 --disable-option-checking ignore unrecognized
--enable/--with options
1508 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1509 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1510 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1511 --disable-silent-rules verbose build output
(undo
: "make V=0")
1512 --enable-dependency-tracking
1513 do not reject slow dependency extractors
1514 --disable-dependency-tracking
1515 speeds up one-time build
1516 --disable-lzo disable LZO compression support
[default
=yes]
1517 --enable-lzo-stub don
't compile LZO compression support but still
1518 allow limited interoperability with LZO-enabled
1520 --disable-crypto disable crypto support [default=yes]
1521 --disable-ofb-cfb disable support for OFB and CFB cipher modes
1523 --disable-ssl disable SSL support for TLS-based key exchange
1525 --enable-x509-alt-username
1526 enable the --x509-username-field feature
1528 --disable-multi disable client/server support (--mode server +
1529 client mode) [default=yes]
1530 --disable-server disable server support only (but retain client
1531 support) [default=yes]
1532 --disable-plugins disable plug-in support [default=yes]
1533 --disable-management disable management server support [default=yes]
1534 --enable-pkcs11 enable pkcs11 support [default=no]
1535 --disable-socks disable Socks support [default=yes]
1536 --disable-http-proxy disable HTTP proxy support [default=yes]
1537 --disable-fragment disable internal fragmentation support (--fragment)
1539 --disable-multihome disable multi-homed UDP server support (--multihome)
1541 --disable-port-share disable TCP server port-share support (--port-share)
1543 --disable-debug disable debugging support (disable gremlin and verb
1544 7+ messages) [default=yes]
1545 --enable-small enable smaller executable size (disable OCC, usage
1546 message, and verb 4 parm list) [default=no]
1547 --enable-iproute2 enable support for iproute2 [default=no]
1548 --disable-def-auth disable deferred authentication [default=yes]
1549 --disable-pf disable internal packet filter [default=yes]
1550 --disable-plugin-auth-pam
1551 disable auth-pam plugin [default=platform specific]
1552 --disable-plugin-down-root
1553 disable down-root plugin [default=platform specific]
1554 --enable-pam-dlopen dlopen libpam [default=no]
1555 --enable-strict enable strict compiler warnings (debugging option)
1557 --enable-pedantic enable pedantic compiler warnings, will not generate
1558 a working executable (debugging option) [default=no]
1559 --enable-strict-options enable strict options check between peers (debugging
1560 option) [default=no]
1561 --enable-selinux enable SELinux support [default=no]
1562 --enable-systemd enable systemd suppport [default=no]
1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1572 --with-special-build=STRING
1573 specify special build string
1574 --with-mem-check=TYPE build with debug memory checking,
1575 TYPE=no|dmalloc|valgrind|ssl [default=no]
1576 --with-crypto-library=library
1577 build with the given crypto library,
1578 TYPE=openssl|polarssl [default=openssl]
1579 --with-plugindir plugin directory [default=LIBDIR/openvpn]
1580 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1582 --with-aix-soname=aix|svr4|both
1583 shared library versioning (aka "SONAME") variant to
1584 provide on AIX, [default=aix].
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1587 compiler's sysroot
if not specified
).
1589 Some influential environment variables
:
1590 CC C compiler
command
1591 CFLAGS C compiler flags
1592 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1593 nonstandard directory
<lib dir
>
1594 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1595 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1596 you have headers
in a nonstandard directory
<include dir
>
1598 PKG_CONFIG path to pkg-config utility
1600 directories to add to pkg-config
's search path
1602 path overriding pkg-config's built-in search path
1603 IFCONFIG full path to ipconfig utility
1604 ROUTE full path to route utility
1605 IPROUTE full path to ip utility
1606 NETSTAT path to netstat utility
1607 MAN2HTML path to man2html utility
1608 GIT path to git utility
1609 SYSTEMD_ASK_PASSWORD
1610 path to systemd-ask-password utility
1612 User-defined run-time library search path.
1613 TAP_CFLAGS C compiler flags
for tap
1615 C compiler flags
for libpam
1616 LIBPAM_LIBS linker flags
for libpam
1617 PKCS11_HELPER_CFLAGS
1618 C compiler flags
for PKCS11_HELPER
, overriding pkg-config
1620 linker flags
for PKCS11_HELPER
, overriding pkg-config
1621 OPENSSL_CRYPTO_CFLAGS
1622 C compiler flags
for OPENSSL_CRYPTO
, overriding pkg-config
1624 linker flags
for OPENSSL_CRYPTO
, overriding pkg-config
1626 C compiler flags
for OPENSSL_SSL
, overriding pkg-config
1628 linker flags
for OPENSSL_SSL
, overriding pkg-config
1630 C compiler flags
for polarssl
1632 linker flags
for polarssl
1633 LZO_CFLAGS C compiler flags
for lzo
1634 LZO_LIBS linker flags
for lzo
1636 C compiler flags
for libsystemd
, overriding pkg-config
1638 linker flags
for libsystemd
, overriding pkg-config
1640 C compiler flags
for P11KIT
, overriding pkg-config
1641 P11KIT_LIBS linker flags
for P11KIT
, overriding pkg-config
1643 Use these variables to override the choices made by
`configure' or to help
1644 it to find libraries and programs with nonstandard names/locations.
1646 Report bugs to <openvpn-users@lists.sourceforge.net>.
1651 if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1676 .) # We are building in place.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1709 OpenVPN configure 2.3.11
1710 generated by GNU Autoconf 2.69
1712 Copyright (C) 2012 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1719 ## ------------------------ ##
1720 ## Autoconf initialization. ##
1721 ## ------------------------ ##
1723 # ac_fn_c_try_compile LINENO
1724 # --------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1733 *) ac_try_echo
=$ac_try;;
1735 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1739 if test -s conftest.err
; then
1740 grep -v '^ *+' conftest.err
>conftest.er1
1741 cat conftest.er1
>&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.
$ac_objext; then :
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.
$ac_ext >&5
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status
$ac_retval
1759 } # ac_fn_c_try_compile
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1767 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } > conftest.i && {
1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1798 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801 # the include files in INCLUDES and setting the cache variable VAR
1803 ac_fn_c_check_header_mongrel ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if eval \${$3+:} false; then :
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1816 # Is the header compilable?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818 $as_echo_n "checking $2 usability... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_header_compiler=yes
1827 ac_header_compiler=no
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831 $as_echo "$ac_header_compiler" >&6; }
1833 # Is the header present?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835 $as_echo_n "checking $2 presence... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1840 if ac_fn_c_try_cpp "$LINENO"; then :
1841 ac_header_preproc=yes
1843 ac_header_preproc=no
1845 rm -f conftest.err conftest.i conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847 $as_echo "$ac_header_preproc" >&6; }
1849 # So? What about this header?
1850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1861 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1865 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 ( $as_echo "## -------------------------------------------------- ##
1869 ## Report this to openvpn-users@lists.sourceforge.net ##
1870 ## -------------------------------------------------- ##"
1871 ) | sed "s/^/$as_me: WARNING: /" >&2
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1879 eval "$3=\$ac_header_compiler"
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 } # ac_fn_c_check_header_mongrel
1889 # ac_fn_c_try_run LINENO
1890 # ----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1892 # that executables *can* be run.
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { { ac_try="$ac_link"
1898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1899 *) ac_try_echo
=$ac_try;;
1901 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>&5
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1907 { { case "(($ac_try" in
1908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_try") 2>&5
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; }; }; then :
1919 $as_echo "$as_me: program exited with status $ac_status" >&5
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=$ac_status
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_compile
1962 # ac_fn_c_try_link LINENO
1963 # -----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded.
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 rm -f conftest.$ac_objext conftest$ac_exeext
1969 if { { ac_try="$ac_link"
1971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1972 *) ac_try_echo
=$ac_try;;
1974 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>conftest.err
1978 if test -s conftest.err
; then
1979 grep -v '^ *+' conftest.err
>conftest.er1
1980 cat conftest.er1
>&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } && {
1985 test -z "$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1987 } && test -s conftest
$ac_exeext && {
1988 test "$cross_compiling" = yes ||
1989 test -x conftest
$ac_exeext
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.
$ac_ext >&5
1998 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1999 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2000 # interfere with the next link command; also delete a directory that is
2001 # left behind by Apple's compiler. We do this before executing the actions.
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status
$ac_retval
2006 } # ac_fn_c_try_link
2008 # ac_fn_c_check_func LINENO FUNC VAR
2009 # ----------------------------------
2010 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2011 ac_fn_c_check_func
()
2013 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \
${$3+:} false
; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2023 #define $2 innocuous_$2
2025 /* System header to define __stub macros and hopefully few prototypes,
2026 which can conflict with char $2 (); below.
2027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2028 <limits.h> exists even on freestanding compilers. */
2031 # include <limits.h>
2033 # include <assert.h>
2038 /* Override any GCC internal prototype to avoid an error.
2039 Use char because int might match the return type of a GCC
2040 builtin and then its argument prototype would still apply. */
2045 /* The GNU C library defines this for functions which it implements
2046 to always fail with ENOSYS. Some functions are actually named
2047 something starting with __ and the normal name is an alias. */
2048 #if defined __stub_$2 || defined __stub___$2
2060 if ac_fn_c_try_link
"$LINENO"; then :
2065 rm -f core conftest.err conftest.
$ac_objext \
2066 conftest
$ac_exeext conftest.
$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 } # ac_fn_c_check_func
2075 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2076 # -------------------------------------------
2077 # Tests whether TYPE exists after having included INCLUDES, setting cache
2078 # variable VAR accordingly.
2079 ac_fn_c_check_type
()
2081 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \
${$3+:} false
; then :
2085 $as_echo_n "(cached) " >&6
2088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2100 if ac_fn_c_try_compile
"$LINENO"; then :
2101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2113 if ac_fn_c_try_compile
"$LINENO"; then :
2118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127 } # ac_fn_c_check_type
2129 # ac_fn_c_find_intX_t LINENO BITS VAR
2130 # -----------------------------------
2131 # Finds a signed integer type with width BITS, setting cache variable VAR
2133 ac_fn_c_find_intX_t
()
2135 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2137 $as_echo_n "checking for int$2_t... " >&6; }
2138 if eval \
${$3+:} false
; then :
2139 $as_echo_n "(cached) " >&6
2142 # Order is important - never check a type that is potentially smaller
2143 # than half of the expected target width.
2144 for ac_type
in int
$2_t 'int' 'long int' \
2145 'long long int' 'short int' 'signed char'; do
2146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2148 $ac_includes_default
2149 enum { N = $2 / 2 - 1 };
2153 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2155 return test_array [0];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2164 $ac_includes_default
2165 enum { N = $2 / 2 - 1 };
2169 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2170 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2172 return test_array [0];
2178 if ac_fn_c_try_compile
"$LINENO"; then :
2185 eval "$3=\$ac_type" ;;
2188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2191 if eval test \"x\$
"$3"\" = x
"no"; then :
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 } # ac_fn_c_find_intX_t
2205 # ac_fn_c_find_uintX_t LINENO BITS VAR
2206 # ------------------------------------
2207 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2209 ac_fn_c_find_uintX_t
()
2211 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2213 $as_echo_n "checking for uint$2_t... " >&6; }
2214 if eval \
${$3+:} false
; then :
2215 $as_echo_n "(cached) " >&6
2218 # Order is important - never check a type that is potentially smaller
2219 # than half of the expected target width.
2220 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2221 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 $ac_includes_default
2228 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2230 return test_array [0];
2236 if ac_fn_c_try_compile
"$LINENO"; then :
2241 eval "$3=\$ac_type" ;;
2244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2245 if eval test \"x\$
"$3"\" = x
"no"; then :
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 } # ac_fn_c_find_uintX_t
2259 # ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2260 # --------------------------------------------------------------
2261 # Tries to find the compile-time value of EXPR in a program that includes
2262 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2264 ac_fn_c_compute_int
()
2266 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2267 if test "$cross_compiling" = yes; then
2268 # Depending upon the size, compute the lo and hi bounds.
2269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) >= 0)];
2277 return test_array [0];
2283 if ac_fn_c_try_compile
"$LINENO"; then :
2286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2292 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2294 return test_array [0];
2300 if ac_fn_c_try_compile
"$LINENO"; then :
2301 ac_hi
=$ac_mid; break
2303 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2304 if test $ac_lo -le $ac_mid; then
2308 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 static int test_array [1 - 2 * !(($2) < 0)];
2321 return test_array [0];
2327 if ac_fn_c_try_compile
"$LINENO"; then :
2330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2336 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2338 return test_array [0];
2344 if ac_fn_c_try_compile
"$LINENO"; then :
2345 ac_lo
=$ac_mid; break
2347 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2348 if test $ac_mid -le $ac_hi; then
2352 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2362 # Binary search between lo and hi bounds.
2363 while test "x$ac_lo" != "x$ac_hi"; do
2364 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2371 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2373 return test_array [0];
2379 if ac_fn_c_try_compile
"$LINENO"; then :
2382 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2387 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2394 static long int longval () { return $2; }
2395 static unsigned long int ulongval () { return $2; }
2402 FILE *f = fopen ("conftest.val", "w");
2407 long int i = longval ();
2410 fprintf (f, "%ld", i);
2414 unsigned long int i = ulongval ();
2417 fprintf (f, "%lu", i);
2419 /* Do not output a trailing newline, as this causes \r\n confusion
2420 on some platforms. */
2421 return ferror (f) || fclose (f) != 0;
2427 if ac_fn_c_try_run
"$LINENO"; then :
2428 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2432 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2433 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438 as_fn_set_status
$ac_retval
2440 } # ac_fn_c_compute_int
2442 # ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2443 # ---------------------------------------------------------------
2444 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2446 ac_fn_c_check_decl
()
2448 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2449 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2450 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2452 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2453 if eval \
${$3+:} false
; then :
2454 $as_echo_n "(cached) " >&6
2456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2462 #ifndef $as_decl_name
2464 (void) $as_decl_use;
2466 (void) $as_decl_name;
2474 if ac_fn_c_try_compile
"$LINENO"; then :
2479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483 $as_echo "$ac_res" >&6; }
2484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486 } # ac_fn_c_check_decl
2487 cat >config.log
<<_ACEOF
2488 This file contains any messages produced by compilers while
2489 running configure, to aid debugging if configure makes a mistake.
2491 It was created by OpenVPN $as_me 2.3.11, which was
2492 generated by GNU Autoconf 2.69. Invocation command line was
2504 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2505 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2506 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2507 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2508 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2510 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2511 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2513 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2514 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2515 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2516 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2517 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2518 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2519 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir
=.
2528 $as_echo "PATH: $as_dir"
2544 # Keep a trace of the command line.
2545 # Strip out --no-create and --no-recursion so they do not pile up.
2546 # Strip out --silent because we don't want to record it for future runs.
2547 # Also quote any args containing shell meta-characters.
2548 # Make two passes to allow for proper duplicate-argument suppression.
2552 ac_must_keep_next
=false
2558 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2559 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2560 |
-silent |
--silent |
--silen |
--sile |
--sil)
2563 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2566 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2568 as_fn_append ac_configure_args1
" '$ac_arg'"
2569 if test $ac_must_keep_next = true
; then
2570 ac_must_keep_next
=false
# Got value, back to normal.
2573 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2574 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2575 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2576 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2577 case "$ac_configure_args0 " in
2578 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2581 -* ) ac_must_keep_next
=true
;;
2584 as_fn_append ac_configure_args
" '$ac_arg'"
2589 { ac_configure_args0
=; unset ac_configure_args0
;}
2590 { ac_configure_args1
=; unset ac_configure_args1
;}
2592 # When interrupted or exit'd, cleanup temporary files, and complete
2593 # config.log. We remove comments because anyway the quotes in there
2594 # would cause problems or look ugly.
2595 # WARNING: Use '\'' to represent an apostrophe within the trap.
2596 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2597 trap 'exit_status=$?
2598 # Save into config.log some information that might help in debugging.
2602 $as_echo "## ---------------- ##
2603 ## Cache variables. ##
2604 ## ---------------- ##"
2606 # The following way of writing the cache mishandles newlines in values,
2608 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2609 eval ac_val=\$$ac_var
2613 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2614 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2617 _ | IFS | as_nl) ;; #(
2618 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2619 *) { eval $ac_var=; unset $ac_var;} ;;
2624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2625 *${as_nl}ac_space=\ *)
2627 "s/'\''/'\''\\\\'\'''\''/g;
2628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2638 $as_echo "## ----------------- ##
2639 ## Output variables. ##
2640 ## ----------------- ##"
2642 for ac_var in $ac_subst_vars
2644 eval ac_val=\$$ac_var
2646 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2648 $as_echo "$ac_var='\''$ac_val'\''"
2652 if test -n "$ac_subst_files"; then
2653 $as_echo "## ------------------- ##
2654 ## File substitutions. ##
2655 ## ------------------- ##"
2657 for ac_var
in $ac_subst_files
2659 eval ac_val
=\$
$ac_var
2661 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2663 $as_echo "$ac_var='\''$ac_val'\''"
2668 if test -s confdefs.h; then
2669 $as_echo "## ----------- ##
2676 test "$ac_signal" != 0 &&
2677 $as_echo "$as_me: caught signal $ac_signal"
2678 $as_echo "$as_me: exit $exit_status"
2680 rm -f core *.core core.conftest.* &&
2681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2684 for ac_signal
in 1 2 13 15; do
2685 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2690 rm -f -r conftest
* confdefs.h
2692 $as_echo "/* confdefs.h */" > confdefs.h
2694 # Predefined preprocessor variables.
2696 cat >>confdefs.h
<<_ACEOF
2697 #define PACKAGE_NAME "$PACKAGE_NAME"
2700 cat >>confdefs.h
<<_ACEOF
2701 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2704 cat >>confdefs.h
<<_ACEOF
2705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2708 cat >>confdefs.h
<<_ACEOF
2709 #define PACKAGE_STRING "$PACKAGE_STRING"
2712 cat >>confdefs.h
<<_ACEOF
2713 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2716 cat >>confdefs.h
<<_ACEOF
2717 #define PACKAGE_URL "$PACKAGE_URL"
2721 # Let the site file select an alternate cache file if it wants to.
2722 # Prefer an explicitly selected file to automatically selected ones.
2725 if test -n "$CONFIG_SITE"; then
2726 # We do not want a PATH search for config.site.
2727 case $CONFIG_SITE in #((
2728 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2729 */*) ac_site_file1
=$CONFIG_SITE;;
2730 *) ac_site_file1
=.
/$CONFIG_SITE;;
2732 elif test "x$prefix" != xNONE
; then
2733 ac_site_file1
=$prefix/share
/config.site
2734 ac_site_file2
=$prefix/etc
/config.site
2736 ac_site_file1
=$ac_default_prefix/share
/config.site
2737 ac_site_file2
=$ac_default_prefix/etc
/config.site
2739 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2741 test "x$ac_site_file" = xNONE
&& continue
2742 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2744 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2745 sed 's/^/| /' "$ac_site_file" >&5
2747 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2749 as_fn_error $?
"failed to load site script $ac_site_file
2750 See \`config.log' for more details" "$LINENO" 5; }
2754 if test -r "$cache_file"; then
2755 # Some versions of bash will fail to source /dev/null (special files
2756 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2757 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2759 $as_echo "$as_me: loading cache $cache_file" >&6;}
2761 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2762 *) .
"./$cache_file";;
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2767 $as_echo "$as_me: creating cache $cache_file" >&6;}
2771 # Check that the precious variables saved in the cache have kept the same
2773 ac_cache_corrupted
=false
2774 for ac_var
in $ac_precious_vars; do
2775 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2776 eval ac_new_set
=\
$ac_env_${ac_var}_set
2777 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2778 eval ac_new_val
=\
$ac_env_${ac_var}_value
2779 case $ac_old_set,$ac_new_set in
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2782 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2783 ac_cache_corrupted
=: ;;
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2786 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2787 ac_cache_corrupted
=: ;;
2790 if test "x$ac_old_val" != "x$ac_new_val"; then
2791 # differences in whitespace do not lead to failure.
2792 ac_old_val_w
=`echo x $ac_old_val`
2793 ac_new_val_w
=`echo x $ac_new_val`
2794 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2796 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2797 ac_cache_corrupted
=:
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2800 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2801 eval $ac_var=\
$ac_old_val
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2804 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2806 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2809 # Pass precious variables to config.status.
2810 if test "$ac_new_set" = set; then
2812 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2813 *) ac_arg
=$ac_var=$ac_new_val ;;
2815 case " $ac_configure_args " in
2816 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2817 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2821 if $ac_cache_corrupted; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2825 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2826 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2828 ## -------------------- ##
2829 ## Main body of script. ##
2830 ## -------------------- ##
2833 ac_cpp
='$CPP $CPPFLAGS'
2834 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2845 if test -z "${docdir}"; then
2846 docdir
="\$(datadir)/doc/\$(PACKAGE_NAME)"
2849 if test -z "${htmldir}"; then
2850 htmldir
="\$(docdir)"
2855 $as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,11,0" >>confdefs.h
2859 for ac_dir
in .
"$srcdir"/.
; do
2860 if test -f "$ac_dir/install-sh"; then
2862 ac_install_sh
="$ac_aux_dir/install-sh -c"
2864 elif test -f "$ac_dir/install.sh"; then
2866 ac_install_sh
="$ac_aux_dir/install.sh -c"
2868 elif test -f "$ac_dir/shtool"; then
2870 ac_install_sh
="$ac_aux_dir/shtool install -c"
2874 if test -z "$ac_aux_dir"; then
2875 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2878 # These three variables are undocumented and unsupported,
2879 # and are intended to be withdrawn in a future Autoconf release.
2880 # They can cause serious problems if a builder's source tree is in a directory
2881 # whose full name contains unusual characters.
2882 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2883 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2884 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2887 ac_config_headers
="$ac_config_headers config.h"
2893 am__api_version
='1.15'
2895 # Find a good install program. We prefer a C program (faster),
2896 # so one script is as good as another. But avoid the broken or
2897 # incompatible versions:
2898 # SysV /etc/install, /usr/sbin/install
2899 # SunOS /usr/etc/install
2900 # IRIX /sbin/install
2902 # AmigaOS /C/install, which installs bootblocks on floppy discs
2903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2906 # OS/2's system install, which has a completely different semantic
2907 # ./install, which can be erroneously created by make from ./install.sh.
2908 # Reject install programs that cannot install multiple files.
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2910 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2911 if test -z "$INSTALL"; then
2912 if ${ac_cv_path_install+:} false
; then :
2913 $as_echo_n "(cached) " >&6
2915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir
=.
2920 # Account for people who put trailing slashes in PATH elements.
2921 case $as_dir/ in #((
2922 .
/ | .
// |
/[cC
]/* | \
2923 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2924 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2927 # OSF1 and SCO ODT 3.0 have their own names for install.
2928 # Don't use installbsd from OSF since it installs stuff as root
2930 for ac_prog
in ginstall scoinst
install; do
2931 for ac_exec_ext
in '' $ac_executable_extensions; do
2932 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2933 if test $ac_prog = install &&
2934 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2935 # AIX install. It has an incompatible calling convention.
2937 elif test $ac_prog = install &&
2938 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2939 # program-specific install script used by HP pwplus--don't use.
2942 rm -rf conftest.one conftest.two conftest.dir
2943 echo one
> conftest.one
2944 echo two
> conftest.two
2946 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2947 test -s conftest.one
&& test -s conftest.two
&&
2948 test -s conftest.dir
/conftest.one
&&
2949 test -s conftest.dir
/conftest.two
2951 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2964 rm -rf conftest.one conftest.two conftest.dir
2967 if test "${ac_cv_path_install+set}" = set; then
2968 INSTALL
=$ac_cv_path_install
2970 # As a last resort, use the slow shell script. Don't cache a
2971 # value for INSTALL within a source directory, because that will
2972 # break other packages using the cache if that directory is
2973 # removed, or if the value is a relative name.
2974 INSTALL
=$ac_install_sh
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2978 $as_echo "$INSTALL" >&6; }
2980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2981 # It thinks the first close brace ends the variable substitution.
2982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2986 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2989 $as_echo_n "checking whether build environment is sane... " >&6; }
2990 # Reject unsafe characters in $srcdir or the absolute working directory
2991 # name. Accept space and tab only in the latter.
2995 *[\\\"\
#\$\&\'\`$am_lf]*)
2996 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2999 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3000 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3003 # Do 'set' in a subshell so we don't clobber the current shell's
3004 # arguments. Must try -L first in case configure is actually a
3005 # symlink; some systems play weird games with the mod time of symlinks
3006 # (eg FreeBSD returns the mod time of the symlink's containing
3010 for am_try
in 1 2; do
3011 echo "timestamp, slept: $am_has_slept" > conftest.
file
3012 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3013 if test "$*" = "X"; then
3015 set X
`ls -t "$srcdir/configure" conftest.file`
3017 if test "$*" != "X $srcdir/configure conftest.file" \
3018 && test "$*" != "X conftest.file $srcdir/configure"; then
3020 # If neither matched, then we have a broken ls. This can happen
3021 # if, for instance, CONFIG_SHELL is bash and it inherits a
3022 # broken ls alias from the environment. This has actually
3023 # happened. Such a system could not be considered "sane".
3024 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3025 alias in your environment" "$LINENO" 5
3027 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3034 test "$2" = conftest.
file
3040 as_fn_error $?
"newly created file is older than distributed files!
3041 Check your system clock" "$LINENO" 5
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3044 $as_echo "yes" >&6; }
3045 # If we didn't sleep, we still need to ensure time stamps of config.status and
3046 # generated files are strictly newer.
3048 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3055 test "$program_prefix" != NONE
&&
3056 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3057 # Use a double $ so make ignores it.
3058 test "$program_suffix" != NONE
&&
3059 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3060 # Double any \ or $.
3061 # By default was `s,x,x', remove it if useless.
3062 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3063 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3065 # Expand $ac_aux_dir to an absolute path.
3066 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3068 if test x
"${MISSING+set}" != xset
; then
3071 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3073 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3076 # Use eval to expand $SHELL
3077 if eval "$MISSING --is-lightweight"; then
3078 am_missing_run
="$MISSING "
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3082 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3085 if test x
"${install_sh+set}" != xset
; then
3088 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3090 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3094 # Installed binaries are usually stripped using 'strip' when the user
3095 # run "make install-strip". However 'strip' might not be the right
3096 # tool to use in cross-compilation environments, therefore Automake
3097 # will honor the 'STRIP' environment variable to overrule this program.
3098 if test "$cross_compiling" != no
; then
3099 if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3101 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_STRIP+:} false
; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$STRIP"; then
3108 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir
=.
3115 for ac_exec_ext
in '' $ac_executable_extensions; do
3116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 STRIP
=$ac_cv_prog_STRIP
3128 if test -n "$STRIP"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3130 $as_echo "$STRIP" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3138 if test -z "$ac_cv_prog_STRIP"; then
3140 # Extract the first word of "strip", so it can be a program name with args.
3141 set dummy strip
; ac_word
=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3145 $as_echo_n "(cached) " >&6
3147 if test -n "$ac_ct_STRIP"; then
3148 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir
=.
3155 for ac_exec_ext
in '' $ac_executable_extensions; do
3156 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_ac_ct_STRIP
="strip"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3168 if test -n "$ac_ct_STRIP"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3170 $as_echo "$ac_ct_STRIP" >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3176 if test "x$ac_ct_STRIP" = x
; then
3179 case $cross_compiling:$ac_tool_warned in
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183 ac_tool_warned
=yes ;;
3188 STRIP
="$ac_cv_prog_STRIP"
3192 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3195 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3196 if test -z "$MKDIR_P"; then
3197 if ${ac_cv_path_mkdir+:} false
; then :
3198 $as_echo_n "(cached) " >&6
3200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3201 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3204 test -z "$as_dir" && as_dir
=.
3205 for ac_prog
in mkdir gmkdir
; do
3206 for ac_exec_ext
in '' $ac_executable_extensions; do
3207 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3208 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3209 'mkdir (GNU coreutils) '* | \
3210 'mkdir (coreutils) '* | \
3211 'mkdir (fileutils) '4.1*)
3212 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3222 test -d .
/--version && rmdir .
/--version
3223 if test "${ac_cv_path_mkdir+set}" = set; then
3224 MKDIR_P
="$ac_cv_path_mkdir -p"
3226 # As a last resort, use the slow shell script. Don't cache a
3227 # value for MKDIR_P within a source directory, because that will
3228 # break other packages using the cache if that directory is
3229 # removed, or if the value is a relative name.
3230 MKDIR_P
="$ac_install_sh -d"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3234 $as_echo "$MKDIR_P" >&6; }
3236 for ac_prog
in gawk mawk nawk
awk
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy
$ac_prog; ac_word
=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_AWK+:} false
; then :
3243 $as_echo_n "(cached) " >&6
3245 if test -n "$AWK"; then
3246 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir
=.
3253 for ac_exec_ext
in '' $ac_executable_extensions; do
3254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_AWK
="$ac_prog"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 if test -n "$AWK"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3268 $as_echo "$AWK" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3275 test -n "$AWK" && break
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3279 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3281 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3282 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3283 $as_echo_n "(cached) " >&6
3285 cat >conftest.
make <<\_ACEOF
3288 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3290 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3291 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3293 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3295 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3299 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301 $as_echo "yes" >&6; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 SET_MAKE
="MAKE=${MAKE-make}"
3309 rm -rf .tst
2>/dev
/null
3310 mkdir .tst
2>/dev
/null
3311 if test -d .tst
; then
3316 rmdir .tst
2>/dev
/null
3318 # Check whether --enable-silent-rules was given.
3319 if test "${enable_silent_rules+set}" = set; then :
3320 enableval
=$enable_silent_rules;
3323 case $enable_silent_rules in # (((
3324 yes) AM_DEFAULT_VERBOSITY
=0;;
3325 no
) AM_DEFAULT_VERBOSITY
=1;;
3326 *) AM_DEFAULT_VERBOSITY
=1;;
3328 am_make
=${MAKE-make}
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3330 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3331 if ${am_cv_make_support_nested_variables+:} false
; then :
3332 $as_echo_n "(cached) " >&6
3334 if $as_echo 'TRUE=$(BAR$(V))
3340 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3341 am_cv_make_support_nested_variables
=yes
3343 am_cv_make_support_nested_variables
=no
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3347 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3348 if test $am_cv_make_support_nested_variables = yes; then
3350 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3352 AM_V
=$AM_DEFAULT_VERBOSITY
3353 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3357 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3358 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3359 # is not polluted with repeated "-I."
3360 am__isrc
=' -I$(srcdir)'
3361 # test to see if srcdir already configured
3362 if test -f $srcdir/config.status
; then
3363 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3367 # test whether we have cygpath
3368 if test -z "$CYGPATH_W"; then
3369 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3370 CYGPATH_W
='cygpath -w'
3377 # Define the identity of the package.
3382 cat >>confdefs.h
<<_ACEOF
3383 #define PACKAGE "$PACKAGE"
3387 cat >>confdefs.h
<<_ACEOF
3388 #define VERSION "$VERSION"
3391 # Some tools Automake needs.
3393 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3396 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3399 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3402 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3405 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3407 # For better backward compatibility. To be removed once Automake 1.9.x
3408 # dies out for good. For more background, see:
3409 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3410 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3411 mkdir_p
='$(MKDIR_P)'
3413 # We need awk for the "check" target (and possibly the TAP driver). The
3414 # system "awk" is bad on some platforms.
3415 # Always define AMTAR for backward compatibility. Yes, it's still used
3416 # in the wild :-( We should find a proper way to deprecate it ...
3420 # We'll loop over all known methods to create a tar archive until one works.
3421 _am_tools
='gnutar pax cpio none'
3423 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3430 # POSIX will say in a future version that running "rm -f" with no argument
3431 # is OK; and we want to be able to make that assumption in our Makefile
3432 # recipes. So use an aggressive probe to check that the usage we want is
3433 # actually supported "in the wild" to an acceptable degree.
3434 # See automake bug#10828.
3435 # To make any issue more visible, cause the running configure to be aborted
3436 # by default if the 'rm' program in use doesn't match our expectations; the
3437 # user can still override this though.
3438 if rm -f && rm -fr && rm -rf; then : OK
; else
3442 Your 'rm' program seems unable to run without file operands specified
3443 on the command line, even when the '-f' option is present. This is contrary
3444 to the behaviour of most rm programs out there, and not conforming with
3445 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3447 Please tell bug-automake@gnu.org about your system, including the value
3448 of your $PATH and any error possibly output before this message. This
3449 can help us improve future automake versions.
3452 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3453 echo 'Configuration will proceed anyway, since you have set the' >&2
3454 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3458 Aborting the configuration process, to ensure you take notice of the issue.
3460 You can download and install GNU coreutils to get an 'rm' implementation
3461 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3463 If you want to complete the configuration process using your problematic
3464 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3465 to "yes", and re-run configure.
3468 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3471 # Make sure we can run config.sub.
3472 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3473 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3476 $as_echo_n "checking build system type... " >&6; }
3477 if ${ac_cv_build+:} false
; then :
3478 $as_echo_n "(cached) " >&6
3480 ac_build_alias
=$build_alias
3481 test "x$ac_build_alias" = x
&&
3482 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3483 test "x$ac_build_alias" = x
&&
3484 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3485 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3486 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3490 $as_echo "$ac_cv_build" >&6; }
3491 case $ac_cv_build in
3493 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3496 ac_save_IFS
=$IFS; IFS
='-'
3502 # Remember, the first character of IFS is used to create $*,
3503 # except with old shells:
3506 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3510 $as_echo_n "checking host system type... " >&6; }
3511 if ${ac_cv_host+:} false
; then :
3512 $as_echo_n "(cached) " >&6
3514 if test "x$host_alias" = x
; then
3515 ac_cv_host
=$ac_cv_build
3517 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3518 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3523 $as_echo "$ac_cv_host" >&6; }
3526 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3529 ac_save_IFS
=$IFS; IFS
='-'
3535 # Remember, the first character of IFS is used to create $*,
3536 # except with old shells:
3539 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3542 DEPDIR
="${am__leading_dot}deps"
3544 ac_config_commands
="$ac_config_commands depfiles"
3547 am_make
=${MAKE-make}
3548 cat > confinc
<< 'END'
3550 @
echo this is the am__doit target
3553 # If we don't find an include directive, just comment out the code.
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3555 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3559 # First try GNU make style include.
3560 echo "include confinc" > confmf
3561 # Ignore all kinds of additional output from 'make'.
3562 case `$am_make -s -f confmf 2> /dev/null` in #(
3563 *the\ am__doit\ target
*)
3569 # Now try BSD make style include.
3570 if test "$am__include" = "#"; then
3571 echo '.include "confinc"' > confmf
3572 case `$am_make -s -f confmf 2> /dev/null` in #(
3573 *the\ am__doit\ target
*)
3574 am__include
=.include
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3583 $as_echo "$_am_result" >&6; }
3584 rm -f confinc confmf
3586 # Check whether --enable-dependency-tracking was given.
3587 if test "${enable_dependency_tracking+set}" = set; then :
3588 enableval
=$enable_dependency_tracking;
3591 if test "x$enable_dependency_tracking" != xno
; then
3592 am_depcomp
="$ac_aux_dir/depcomp"
3596 if test "x$enable_dependency_tracking" != xno; then
3606 ac_cpp
='$CPP $CPPFLAGS'
3607 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3612 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_CC+:} false
; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC
="$CC" # Let the user override the test.
3621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir
=.
3626 for ac_exec_ext
in '' $ac_executable_extensions; do
3627 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3649 if test -z "$ac_cv_prog_CC"; then
3651 # Extract the first word of "gcc", so it can be a program name with args.
3652 set dummy gcc
; ac_word
=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$ac_ct_CC"; then
3659 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir
=.
3666 for ac_exec_ext
in '' $ac_executable_extensions; do
3667 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_ac_ct_CC
="gcc"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3681 $as_echo "$ac_ct_CC" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3687 if test "x$ac_ct_CC" = x
; then
3690 case $cross_compiling:$ac_tool_warned in
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3694 ac_tool_warned
=yes ;;
3702 if test -z "$CC"; then
3703 if test -n "$ac_tool_prefix"; then
3704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3705 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if ${ac_cv_prog_CC+:} false
; then :
3709 $as_echo_n "(cached) " >&6
3711 if test -n "$CC"; then
3712 ac_cv_prog_CC
="$CC" # Let the user override the test.
3714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir
=.
3719 for ac_exec_ext
in '' $ac_executable_extensions; do
3720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 if test -n "$CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3743 if test -z "$CC"; then
3744 # Extract the first word of "cc", so it can be a program name with args.
3745 set dummy cc
; ac_word
=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if ${ac_cv_prog_CC+:} false
; then :
3749 $as_echo_n "(cached) " >&6
3751 if test -n "$CC"; then
3752 ac_cv_prog_CC
="$CC" # Let the user override the test.
3755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir
=.
3760 for ac_exec_ext
in '' $ac_executable_extensions; do
3761 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3763 ac_prog_rejected
=yes
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 if test $ac_prog_rejected = yes; then
3775 # We found a bogon in the path, so make sure we never use it.
3776 set dummy
$ac_cv_prog_CC
3778 if test $# != 0; then
3779 # We chose a different compiler from the bogus one.
3780 # However, it has the same basename, so the bogon will be chosen
3781 # first if we set CC to just the basename; use the full file name.
3783 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3789 if test -n "$CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3799 if test -z "$CC"; then
3800 if test -n "$ac_tool_prefix"; then
3801 for ac_prog
in cl.exe
3803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3804 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if ${ac_cv_prog_CC+:} false
; then :
3808 $as_echo_n "(cached) " >&6
3810 if test -n "$CC"; then
3811 ac_cv_prog_CC
="$CC" # Let the user override the test.
3813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir
=.
3818 for ac_exec_ext
in '' $ac_executable_extensions; do
3819 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 if test -n "$CC"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833 $as_echo "$CC" >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3840 test -n "$CC" && break
3843 if test -z "$CC"; then
3845 for ac_prog
in cl.exe
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy
$ac_prog; ac_word
=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3852 $as_echo_n "(cached) " >&6
3854 if test -n "$ac_ct_CC"; then
3855 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir
=.
3862 for ac_exec_ext
in '' $ac_executable_extensions; do
3863 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_CC
="$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3875 if test -n "$ac_ct_CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3877 $as_echo "$ac_ct_CC" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$ac_ct_CC" && break
3887 if test "x$ac_ct_CC" = x
; then
3890 case $cross_compiling:$ac_tool_warned in
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned
=yes ;;
3903 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error $?
"no acceptable C compiler found in \$PATH
3906 See \`config.log' for more details" "$LINENO" 5; }
3908 # Provide some information about the compiler.
3909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3912 for ac_option
in --version -v -V -qversion; do
3913 { { ac_try
="$ac_compiler $ac_option >&5"
3915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3922 if test -s conftest.err; then
3924 ... rest of stderr output deleted ...
3925 10q' conftest.err >conftest.er1
3926 cat conftest.er1 >&5
3928 rm -f conftest.er1 conftest.err
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3944 ac_clean_files_save=$ac_clean_files
3945 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3946 # Try to create an executable without -o first, disregard a.out.
3947 # It will help us diagnose broken compilers, and finding out an intuition
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3950 $as_echo_n "checking whether the C compiler works... " >&6; }
3951 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3953 # The possible output files:
3954 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3957 for ac_file in $ac_files
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3961 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3966 if { { ac_try="$ac_link_default"
3968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3969 *) ac_try_echo
=$ac_try;;
3971 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_link_default") 2>&5
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3978 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3979 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3980 # so that the user can short-circuit this test for compilers unknown to
3982 for ac_file
in $ac_files ''
3984 test -f "$ac_file" ||
continue
3986 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3989 # We found the default executable, but exeext='' is most
3993 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3995 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997 # We set ac_cv_exeext here because the later test for it is not
3998 # safe: cross compilers may not add the suffix if given an `-o'
3999 # argument, so we may need to know it at that point already.
4000 # Even if this section looks crufty: it has the advantage of
4007 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4012 if test -z "$ac_file"; then :
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 $as_echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.
$ac_ext >&5
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020 as_fn_error
77 "C compiler cannot create executables
4021 See \`config.log' for more details" "$LINENO" 5; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4024 $as_echo "yes" >&6; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4027 $as_echo_n "checking for C compiler default output file name... " >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4029 $as_echo "$ac_file" >&6; }
4030 ac_exeext
=$ac_cv_exeext
4032 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4033 ac_clean_files
=$ac_clean_files_save
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4035 $as_echo_n "checking for suffix of executables... " >&6; }
4036 if { { ac_try
="$ac_link"
4038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 $as_echo "$ac_try_echo"; } >&5
4043 (eval "$ac_link") 2>&5
4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; }; then :
4047 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4048 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4049 # work properly (i.e., refer to `conftest.exe'), while it won't with
4051 for ac_file
in conftest.exe conftest conftest.
*; do
4052 test -f "$ac_file" ||
continue
4054 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4055 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4063 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4064 See \`config.log' for more details" "$LINENO" 5; }
4066 rm -f conftest conftest
$ac_cv_exeext
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4068 $as_echo "$ac_cv_exeext" >&6; }
4070 rm -f conftest.
$ac_ext
4071 EXEEXT
=$ac_cv_exeext
4073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4079 FILE *f = fopen ("conftest.out", "w");
4080 return ferror (f) || fclose (f) != 0;
4086 ac_clean_files
="$ac_clean_files conftest.out"
4087 # Check that the compiler produces executables we can run. If not, either
4088 # the compiler is broken, or we cross compile.
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4090 $as_echo_n "checking whether we are cross compiling... " >&6; }
4091 if test "$cross_compiling" != yes; then
4092 { { ac_try
="$ac_link"
4094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098 $as_echo "$ac_try_echo"; } >&5
4099 (eval "$ac_link") 2>&5
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }
4103 if { ac_try='./conftest$ac_cv_exeext'
4104 { { case "(($ac_try" in
4105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4106 *) ac_try_echo
=$ac_try;;
4108 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 $as_echo "$ac_try_echo"; } >&5
4110 (eval "$ac_try") 2>&5
4112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }; }; then
4116 if test "$cross_compiling" = maybe
; then
4119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4121 as_fn_error $?
"cannot run C compiled programs.
4122 If you meant to cross compile, use \`--host'.
4123 See \`config.log' for more details" "$LINENO" 5; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4128 $as_echo "$cross_compiling" >&6; }
4130 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4131 ac_clean_files
=$ac_clean_files_save
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4133 $as_echo_n "checking for suffix of object files... " >&6; }
4134 if ${ac_cv_objext+:} false
; then :
4135 $as_echo_n "(cached) " >&6
4137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4148 rm -f conftest.o conftest.obj
4149 if { { ac_try
="$ac_compile"
4151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4155 $as_echo "$ac_try_echo"; } >&5
4156 (eval "$ac_compile") 2>&5
4158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159 test $ac_status = 0; }; then :
4160 for ac_file in conftest.o conftest.obj conftest.*; do
4161 test -f "$ac_file" || continue;
4163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4164 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4169 $as_echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4175 See \
`config.log' for more details" "$LINENO" 5; }
4177 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4180 $as_echo "$ac_cv_objext" >&6; }
4181 OBJEXT=$ac_cv_objext
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4184 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4185 if ${ac_cv_c_compiler_gnu+:} false; then :
4186 $as_echo_n "(cached) " >&6
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4202 if ac_fn_c_try_compile "$LINENO"; then :
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4212 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4213 if test $ac_compiler_gnu = yes; then
4218 ac_test_CFLAGS=${CFLAGS+set}
4219 ac_save_CFLAGS=$CFLAGS
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4221 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4222 if ${ac_cv_prog_cc_g+:} false; then :
4223 $as_echo_n "(cached) " >&6
4225 ac_save_c_werror_flag=$ac_c_werror_flag
4226 ac_c_werror_flag=yes
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4240 if ac_fn_c_try_compile "$LINENO"; then :
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4255 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_c_werror_flag=$ac_save_c_werror_flag
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4271 if ac_fn_c_try_compile "$LINENO"; then :
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 ac_c_werror_flag=$ac_save_c_werror_flag
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4282 $as_echo "$ac_cv_prog_cc_g" >&6; }
4283 if test "$ac_test_CFLAGS" = set; then
4284 CFLAGS=$ac_save_CFLAGS
4285 elif test $ac_cv_prog_cc_g = yes; then
4286 if test "$GCC" = yes; then
4292 if test "$GCC" = yes; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4299 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4300 if ${ac_cv_prog_cc_c89+:} false; then :
4301 $as_echo_n "(cached) " >&6
4303 ac_cv_prog_cc_c89=no
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4310 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4311 struct buf { int x; };
4312 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4313 static char *e (p, i)
4319 static char *f (char * (*g) (char **, int), char **p, ...)
4324 s = g (p, va_arg (v,int));
4329 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4330 function prototypes and stuff, but not '\xHH' hex character constants.
4331 These don't provoke an error unfortunately, instead are silently treated
4332 as 'x'. The following induces an error, until -std is added to get
4333 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4334 array size at least. It's necessary to write '\x00'==0 to get something
4335 that's true only with -std. */
4336 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4338 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4339 inside strings and character constants. */
4341 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4343 int test (int i, double x);
4344 struct s1 {int (*f) (int a);};
4345 struct s2 {int (*f) (double a);};
4346 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4352 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4357 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4358 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4360 CC="$ac_save_CC $ac_arg"
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362 ac_cv_prog_cc_c89=$ac_arg
4364 rm -f core conftest.err conftest.$ac_objext
4365 test "x$ac_cv_prog_cc_c89" != "xno" && break
4367 rm -f conftest.$ac_ext
4372 case "x$ac_cv_prog_cc_c89" in
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4375 $as_echo "none needed" >&6; } ;;
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4378 $as_echo "unsupported" >&6; } ;;
4380 CC="$CC $ac_cv_prog_cc_c89"
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4382 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4384 if test "x$ac_cv_prog_cc_c89" != xno; then :
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 ac_cpp='$CPP $CPPFLAGS'
4396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4400 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4401 if ${am_cv_prog_cc_c_o+:} false; then :
4402 $as_echo_n "(cached) " >&6
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4415 # Make sure it works both with $CC and with simple cc.
4416 # Following AC_PROG_CC_C_O, we do the test twice because some
4417 # compilers refuse to overwrite an existing .o file with -o,
4418 # though they will create one.
4419 am_cv_prog_cc_c_o=yes
4421 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4422 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } \
4426 && test -f conftest2.$ac_objext; then
4429 am_cv_prog_cc_c_o=no
4433 rm -f core conftest*
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4437 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4438 if test "$am_cv_prog_cc_c_o" != yes; then
4439 # Losing compiler, so override with the script.
4440 # FIXME: It is wrong to rewrite CC.
4441 # But if we don't then we get into trouble of one sort or another.
4442 # A longer-term fix would be to have automake use am__CC in this case,
4443 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4444 CC="$am_aux_dir/compile $CC"
4447 ac_cpp='$CPP $CPPFLAGS'
4448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 depcc="$CC" am_compiler_list=
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456 $as_echo_n "checking dependency style of $depcc... " >&6; }
4457 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461 # We make a subdir and do the tests there. Otherwise we can end up
4462 # making bogus files that we don't know about and never remove. For
4463 # instance it was reported that on HP-UX the gcc test will end up
4464 # making a dummy file named 'D' -- because '-MD' means "put the output
4468 # Copy depcomp to subdir because otherwise we won't find it if we're
4469 # using a relative directory.
4470 cp "$am_depcomp" conftest.dir
4472 # We will build objects and dependencies in a subdirectory because
4473 # it helps to detect inapplicable dependency modes. For instance
4474 # both Tru64's cc and ICC support -MD to output dependencies as a
4475 # side effect of compilation, but ICC will put the dependencies in
4476 # the current directory while Tru64 will put them in the object
4480 am_cv_CC_dependencies_compiler_type=none
4481 if test "$am_compiler_list" = ""; then
4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4485 case " $depcc " in #(
4486 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4489 for depmode in $am_compiler_list; do
4490 # Setup a source with many dependencies, because some compilers
4491 # like to wrap large dependency lists on column 80 (with \), and
4492 # we should not choose a depcomp mode which is confused by this.
4494 # We need to recreate these files for each test, as the compiler may
4495 # overwrite some of them when testing with obscure command lines.
4496 # This happens at least with the AIX C compiler.
4498 for i in 1 2 3 4 5 6; do
4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4501 # Solaris 10 /bin/sh.
4502 echo '/* dummy */' > sub/conftst$i.h
4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4506 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4507 # mode. It turns out that the SunPro C++ compiler does not properly
4508 # handle '-M -o', and we need to detect this. Also, some Intel
4509 # versions had trouble with output in subdirs.
4510 am__obj=sub/conftest.${OBJEXT-o}
4511 am__minus_obj="-o $am__obj"
4514 # This depmode causes a compiler race in universal mode.
4515 test "$am__universal" = false || continue
4518 # After this tag, mechanisms are not by side-effect, so they'll
4519 # only be used when explicitly requested.
4520 if test "x$enable_dependency_tracking" = xyes; then
4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4527 # This compiler won't grok '-c -o', but also, the minuso test has
4528 # not run yet. These depmodes are late enough in the game, and
4529 # so weak that their functioning should not be impacted.
4530 am__obj=conftest.${OBJEXT-o}
4535 if depmode=$depmode \
4536 source=sub/conftest.c object=$am__obj \
4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4539 >/dev/null 2>conftest.err &&
4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4544 # icc doesn't choke on unknown options, it will just issue warnings
4545 # or remarks (even with -Werror). So we grep stderr for any message
4546 # that says an option was ignored or not supported.
4547 # When given -MP, icc 7.0 and 7.1 complain thusly:
4548 # icc: Command line warning: ignoring option '-M'; no argument required
4549 # The diagnosis changed in icc 8.0:
4550 # icc: Command line remark: option '-MP' not supported
4551 if (grep 'ignoring option' conftest.err ||
4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4553 am_cv_CC_dependencies_compiler_type=$depmode
4562 am_cv_CC_dependencies_compiler_type=none
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4567 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4571 test "x$enable_dependency_tracking" != xno \
4572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4574 am__fastdepCC_FALSE='#'
4576 am__fastdepCC_TRUE='#'
4577 am__fastdepCC_FALSE=
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4588 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4589 # On Suns, sometimes $CPP names a directory.
4590 if test -n "$CPP" && test -d "$CPP"; then
4593 if test -z "$CPP"; then
4594 if ${ac_cv_prog_CPP+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 # Double quotes because CPP needs to be expanded
4598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4601 for ac_c_preproc_warn_flag in '' yes
4603 # Use a header file that comes with gcc, so configuring glibc
4604 # with a fresh cross-compiler works.
4605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4606 # <limits.h> exists even on freestanding compilers.
4607 # On the NeXT, cc -E runs the code through the compiler's parser,
4608 # not just through cpp. "Syntax error" is here to catch this case.
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4612 # include <limits.h>
4614 # include <assert.h>
4618 if ac_fn_c_try_cpp "$LINENO"; then :
4621 # Broken: fails on valid input.
4624 rm -f conftest.err conftest.i conftest.$ac_ext
4626 # OK, works on sane cases. Now check whether nonexistent headers
4627 # can be detected and how.
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 #include <ac_nonexistent.h>
4632 if ac_fn_c_try_cpp "$LINENO"; then :
4633 # Broken: success on invalid input.
4636 # Passes both tests.
4640 rm -f conftest.err conftest.i conftest.$ac_ext
4643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4644 rm -f conftest.i conftest.err conftest.
$ac_ext
4645 if $ac_preproc_ok; then :
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4658 $as_echo "$CPP" >&6; }
4660 for ac_c_preproc_warn_flag
in '' yes
4662 # Use a header file that comes with gcc, so configuring glibc
4663 # with a fresh cross-compiler works.
4664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 # <limits.h> exists even on freestanding compilers.
4666 # On the NeXT, cc -E runs the code through the compiler's parser,
4667 # not just through cpp. "Syntax error" is here to catch this case.
4668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4671 # include <limits.h>
4673 # include <assert.h>
4677 if ac_fn_c_try_cpp
"$LINENO"; then :
4680 # Broken: fails on valid input.
4683 rm -f conftest.err conftest.i conftest.
$ac_ext
4685 # OK, works on sane cases. Now check whether nonexistent headers
4686 # can be detected and how.
4687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #include <ac_nonexistent.h>
4691 if ac_fn_c_try_cpp
"$LINENO"; then :
4692 # Broken: success on invalid input.
4695 # Passes both tests.
4699 rm -f conftest.err conftest.i conftest.
$ac_ext
4702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4703 rm -f conftest.i conftest.err conftest.
$ac_ext
4704 if $ac_preproc_ok; then :
4707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4709 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4710 See \`config.log' for more details" "$LINENO" 5; }
4714 ac_cpp
='$CPP $CPPFLAGS'
4715 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4721 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4722 if ${ac_cv_path_GREP+:} false
; then :
4723 $as_echo_n "(cached) " >&6
4725 if test -z "$GREP"; then
4726 ac_path_GREP_found
=false
4727 # Loop through the user's path and test for each of PROGNAME-LIST
4728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4729 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4732 test -z "$as_dir" && as_dir
=.
4733 for ac_prog
in grep ggrep
; do
4734 for ac_exec_ext
in '' $ac_executable_extensions; do
4735 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4736 as_fn_executable_p
"$ac_path_GREP" ||
continue
4737 # Check for GNU ac_path_GREP and select it if it is found.
4738 # Check for GNU $ac_path_GREP
4739 case `"$ac_path_GREP" --version 2>&1` in
4741 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4744 $as_echo_n 0123456789 >"conftest.in"
4747 cat "conftest.in" "conftest.in" >"conftest.tmp"
4748 mv "conftest.tmp" "conftest.in"
4749 cp "conftest.in" "conftest.nl"
4750 $as_echo 'GREP' >> "conftest.nl"
4751 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4752 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4753 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4754 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4755 # Best one so far, save it but keep looking for a better one
4756 ac_cv_path_GREP
="$ac_path_GREP"
4757 ac_path_GREP_max
=$ac_count
4759 # 10*(2^10) chars as input seems more than enough
4760 test $ac_count -gt 10 && break
4762 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4765 $ac_path_GREP_found && break 3
4770 if test -z "$ac_cv_path_GREP"; then
4771 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4774 ac_cv_path_GREP
=$GREP
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4779 $as_echo "$ac_cv_path_GREP" >&6; }
4780 GREP
="$ac_cv_path_GREP"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4784 $as_echo_n "checking for egrep... " >&6; }
4785 if ${ac_cv_path_EGREP+:} false
; then :
4786 $as_echo_n "(cached) " >&6
4788 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4789 then ac_cv_path_EGREP
="$GREP -E"
4791 if test -z "$EGREP"; then
4792 ac_path_EGREP_found
=false
4793 # Loop through the user's path and test for each of PROGNAME-LIST
4794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4795 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4798 test -z "$as_dir" && as_dir
=.
4799 for ac_prog
in egrep; do
4800 for ac_exec_ext
in '' $ac_executable_extensions; do
4801 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4802 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4803 # Check for GNU ac_path_EGREP and select it if it is found.
4804 # Check for GNU $ac_path_EGREP
4805 case `"$ac_path_EGREP" --version 2>&1` in
4807 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4810 $as_echo_n 0123456789 >"conftest.in"
4813 cat "conftest.in" "conftest.in" >"conftest.tmp"
4814 mv "conftest.tmp" "conftest.in"
4815 cp "conftest.in" "conftest.nl"
4816 $as_echo 'EGREP' >> "conftest.nl"
4817 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4818 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4819 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4820 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4821 # Best one so far, save it but keep looking for a better one
4822 ac_cv_path_EGREP
="$ac_path_EGREP"
4823 ac_path_EGREP_max
=$ac_count
4825 # 10*(2^10) chars as input seems more than enough
4826 test $ac_count -gt 10 && break
4828 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4831 $ac_path_EGREP_found && break 3
4836 if test -z "$ac_cv_path_EGREP"; then
4837 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840 ac_cv_path_EGREP
=$EGREP
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4846 $as_echo "$ac_cv_path_EGREP" >&6; }
4847 EGREP
="$ac_cv_path_EGREP"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4851 $as_echo_n "checking for ANSI C header files... " >&6; }
4852 if ${ac_cv_header_stdc+:} false
; then :
4853 $as_echo_n "(cached) " >&6
4855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4870 if ac_fn_c_try_compile
"$LINENO"; then :
4871 ac_cv_header_stdc
=yes
4873 ac_cv_header_stdc
=no
4875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4877 if test $ac_cv_header_stdc = yes; then
4878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4885 $EGREP "memchr" >/dev
/null
2>&1; then :
4888 ac_cv_header_stdc
=no
4894 if test $ac_cv_header_stdc = yes; then
4895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4902 $EGREP "free" >/dev
/null
2>&1; then :
4905 ac_cv_header_stdc
=no
4911 if test $ac_cv_header_stdc = yes; then
4912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4913 if test "$cross_compiling" = yes; then :
4916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4920 #if ((' ' & 0x0FF) == 0x020)
4921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4924 # define ISLOWER(c) \
4925 (('a' <= (c) && (c) <= 'i') \
4926 || ('j' <= (c) && (c) <= 'r') \
4927 || ('s' <= (c) && (c) <= 'z'))
4928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4936 for (i = 0; i < 256; i++)
4937 if (XOR (islower (i), ISLOWER (i))
4938 || toupper (i) != TOUPPER (i))
4943 if ac_fn_c_try_run
"$LINENO"; then :
4946 ac_cv_header_stdc
=no
4948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4949 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4955 $as_echo "$ac_cv_header_stdc" >&6; }
4956 if test $ac_cv_header_stdc = yes; then
4958 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4962 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4963 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4964 inttypes.h stdint.h unistd.h
4966 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4967 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4969 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4970 cat >>confdefs.h
<<_ACEOF
4971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4980 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4981 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4988 if test "$MINIX" = yes; then
4990 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4993 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4996 $as_echo "#define _MINIX 1" >>confdefs.h
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5002 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5003 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5004 $as_echo_n "(cached) " >&6
5006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5009 # define __EXTENSIONS__ 1
5010 $ac_includes_default
5019 if ac_fn_c_try_compile
"$LINENO"; then :
5020 ac_cv_safe_to_define___extensions__
=yes
5022 ac_cv_safe_to_define___extensions__
=no
5024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5027 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5028 test $ac_cv_safe_to_define___extensions__ = yes &&
5029 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5031 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5033 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5035 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5037 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5041 # Check whether --enable-lzo was given.
5042 if test "${enable_lzo+set}" = set; then :
5043 enableval
=$enable_lzo;
5050 # Check whether --enable-lzo-stub was given.
5051 if test "${enable_lzo_stub+set}" = set; then :
5052 enableval
=$enable_lzo_stub;
5054 enable_lzo_stub
="no"
5059 # Check whether --enable-crypto was given.
5060 if test "${enable_crypto+set}" = set; then :
5061 enableval
=$enable_crypto;
5068 # Check whether --enable-ofb-cfb was given.
5069 if test "${enable_ofb_cfb+set}" = set; then :
5070 enableval
=$enable_ofb_cfb;
5072 enable_crypto_ofb_cfb
="yes"
5077 # Check whether --enable-ssl was given.
5078 if test "${enable_ssl+set}" = set; then :
5079 enableval
=$enable_ssl;
5086 # Check whether --enable-x509-alt-username was given.
5087 if test "${enable_x509_alt_username+set}" = set; then :
5088 enableval
=$enable_x509_alt_username;
5090 enable_x509_alt_username
="no"
5095 # Check whether --enable-multi was given.
5096 if test "${enable_multi+set}" = set; then :
5097 enableval
=$enable_multi;
5104 # Check whether --enable-server was given.
5105 if test "${enable_server+set}" = set; then :
5106 enableval
=$enable_server;
5113 # Check whether --enable-plugins was given.
5114 if test "${enable_plugins+set}" = set; then :
5115 enableval
=$enable_plugins;
5117 enable_plugins
="yes"
5122 # Check whether --enable-management was given.
5123 if test "${enable_management+set}" = set; then :
5124 enableval
=$enable_management;
5126 enable_management
="yes"
5131 # Check whether --enable-pkcs11 was given.
5132 if test "${enable_pkcs11+set}" = set; then :
5133 enableval
=$enable_pkcs11;
5140 # Check whether --enable-socks was given.
5141 if test "${enable_socks+set}" = set; then :
5142 enableval
=$enable_socks;
5149 # Check whether --enable-http-proxy was given.
5150 if test "${enable_http_proxy+set}" = set; then :
5151 enableval
=$enable_http_proxy;
5153 enable_http_proxy
="yes"
5158 # Check whether --enable-fragment was given.
5159 if test "${enable_fragment+set}" = set; then :
5160 enableval
=$enable_fragment;
5162 enable_fragment
="yes"
5167 # Check whether --enable-multihome was given.
5168 if test "${enable_multihome+set}" = set; then :
5169 enableval
=$enable_multihome;
5171 enable_multihome
="yes"
5176 # Check whether --enable-port-share was given.
5177 if test "${enable_port_share+set}" = set; then :
5178 enableval
=$enable_port_share;
5180 enable_port_share
="yes"
5185 # Check whether --enable-debug was given.
5186 if test "${enable_debug+set}" = set; then :
5187 enableval
=$enable_debug;
5194 # Check whether --enable-small was given.
5195 if test "${enable_small+set}" = set; then :
5196 enableval
=$enable_small;
5203 # Check whether --enable-iproute2 was given.
5204 if test "${enable_iproute2+set}" = set; then :
5205 enableval
=$enable_iproute2;
5207 enable_iproute2
="no"
5212 # Check whether --enable-def-auth was given.
5213 if test "${enable_def_auth+set}" = set; then :
5214 enableval
=$enable_def_auth;
5216 enable_def_auth
="yes"
5221 # Check whether --enable-pf was given.
5222 if test "${enable_pf+set}" = set; then :
5223 enableval
=$enable_pf;
5230 # Check whether --enable-plugin-auth-pam was given.
5231 if test "${enable_plugin_auth_pam+set}" = set; then :
5232 enableval
=$enable_plugin_auth_pam;
5236 *-*-openbsd*) enable_plugin_auth_pam
="no";;
5237 *-mingw*) enable_plugin_auth_pam
="no";;
5238 *) enable_plugin_auth_pam
="yes";;
5245 # Check whether --enable-plugin-down-root was given.
5246 if test "${enable_plugin_down_root+set}" = set; then :
5247 enableval
=$enable_plugin_down_root;
5251 *-mingw*) enable_plugin_down_root
="no";;
5252 *) enable_plugin_down_root
="yes";;
5259 # Check whether --enable-pam-dlopen was given.
5260 if test "${enable_pam_dlopen+set}" = set; then :
5261 enableval
=$enable_pam_dlopen;
5263 enable_pam_dlopen
="no"
5268 # Check whether --enable-strict was given.
5269 if test "${enable_strict+set}" = set; then :
5270 enableval
=$enable_strict;
5277 # Check whether --enable-pedantic was given.
5278 if test "${enable_pedantic+set}" = set; then :
5279 enableval
=$enable_pedantic;
5281 enable_pedantic
="no"
5286 # Check whether --enable-strict-options was given.
5287 if test "${enable_strict_options+set}" = set; then :
5288 enableval
=$enable_strict_options;
5290 enable_strict_options
="no"
5295 # Check whether --enable-selinux was given.
5296 if test "${enable_selinux+set}" = set; then :
5297 enableval
=$enable_selinux;
5304 # Check whether --enable-systemd was given.
5305 if test "${enable_systemd+set}" = set; then :
5306 enableval
=$enable_systemd;
5314 # Check whether --with-special-build was given.
5315 if test "${with_special_build+set}" = set; then :
5316 withval
=$with_special_build; test -n "${withval}" &&
5317 cat >>confdefs.h
<<_ACEOF
5318 #define CONFIGURE_SPECIAL_BUILD "${withval}"
5326 # Check whether --with-mem-check was given.
5327 if test "${with_mem_check+set}" = set; then :
5328 withval
=$with_mem_check;
5329 case "${withval}" in
5330 dmalloc|valgrind|ssl|no
) ;;
5331 *) as_fn_error $?
"bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5341 # Check whether --with-crypto-library was given.
5342 if test "${with_crypto_library+set}" = set; then :
5343 withval
=$with_crypto_library;
5344 case "${withval}" in
5345 openssl|polarssl
) ;;
5346 *) as_fn_error $?
"bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5350 with_crypto_library
="openssl"
5356 # Check whether --with-plugindir was given.
5357 if test "${with_plugindir+set}" = set; then :
5358 withval
=$with_plugindir;
5360 with_plugindir
="\$(libdir)/openvpn/plugins"
5367 cat >>confdefs.h
<<_ACEOF
5368 #define TARGET_ALIAS "${host}"
5374 $as_echo "#define TARGET_LINUX 1" >>confdefs.h
5377 cat >>confdefs.h
<<_ACEOF
5378 #define TARGET_PREFIX "L"
5384 $as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5387 cat >>confdefs.h
<<_ACEOF
5388 #define TARGET_PREFIX "S"
5394 $as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5397 cat >>confdefs.h
<<_ACEOF
5398 #define TARGET_PREFIX "O"
5404 $as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5407 cat >>confdefs.h
<<_ACEOF
5408 #define TARGET_PREFIX "F"
5414 $as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5417 cat >>confdefs.h
<<_ACEOF
5418 #define TARGET_PREFIX "N"
5424 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5427 cat >>confdefs.h
<<_ACEOF
5428 #define TARGET_PREFIX "M"
5431 have_tap_header
="yes"
5432 CPPFLAGS
="$CPPFLAGS -no-cpp-precomp"
5436 $as_echo "#define TARGET_WIN32 1" >>confdefs.h
5439 cat >>confdefs.h
<<_ACEOF
5440 #define TARGET_PREFIX "W"
5443 CPPFLAGS
="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5444 CPPFLAGS
="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
5449 $as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5452 cat >>confdefs.h
<<_ACEOF
5453 #define TARGET_PREFIX "D"
5459 cat >>confdefs.h
<<_ACEOF
5460 #define TARGET_PREFIX "X"
5463 have_tap_header
="yes"
5474 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5475 if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5477 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5481 $as_echo_n "(cached) " >&6
5485 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir
=.
5493 for ac_exec_ext
in '' $ac_executable_extensions; do
5494 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5507 if test -n "$PKG_CONFIG"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5509 $as_echo "$PKG_CONFIG" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5517 if test -z "$ac_cv_path_PKG_CONFIG"; then
5518 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5519 # Extract the first word of "pkg-config", so it can be a program name with args.
5520 set dummy pkg-config
; ac_word
=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5524 $as_echo_n "(cached) " >&6
5526 case $ac_pt_PKG_CONFIG in
5528 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir
=.
5536 for ac_exec_ext
in '' $ac_executable_extensions; do
5537 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5550 if test -n "$ac_pt_PKG_CONFIG"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5552 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5558 if test "x$ac_pt_PKG_CONFIG" = x
; then
5561 case $cross_compiling:$ac_tool_warned in
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned
=yes ;;
5567 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5570 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5574 if test -n "$PKG_CONFIG"; then
5575 _pkg_min_version
=0.9.0
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5577 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5578 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580 $as_echo "yes" >&6; }
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5588 ac_cpp
='$CPP $CPPFLAGS'
5589 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5594 # On Suns, sometimes $CPP names a directory.
5595 if test -n "$CPP" && test -d "$CPP"; then
5598 if test -z "$CPP"; then
5599 if ${ac_cv_prog_CPP+:} false
; then :
5600 $as_echo_n "(cached) " >&6
5602 # Double quotes because CPP needs to be expanded
5603 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5606 for ac_c_preproc_warn_flag
in '' yes
5608 # Use a header file that comes with gcc, so configuring glibc
5609 # with a fresh cross-compiler works.
5610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611 # <limits.h> exists even on freestanding compilers.
5612 # On the NeXT, cc -E runs the code through the compiler's parser,
5613 # not just through cpp. "Syntax error" is here to catch this case.
5614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5617 # include <limits.h>
5619 # include <assert.h>
5623 if ac_fn_c_try_cpp
"$LINENO"; then :
5626 # Broken: fails on valid input.
5629 rm -f conftest.err conftest.i conftest.
$ac_ext
5631 # OK, works on sane cases. Now check whether nonexistent headers
5632 # can be detected and how.
5633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <ac_nonexistent.h>
5637 if ac_fn_c_try_cpp
"$LINENO"; then :
5638 # Broken: success on invalid input.
5641 # Passes both tests.
5645 rm -f conftest.err conftest.i conftest.
$ac_ext
5648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5649 rm -f conftest.i conftest.err conftest.
$ac_ext
5650 if $ac_preproc_ok; then :
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5663 $as_echo "$CPP" >&6; }
5665 for ac_c_preproc_warn_flag
in '' yes
5667 # Use a header file that comes with gcc, so configuring glibc
5668 # with a fresh cross-compiler works.
5669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670 # <limits.h> exists even on freestanding compilers.
5671 # On the NeXT, cc -E runs the code through the compiler's parser,
5672 # not just through cpp. "Syntax error" is here to catch this case.
5673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5676 # include <limits.h>
5678 # include <assert.h>
5682 if ac_fn_c_try_cpp
"$LINENO"; then :
5685 # Broken: fails on valid input.
5688 rm -f conftest.err conftest.i conftest.
$ac_ext
5690 # OK, works on sane cases. Now check whether nonexistent headers
5691 # can be detected and how.
5692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <ac_nonexistent.h>
5696 if ac_fn_c_try_cpp
"$LINENO"; then :
5697 # Broken: success on invalid input.
5700 # Passes both tests.
5704 rm -f conftest.err conftest.i conftest.
$ac_ext
5707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5708 rm -f conftest.i conftest.err conftest.
$ac_ext
5709 if $ac_preproc_ok; then :
5712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5714 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5715 See \`config.log' for more details" "$LINENO" 5; }
5719 ac_cpp
='$CPP $CPPFLAGS'
5720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5726 $as_echo_n "checking whether ln -s works... " >&6; }
5728 if test "$LN_S" = "ln -s"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5730 $as_echo "yes" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5733 $as_echo "no, using $LN_S" >&6; }
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5737 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5738 if ${ac_cv_path_SED+:} false
; then :
5739 $as_echo_n "(cached) " >&6
5741 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
5742 for ac_i
in 1 2 3 4 5 6 7; do
5743 ac_script
="$ac_script$as_nl$ac_script"
5745 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
5746 { ac_script
=; unset ac_script
;}
5747 if test -z "$SED"; then
5748 ac_path_SED_found
=false
5749 # Loop through the user's path and test for each of PROGNAME-LIST
5750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir
=.
5755 for ac_prog
in sed gsed
; do
5756 for ac_exec_ext
in '' $ac_executable_extensions; do
5757 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5758 as_fn_executable_p
"$ac_path_SED" ||
continue
5759 # Check for GNU ac_path_SED and select it if it is found.
5760 # Check for GNU $ac_path_SED
5761 case `"$ac_path_SED" --version 2>&1` in
5763 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5766 $as_echo_n 0123456789 >"conftest.in"
5769 cat "conftest.in" "conftest.in" >"conftest.tmp"
5770 mv "conftest.tmp" "conftest.in"
5771 cp "conftest.in" "conftest.nl"
5772 $as_echo '' >> "conftest.nl"
5773 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5774 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5775 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5776 if test $ac_count -gt ${ac_path_SED_max-0}; then
5777 # Best one so far, save it but keep looking for a better one
5778 ac_cv_path_SED
="$ac_path_SED"
5779 ac_path_SED_max
=$ac_count
5781 # 10*(2^10) chars as input seems more than enough
5782 test $ac_count -gt 10 && break
5784 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5787 $ac_path_SED_found && break 3
5792 if test -z "$ac_cv_path_SED"; then
5793 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5801 $as_echo "$ac_cv_path_SED" >&6; }
5802 SED
="$ac_cv_path_SED"
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5806 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5808 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5809 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5810 $as_echo_n "(cached) " >&6
5812 cat >conftest.
make <<\_ACEOF
5815 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5817 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5818 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5820 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5822 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5826 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5828 $as_echo "yes" >&6; }
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 SET_MAKE
="MAKE=${MAKE-make}"
5844 for ac_prog
in ifconfig
5846 # Extract the first word of "$ac_prog", so it can be a program name with args.
5847 set dummy
$ac_prog; ac_word
=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_path_IFCONFIG+:} false
; then :
5851 $as_echo_n "(cached) " >&6
5855 ac_cv_path_IFCONFIG
="$IFCONFIG" # Let the user override the test with a path.
5858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5859 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5860 for as_dir
in $as_dummy
5863 test -z "$as_dir" && as_dir
=.
5864 for ac_exec_ext
in '' $ac_executable_extensions; do
5865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_path_IFCONFIG
="$as_dir/$ac_word$ac_exec_ext"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 IFCONFIG
=$ac_cv_path_IFCONFIG
5878 if test -n "$IFCONFIG"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
5880 $as_echo "$IFCONFIG" >&6; }
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5887 test -n "$IFCONFIG" && break
5890 for ac_prog
in route
5892 # Extract the first word of "$ac_prog", so it can be a program name with args.
5893 set dummy
$ac_prog; ac_word
=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_path_ROUTE+:} false
; then :
5897 $as_echo_n "(cached) " >&6
5901 ac_cv_path_ROUTE
="$ROUTE" # Let the user override the test with a path.
5904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5905 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5906 for as_dir
in $as_dummy
5909 test -z "$as_dir" && as_dir
=.
5910 for ac_exec_ext
in '' $ac_executable_extensions; do
5911 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_path_ROUTE
="$as_dir/$ac_word$ac_exec_ext"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 ROUTE
=$ac_cv_path_ROUTE
5924 if test -n "$ROUTE"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
5926 $as_echo "$ROUTE" >&6; }
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 $as_echo "no" >&6; }
5933 test -n "$ROUTE" && break
5938 # Extract the first word of "$ac_prog", so it can be a program name with args.
5939 set dummy
$ac_prog; ac_word
=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if ${ac_cv_path_IPROUTE+:} false
; then :
5943 $as_echo_n "(cached) " >&6
5947 ac_cv_path_IPROUTE
="$IPROUTE" # Let the user override the test with a path.
5950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5951 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5952 for as_dir
in $as_dummy
5955 test -z "$as_dir" && as_dir
=.
5956 for ac_exec_ext
in '' $ac_executable_extensions; do
5957 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_path_IPROUTE
="$as_dir/$ac_word$ac_exec_ext"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 IPROUTE
=$ac_cv_path_IPROUTE
5970 if test -n "$IPROUTE"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
5972 $as_echo "$IPROUTE" >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5979 test -n "$IPROUTE" && break
5982 for ac_prog
in systemd-ask-password
5984 # Extract the first word of "$ac_prog", so it can be a program name with args.
5985 set dummy
$ac_prog; ac_word
=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if ${ac_cv_path_SYSTEMD_ASK_PASSWORD+:} false
; then :
5989 $as_echo_n "(cached) " >&6
5991 case $SYSTEMD_ASK_PASSWORD in
5993 ac_cv_path_SYSTEMD_ASK_PASSWORD
="$SYSTEMD_ASK_PASSWORD" # Let the user override the test with a path.
5996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5997 as_dummy
="$PATH:/usr/local/bin:/usr/bin:/bin"
5998 for as_dir
in $as_dummy
6001 test -z "$as_dir" && as_dir
=.
6002 for ac_exec_ext
in '' $ac_executable_extensions; do
6003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_path_SYSTEMD_ASK_PASSWORD
="$as_dir/$ac_word$ac_exec_ext"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 SYSTEMD_ASK_PASSWORD
=$ac_cv_path_SYSTEMD_ASK_PASSWORD
6016 if test -n "$SYSTEMD_ASK_PASSWORD"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_ASK_PASSWORD" >&5
6018 $as_echo "$SYSTEMD_ASK_PASSWORD" >&6; }
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021 $as_echo "no" >&6; }
6025 test -n "$SYSTEMD_ASK_PASSWORD" && break
6028 for ac_prog
in netstat
6030 # Extract the first word of "$ac_prog", so it can be a program name with args.
6031 set dummy
$ac_prog; ac_word
=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if ${ac_cv_prog_NETSTAT+:} false
; then :
6035 $as_echo_n "(cached) " >&6
6037 if test -n "$NETSTAT"; then
6038 ac_cv_prog_NETSTAT
="$NETSTAT" # Let the user override the test.
6040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6041 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
6042 for as_dir
in $as_dummy
6045 test -z "$as_dir" && as_dir
=.
6046 for ac_exec_ext
in '' $ac_executable_extensions; do
6047 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_NETSTAT
="$ac_prog"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 NETSTAT
=$ac_cv_prog_NETSTAT
6059 if test -n "$NETSTAT"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
6061 $as_echo "$NETSTAT" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6068 test -n "$NETSTAT" && break
6070 test -n "$NETSTAT" || NETSTAT
="netstat"
6072 for ac_prog
in man2html
6074 # Extract the first word of "$ac_prog", so it can be a program name with args.
6075 set dummy
$ac_prog; ac_word
=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_MAN2HTML+:} false
; then :
6079 $as_echo_n "(cached) " >&6
6081 if test -n "$MAN2HTML"; then
6082 ac_cv_prog_MAN2HTML
="$MAN2HTML" # Let the user override the test.
6084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir
=.
6089 for ac_exec_ext
in '' $ac_executable_extensions; do
6090 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6091 ac_cv_prog_MAN2HTML
="$ac_prog"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 MAN2HTML
=$ac_cv_prog_MAN2HTML
6102 if test -n "$MAN2HTML"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
6104 $as_echo "$MAN2HTML" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6111 test -n "$MAN2HTML" && break
6116 # Extract the first word of "$ac_prog", so it can be a program name with args.
6117 set dummy
$ac_prog; ac_word
=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if ${ac_cv_prog_GIT+:} false
; then :
6121 $as_echo_n "(cached) " >&6
6123 if test -n "$GIT"; then
6124 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
6126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6130 test -z "$as_dir" && as_dir
=.
6131 for ac_exec_ext
in '' $ac_executable_extensions; do
6132 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_GIT
="$ac_prog"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 if test -n "$GIT"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6146 $as_echo "$GIT" >&6; }
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6153 test -n "$GIT" && break
6157 cat >>confdefs.h
<<_ACEOF
6158 #define IFCONFIG_PATH "$IFCONFIG"
6162 cat >>confdefs.h
<<_ACEOF
6163 #define IPROUTE_PATH "$IPROUTE"
6167 cat >>confdefs.h
<<_ACEOF
6168 #define ROUTE_PATH "$ROUTE"
6172 cat >>confdefs.h
<<_ACEOF
6173 #define SYSTEMD_ASK_PASSWORD_PATH "$SYSTEMD_ASK_PASSWORD"
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6184 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6189 macro_version
='2.4.6'
6190 macro_revision
='2.4.6'
6204 ltmain
=$ac_aux_dir/ltmain.sh
6206 # Backslashify metacharacters that are still active within
6207 # double-quoted strings.
6208 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
6210 # Same as above, but do not quote variable references.
6211 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
6213 # Sed substitution to delay expansion of an escaped shell variable in a
6214 # double_quote_subst'ed string.
6215 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6217 # Sed substitution to delay expansion of an escaped single quote.
6218 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
6220 # Sed substitution to avoid accidental globbing in evaled expressions
6221 no_glob_subst
='s/\*/\\\*/g'
6223 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6224 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6228 $as_echo_n "checking how to print strings... " >&6; }
6229 # Test print first, because it will be a builtin if present.
6230 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6231 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6233 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6236 # Use this function as a fallback that always works.
6237 func_fallback_echo ()
6239 eval 'cat <<_LTECHO_EOF
6243 ECHO='func_fallback_echo
'
6246 # func_echo_all arg...
6247 # Invoke $ECHO with all args, space-separated.
6254 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6255 $as_echo "printf" >&6; } ;;
6256 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6257 $as_echo "print -r" >&6; } ;;
6258 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6259 $as_echo "cat" >&6; } ;;
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6276 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6277 if ${ac_cv_path_SED+:} false; then :
6278 $as_echo_n "(cached) " >&6
6280 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6281 for ac_i in 1 2 3 4 5 6 7; do
6282 ac_script="$ac_script$as_nl$ac_script"
6284 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6285 { ac_script=; unset ac_script;}
6286 if test -z "$SED"; then
6287 ac_path_SED_found=false
6288 # Loop through the user's path and
test for each of PROGNAME-LIST
6289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir
=.
6294 for ac_prog
in sed gsed
; do
6295 for ac_exec_ext
in '' $ac_executable_extensions; do
6296 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6297 as_fn_executable_p
"$ac_path_SED" ||
continue
6298 # Check for GNU ac_path_SED and select it if it is found.
6299 # Check for GNU $ac_path_SED
6300 case `"$ac_path_SED" --version 2>&1` in
6302 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6305 $as_echo_n 0123456789 >"conftest.in"
6308 cat "conftest.in" "conftest.in" >"conftest.tmp"
6309 mv "conftest.tmp" "conftest.in"
6310 cp "conftest.in" "conftest.nl"
6311 $as_echo '' >> "conftest.nl"
6312 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6313 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6314 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6315 if test $ac_count -gt ${ac_path_SED_max-0}; then
6316 # Best one so far, save it but keep looking for a better one
6317 ac_cv_path_SED
="$ac_path_SED"
6318 ac_path_SED_max
=$ac_count
6320 # 10*(2^10) chars as input seems more than enough
6321 test $ac_count -gt 10 && break
6323 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6326 $ac_path_SED_found && break 3
6331 if test -z "$ac_cv_path_SED"; then
6332 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6340 $as_echo "$ac_cv_path_SED" >&6; }
6341 SED
="$ac_cv_path_SED"
6344 test -z "$SED" && SED
=sed
6345 Xsed
="$SED -e 1s/^X//"
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6358 $as_echo_n "checking for fgrep... " >&6; }
6359 if ${ac_cv_path_FGREP+:} false
; then :
6360 $as_echo_n "(cached) " >&6
6362 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6363 then ac_cv_path_FGREP
="$GREP -F"
6365 if test -z "$FGREP"; then
6366 ac_path_FGREP_found
=false
6367 # Loop through the user's path and test for each of PROGNAME-LIST
6368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6369 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6372 test -z "$as_dir" && as_dir
=.
6373 for ac_prog
in fgrep
; do
6374 for ac_exec_ext
in '' $ac_executable_extensions; do
6375 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6376 as_fn_executable_p
"$ac_path_FGREP" ||
continue
6377 # Check for GNU ac_path_FGREP and select it if it is found.
6378 # Check for GNU $ac_path_FGREP
6379 case `"$ac_path_FGREP" --version 2>&1` in
6381 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6384 $as_echo_n 0123456789 >"conftest.in"
6387 cat "conftest.in" "conftest.in" >"conftest.tmp"
6388 mv "conftest.tmp" "conftest.in"
6389 cp "conftest.in" "conftest.nl"
6390 $as_echo 'FGREP' >> "conftest.nl"
6391 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6392 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6393 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6394 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6395 # Best one so far, save it but keep looking for a better one
6396 ac_cv_path_FGREP
="$ac_path_FGREP"
6397 ac_path_FGREP_max
=$ac_count
6399 # 10*(2^10) chars as input seems more than enough
6400 test $ac_count -gt 10 && break
6402 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6405 $ac_path_FGREP_found && break 3
6410 if test -z "$ac_cv_path_FGREP"; then
6411 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6414 ac_cv_path_FGREP
=$FGREP
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6420 $as_echo "$ac_cv_path_FGREP" >&6; }
6421 FGREP
="$ac_cv_path_FGREP"
6424 test -z "$GREP" && GREP
=grep
6444 # Check whether --with-gnu-ld was given.
6445 if test "${with_gnu_ld+set}" = set; then :
6446 withval
=$with_gnu_ld; test no
= "$withval" || with_gnu_ld
=yes
6452 if test yes = "$GCC"; then
6453 # Check if gcc -print-prog-name=ld gives a path.
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6455 $as_echo_n "checking for ld used by $CC... " >&6; }
6458 # gcc leaves a trailing carriage return, which upsets mingw
6459 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6461 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6464 # Accept absolute paths.
6466 re_direlt
='/[^/][^/]*/\.\./'
6467 # Canonicalize the pathname of ld
6468 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6469 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6470 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6472 test -z "$LD" && LD
=$ac_prog
6475 # If it fails, then pretend we aren't using GCC.
6479 # If it is relative, then search for the first ld in PATH.
6483 elif test yes = "$with_gnu_ld"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6485 $as_echo_n "checking for GNU ld... " >&6; }
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6488 $as_echo_n "checking for non-GNU ld... " >&6; }
6490 if ${lt_cv_path_LD+:} false
; then :
6491 $as_echo_n "(cached) " >&6
6493 if test -z "$LD"; then
6494 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
6495 for ac_dir
in $PATH; do
6497 test -z "$ac_dir" && ac_dir
=.
6498 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6499 lt_cv_path_LD
=$ac_dir/$ac_prog
6500 # Check to see if the program is GNU ld. I'd rather use --version,
6501 # but apparently some variants of GNU ld only accept -v.
6502 # Break only if it was the GNU/non-GNU ld that we prefer.
6503 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6504 *GNU
* |
*'with BFD'*)
6505 test no
!= "$with_gnu_ld" && break
6508 test yes != "$with_gnu_ld" && break
6515 lt_cv_path_LD
=$LD # Let the user override the test with a path.
6520 if test -n "$LD"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6522 $as_echo "$LD" >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6527 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6529 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6530 if ${lt_cv_prog_gnu_ld+:} false
; then :
6531 $as_echo_n "(cached) " >&6
6533 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6534 case `$LD -v 2>&1 </dev/null` in
6535 *GNU
* |
*'with BFD'*)
6536 lt_cv_prog_gnu_ld
=yes
6539 lt_cv_prog_gnu_ld
=no
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6544 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6545 with_gnu_ld
=$lt_cv_prog_gnu_ld
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6556 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6557 if ${lt_cv_path_NM+:} false
; then :
6558 $as_echo_n "(cached) " >&6
6560 if test -n "$NM"; then
6561 # Let the user override the test.
6564 lt_nm_to_check
=${ac_tool_prefix}nm
6565 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6566 lt_nm_to_check
="$lt_nm_to_check nm"
6568 for lt_tmp_nm
in $lt_nm_to_check; do
6569 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
6570 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6572 test -z "$ac_dir" && ac_dir
=.
6573 tmp_nm
=$ac_dir/$lt_tmp_nm
6574 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext"; then
6575 # Check to see if the nm accepts a BSD-compat flag.
6576 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6577 # nm: unknown option "B" ignored
6578 # Tru64's nm complains that /dev/null is an invalid object file
6579 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6581 mingw
*) lt_bad_file
=conftest.nm
/nofile
;;
6582 *) lt_bad_file
=/dev
/null
;;
6584 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6585 *$lt_bad_file* |
*'Invalid file or object type'*)
6586 lt_cv_path_NM
="$tmp_nm -B"
6590 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6592 lt_cv_path_NM
="$tmp_nm -p"
6596 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6597 continue # so that we can try to find one that supports BSD flags
6606 : ${lt_cv_path_NM=no}
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6610 $as_echo "$lt_cv_path_NM" >&6; }
6611 if test no
!= "$lt_cv_path_NM"; then
6614 # Didn't find any BSD compatible name lister, look for dumpbin.
6615 if test -n "$DUMPBIN"; then :
6616 # Let the user override the test.
6618 if test -n "$ac_tool_prefix"; then
6619 for ac_prog
in dumpbin
"link -dump"
6621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6622 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6626 $as_echo_n "(cached) " >&6
6628 if test -n "$DUMPBIN"; then
6629 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir
=.
6636 for ac_exec_ext
in '' $ac_executable_extensions; do
6637 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 DUMPBIN
=$ac_cv_prog_DUMPBIN
6649 if test -n "$DUMPBIN"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6651 $as_echo "$DUMPBIN" >&6; }
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6658 test -n "$DUMPBIN" && break
6661 if test -z "$DUMPBIN"; then
6662 ac_ct_DUMPBIN
=$DUMPBIN
6663 for ac_prog
in dumpbin
"link -dump"
6665 # Extract the first word of "$ac_prog", so it can be a program name with args.
6666 set dummy
$ac_prog; ac_word
=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6670 $as_echo_n "(cached) " >&6
6672 if test -n "$ac_ct_DUMPBIN"; then
6673 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir
=.
6680 for ac_exec_ext
in '' $ac_executable_extensions; do
6681 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6693 if test -n "$ac_ct_DUMPBIN"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6695 $as_echo "$ac_ct_DUMPBIN" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6702 test -n "$ac_ct_DUMPBIN" && break
6705 if test "x$ac_ct_DUMPBIN" = x
; then
6708 case $cross_compiling:$ac_tool_warned in
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned
=yes ;;
6714 DUMPBIN
=$ac_ct_DUMPBIN
6718 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6720 DUMPBIN
="$DUMPBIN -symbols -headers"
6728 if test : != "$DUMPBIN"; then
6732 test -z "$NM" && NM
=nm
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6740 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6741 if ${lt_cv_nm_interface+:} false
; then :
6742 $as_echo_n "(cached) " >&6
6744 lt_cv_nm_interface
="BSD nm"
6745 echo "int some_variable = 0;" > conftest.
$ac_ext
6746 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6747 (eval "$ac_compile" 2>conftest.err
)
6748 cat conftest.err
>&5
6749 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6750 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6751 cat conftest.err
>&5
6752 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6753 cat conftest.out
>&5
6754 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6755 lt_cv_nm_interface
="MS dumpbin"
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6760 $as_echo "$lt_cv_nm_interface" >&6; }
6762 # find the maximum length of command line arguments
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6764 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6765 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6766 $as_echo_n "(cached) " >&6
6773 # On DJGPP, this test can blow up pretty badly due to problems in libc
6774 # (any single argument exceeding 2000 bytes causes a buffer overrun
6775 # during glob expansion). Even if it were fixed, the result of this
6776 # check would be larger than it should be.
6777 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6781 # Under GNU Hurd, this test is not required because there is
6782 # no limit to the length of command line arguments.
6783 # Libtool will interpret -1 as no limit whatsoever
6784 lt_cv_sys_max_cmd_len
=-1;
6787 cygwin
* | mingw
* | cegcc
*)
6788 # On Win9x/ME, this test blows up -- it succeeds, but takes
6789 # about 5 minutes as the teststring grows exponentially.
6790 # Worse, since 9x/ME are not pre-emptively multitasking,
6791 # you end up with a "frozen" computer, even though with patience
6792 # the test eventually succeeds (with a max line length of 256k).
6793 # Instead, let's just punt: use the minimum linelength reported by
6794 # all of the supported platforms: 8192 (on NT/2K/XP).
6795 lt_cv_sys_max_cmd_len
=8192;
6799 # On MiNT this can take a long time and run out of memory.
6800 lt_cv_sys_max_cmd_len
=8192;
6804 # On AmigaOS with pdksh, this test takes hours, literally.
6805 # So we just punt and use a minimum line length of 8192.
6806 lt_cv_sys_max_cmd_len
=8192;
6809 bitrig
* | darwin
* | dragonfly
* | freebsd
* | netbsd
* | openbsd
*)
6810 # This has been around since 386BSD, at least. Likely further.
6811 if test -x /sbin
/sysctl
; then
6812 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6813 elif test -x /usr
/sbin
/sysctl
; then
6814 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6816 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6818 # And add a safety zone
6819 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6820 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6824 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6825 lt_cv_sys_max_cmd_len
=196608
6829 # The test takes a long time on OS/2.
6830 lt_cv_sys_max_cmd_len
=8192
6834 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6835 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6836 # nice to cause kernel panics so lets avoid the loop below.
6837 # First set a reasonable default.
6838 lt_cv_sys_max_cmd_len
=16384
6840 if test -x /sbin
/sysconfig
; then
6841 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6842 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6847 lt_cv_sys_max_cmd_len
=102400
6849 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6850 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6851 if test -n "$kargmax"; then
6852 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6854 lt_cv_sys_max_cmd_len
=32768
6858 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6859 if test -n "$lt_cv_sys_max_cmd_len" && \
6860 test undefined
!= "$lt_cv_sys_max_cmd_len"; then
6861 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6862 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6864 # Make teststring a little bigger before we do anything with it.
6865 # a 1K string should be a reasonable start.
6866 for i
in 1 2 3 4 5 6 7 8; do
6867 teststring
=$teststring$teststring
6869 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6870 # If test is not a shell built-in, we'll probably end up computing a
6871 # maximum length that is only half of the actual maximum length, but
6873 while { test X
`env echo "$teststring$teststring" 2>/dev/null` \
6874 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6875 test 17 != "$i" # 1/2 MB should be enough
6878 teststring
=$teststring$teststring
6880 # Only check the string length outside the loop.
6881 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6883 # Add a significant safety factor because C++ compilers can tack on
6884 # massive amounts of additional arguments before passing them to the
6885 # linker. It appears as though 1/2 is a usable value.
6886 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6893 if test -n "$lt_cv_sys_max_cmd_len"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6895 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6898 $as_echo "none" >&6; }
6900 max_cmd_len
=$lt_cv_sys_max_cmd_len
6911 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6921 # test EBCDIC or ASCII
6922 case `echo X|tr X '\101'` in
6923 A
) # ASCII based system
6924 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6925 lt_SP2NL
='tr \040 \012'
6926 lt_NL2SP
='tr \015\012 \040\040'
6928 *) # EBCDIC based system
6929 lt_SP2NL
='tr \100 \n'
6930 lt_NL2SP
='tr \r\n \100\100'
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6943 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6944 if ${lt_cv_to_host_file_cmd+:} false
; then :
6945 $as_echo_n "(cached) " >&6
6950 *-*-mingw* ) # actually msys
6951 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_w32
6954 lt_cv_to_host_file_cmd
=func_convert_file_cygwin_to_w32
6956 * ) # otherwise, assume *nix
6957 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_w32
6963 *-*-mingw* ) # actually msys
6964 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_cygwin
6967 lt_cv_to_host_file_cmd
=func_convert_file_noop
6969 * ) # otherwise, assume *nix
6970 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_cygwin
6974 * ) # unhandled hosts (and "normal" native builds)
6975 lt_cv_to_host_file_cmd
=func_convert_file_noop
6981 to_host_file_cmd
=$lt_cv_to_host_file_cmd
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6983 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6990 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6991 if ${lt_cv_to_tool_file_cmd+:} false
; then :
6992 $as_echo_n "(cached) " >&6
6994 #assume ordinary cross tools, or native build.
6995 lt_cv_to_tool_file_cmd
=func_convert_file_noop
6999 *-*-mingw* ) # actually msys
7000 lt_cv_to_tool_file_cmd
=func_convert_file_msys_to_w32
7008 to_tool_file_cmd
=$lt_cv_to_tool_file_cmd
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7010 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7017 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7018 if ${lt_cv_ld_reload_flag+:} false
; then :
7019 $as_echo_n "(cached) " >&6
7021 lt_cv_ld_reload_flag
='-r'
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7024 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7025 reload_flag
=$lt_cv_ld_reload_flag
7026 case $reload_flag in
7028 *) reload_flag
=" $reload_flag" ;;
7030 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
7032 cygwin
* | mingw
* | pw32
* | cegcc
*)
7033 if test yes != "$GCC"; then
7038 if test yes = "$GCC"; then
7039 reload_cmds
='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7041 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
7054 if test -n "$ac_tool_prefix"; then
7055 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7056 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if ${ac_cv_prog_OBJDUMP+:} false
; then :
7060 $as_echo_n "(cached) " >&6
7062 if test -n "$OBJDUMP"; then
7063 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
7065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir
=.
7070 for ac_exec_ext
in '' $ac_executable_extensions; do
7071 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7072 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 OBJDUMP
=$ac_cv_prog_OBJDUMP
7083 if test -n "$OBJDUMP"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7085 $as_echo "$OBJDUMP" >&6; }
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7093 if test -z "$ac_cv_prog_OBJDUMP"; then
7094 ac_ct_OBJDUMP
=$OBJDUMP
7095 # Extract the first word of "objdump", so it can be a program name with args.
7096 set dummy objdump
; ac_word
=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
7100 $as_echo_n "(cached) " >&6
7102 if test -n "$ac_ct_OBJDUMP"; then
7103 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
7105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir
=.
7110 for ac_exec_ext
in '' $ac_executable_extensions; do
7111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
7123 if test -n "$ac_ct_OBJDUMP"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7125 $as_echo "$ac_ct_OBJDUMP" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7131 if test "x$ac_ct_OBJDUMP" = x
; then
7134 case $cross_compiling:$ac_tool_warned in
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138 ac_tool_warned
=yes ;;
7140 OBJDUMP
=$ac_ct_OBJDUMP
7143 OBJDUMP
="$ac_cv_prog_OBJDUMP"
7146 test -z "$OBJDUMP" && OBJDUMP
=objdump
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7154 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7155 if ${lt_cv_deplibs_check_method+:} false
; then :
7156 $as_echo_n "(cached) " >&6
7158 lt_cv_file_magic_cmd
='$MAGIC_CMD'
7159 lt_cv_file_magic_test_file
=
7160 lt_cv_deplibs_check_method
='unknown'
7161 # Need to set the preceding variable on all platforms that support
7162 # interlibrary dependencies.
7163 # 'none' -- dependencies not supported.
7164 # 'unknown' -- same as none, but documents that we really don't know.
7165 # 'pass_all' -- all dependencies passed with no checks.
7166 # 'test_compile' -- check by making test program.
7167 # 'file_magic [[regex]]' -- check by looking for files in library path
7168 # that responds to the $file_magic_cmd with a given extended regex.
7169 # If you have 'file' or equivalent on your system and you're not sure
7170 # whether 'pass_all' will *always* work, you probably want this one.
7174 lt_cv_deplibs_check_method
=pass_all
7178 lt_cv_deplibs_check_method
=pass_all
7182 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7183 lt_cv_file_magic_cmd
='/usr/bin/file -L'
7184 lt_cv_file_magic_test_file
=/shlib
/libc.so
7188 # func_win32_libid is a shell function defined in ltmain.sh
7189 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
7190 lt_cv_file_magic_cmd
='func_win32_libid'
7194 # Base MSYS/MinGW do not provide the 'file' command needed by
7195 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7196 # unless we find 'file', for example because we are cross-compiling.
7197 if ( file / ) >/dev
/null
2>&1; then
7198 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
7199 lt_cv_file_magic_cmd
='func_win32_libid'
7201 # Keep this pattern in sync with the one in func_win32_libid.
7202 lt_cv_deplibs_check_method
='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7203 lt_cv_file_magic_cmd
='$OBJDUMP -f'
7208 # use the weaker test based on 'objdump'. See mingw*.
7209 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7210 lt_cv_file_magic_cmd
='$OBJDUMP -f'
7213 darwin
* | rhapsody
*)
7214 lt_cv_deplibs_check_method
=pass_all
7217 freebsd
* | dragonfly
*)
7218 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
7221 # Not sure whether the presence of OpenBSD here was a mistake.
7222 # Let's accept both of them until this is cleared up.
7223 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7224 lt_cv_file_magic_cmd
=/usr
/bin
/file
7225 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
7229 lt_cv_deplibs_check_method
=pass_all
7234 lt_cv_deplibs_check_method
=pass_all
7237 hpux10.20
* | hpux11
*)
7238 lt_cv_file_magic_cmd
=/usr
/bin
/file
7241 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7242 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
7245 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]'
7246 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
7249 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7250 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
7256 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7257 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
7260 irix5
* | irix6
* | nonstopux
*)
7262 *-32|
*"-32 ") libmagic
=32-bit;;
7263 *-n32|
*"-n32 ") libmagic
=N32
;;
7264 *-64|
*"-64 ") libmagic
=64-bit;;
7265 *) libmagic
=never-match
;;
7267 lt_cv_deplibs_check_method
=pass_all
7270 # This must be glibc/ELF.
7271 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
7272 lt_cv_deplibs_check_method
=pass_all
7276 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
7277 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7279 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7284 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7285 lt_cv_file_magic_cmd
=/usr
/bin
/file
7286 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
7290 lt_cv_deplibs_check_method
=pass_all
7294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7295 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7297 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7301 osf3
* | osf4
* | osf5
*)
7302 lt_cv_deplibs_check_method
=pass_all
7306 lt_cv_deplibs_check_method
=pass_all
7310 lt_cv_deplibs_check_method
=pass_all
7313 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
7314 lt_cv_deplibs_check_method
=pass_all
7318 case $host_vendor in
7320 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]'
7321 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
7324 lt_cv_deplibs_check_method
=pass_all
7327 lt_cv_file_magic_cmd
='/bin/file'
7328 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7331 lt_cv_file_magic_cmd
='/bin/file'
7332 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7333 lt_cv_file_magic_test_file
=/lib
/libc.so
7336 lt_cv_deplibs_check_method
=pass_all
7339 lt_cv_deplibs_check_method
=pass_all
7345 lt_cv_deplibs_check_method
=pass_all
7348 lt_cv_deplibs_check_method
=pass_all
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7354 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7358 if test "$build" = "$host"; then
7361 if ( shopt |
grep nocaseglob
) >/dev
/null
2>&1; then
7364 file_magic_glob
=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7370 file_magic_cmd
=$lt_cv_file_magic_cmd
7371 deplibs_check_method
=$lt_cv_deplibs_check_method
7372 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7397 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$DLLTOOL"; then
7404 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir
=.
7411 for ac_exec_ext
in '' $ac_executable_extensions; do
7412 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 DLLTOOL
=$ac_cv_prog_DLLTOOL
7424 if test -n "$DLLTOOL"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7426 $as_echo "$DLLTOOL" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7434 if test -z "$ac_cv_prog_DLLTOOL"; then
7435 ac_ct_DLLTOOL
=$DLLTOOL
7436 # Extract the first word of "dlltool", so it can be a program name with args.
7437 set dummy dlltool
; ac_word
=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7441 $as_echo_n "(cached) " >&6
7443 if test -n "$ac_ct_DLLTOOL"; then
7444 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir
=.
7451 for ac_exec_ext
in '' $ac_executable_extensions; do
7452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7464 if test -n "$ac_ct_DLLTOOL"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7466 $as_echo "$ac_ct_DLLTOOL" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7472 if test "x$ac_ct_DLLTOOL" = x
; then
7475 case $cross_compiling:$ac_tool_warned in
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned
=yes ;;
7481 DLLTOOL
=$ac_ct_DLLTOOL
7484 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7487 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7496 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7497 if ${lt_cv_sharedlib_from_linklib_cmd+:} false
; then :
7498 $as_echo_n "(cached) " >&6
7500 lt_cv_sharedlib_from_linklib_cmd
='unknown'
7503 cygwin
* | mingw
* | pw32
* | cegcc
*)
7504 # two different shell functions defined in ltmain.sh;
7505 # decide which one to use based on capabilities of $DLLTOOL
7506 case `$DLLTOOL --help 2>&1` in
7507 *--identify-strict*)
7508 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib
7511 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib_fallback
7516 # fallback: assume linklib IS sharedlib
7517 lt_cv_sharedlib_from_linklib_cmd
=$ECHO
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7523 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7524 sharedlib_from_linklib_cmd
=$lt_cv_sharedlib_from_linklib_cmd
7525 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd
=$ECHO
7533 if test -n "$ac_tool_prefix"; then
7536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7537 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if ${ac_cv_prog_AR+:} false
; then :
7541 $as_echo_n "(cached) " >&6
7543 if test -n "$AR"; then
7544 ac_cv_prog_AR
="$AR" # Let the user override the test.
7546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir
=.
7551 for ac_exec_ext
in '' $ac_executable_extensions; do
7552 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7553 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 if test -n "$AR"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7566 $as_echo "$AR" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7573 test -n "$AR" && break
7576 if test -z "$AR"; then
7580 # Extract the first word of "$ac_prog", so it can be a program name with args.
7581 set dummy
$ac_prog; ac_word
=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7585 $as_echo_n "(cached) " >&6
7587 if test -n "$ac_ct_AR"; then
7588 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir
=.
7595 for ac_exec_ext
in '' $ac_executable_extensions; do
7596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7597 ac_cv_prog_ac_ct_AR
="$ac_prog"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7608 if test -n "$ac_ct_AR"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7610 $as_echo "$ac_ct_AR" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7617 test -n "$ac_ct_AR" && break
7620 if test "x$ac_ct_AR" = x
; then
7623 case $cross_compiling:$ac_tool_warned in
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627 ac_tool_warned
=yes ;;
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7647 $as_echo_n "checking for archiver @FILE support... " >&6; }
7648 if ${lt_cv_ar_at_file+:} false
; then :
7649 $as_echo_n "(cached) " >&6
7652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7663 if ac_fn_c_try_compile
"$LINENO"; then :
7664 echo conftest.
$ac_objext > conftest.lst
7665 lt_ar_try
='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7667 (eval $lt_ar_try) 2>&5
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; }
7671 if test 0 -eq "$ac_status"; then
7672 # Ensure the archiver fails upon bogus file names.
7673 rm -f conftest.
$ac_objext libconftest.a
7674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7675 (eval $lt_ar_try) 2>&5
7677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7678 test $ac_status = 0; }
7679 if test 0 -ne "$ac_status"; then
7683 rm -f conftest.
* libconftest.a
7686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7690 $as_echo "$lt_cv_ar_at_file" >&6; }
7692 if test no
= "$lt_cv_ar_at_file"; then
7695 archiver_list_spec
=$lt_cv_ar_at_file
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7706 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_STRIP+:} false
; then :
7710 $as_echo_n "(cached) " >&6
7712 if test -n "$STRIP"; then
7713 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir
=.
7720 for ac_exec_ext
in '' $ac_executable_extensions; do
7721 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 STRIP
=$ac_cv_prog_STRIP
7733 if test -n "$STRIP"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7735 $as_echo "$STRIP" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7743 if test -z "$ac_cv_prog_STRIP"; then
7745 # Extract the first word of "strip", so it can be a program name with args.
7746 set dummy strip
; ac_word
=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
7750 $as_echo_n "(cached) " >&6
7752 if test -n "$ac_ct_STRIP"; then
7753 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir
=.
7760 for ac_exec_ext
in '' $ac_executable_extensions; do
7761 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_ac_ct_STRIP
="strip"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7773 if test -n "$ac_ct_STRIP"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7775 $as_echo "$ac_ct_STRIP" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7781 if test "x$ac_ct_STRIP" = x
; then
7784 case $cross_compiling:$ac_tool_warned in
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned
=yes ;;
7793 STRIP
="$ac_cv_prog_STRIP"
7796 test -z "$STRIP" && STRIP
=:
7803 if test -n "$ac_tool_prefix"; then
7804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7805 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_RANLIB+:} false
; then :
7809 $as_echo_n "(cached) " >&6
7811 if test -n "$RANLIB"; then
7812 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir
=.
7819 for ac_exec_ext
in '' $ac_executable_extensions; do
7820 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 RANLIB
=$ac_cv_prog_RANLIB
7832 if test -n "$RANLIB"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7834 $as_echo "$RANLIB" >&6; }
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7842 if test -z "$ac_cv_prog_RANLIB"; then
7843 ac_ct_RANLIB
=$RANLIB
7844 # Extract the first word of "ranlib", so it can be a program name with args.
7845 set dummy ranlib
; ac_word
=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7849 $as_echo_n "(cached) " >&6
7851 if test -n "$ac_ct_RANLIB"; then
7852 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir
=.
7859 for ac_exec_ext
in '' $ac_executable_extensions; do
7860 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7872 if test -n "$ac_ct_RANLIB"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7874 $as_echo "$ac_ct_RANLIB" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7880 if test "x$ac_ct_RANLIB" = x
; then
7883 case $cross_compiling:$ac_tool_warned in
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887 ac_tool_warned
=yes ;;
7889 RANLIB
=$ac_ct_RANLIB
7892 RANLIB
="$ac_cv_prog_RANLIB"
7895 test -z "$RANLIB" && RANLIB
=:
7902 # Determine commands to create old-style static archives.
7903 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7904 old_postinstall_cmds
='chmod 644 $oldlib'
7905 old_postuninstall_cmds
=
7907 if test -n "$RANLIB"; then
7910 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7913 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7916 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7921 lock_old_archive_extraction
=yes ;;
7923 lock_old_archive_extraction
=no
;;
7964 # If no C compiler was specified, use CC.
7967 # If no C compiler flags were specified, use CFLAGS.
7968 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7970 # Allow CC to be a program name with arguments.
7974 # Check for command to grab the raw symbol name followed by C symbol from nm.
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7976 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7977 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
7978 $as_echo_n "(cached) " >&6
7981 # These are sane defaults that work on at least a few old systems.
7982 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7984 # Character class describing NM global symbol codes.
7985 symcode
='[BCDEGRST]'
7987 # Regexp to match symbols that can be accessed directly from C.
7988 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
7990 # Define system-specific variables.
7995 cygwin
* | mingw
* | pw32
* | cegcc
*)
7996 symcode
='[ABCDGISTW]'
7999 if test ia64
= "$host_cpu"; then
8000 symcode
='[ABCDEGRST]'
8004 symcode
='[BCDEGRST]'
8007 symcode
='[BCDEGQRST]'
8018 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8026 # If we're using GNU nm, then use its standard symbol codes.
8027 case `$NM -V 2>&1` in
8028 *GNU
* |
*'with BFD'*)
8029 symcode
='[ABCDGIRSTW]' ;;
8032 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8033 # Gets list of data symbols to import.
8034 lt_cv_sys_global_symbol_to_import
="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8035 # Adjust the below global symbol transforms to fixup imported variables.
8036 lt_cdecl_hook
=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8037 lt_c_name_hook
=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8038 lt_c_name_lib_hook
="\
8039 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8040 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8042 # Disable hooks by default.
8043 lt_cv_sys_global_symbol_to_import
=
8049 # Transform an extracted symbol line into a proper C declaration.
8050 # Some systems (esp. on ia64) link data and code symbols differently,
8051 # so use this general approach.
8052 lt_cv_sys_global_symbol_to_cdecl
="sed -n"\
8054 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8055 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8057 # Transform an extracted symbol line into symbol name and symbol address
8058 lt_cv_sys_global_symbol_to_c_name_address
="sed -n"\
8060 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8061 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8063 # Transform an extracted symbol line into symbol name with lib prefix and
8065 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
="sed -n"\
8066 $lt_c_name_lib_hook\
8067 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8068 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8069 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8071 # Handle CRLF in mingw tool chain
8075 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8079 # Try without a prefix underscore, then with it.
8080 for ac_symprfx
in "" "_"; do
8082 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8083 symxfrm
="\\1 $ac_symprfx\\2 \\2"
8085 # Write the raw and C identifiers.
8086 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8087 # Fake it for dumpbin and say T for any non-static function,
8088 # D for any global variable and I for any imported variable.
8089 # Also find C++ and __fastcall symbols from MSVC++,
8090 # which start with @ or ?.
8091 lt_cv_sys_global_symbol_pipe
="$AWK '"\
8092 " {last_section=section; section=\$ 3};"\
8093 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8094 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8095 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8096 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8097 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8098 " \$ 0!~/External *\|/{next};"\
8099 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8100 " {if(hide[section]) next};"\
8101 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8102 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8103 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8104 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8105 " ' prfx=^$ac_symprfx"
8107 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8109 lt_cv_sys_global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8111 # Check to see that the pipe works correctly.
8115 cat > conftest.
$ac_ext <<_LT_EOF
8120 void nm_test_func(void);
8121 void nm_test_func(void){}
8125 int main(){nm_test_var='a';nm_test_func();return(0);}
8128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8129 (eval $ac_compile) 2>&5
8131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8132 test $ac_status = 0; }; then
8133 # Now try to grab the symbols.
8135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8136 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
8138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8139 test $ac_status = 0; } && test -s "$nlist"; then
8140 # Try sorting and uniquifying the output.
8141 if sort "$nlist" |
uniq > "$nlist"T
; then
8142 mv -f "$nlist"T
"$nlist"
8147 # Make sure that we snagged all the symbols we need.
8148 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
8149 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
8150 cat <<_LT_EOF > conftest.$ac_ext
8151 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8152 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8153 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8154 relocations are performed -- see ld's documentation on pseudo-relocs. */
8155 # define LT_DLSYM_CONST
8156 #elif defined __osf__
8157 /* This system does not cope well with relocations in const data. */
8158 # define LT_DLSYM_CONST
8160 # define LT_DLSYM_CONST const
8168 # Now generate the symbol file.
8169 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8171 cat <<_LT_EOF >> conftest.$ac_ext
8173 /* The mapping between symbol names and symbols. */
8174 LT_DLSYM_CONST struct {
8178 lt__PROGRAM__LTX_preloaded_symbols[] =
8180 { "@PROGRAM@", (void *) 0 },
8182 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
8183 cat <<\_LT_EOF
>> conftest.
$ac_ext
8187 /* This works around a problem
in FreeBSD linker
*/
8188 #ifdef FREEBSD_WORKAROUND
8189 static const void
*lt_preloaded_setup
() {
8190 return lt__PROGRAM__LTX_preloaded_symbols
;
8198 # Now try linking the two files.
8199 mv conftest.
$ac_objext conftstm.
$ac_objext
8200 lt_globsym_save_LIBS
=$LIBS
8201 lt_globsym_save_CFLAGS
=$CFLAGS
8202 LIBS
=conftstm.
$ac_objext
8203 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8205 (eval $ac_link) 2>&5
8207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8208 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
8211 LIBS
=$lt_globsym_save_LIBS
8212 CFLAGS
=$lt_globsym_save_CFLAGS
8214 echo "cannot find nm_test_func in $nlist" >&5
8217 echo "cannot find nm_test_var in $nlist" >&5
8220 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8223 echo "$progname: failed program was:" >&5
8224 cat conftest.
$ac_ext >&5
8226 rm -rf conftest
* conftst
*
8228 # Do not use the global_symbol_pipe unless it works.
8229 if test yes = "$pipe_works"; then
8232 lt_cv_sys_global_symbol_pipe
=
8238 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8239 lt_cv_sys_global_symbol_to_cdecl
=
8241 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8243 $as_echo "failed" >&6; }
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8246 $as_echo "ok" >&6; }
8249 # Response file support.
8250 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8251 nm_file_list_spec
='@'
8252 elif $NM --help 2>/dev
/null |
grep '[@]FILE' >/dev
/null
; then
8253 nm_file_list_spec
='@'
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8293 $as_echo_n "checking for sysroot... " >&6; }
8295 # Check whether --with-sysroot was given.
8296 if test "${with_sysroot+set}" = set; then :
8297 withval
=$with_sysroot;
8304 case $with_sysroot in #(
8306 if test yes = "$GCC"; then
8307 lt_sysroot
=`$CC --print-sysroot 2>/dev/null`
8311 lt_sysroot
=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8317 $as_echo "$with_sysroot" >&6; }
8318 as_fn_error $?
"The sysroot must be an absolute path." "$LINENO" 5
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8323 $as_echo "${lt_sysroot:-no}" >&6; }
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8330 $as_echo_n "checking for a working dd... " >&6; }
8331 if ${ac_cv_path_lt_DD+:} false
; then :
8332 $as_echo_n "(cached) " >&6
8334 printf 0123456789abcdef0123456789abcdef
>conftest.i
8335 cat conftest.i conftest.i
>conftest2.i
8337 if test -z "$lt_DD"; then
8338 ac_path_lt_DD_found
=false
8339 # Loop through the user's path and test for each of PROGNAME-LIST
8340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8344 test -z "$as_dir" && as_dir
=.
8345 for ac_prog
in dd; do
8346 for ac_exec_ext
in '' $ac_executable_extensions; do
8347 ac_path_lt_DD
="$as_dir/$ac_prog$ac_exec_ext"
8348 as_fn_executable_p
"$ac_path_lt_DD" ||
continue
8349 if "$ac_path_lt_DD" bs
=32 count
=1 <conftest2.i
>conftest.out
2>/dev
/null
; then
8350 cmp -s conftest.i conftest.out \
8351 && ac_cv_path_lt_DD
="$ac_path_lt_DD" ac_path_lt_DD_found
=:
8353 $ac_path_lt_DD_found && break 3
8358 if test -z "$ac_cv_path_lt_DD"; then
8362 ac_cv_path_lt_DD
=$lt_DD
8365 rm -f conftest.i conftest2.i conftest.out
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8368 $as_echo "$ac_cv_path_lt_DD" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8372 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8373 if ${lt_cv_truncate_bin+:} false
; then :
8374 $as_echo_n "(cached) " >&6
8376 printf 0123456789abcdef0123456789abcdef
>conftest.i
8377 cat conftest.i conftest.i
>conftest2.i
8379 if "$ac_cv_path_lt_DD" bs
=32 count
=1 <conftest2.i
>conftest.out
2>/dev
/null
; then
8380 cmp -s conftest.i conftest.out \
8381 && lt_cv_truncate_bin
="$ac_cv_path_lt_DD bs=4096 count=1"
8383 rm -f conftest.i conftest2.i conftest.out
8384 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin
="$SED -e 4q"
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8387 $as_echo "$lt_cv_truncate_bin" >&6; }
8395 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8398 for cc_temp
in $
*""; do
8400 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8401 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8406 func_cc_basename_result
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8409 # Check whether --enable-libtool-lock was given.
8410 if test "${enable_libtool_lock+set}" = set; then :
8411 enableval
=$enable_libtool_lock;
8414 test no
= "$enable_libtool_lock" || enable_libtool_lock
=yes
8416 # Some flags need to be propagated to the compiler or linker for good
8420 # Find out what ABI is being produced by ac_compile, and set mode
8421 # options accordingly.
8422 echo 'int i;' > conftest.
$ac_ext
8423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8424 (eval $ac_compile) 2>&5
8426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8427 test $ac_status = 0; }; then
8428 case `/usr/bin/file conftest.$ac_objext` in
8440 # Find out what ABI is being produced by ac_compile, and set linker
8441 # options accordingly.
8442 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
8443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8444 (eval $ac_compile) 2>&5
8446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8447 test $ac_status = 0; }; then
8448 if test yes = "$lt_cv_prog_gnu_ld"; then
8449 case `/usr/bin/file conftest.$ac_objext` in
8451 LD
="${LD-ld} -melf32bsmip"
8454 LD
="${LD-ld} -melf32bmipn32"
8457 LD
="${LD-ld} -melf64bmip"
8461 case `/usr/bin/file conftest.$ac_objext` in
8478 # Find out what ABI is being produced by ac_compile, and set linker
8479 # options accordingly.
8480 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
8481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8482 (eval $ac_compile) 2>&5
8484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8485 test $ac_status = 0; }; then
8487 case `/usr/bin/file conftest.$ac_objext` in
8495 case `/usr/bin/file conftest.$ac_objext` in
8497 emul
="${emul}btsmip"
8500 emul
="${emul}ltsmip"
8503 case `/usr/bin/file conftest.$ac_objext` in
8508 LD
="${LD-ld} -m $emul"
8513 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
8514 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
8515 # Find out what ABI is being produced by ac_compile, and set linker
8516 # options accordingly. Note that the listed cases only cover the
8517 # situations where additional linker options are needed (such as when
8518 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8519 # vice versa); the common cases where no linker options are needed do
8520 # not appear in the list.
8521 echo 'int i;' > conftest.
$ac_ext
8522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8523 (eval $ac_compile) 2>&5
8525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8526 test $ac_status = 0; }; then
8527 case `/usr/bin/file conftest.o` in
8530 x86_64-
*kfreebsd
*-gnu)
8531 LD
="${LD-ld} -m elf_i386_fbsd"
8534 case `/usr/bin/file conftest.o` in
8536 LD
="${LD-ld} -m elf32_x86_64"
8539 LD
="${LD-ld} -m elf_i386"
8543 powerpc64le-
*linux
*)
8544 LD
="${LD-ld} -m elf32lppclinux"
8547 LD
="${LD-ld} -m elf32ppclinux"
8550 LD
="${LD-ld} -m elf_s390"
8553 LD
="${LD-ld} -m elf32_sparc"
8559 x86_64-
*kfreebsd
*-gnu)
8560 LD
="${LD-ld} -m elf_x86_64_fbsd"
8563 LD
="${LD-ld} -m elf_x86_64"
8566 LD
="${LD-ld} -m elf64lppc"
8569 LD
="${LD-ld} -m elf64ppc"
8571 s390
*-*linux
*|s390
*-*tpf
*)
8572 LD
="${LD-ld} -m elf64_s390"
8575 LD
="${LD-ld} -m elf64_sparc"
8585 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8587 CFLAGS
="$CFLAGS -belf"
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8589 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8590 if ${lt_cv_cc_needs_belf+:} false
; then :
8591 $as_echo_n "(cached) " >&6
8594 ac_cpp
='$CPP $CPPFLAGS'
8595 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8596 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8597 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8610 if ac_fn_c_try_link
"$LINENO"; then :
8611 lt_cv_cc_needs_belf
=yes
8613 lt_cv_cc_needs_belf
=no
8615 rm -f core conftest.err conftest.
$ac_objext \
8616 conftest
$ac_exeext conftest.
$ac_ext
8618 ac_cpp
='$CPP $CPPFLAGS'
8619 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8620 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8621 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8625 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8626 if test yes != "$lt_cv_cc_needs_belf"; then
8627 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8632 # Find out what ABI is being produced by ac_compile, and set linker
8633 # options accordingly.
8634 echo 'int i;' > conftest.
$ac_ext
8635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8636 (eval $ac_compile) 2>&5
8638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8639 test $ac_status = 0; }; then
8640 case `/usr/bin/file conftest.o` in
8642 case $lt_cv_prog_gnu_ld in
8645 i?
86-*-solaris*|x86_64-
*-solaris*)
8646 LD
="${LD-ld} -m elf_x86_64"
8649 LD
="${LD-ld} -m elf64_sparc"
8652 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8653 if ${LD-ld} -V |
grep _sol2
>/dev
/null
2>&1; then
8658 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
8670 need_locks
=$enable_libtool_lock
8672 if test -n "$ac_tool_prefix"; then
8673 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8674 set dummy
${ac_tool_prefix}mt
; ac_word
=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_MANIFEST_TOOL+:} false
; then :
8678 $as_echo_n "(cached) " >&6
8680 if test -n "$MANIFEST_TOOL"; then
8681 ac_cv_prog_MANIFEST_TOOL
="$MANIFEST_TOOL" # Let the user override the test.
8683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8687 test -z "$as_dir" && as_dir
=.
8688 for ac_exec_ext
in '' $ac_executable_extensions; do
8689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_MANIFEST_TOOL
="${ac_tool_prefix}mt"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 MANIFEST_TOOL
=$ac_cv_prog_MANIFEST_TOOL
8701 if test -n "$MANIFEST_TOOL"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8703 $as_echo "$MANIFEST_TOOL" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8711 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8712 ac_ct_MANIFEST_TOOL
=$MANIFEST_TOOL
8713 # Extract the first word of "mt", so it can be a program name with args.
8714 set dummy mt
; ac_word
=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false
; then :
8718 $as_echo_n "(cached) " >&6
8720 if test -n "$ac_ct_MANIFEST_TOOL"; then
8721 ac_cv_prog_ac_ct_MANIFEST_TOOL
="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8727 test -z "$as_dir" && as_dir
=.
8728 for ac_exec_ext
in '' $ac_executable_extensions; do
8729 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8730 ac_cv_prog_ac_ct_MANIFEST_TOOL
="mt"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 ac_ct_MANIFEST_TOOL
=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8741 if test -n "$ac_ct_MANIFEST_TOOL"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8743 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8749 if test "x$ac_ct_MANIFEST_TOOL" = x
; then
8752 case $cross_compiling:$ac_tool_warned in
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756 ac_tool_warned
=yes ;;
8758 MANIFEST_TOOL
=$ac_ct_MANIFEST_TOOL
8761 MANIFEST_TOOL
="$ac_cv_prog_MANIFEST_TOOL"
8764 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL
=mt
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8766 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8767 if ${lt_cv_path_mainfest_tool+:} false
; then :
8768 $as_echo_n "(cached) " >&6
8770 lt_cv_path_mainfest_tool
=no
8771 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8772 $MANIFEST_TOOL '-?' 2>conftest.err
> conftest.out
8773 cat conftest.err
>&5
8774 if $GREP 'Manifest Tool' conftest.out
> /dev
/null
; then
8775 lt_cv_path_mainfest_tool
=yes
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8780 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8781 if test yes != "$lt_cv_path_mainfest_tool"; then
8791 rhapsody
* | darwin
*)
8792 if test -n "$ac_tool_prefix"; then
8793 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8794 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
8798 $as_echo_n "(cached) " >&6
8800 if test -n "$DSYMUTIL"; then
8801 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
8803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8807 test -z "$as_dir" && as_dir
=.
8808 for ac_exec_ext
in '' $ac_executable_extensions; do
8809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8810 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
8821 if test -n "$DSYMUTIL"; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8823 $as_echo "$DSYMUTIL" >&6; }
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8831 if test -z "$ac_cv_prog_DSYMUTIL"; then
8832 ac_ct_DSYMUTIL
=$DSYMUTIL
8833 # Extract the first word of "dsymutil", so it can be a program name with args.
8834 set dummy dsymutil
; ac_word
=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
8838 $as_echo_n "(cached) " >&6
8840 if test -n "$ac_ct_DSYMUTIL"; then
8841 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
8843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8847 test -z "$as_dir" && as_dir
=.
8848 for ac_exec_ext
in '' $ac_executable_extensions; do
8849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8850 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
8861 if test -n "$ac_ct_DSYMUTIL"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8863 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8869 if test "x$ac_ct_DSYMUTIL" = x
; then
8872 case $cross_compiling:$ac_tool_warned in
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8876 ac_tool_warned
=yes ;;
8878 DSYMUTIL
=$ac_ct_DSYMUTIL
8881 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
8884 if test -n "$ac_tool_prefix"; then
8885 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8886 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 $as_echo_n "checking for $ac_word... " >&6; }
8889 if ${ac_cv_prog_NMEDIT+:} false
; then :
8890 $as_echo_n "(cached) " >&6
8892 if test -n "$NMEDIT"; then
8893 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
8895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8899 test -z "$as_dir" && as_dir
=.
8900 for ac_exec_ext
in '' $ac_executable_extensions; do
8901 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8902 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 NMEDIT
=$ac_cv_prog_NMEDIT
8913 if test -n "$NMEDIT"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8915 $as_echo "$NMEDIT" >&6; }
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8923 if test -z "$ac_cv_prog_NMEDIT"; then
8924 ac_ct_NMEDIT
=$NMEDIT
8925 # Extract the first word of "nmedit", so it can be a program name with args.
8926 set dummy nmedit
; ac_word
=$2
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 $as_echo_n "checking for $ac_word... " >&6; }
8929 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
8930 $as_echo_n "(cached) " >&6
8932 if test -n "$ac_ct_NMEDIT"; then
8933 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
8935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8939 test -z "$as_dir" && as_dir
=.
8940 for ac_exec_ext
in '' $ac_executable_extensions; do
8941 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8942 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
8953 if test -n "$ac_ct_NMEDIT"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8955 $as_echo "$ac_ct_NMEDIT" >&6; }
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958 $as_echo "no" >&6; }
8961 if test "x$ac_ct_NMEDIT" = x
; then
8964 case $cross_compiling:$ac_tool_warned in
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8968 ac_tool_warned
=yes ;;
8970 NMEDIT
=$ac_ct_NMEDIT
8973 NMEDIT
="$ac_cv_prog_NMEDIT"
8976 if test -n "$ac_tool_prefix"; then
8977 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8978 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if ${ac_cv_prog_LIPO+:} false
; then :
8982 $as_echo_n "(cached) " >&6
8984 if test -n "$LIPO"; then
8985 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
8987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8991 test -z "$as_dir" && as_dir
=.
8992 for ac_exec_ext
in '' $ac_executable_extensions; do
8993 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8994 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9004 LIPO
=$ac_cv_prog_LIPO
9005 if test -n "$LIPO"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9007 $as_echo "$LIPO" >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9015 if test -z "$ac_cv_prog_LIPO"; then
9017 # Extract the first word of "lipo", so it can be a program name with args.
9018 set dummy lipo
; ac_word
=$2
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020 $as_echo_n "checking for $ac_word... " >&6; }
9021 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
9022 $as_echo_n "(cached) " >&6
9024 if test -n "$ac_ct_LIPO"; then
9025 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
9027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9031 test -z "$as_dir" && as_dir
=.
9032 for ac_exec_ext
in '' $ac_executable_extensions; do
9033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9034 ac_cv_prog_ac_ct_LIPO
="lipo"
9035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
9045 if test -n "$ac_ct_LIPO"; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9047 $as_echo "$ac_ct_LIPO" >&6; }
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 $as_echo "no" >&6; }
9053 if test "x$ac_ct_LIPO" = x
; then
9056 case $cross_compiling:$ac_tool_warned in
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9060 ac_tool_warned
=yes ;;
9065 LIPO
="$ac_cv_prog_LIPO"
9068 if test -n "$ac_tool_prefix"; then
9069 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9070 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9072 $as_echo_n "checking for $ac_word... " >&6; }
9073 if ${ac_cv_prog_OTOOL+:} false
; then :
9074 $as_echo_n "(cached) " >&6
9076 if test -n "$OTOOL"; then
9077 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
9079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9083 test -z "$as_dir" && as_dir
=.
9084 for ac_exec_ext
in '' $ac_executable_extensions; do
9085 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9086 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
9087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 OTOOL
=$ac_cv_prog_OTOOL
9097 if test -n "$OTOOL"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9099 $as_echo "$OTOOL" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9107 if test -z "$ac_cv_prog_OTOOL"; then
9109 # Extract the first word of "otool", so it can be a program name with args.
9110 set dummy otool
; ac_word
=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
9114 $as_echo_n "(cached) " >&6
9116 if test -n "$ac_ct_OTOOL"; then
9117 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
9119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9123 test -z "$as_dir" && as_dir
=.
9124 for ac_exec_ext
in '' $ac_executable_extensions; do
9125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9126 ac_cv_prog_ac_ct_OTOOL
="otool"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
9137 if test -n "$ac_ct_OTOOL"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9139 $as_echo "$ac_ct_OTOOL" >&6; }
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9145 if test "x$ac_ct_OTOOL" = x
; then
9148 case $cross_compiling:$ac_tool_warned in
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9152 ac_tool_warned
=yes ;;
9157 OTOOL
="$ac_cv_prog_OTOOL"
9160 if test -n "$ac_tool_prefix"; then
9161 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9162 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164 $as_echo_n "checking for $ac_word... " >&6; }
9165 if ${ac_cv_prog_OTOOL64+:} false
; then :
9166 $as_echo_n "(cached) " >&6
9168 if test -n "$OTOOL64"; then
9169 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
9171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9175 test -z "$as_dir" && as_dir
=.
9176 for ac_exec_ext
in '' $ac_executable_extensions; do
9177 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9178 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
9179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188 OTOOL64
=$ac_cv_prog_OTOOL64
9189 if test -n "$OTOOL64"; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9191 $as_echo "$OTOOL64" >&6; }
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9199 if test -z "$ac_cv_prog_OTOOL64"; then
9200 ac_ct_OTOOL64
=$OTOOL64
9201 # Extract the first word of "otool64", so it can be a program name with args.
9202 set dummy otool64
; ac_word
=$2
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204 $as_echo_n "checking for $ac_word... " >&6; }
9205 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
9206 $as_echo_n "(cached) " >&6
9208 if test -n "$ac_ct_OTOOL64"; then
9209 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
9211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9215 test -z "$as_dir" && as_dir
=.
9216 for ac_exec_ext
in '' $ac_executable_extensions; do
9217 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9218 ac_cv_prog_ac_ct_OTOOL64
="otool64"
9219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
9229 if test -n "$ac_ct_OTOOL64"; then
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9231 $as_echo "$ac_ct_OTOOL64" >&6; }
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; }
9237 if test "x$ac_ct_OTOOL64" = x
; then
9240 case $cross_compiling:$ac_tool_warned in
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9244 ac_tool_warned
=yes ;;
9246 OTOOL64
=$ac_ct_OTOOL64
9249 OTOOL64
="$ac_cv_prog_OTOOL64"
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9279 $as_echo_n "checking for -single_module linker flag... " >&6; }
9280 if ${lt_cv_apple_cc_single_mod+:} false
; then :
9281 $as_echo_n "(cached) " >&6
9283 lt_cv_apple_cc_single_mod
=no
9284 if test -z "$LT_MULTI_MODULE"; then
9285 # By default we will add the -single_module flag. You can override
9286 # by either setting the environment variable LT_MULTI_MODULE
9287 # non-empty at configure time, or by adding -multi_module to the
9289 rm -rf libconftest.dylib
*
9290 echo "int foo(void){return 1;}" > conftest.c
9291 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9292 -dynamiclib -Wl,-single_module conftest.c" >&5
9293 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9294 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
9296 # If there is a non-empty error log, and "single_module"
9297 # appears in it, assume the flag caused a linker warning
9298 if test -s conftest.err
&& $GREP single_module conftest.err
; then
9299 cat conftest.err
>&5
9300 # Otherwise, if the output was created with a 0 exit code from
9301 # the compiler, it worked.
9302 elif test -f libconftest.dylib
&& test 0 = "$_lt_result"; then
9303 lt_cv_apple_cc_single_mod
=yes
9305 cat conftest.err
>&5
9307 rm -rf libconftest.dylib
*
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9312 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9315 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9316 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
9317 $as_echo_n "(cached) " >&6
9319 lt_cv_ld_exported_symbols_list
=no
9320 save_LDFLAGS
=$LDFLAGS
9321 echo "_main" > conftest.sym
9322 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9334 if ac_fn_c_try_link
"$LINENO"; then :
9335 lt_cv_ld_exported_symbols_list
=yes
9337 lt_cv_ld_exported_symbols_list
=no
9339 rm -f core conftest.err conftest.
$ac_objext \
9340 conftest
$ac_exeext conftest.
$ac_ext
9341 LDFLAGS
=$save_LDFLAGS
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9345 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9348 $as_echo_n "checking for -force_load linker flag... " >&6; }
9349 if ${lt_cv_ld_force_load+:} false
; then :
9350 $as_echo_n "(cached) " >&6
9352 lt_cv_ld_force_load
=no
9353 cat > conftest.c
<< _LT_EOF
9354 int forced_loaded() { return 2;}
9356 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9357 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
9358 echo "$AR cru libconftest.a conftest.o" >&5
9359 $AR cru libconftest.a conftest.o
2>&5
9360 echo "$RANLIB libconftest.a" >&5
9361 $RANLIB libconftest.a
2>&5
9362 cat > conftest.c
<< _LT_EOF
9363 int main() { return 0;}
9365 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9366 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
9368 if test -s conftest.err
&& $GREP force_load conftest.err
; then
9369 cat conftest.err
>&5
9370 elif test -f conftest
&& test 0 = "$_lt_result" && $GREP forced_load conftest
>/dev
/null
2>&1; then
9371 lt_cv_ld_force_load
=yes
9373 cat conftest.err
>&5
9375 rm -f conftest.err libconftest.a conftest conftest.c
9376 rm -rf conftest.dSYM
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9380 $as_echo "$lt_cv_ld_force_load" >&6; }
9382 rhapsody
* | darwin1.
[012])
9383 _lt_dar_allow_undefined
='$wl-undefined ${wl}suppress' ;;
9385 _lt_dar_allow_undefined
='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9386 darwin
*) # darwin 5.x on
9387 # if running on 10.5 or later, the deployment target defaults
9388 # to the OS version, if on x86, and 10.4, the deployment
9389 # target defaults to 10.4. Don't you love it?
9390 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9391 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
9392 _lt_dar_allow_undefined
='$wl-undefined ${wl}dynamic_lookup' ;;
9394 _lt_dar_allow_undefined
='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9396 _lt_dar_allow_undefined
='$wl-undefined ${wl}dynamic_lookup' ;;
9400 if test yes = "$lt_cv_apple_cc_single_mod"; then
9401 _lt_dar_single_mod
='$single_module'
9403 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9404 _lt_dar_export_syms
=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9406 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9408 if test : != "$DSYMUTIL" && test no
= "$lt_cv_ld_force_load"; then
9409 _lt_dsymutil
='~$DSYMUTIL $lib || :'
9416 # func_munge_path_list VARIABLE PATH
9417 # -----------------------------------
9418 # VARIABLE is name of variable containing _space_ separated list of
9419 # directories to be munged by the contents of PATH, which is string
9422 # string "DIR[ DIR]" will be prepended to VARIABLE
9424 # string "DIR[ DIR]" will be appended to VARIABLE
9425 # "DIRP[:DIRP]::[DIRA:]DIRA"
9426 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9427 # "DIRA[ DIRA]" will be appended to VARIABLE
9429 # VARIABLE will be replaced by "DIR[ DIR]"
9430 func_munge_path_list
()
9436 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$
$1\"
9439 eval $1=\"\$
$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9442 eval $1=\"\$
$1\
`$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9443 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$
$1\"
9446 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9451 for ac_header
in dlfcn.h
9453 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9455 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
9456 cat >>confdefs.h
<<_ACEOF
9457 #define HAVE_DLFCN_H 1
9469 enable_win32_dll
=yes
9472 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-cegcc*)
9473 if test -n "$ac_tool_prefix"; then
9474 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9475 set dummy
${ac_tool_prefix}as
; ac_word
=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if ${ac_cv_prog_AS+:} false
; then :
9479 $as_echo_n "(cached) " >&6
9481 if test -n "$AS"; then
9482 ac_cv_prog_AS
="$AS" # Let the user override the test.
9484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9488 test -z "$as_dir" && as_dir
=.
9489 for ac_exec_ext
in '' $ac_executable_extensions; do
9490 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9491 ac_cv_prog_AS
="${ac_tool_prefix}as"
9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 if test -n "$AS"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9504 $as_echo "$AS" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9512 if test -z "$ac_cv_prog_AS"; then
9514 # Extract the first word of "as", so it can be a program name with args.
9515 set dummy as
; ac_word
=$2
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517 $as_echo_n "checking for $ac_word... " >&6; }
9518 if ${ac_cv_prog_ac_ct_AS+:} false
; then :
9519 $as_echo_n "(cached) " >&6
9521 if test -n "$ac_ct_AS"; then
9522 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
9524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9528 test -z "$as_dir" && as_dir
=.
9529 for ac_exec_ext
in '' $ac_executable_extensions; do
9530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9531 ac_cv_prog_ac_ct_AS
="as"
9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
9542 if test -n "$ac_ct_AS"; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9544 $as_echo "$ac_ct_AS" >&6; }
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9550 if test "x$ac_ct_AS" = x
; then
9553 case $cross_compiling:$ac_tool_warned in
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9557 ac_tool_warned
=yes ;;
9565 if test -n "$ac_tool_prefix"; then
9566 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9567 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if ${ac_cv_prog_DLLTOOL+:} false
; then :
9571 $as_echo_n "(cached) " >&6
9573 if test -n "$DLLTOOL"; then
9574 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
9576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9580 test -z "$as_dir" && as_dir
=.
9581 for ac_exec_ext
in '' $ac_executable_extensions; do
9582 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9583 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 DLLTOOL
=$ac_cv_prog_DLLTOOL
9594 if test -n "$DLLTOOL"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9596 $as_echo "$DLLTOOL" >&6; }
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9604 if test -z "$ac_cv_prog_DLLTOOL"; then
9605 ac_ct_DLLTOOL
=$DLLTOOL
9606 # Extract the first word of "dlltool", so it can be a program name with args.
9607 set dummy dlltool
; ac_word
=$2
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9609 $as_echo_n "checking for $ac_word... " >&6; }
9610 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
9611 $as_echo_n "(cached) " >&6
9613 if test -n "$ac_ct_DLLTOOL"; then
9614 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
9616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9620 test -z "$as_dir" && as_dir
=.
9621 for ac_exec_ext
in '' $ac_executable_extensions; do
9622 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9623 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
9624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
9634 if test -n "$ac_ct_DLLTOOL"; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9636 $as_echo "$ac_ct_DLLTOOL" >&6; }
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639 $as_echo "no" >&6; }
9642 if test "x$ac_ct_DLLTOOL" = x
; then
9645 case $cross_compiling:$ac_tool_warned in
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9649 ac_tool_warned
=yes ;;
9651 DLLTOOL
=$ac_ct_DLLTOOL
9654 DLLTOOL
="$ac_cv_prog_DLLTOOL"
9657 if test -n "$ac_tool_prefix"; then
9658 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9659 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9661 $as_echo_n "checking for $ac_word... " >&6; }
9662 if ${ac_cv_prog_OBJDUMP+:} false
; then :
9663 $as_echo_n "(cached) " >&6
9665 if test -n "$OBJDUMP"; then
9666 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
9668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9672 test -z "$as_dir" && as_dir
=.
9673 for ac_exec_ext
in '' $ac_executable_extensions; do
9674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9675 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
9676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9685 OBJDUMP
=$ac_cv_prog_OBJDUMP
9686 if test -n "$OBJDUMP"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9688 $as_echo "$OBJDUMP" >&6; }
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9696 if test -z "$ac_cv_prog_OBJDUMP"; then
9697 ac_ct_OBJDUMP
=$OBJDUMP
9698 # Extract the first word of "objdump", so it can be a program name with args.
9699 set dummy objdump
; ac_word
=$2
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 $as_echo_n "checking for $ac_word... " >&6; }
9702 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
9703 $as_echo_n "(cached) " >&6
9705 if test -n "$ac_ct_OBJDUMP"; then
9706 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
9708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9712 test -z "$as_dir" && as_dir
=.
9713 for ac_exec_ext
in '' $ac_executable_extensions; do
9714 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9715 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
9716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9725 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
9726 if test -n "$ac_ct_OBJDUMP"; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9728 $as_echo "$ac_ct_OBJDUMP" >&6; }
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9731 $as_echo "no" >&6; }
9734 if test "x$ac_ct_OBJDUMP" = x
; then
9737 case $cross_compiling:$ac_tool_warned in
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9741 ac_tool_warned
=yes ;;
9743 OBJDUMP
=$ac_ct_OBJDUMP
9746 OBJDUMP
="$ac_cv_prog_OBJDUMP"
9752 test -z "$AS" && AS
=as
9758 test -z "$DLLTOOL" && DLLTOOL
=dlltool
9764 test -z "$OBJDUMP" && OBJDUMP
=objdump
9776 # Check whether --enable-shared was given.
9777 if test "${enable_shared+set}" = set; then :
9778 enableval
=$enable_shared; p
=${PACKAGE-default}
9780 yes) enable_shared
=yes ;;
9781 no
) enable_shared
=no
;;
9784 # Look at the argument we got. We use all the common list separators.
9785 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
9786 for pkg
in $enableval; do
9788 if test "X$pkg" = "X$p"; then
9807 # Check whether --enable-static was given.
9808 if test "${enable_static+set}" = set; then :
9809 enableval
=$enable_static; p
=${PACKAGE-default}
9811 yes) enable_static
=yes ;;
9812 no
) enable_static
=no
;;
9815 # Look at the argument we got. We use all the common list separators.
9816 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
9817 for pkg
in $enableval; do
9819 if test "X$pkg" = "X$p"; then
9839 # Check whether --with-pic was given.
9840 if test "${with_pic+set}" = set; then :
9841 withval
=$with_pic; lt_p
=${PACKAGE-default}
9843 yes|no
) pic_mode
=$withval ;;
9846 # Look at the argument we got. We use all the common list separators.
9847 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
9848 for lt_pkg
in $withval; do
9850 if test "X$lt_pkg" = "X$lt_p"; then
9868 # Check whether --enable-fast-install was given.
9869 if test "${enable_fast_install+set}" = set; then :
9870 enableval
=$enable_fast_install; p
=${PACKAGE-default}
9872 yes) enable_fast_install
=yes ;;
9873 no
) enable_fast_install
=no
;;
9875 enable_fast_install
=no
9876 # Look at the argument we got. We use all the common list separators.
9877 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
9878 for pkg
in $enableval; do
9880 if test "X$pkg" = "X$p"; then
9881 enable_fast_install
=yes
9888 enable_fast_install
=yes
9898 shared_archive_member_spec
=
9899 case $host,$enable_shared in
9900 power
*-*-aix[5-9]*,yes)
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9902 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9904 # Check whether --with-aix-soname was given.
9905 if test "${with_aix_soname+set}" = set; then :
9906 withval
=$with_aix_soname; case $withval in
9910 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
9913 lt_cv_with_aix_soname
=$with_aix_soname
9915 if ${lt_cv_with_aix_soname+:} false
; then :
9916 $as_echo_n "(cached) " >&6
9918 lt_cv_with_aix_soname
=aix
9921 with_aix_soname
=$lt_cv_with_aix_soname
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9925 $as_echo "$with_aix_soname" >&6; }
9926 if test aix
!= "$with_aix_soname"; then
9927 # For the AIX way of multilib, we name the shared archive member
9928 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9929 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9930 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9931 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9932 if test 64 = "${OBJECT_MODE-32}"; then
9933 shared_archive_member_spec
=shr_64
9935 shared_archive_member_spec
=shr
9953 # This can be used to rebuild libtool when needed
9954 LIBTOOL_DEPS
=$ltmain
9956 # Always use our own libtool.
9957 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
9988 test -z "$LN_S" && LN_S
="ln -s"
10003 if test -n "${ZSH_VERSION+set}"; then
10004 setopt NO_GLOB_SUBST
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10008 $as_echo_n "checking for objdir... " >&6; }
10009 if ${lt_cv_objdir+:} false
; then :
10010 $as_echo_n "(cached) " >&6
10012 rm -f .libs
2>/dev
/null
10013 mkdir .libs
2>/dev
/null
10014 if test -d .libs
; then
10017 # MS-DOS does not allow filenames that begin with a dot.
10020 rmdir .libs
2>/dev
/null
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10023 $as_echo "$lt_cv_objdir" >&6; }
10024 objdir
=$lt_cv_objdir
10030 cat >>confdefs.h
<<_ACEOF
10031 #define LT_OBJDIR "$lt_cv_objdir/"
10039 # AIX sometimes has problems with the GCC collect2 program. For some
10040 # reason, if we set the COLLECT_NAMES environment variable, the problems
10041 # vanish in a puff of smoke.
10042 if test set != "${COLLECT_NAMES+set}"; then
10044 export COLLECT_NAMES
10049 # Global variables:
10051 can_build_shared
=yes
10053 # All known linkers require a '.a' archive for static linking (except MSVC,
10054 # which needs '.lib').
10057 with_gnu_ld
=$lt_cv_prog_gnu_ld
10062 # Set sane defaults for various variables
10063 test -z "$CC" && CC
=cc
10064 test -z "$LTCC" && LTCC
=$CC
10065 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
10066 test -z "$LD" && LD
=ld
10067 test -z "$ac_objext" && ac_objext
=o
10069 func_cc_basename
$compiler
10070 cc_basename
=$func_cc_basename_result
10073 # Only perform the check for file, if the check method requires it
10074 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
10075 case $deplibs_check_method in
10077 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10079 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10080 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
10081 $as_echo_n "(cached) " >&6
10085 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
10088 lt_save_MAGIC_CMD
=$MAGIC_CMD
10089 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
10090 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
10091 for ac_dir
in $ac_dummy; do
10093 test -z "$ac_dir" && ac_dir
=.
10094 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10095 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
10096 if test -n "$file_magic_test_file"; then
10097 case $deplibs_check_method in
10099 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10100 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
10101 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
10102 $EGREP "$file_magic_regex" > /dev
/null
; then
10107 *** Warning: the command libtool uses to detect shared libraries,
10108 *** $file_magic_cmd, produces output that libtool cannot recognize.
10109 *** The result is that libtool may fail to recognize shared libraries
10110 *** as such. This will affect the creation of libtool libraries that
10111 *** depend on shared libraries, but programs linked with such libtool
10112 *** libraries will work regardless of this problem. Nevertheless, you
10113 *** may want to report the problem to your system manager and/or to
10114 *** bug-libtool@gnu.org
10124 MAGIC_CMD
=$lt_save_MAGIC_CMD
10129 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
10130 if test -n "$MAGIC_CMD"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10132 $as_echo "$MAGIC_CMD" >&6; }
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10142 if test -z "$lt_cv_path_MAGIC_CMD"; then
10143 if test -n "$ac_tool_prefix"; then
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10145 $as_echo_n "checking for file... " >&6; }
10146 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
10147 $as_echo_n "(cached) " >&6
10151 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
10154 lt_save_MAGIC_CMD
=$MAGIC_CMD
10155 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
10156 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
10157 for ac_dir
in $ac_dummy; do
10159 test -z "$ac_dir" && ac_dir
=.
10160 if test -f "$ac_dir/file"; then
10161 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
10162 if test -n "$file_magic_test_file"; then
10163 case $deplibs_check_method in
10165 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10166 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
10167 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
10168 $EGREP "$file_magic_regex" > /dev
/null
; then
10173 *** Warning: the command libtool uses to detect shared libraries,
10174 *** $file_magic_cmd, produces output that libtool cannot recognize.
10175 *** The result is that libtool may fail to recognize shared libraries
10176 *** as such. This will affect the creation of libtool libraries that
10177 *** depend on shared libraries, but programs linked with such libtool
10178 *** libraries will work regardless of this problem. Nevertheless, you
10179 *** may want to report the problem to your system manager and/or to
10180 *** bug-libtool@gnu.org
10190 MAGIC_CMD
=$lt_save_MAGIC_CMD
10195 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
10196 if test -n "$MAGIC_CMD"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10198 $as_echo "$MAGIC_CMD" >&6; }
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10214 # Use C for the default configuration in the libtool script
10218 ac_cpp
='$CPP $CPPFLAGS'
10219 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10220 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10221 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10224 # Source file extension for C test sources.
10227 # Object file extension for compiled C test sources.
10231 # Code to be used in simple compile tests
10232 lt_simple_compile_test_code
="int some_variable = 0;"
10234 # Code to be used in simple link tests
10235 lt_simple_link_test_code
='int main(){return(0);}'
10243 # If no C compiler was specified, use CC.
10246 # If no C compiler flags were specified, use CFLAGS.
10247 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
10249 # Allow CC to be a program name with arguments.
10252 # Save the default compiler, since it gets overwritten when the other
10253 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10254 compiler_DEFAULT
=$CC
10256 # save warnings/boilerplate of simple test code
10257 ac_outfile
=conftest.
$ac_objext
10258 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
10259 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
10260 _lt_compiler_boilerplate
=`cat conftest.err`
10263 ac_outfile
=conftest.
$ac_objext
10264 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
10265 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
10266 _lt_linker_boilerplate
=`cat conftest.err`
10271 ## There is no encapsulation within the following macros, do not change
10272 ## the running order or otherwise move them around unless you know exactly
10273 ## what you are doing...
10274 if test -n "$compiler"; then
10276 lt_prog_compiler_no_builtin_flag
=
10278 if test yes = "$GCC"; then
10279 case $cc_basename in
10281 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
10283 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10287 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10288 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
10289 $as_echo_n "(cached) " >&6
10291 lt_cv_prog_compiler_rtti_exceptions
=no
10292 ac_outfile
=conftest.
$ac_objext
10293 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10294 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10295 # Insert the option either (1) after the last *FLAGS variable, or
10296 # (2) before a word containing "conftest.", or (3) at the end.
10297 # Note that $ac_compile itself does not contain backslashes and begins
10298 # with a dollar sign (not a hyphen), so the echo should work correctly.
10299 # The option is referenced via a variable to avoid confusing sed.
10300 lt_compile
=`echo "$ac_compile" | $SED \
10301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10303 -e 's:$: $lt_compiler_flag:'`
10304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10305 (eval "$lt_compile" 2>conftest.err
)
10307 cat conftest.err
>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 if (exit $ac_status) && test -s "$ac_outfile"; then
10310 # The compiler can only warn and ignore the option if not recognized
10311 # So say no if there are warnings other than the usual output.
10312 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
10313 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10314 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
10315 lt_cv_prog_compiler_rtti_exceptions
=yes
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10322 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10324 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10325 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10337 lt_prog_compiler_wl
=
10338 lt_prog_compiler_pic
=
10339 lt_prog_compiler_static
=
10342 if test yes = "$GCC"; then
10343 lt_prog_compiler_wl
='-Wl,'
10344 lt_prog_compiler_static
='-static'
10348 # All AIX code is PIC.
10349 if test ia64
= "$host_cpu"; then
10350 # AIX 5 now supports IA64 processor
10351 lt_prog_compiler_static
='-Bstatic'
10353 lt_prog_compiler_pic
='-fPIC'
10359 # see comment about AmigaOS4 .so support
10360 lt_prog_compiler_pic
='-fPIC'
10363 # FIXME: we need at least 68020 code to build shared libraries, but
10364 # adding the '-m68020' flag to GCC prevents building anything better,
10366 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
10371 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
10372 # PIC is the default for these OSes.
10375 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
10376 # This hack is so that the source file can tell whether it is being
10377 # built for inclusion in a dll (and should export symbols for example).
10378 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10379 # (--disable-auto-import) libraries
10380 lt_prog_compiler_pic
='-DDLL_EXPORT'
10383 lt_prog_compiler_static
='$wl-static'
10388 darwin
* | rhapsody
*)
10389 # PIC is the default on this platform
10390 # Common symbols not allowed in MH_DYLIB files
10391 lt_prog_compiler_pic
='-fno-common'
10395 # PIC is the default for Haiku.
10396 # The "-static" flag exists, but is broken.
10397 lt_prog_compiler_static
=
10401 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10402 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10403 # sets the default TLS model and affects inlining.
10409 lt_prog_compiler_pic
='-fPIC'
10415 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10416 # Instead, we relocate shared libraries at runtime.
10420 # Just because we use GCC doesn't mean we suddenly get shared libraries
10421 # on systems that don't support them.
10422 lt_prog_compiler_can_build_shared
=no
10427 # QNX uses GNU C++, but need to define -shared option too, otherwise
10428 # it will coredump.
10429 lt_prog_compiler_pic
='-fPIC -shared'
10433 if test -d /usr
/nec
; then
10434 lt_prog_compiler_pic
=-Kconform_pic
10439 lt_prog_compiler_pic
='-fPIC'
10443 case $cc_basename in
10444 nvcc
*) # Cuda Compiler Driver 2.2
10445 lt_prog_compiler_wl
='-Xlinker '
10446 if test -n "$lt_prog_compiler_pic"; then
10447 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
10452 # PORTME Check for flag to pass linker flags through the system compiler.
10455 lt_prog_compiler_wl
='-Wl,'
10456 if test ia64
= "$host_cpu"; then
10457 # AIX 5 now supports IA64 processor
10458 lt_prog_compiler_static
='-Bstatic'
10460 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
10464 darwin
* | rhapsody
*)
10465 # PIC is the default on this platform
10466 # Common symbols not allowed in MH_DYLIB files
10467 lt_prog_compiler_pic
='-fno-common'
10468 case $cc_basename in
10470 # NAG Fortran compiler
10471 lt_prog_compiler_wl
='-Wl,-Wl,,'
10472 lt_prog_compiler_pic
='-PIC'
10473 lt_prog_compiler_static
='-Bstatic'
10478 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
10479 # This hack is so that the source file can tell whether it is being
10480 # built for inclusion in a dll (and should export symbols for example).
10481 lt_prog_compiler_pic
='-DDLL_EXPORT'
10484 lt_prog_compiler_static
='$wl-static'
10489 hpux9
* | hpux10
* | hpux11
*)
10490 lt_prog_compiler_wl
='-Wl,'
10491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10492 # not for PA HP-UX.
10498 lt_prog_compiler_pic
='+Z'
10501 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10502 lt_prog_compiler_static
='$wl-a ${wl}archive'
10505 irix5
* | irix6
* | nonstopux
*)
10506 lt_prog_compiler_wl
='-Wl,'
10507 # PIC (with -KPIC) is the default.
10508 lt_prog_compiler_static
='-non_shared'
10511 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
10512 case $cc_basename in
10513 # old Intel for x86_64, which still supported -KPIC.
10515 lt_prog_compiler_wl
='-Wl,'
10516 lt_prog_compiler_pic
='-KPIC'
10517 lt_prog_compiler_static
='-static'
10519 # icc used to be incompatible with GCC.
10520 # ICC 10 doesn't accept -KPIC any more.
10522 lt_prog_compiler_wl
='-Wl,'
10523 lt_prog_compiler_pic
='-fPIC'
10524 lt_prog_compiler_static
='-static'
10526 # Lahey Fortran 8.1.
10528 lt_prog_compiler_wl
='-Wl,'
10529 lt_prog_compiler_pic
='--shared'
10530 lt_prog_compiler_static
='--static'
10533 # NAG Fortran compiler
10534 lt_prog_compiler_wl
='-Wl,-Wl,,'
10535 lt_prog_compiler_pic
='-PIC'
10536 lt_prog_compiler_static
='-Bstatic'
10539 # Fabrice Bellard et al's Tiny C Compiler
10540 lt_prog_compiler_wl
='-Wl,'
10541 lt_prog_compiler_pic
='-fPIC'
10542 lt_prog_compiler_static
='-static'
10544 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10545 # Portland Group compilers (*not* the Pentium gcc compiler,
10546 # which looks to be a dead project)
10547 lt_prog_compiler_wl
='-Wl,'
10548 lt_prog_compiler_pic
='-fpic'
10549 lt_prog_compiler_static
='-Bstatic'
10552 lt_prog_compiler_wl
='-Wl,'
10553 # All Alpha code is PIC.
10554 lt_prog_compiler_static
='-non_shared'
10556 xl
* | bgxl
* | bgf
* | mpixl
*)
10557 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10558 lt_prog_compiler_wl
='-Wl,'
10559 lt_prog_compiler_pic
='-qpic'
10560 lt_prog_compiler_static
='-qstaticlink'
10563 case `$CC -V 2>&1 | sed 5q` in
10564 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
10565 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10566 lt_prog_compiler_pic
='-KPIC'
10567 lt_prog_compiler_static
='-Bstatic'
10568 lt_prog_compiler_wl
=''
10570 *Sun\ F
* |
*Sun
*Fortran
*)
10571 lt_prog_compiler_pic
='-KPIC'
10572 lt_prog_compiler_static
='-Bstatic'
10573 lt_prog_compiler_wl
='-Qoption ld '
10577 lt_prog_compiler_pic
='-KPIC'
10578 lt_prog_compiler_static
='-Bstatic'
10579 lt_prog_compiler_wl
='-Wl,'
10581 *Intel
*\
[CF
]*Compiler
*)
10582 lt_prog_compiler_wl
='-Wl,'
10583 lt_prog_compiler_pic
='-fPIC'
10584 lt_prog_compiler_static
='-static'
10587 lt_prog_compiler_wl
='-Wl,'
10588 lt_prog_compiler_pic
='-fpic'
10589 lt_prog_compiler_static
='-Bstatic'
10597 lt_prog_compiler_pic
='-KPIC'
10598 lt_prog_compiler_static
='-Bstatic'
10602 # QNX uses GNU C++, but need to define -shared option too, otherwise
10603 # it will coredump.
10604 lt_prog_compiler_pic
='-fPIC -shared'
10607 osf3
* | osf4
* | osf5
*)
10608 lt_prog_compiler_wl
='-Wl,'
10609 # All OSF/1 code is PIC.
10610 lt_prog_compiler_static
='-non_shared'
10614 lt_prog_compiler_static
='-non_shared'
10618 lt_prog_compiler_pic
='-KPIC'
10619 lt_prog_compiler_static
='-Bstatic'
10620 case $cc_basename in
10621 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
10622 lt_prog_compiler_wl
='-Qoption ld ';;
10624 lt_prog_compiler_wl
='-Wl,';;
10629 lt_prog_compiler_wl
='-Qoption ld '
10630 lt_prog_compiler_pic
='-PIC'
10631 lt_prog_compiler_static
='-Bstatic'
10634 sysv4 | sysv4.2uw2
* | sysv4.3
*)
10635 lt_prog_compiler_wl
='-Wl,'
10636 lt_prog_compiler_pic
='-KPIC'
10637 lt_prog_compiler_static
='-Bstatic'
10641 if test -d /usr
/nec
; then
10642 lt_prog_compiler_pic
='-Kconform_pic'
10643 lt_prog_compiler_static
='-Bstatic'
10647 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
10648 lt_prog_compiler_wl
='-Wl,'
10649 lt_prog_compiler_pic
='-KPIC'
10650 lt_prog_compiler_static
='-Bstatic'
10654 lt_prog_compiler_wl
='-Wl,'
10655 lt_prog_compiler_can_build_shared
=no
10659 lt_prog_compiler_pic
='-pic'
10660 lt_prog_compiler_static
='-Bstatic'
10664 lt_prog_compiler_can_build_shared
=no
10670 # For platforms that do not support PIC, -DPIC is meaningless:
10672 lt_prog_compiler_pic
=
10675 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10680 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10681 if ${lt_cv_prog_compiler_pic+:} false
; then :
10682 $as_echo_n "(cached) " >&6
10684 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10687 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10688 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
10691 # Check to make sure the PIC flag actually works.
10693 if test -n "$lt_prog_compiler_pic"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10695 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10696 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
10697 $as_echo_n "(cached) " >&6
10699 lt_cv_prog_compiler_pic_works
=no
10700 ac_outfile
=conftest.
$ac_objext
10701 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10702 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10703 # Insert the option either (1) after the last *FLAGS variable, or
10704 # (2) before a word containing "conftest.", or (3) at the end.
10705 # Note that $ac_compile itself does not contain backslashes and begins
10706 # with a dollar sign (not a hyphen), so the echo should work correctly.
10707 # The option is referenced via a variable to avoid confusing sed.
10708 lt_compile
=`echo "$ac_compile" | $SED \
10709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10711 -e 's:$: $lt_compiler_flag:'`
10712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10713 (eval "$lt_compile" 2>conftest.err
)
10715 cat conftest.err
>&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 if (exit $ac_status) && test -s "$ac_outfile"; then
10718 # The compiler can only warn and ignore the option if not recognized
10719 # So say no if there are warnings other than the usual output.
10720 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
10721 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10722 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
10723 lt_cv_prog_compiler_pic_works
=yes
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10730 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10732 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10733 case $lt_prog_compiler_pic in
10735 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
10738 lt_prog_compiler_pic
=
10739 lt_prog_compiler_can_build_shared
=no
10755 # Check to make sure the static flag actually works.
10757 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10759 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10760 if ${lt_cv_prog_compiler_static_works+:} false
; then :
10761 $as_echo_n "(cached) " >&6
10763 lt_cv_prog_compiler_static_works
=no
10764 save_LDFLAGS
=$LDFLAGS
10765 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
10766 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10767 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10768 # The linker can only warn and ignore the option if not recognized
10769 # So say no if there are warnings
10770 if test -s conftest.err
; then
10771 # Append any errors to the config.log.
10772 cat conftest.err
1>&5
10773 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10774 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10775 if diff conftest.exp conftest.er2
>/dev
/null
; then
10776 lt_cv_prog_compiler_static_works
=yes
10779 lt_cv_prog_compiler_static_works
=yes
10783 LDFLAGS
=$save_LDFLAGS
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10787 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10789 if test yes = "$lt_cv_prog_compiler_static_works"; then
10792 lt_prog_compiler_static
=
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10802 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10803 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10804 $as_echo_n "(cached) " >&6
10806 lt_cv_prog_compiler_c_o
=no
10807 $RM -r conftest
2>/dev
/null
10811 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10813 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10814 # Insert the option either (1) after the last *FLAGS variable, or
10815 # (2) before a word containing "conftest.", or (3) at the end.
10816 # Note that $ac_compile itself does not contain backslashes and begins
10817 # with a dollar sign (not a hyphen), so the echo should work correctly.
10818 lt_compile
=`echo "$ac_compile" | $SED \
10819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10821 -e 's:$: $lt_compiler_flag:'`
10822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10823 (eval "$lt_compile" 2>out
/conftest.err
)
10825 cat out
/conftest.err
>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10829 # The compiler can only warn and ignore the option if not recognized
10830 # So say no if there are warnings
10831 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
10832 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10833 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10834 lt_cv_prog_compiler_c_o
=yes
10839 # SGI C++ compiler will create directory out/ii_files/ for
10840 # template instantiation
10841 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10842 $RM out
/* && rmdir out
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10849 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10857 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10858 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10859 $as_echo_n "(cached) " >&6
10861 lt_cv_prog_compiler_c_o
=no
10862 $RM -r conftest
2>/dev
/null
10866 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10868 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10869 # Insert the option either (1) after the last *FLAGS variable, or
10870 # (2) before a word containing "conftest.", or (3) at the end.
10871 # Note that $ac_compile itself does not contain backslashes and begins
10872 # with a dollar sign (not a hyphen), so the echo should work correctly.
10873 lt_compile
=`echo "$ac_compile" | $SED \
10874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10876 -e 's:$: $lt_compiler_flag:'`
10877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10878 (eval "$lt_compile" 2>out
/conftest.err
)
10880 cat out
/conftest.err
>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10884 # The compiler can only warn and ignore the option if not recognized
10885 # So say no if there are warnings
10886 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
10887 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10888 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10889 lt_cv_prog_compiler_c_o
=yes
10894 # SGI C++ compiler will create directory out/ii_files/ for
10895 # template instantiation
10896 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10897 $RM out
/* && rmdir out
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10904 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10909 hard_links
=nottested
10910 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
10911 # do not overwrite the value of need_locks provided by the user
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10913 $as_echo_n "checking if we can lock with hard links... " >&6; }
10916 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10918 ln conftest.a conftest.b
2>&5 || hard_links
=no
10919 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10921 $as_echo "$hard_links" >&6; }
10922 if test no
= "$hard_links"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10924 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10937 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10940 allow_undefined_flag
=
10941 always_export_symbols
=no
10943 archive_expsym_cmds
=
10944 compiler_needs_object
=no
10945 enable_shared_with_static_runtimes
=no
10946 export_dynamic_flag_spec
=
10947 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10948 hardcode_automatic
=no
10950 hardcode_direct_absolute
=no
10951 hardcode_libdir_flag_spec
=
10952 hardcode_libdir_separator
=
10953 hardcode_minus_L
=no
10954 hardcode_shlibpath_var
=unsupported
10956 link_all_deplibs
=unknown
10958 module_expsym_cmds
=
10959 old_archive_from_new_cmds
=
10960 old_archive_from_expsyms_cmds
=
10961 thread_safe_flag_spec
=
10962 whole_archive_flag_spec
=
10963 # include_expsyms should be a list of space-separated symbols to be *always*
10964 # included in the symbol list
10966 # exclude_expsyms can be an extended regexp of symbols to exclude
10967 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10968 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10969 # as well as any symbol that contains 'd'.
10970 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10971 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10972 # platforms (ab)use it in PIC code, but their linkers get confused if
10973 # the symbol is explicitly referenced. Since portable code cannot
10974 # rely on this symbol name, it's probably fine to never include it in
10975 # preloaded symbol tables.
10976 # Exclude shared library initialization/finalization symbols.
10977 extract_expsyms_cmds
=
10980 cygwin
* | mingw
* | pw32
* | cegcc
*)
10981 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10982 # When not using gcc, we currently assume that we are using
10983 # Microsoft Visual C++.
10984 if test yes != "$GCC"; then
10989 # we just hope/assume this is gcc and not c89 (= MSVC++)
10992 openbsd
* | bitrig
*)
10999 # On some targets, GNU ld is compatible enough with the native linker
11000 # that we're better off using the native interface for both.
11001 lt_use_gnu_ld_interface
=no
11002 if test yes = "$with_gnu_ld"; then
11005 # The AIX port of GNU ld has always aspired to compatibility
11006 # with the native linker. However, as the warning in the GNU ld
11007 # block says, versions before 2.19.5* couldn't really create working
11008 # shared libraries, regardless of the interface used.
11009 case `$LD -v 2>&1` in
11010 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
11011 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
11012 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
11014 lt_use_gnu_ld_interface
=yes
11019 lt_use_gnu_ld_interface
=yes
11024 if test yes = "$lt_use_gnu_ld_interface"; then
11025 # If archive_cmds runs LD, not CC, wlarc should be empty
11028 # Set some defaults for GNU ld with shared library support. These
11029 # are reset later if shared libraries are not supported. Putting them
11030 # here allows them to be overridden if necessary.
11031 runpath_var
=LD_RUN_PATH
11032 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
11033 export_dynamic_flag_spec
='$wl--export-dynamic'
11034 # ancient GNU ld didn't support --whole-archive et. al.
11035 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
11036 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11038 whole_archive_flag_spec
=
11040 supports_anon_versioning
=no
11041 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11042 *GNU\ gold
*) supports_anon_versioning
=yes ;;
11043 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
11044 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
11045 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
11046 *\
2.11.
*) ;; # other 2.11 versions
11047 *) supports_anon_versioning
=yes ;;
11050 # See if GNU ld supports shared libraries.
11053 # On AIX/PPC, the GNU linker is very broken
11054 if test ia64
!= "$host_cpu"; then
11058 *** Warning: the GNU linker, at least up to release 2.19, is reported
11059 *** to be unable to reliably create shared libraries on AIX.
11060 *** Therefore, libtool is disabling shared libraries support. If you
11061 *** really care for shared libraries, you may want to install binutils
11062 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11063 *** You will then need to restart the configuration process.
11072 # see comment about AmigaOS4 .so support
11073 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11074 archive_expsym_cmds
=''
11077 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)'
11078 hardcode_libdir_flag_spec
='-L$libdir'
11079 hardcode_minus_L
=yes
11085 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11086 allow_undefined_flag
=unsupported
11087 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11088 # support --undefined. This deserves some investigation. FIXME
11089 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11095 cygwin
* | mingw
* | pw32
* | cegcc
*)
11096 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11097 # as there is no search path for DLLs.
11098 hardcode_libdir_flag_spec
='-L$libdir'
11099 export_dynamic_flag_spec
='$wl--export-all-symbols'
11100 allow_undefined_flag
=unsupported
11101 always_export_symbols
=no
11102 enable_shared_with_static_runtimes
=yes
11103 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'
11104 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11106 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
11107 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11108 # If the export-symbols file already is a .def file, use it as
11109 # is; otherwise, prepend EXPORTS...
11110 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11111 cp $export_symbols $output_objdir/$soname.def;
11113 echo EXPORTS > $output_objdir/$soname.def;
11114 cat $export_symbols >> $output_objdir/$soname.def;
11116 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11123 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11124 link_all_deplibs
=yes
11128 hardcode_libdir_flag_spec
='-L$libdir'
11129 hardcode_minus_L
=yes
11130 allow_undefined_flag
=unsupported
11132 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11133 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11134 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11135 $ECHO EXPORTS >> $output_objdir/$libname.def~
11136 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11137 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11138 emximp -o $lib $output_objdir/$libname.def'
11139 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11140 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11141 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11142 $ECHO EXPORTS >> $output_objdir/$libname.def~
11143 prefix_cmds="$SED"~
11144 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11145 prefix_cmds="$prefix_cmds -e 1d";
11147 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11148 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11149 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11150 emximp -o $lib $output_objdir/$libname.def'
11151 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11152 enable_shared_with_static_runtimes
=yes
11157 hardcode_shlibpath_var
=no
11158 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
11159 export_dynamic_flag_spec
='$wl-E'
11160 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11161 # Instead, shared libraries are loaded at an image base (0x10000000 by
11162 # default) and relocated if they conflict, which is a slow very memory
11163 # consuming and fragmenting process. To avoid this, we pick a random,
11164 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11165 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11166 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11167 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'
11170 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11172 if test linux-dietlibc
= "$host_os"; then
11173 case $cc_basename in
11174 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
11177 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
11178 && test no
= "$tmp_diet"
11180 tmp_addflag
=' $pic_flag'
11181 tmp_sharedflag
='-shared'
11182 case $cc_basename,$host_cpu in
11183 pgcc
*) # Portland Group C compiler
11184 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'
11185 tmp_addflag
=' $pic_flag'
11187 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
11188 # Portland Group f77 and f90 compilers
11189 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'
11190 tmp_addflag
=' $pic_flag -Mnomain' ;;
11191 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
11192 tmp_addflag
=' -i_dynamic' ;;
11193 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
11194 tmp_addflag
=' -i_dynamic -nofor_main' ;;
11195 ifc
* | ifort
*) # Intel Fortran compiler
11196 tmp_addflag
=' -nofor_main' ;;
11197 lf95
*) # Lahey Fortran 8.1
11198 whole_archive_flag_spec
=
11199 tmp_sharedflag
='--shared' ;;
11200 nagfor
*) # NAGFOR 5.3
11201 tmp_sharedflag
='-Wl,-shared' ;;
11202 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11203 tmp_sharedflag
='-qmkshrobj'
11205 nvcc
*) # Cuda Compiler Driver 2.2
11206 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'
11207 compiler_needs_object
=yes
11210 case `$CC -V 2>&1 | sed 5q` in
11211 *Sun\ C
*) # Sun C 5.9
11212 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'
11213 compiler_needs_object
=yes
11214 tmp_sharedflag
='-G' ;;
11215 *Sun\ F
*) # Sun Fortran 8.3
11216 tmp_sharedflag
='-G' ;;
11218 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11220 if test yes = "$supports_anon_versioning"; then
11221 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
11222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11223 echo "local: *; };" >> $output_objdir/$libname.ver~
11224 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11227 case $cc_basename in
11229 export_dynamic_flag_spec
='-rdynamic'
11231 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
11232 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11233 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
11234 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
11235 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11236 if test yes = "$supports_anon_versioning"; then
11237 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
11238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11239 echo "local: *; };" >> $output_objdir/$libname.ver~
11240 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11250 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11251 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11254 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11255 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11260 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
11264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11265 *** create shared libraries on Solaris systems. Therefore, libtool
11266 *** is disabling shared libraries support. We urge you to upgrade GNU
11267 *** binutils to release 2.9.1 or newer. Another option is to modify
11268 *** your PATH or compiler configuration so that the native linker is
11269 *** used, and then restart.
11272 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11273 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11274 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11280 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
11281 case `$LD -v 2>&1` in
11282 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
11286 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11287 *** reliably create shared libraries on SCO systems. Therefore, libtool
11288 *** is disabling shared libraries support. We urge you to upgrade GNU
11289 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11290 *** your PATH or compiler configuration so that the native linker is
11291 *** used, and then restart.
11296 # For security reasons, it is highly recommended that you always
11297 # use absolute paths for naming shared libraries, and exclude the
11298 # DT_RUNPATH tag from executables and libraries. But doing so
11299 # requires that you compile everything twice, which is a pain.
11300 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11301 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
11302 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11303 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11312 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11314 hardcode_direct
=yes
11315 hardcode_shlibpath_var
=no
11319 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11320 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11321 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11328 if test no
= "$ld_shlibs"; then
11330 hardcode_libdir_flag_spec
=
11331 export_dynamic_flag_spec
=
11332 whole_archive_flag_spec
=
11335 # PORTME fill in a description of your system's linker (not GNU ld)
11338 allow_undefined_flag
=unsupported
11339 always_export_symbols
=yes
11340 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'
11341 # Note: this linker hardcodes the directories in LIBPATH if there
11342 # are no directories specified by -L.
11343 hardcode_minus_L
=yes
11344 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11345 # Neither direct hardcoding nor static linking is supported with a
11347 hardcode_direct
=unsupported
11352 if test ia64
= "$host_cpu"; then
11353 # On IA64, the linker does run time linking by default, so we don't
11354 # have to do anything special.
11355 aix_use_runtimelinking
=no
11356 exp_sym_flag
='-Bexport'
11359 # If we're using GNU nm, then we don't want the "-C" option.
11360 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11361 # Without the "-l" option, or with the "-B" option, AIX nm treats
11362 # weak defined symbols like other global defined symbols, whereas
11363 # GNU nm marks them as "W".
11364 # While the 'weak' keyword is ignored in the Export File, we need
11365 # it in the Import File for the 'aix-soname' feature, so we have
11366 # to replace the "-B" option with "-P" for AIX nm.
11367 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
11368 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11370 export_symbols_cmds
='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11372 aix_use_runtimelinking
=no
11374 # Test if we are trying to use run time linking or normal
11375 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11376 # have runtime linking enabled, and use it for executables.
11377 # For shared libraries, we enable/disable runtime linking
11378 # depending on the kind of the shared library created -
11379 # when "with_aix_soname,aix_use_runtimelinking" is:
11380 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11381 # "aix,yes" lib.so shared, rtl:yes, for executables
11382 # lib.a static archive
11383 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11384 # lib.a(lib.so.V) shared, rtl:no, for executables
11385 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11386 # lib.a(lib.so.V) shared, rtl:no
11387 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11388 # lib.a static archive
11389 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
11390 for ld_flag
in $LDFLAGS; do
11391 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
11392 aix_use_runtimelinking
=yes
11396 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
11397 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11398 # so we don't have lib.a shared libs to link our executables.
11399 # We have to force runtime linking in this case.
11400 aix_use_runtimelinking
=yes
11401 LDFLAGS
="$LDFLAGS -Wl,-brtl"
11406 exp_sym_flag
='-bexport'
11407 no_entry_flag
='-bnoentry'
11410 # When large executables or shared objects are built, AIX ld can
11411 # have problems creating the table of contents. If linking a library
11412 # or program results in "error TOC overflow" add -mminimal-toc to
11413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11417 hardcode_direct
=yes
11418 hardcode_direct_absolute
=yes
11419 hardcode_libdir_separator
=':'
11420 link_all_deplibs
=yes
11421 file_list_spec
='$wl-f,'
11422 case $with_aix_soname,$aix_use_runtimelinking in
11423 aix
,*) ;; # traditional, no import file
11424 svr4
,* |
*,yes) # use import file
11425 # The Import File defines what to hardcode.
11427 hardcode_direct_absolute
=no
11431 if test yes = "$GCC"; then
11432 case $host_os in aix4.
[012]|aix4.
[012].
*)
11433 # We only want to do this on AIX 4.2 and lower, the check
11434 # below for broken collect2 doesn't work under 4.3+
11435 collect2name
=`$CC -print-prog-name=collect2`
11436 if test -f "$collect2name" &&
11437 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
11439 # We have reworked collect2
11442 # We have old collect2
11443 hardcode_direct
=unsupported
11444 # It fails to find uninstalled libraries when the uninstalled
11445 # path is not listed in the libpath. Setting hardcode_minus_L
11446 # to unsupported forces relinking
11447 hardcode_minus_L
=yes
11448 hardcode_libdir_flag_spec
='-L$libdir'
11449 hardcode_libdir_separator
=
11453 shared_flag
='-shared'
11454 if test yes = "$aix_use_runtimelinking"; then
11455 shared_flag
="$shared_flag "'$wl-G'
11457 # Need to ensure runtime linking is disabled for the traditional
11458 # shared library, or the linker may eventually find shared libraries
11459 # /with/ Import File - we do not want to mix them.
11460 shared_flag_aix
='-shared'
11461 shared_flag_svr4
='-shared $wl-G'
11464 if test ia64
= "$host_cpu"; then
11465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11466 # chokes on -Wl,-G. The following line is correct:
11469 if test yes = "$aix_use_runtimelinking"; then
11470 shared_flag
='$wl-G'
11472 shared_flag
='$wl-bM:SRE'
11474 shared_flag_aix
='$wl-bM:SRE'
11475 shared_flag_svr4
='$wl-G'
11479 export_dynamic_flag_spec
='$wl-bexpall'
11480 # It seems that -bexpall does not export symbols beginning with
11481 # underscore (_), so it is better to generate a list of symbols to export.
11482 always_export_symbols
=yes
11483 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11484 # Warning - without using the other runtime loading flags (-brtl),
11485 # -berok will link without error, but may produce a broken library.
11486 allow_undefined_flag
='-berok'
11487 # Determine the default libpath from the value encoded in an
11488 # empty executable.
11489 if test set = "${lt_cv_aix_libpath+set}"; then
11490 aix_libpath
=$lt_cv_aix_libpath
11492 if ${lt_cv_aix_libpath_+:} false
; then :
11493 $as_echo_n "(cached) " >&6
11495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11506 if ac_fn_c_try_link
"$LINENO"; then :
11508 lt_aix_libpath_sed
='
11509 /Import File Strings/,/^$/ {
11511 s/^0 *\([^ ]*\) *$/\1/
11515 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11516 # Check for a 64-bit object if we didn't find anything.
11517 if test -z "$lt_cv_aix_libpath_"; then
11518 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11521 rm -f core conftest.err conftest.
$ac_objext \
11522 conftest
$ac_exeext conftest.
$ac_ext
11523 if test -z "$lt_cv_aix_libpath_"; then
11524 lt_cv_aix_libpath_
=/usr
/lib
:/lib
11529 aix_libpath
=$lt_cv_aix_libpath_
11532 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
11533 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\
$export_symbols' '$shared_flag
11535 if test ia64
= "$host_cpu"; then
11536 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
11537 allow_undefined_flag
="-z nodefs"
11538 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"
11540 # Determine the default libpath from the value encoded in an
11541 # empty executable.
11542 if test set = "${lt_cv_aix_libpath+set}"; then
11543 aix_libpath
=$lt_cv_aix_libpath
11545 if ${lt_cv_aix_libpath_+:} false
; then :
11546 $as_echo_n "(cached) " >&6
11548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11559 if ac_fn_c_try_link
"$LINENO"; then :
11561 lt_aix_libpath_sed
='
11562 /Import File Strings/,/^$/ {
11564 s/^0 *\([^ ]*\) *$/\1/
11568 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11569 # Check for a 64-bit object if we didn't find anything.
11570 if test -z "$lt_cv_aix_libpath_"; then
11571 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11574 rm -f core conftest.err conftest.
$ac_objext \
11575 conftest
$ac_exeext conftest.
$ac_ext
11576 if test -z "$lt_cv_aix_libpath_"; then
11577 lt_cv_aix_libpath_
=/usr
/lib
:/lib
11582 aix_libpath
=$lt_cv_aix_libpath_
11585 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
11586 # Warning - without using the other run time loading flags,
11587 # -berok will link without error, but may produce a broken library.
11588 no_undefined_flag
=' $wl-bernotok'
11589 allow_undefined_flag
=' $wl-berok'
11590 if test yes = "$with_gnu_ld"; then
11591 # We only use this code for GNU lds that support --whole-archive.
11592 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
11594 # Exported symbols can be pulled into shared objects from archives
11595 whole_archive_flag_spec
='$convenience'
11597 archive_cmds_need_lc
=yes
11598 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11599 # -brtl affects multiple linker settings, -berok does not and is overridden later
11600 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11601 if test svr4
!= "$with_aix_soname"; then
11602 # This is similar to how AIX traditionally builds its shared libraries.
11603 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11605 if test aix
!= "$with_aix_soname"; then
11606 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11608 # used by -dlpreopen to get the symbols
11609 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11611 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11619 # see comment about AmigaOS4 .so support
11620 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11621 archive_expsym_cmds
=''
11624 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)'
11625 hardcode_libdir_flag_spec
='-L$libdir'
11626 hardcode_minus_L
=yes
11632 export_dynamic_flag_spec
=-rdynamic
11635 cygwin
* | mingw
* | pw32
* | cegcc
*)
11636 # When not using gcc, we currently assume that we are using
11637 # Microsoft Visual C++.
11638 # hardcode_libdir_flag_spec is actually meaningless, as there is
11639 # no search path for DLLs.
11640 case $cc_basename in
11643 hardcode_libdir_flag_spec
=' '
11644 allow_undefined_flag
=unsupported
11645 always_export_symbols
=yes
11647 # Tell ltmain to make .lib files, not .a files.
11649 # Tell ltmain to make .dll files, not .so files.
11651 # FIXME: Setting linknames here is a bad hack.
11652 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11653 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11654 cp "$export_symbols" "$output_objdir/$soname.def";
11655 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11657 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11659 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11661 # The linker will not automatically build a static lib if we build a DLL.
11662 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11663 enable_shared_with_static_runtimes
=yes
11664 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11665 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11667 old_postinstall_cmds
='chmod 644 $oldlib'
11668 postlink_cmds
='lt_outputfile="@OUTPUT@"~
11669 lt_tool_outputfile="@TOOL_OUTPUT@"~
11670 case $lt_outputfile in
11673 lt_outputfile=$lt_outputfile.exe
11674 lt_tool_outputfile=$lt_tool_outputfile.exe
11677 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11678 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11679 $RM "$lt_outputfile.manifest";
11683 # Assume MSVC wrapper
11684 hardcode_libdir_flag_spec
=' '
11685 allow_undefined_flag
=unsupported
11686 # Tell ltmain to make .lib files, not .a files.
11688 # Tell ltmain to make .dll files, not .so files.
11690 # FIXME: Setting linknames here is a bad hack.
11691 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11692 # The linker will automatically build a .lib file if we build a DLL.
11693 old_archive_from_new_cmds
='true'
11694 # FIXME: Should let the user specify the lib program.
11695 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
11696 enable_shared_with_static_runtimes
=yes
11701 darwin
* | rhapsody
*)
11704 archive_cmds_need_lc
=no
11706 hardcode_automatic
=yes
11707 hardcode_shlibpath_var
=unsupported
11708 if test yes = "$lt_cv_ld_force_load"; then
11709 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\"`'
11712 whole_archive_flag_spec
=''
11714 link_all_deplibs
=yes
11715 allow_undefined_flag
=$_lt_dar_allow_undefined
11716 case $cc_basename in
11717 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
11718 *) _lt_dar_can_shared
=$GCC ;;
11720 if test yes = "$_lt_dar_can_shared"; then
11721 output_verbose_link_cmd
=func_echo_all
11722 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11723 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11724 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"
11725 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"
11734 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11735 hardcode_libdir_flag_spec
='-L$libdir'
11736 hardcode_shlibpath_var
=no
11739 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11740 # support. Future versions do this automatically, but an explicit c++rt0.o
11741 # does not break anything, and helps significantly (at the cost of a little
11744 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11745 hardcode_libdir_flag_spec
='-R$libdir'
11746 hardcode_direct
=yes
11747 hardcode_shlibpath_var
=no
11750 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11752 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11753 hardcode_direct
=yes
11754 hardcode_minus_L
=yes
11755 hardcode_shlibpath_var
=no
11758 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11759 freebsd
* | dragonfly
*)
11760 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11761 hardcode_libdir_flag_spec
='-R$libdir'
11762 hardcode_direct
=yes
11763 hardcode_shlibpath_var
=no
11767 if test yes = "$GCC"; then
11768 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11770 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11772 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
11773 hardcode_libdir_separator
=:
11774 hardcode_direct
=yes
11776 # hardcode_minus_L: Not really in the search PATH,
11777 # but as the default location of the library.
11778 hardcode_minus_L
=yes
11779 export_dynamic_flag_spec
='$wl-E'
11783 if test yes,no
= "$GCC,$with_gnu_ld"; then
11784 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11786 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11788 if test no
= "$with_gnu_ld"; then
11789 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
11790 hardcode_libdir_separator
=:
11791 hardcode_direct
=yes
11792 hardcode_direct_absolute
=yes
11793 export_dynamic_flag_spec
='$wl-E'
11794 # hardcode_minus_L: Not really in the search PATH,
11795 # but as the default location of the library.
11796 hardcode_minus_L
=yes
11801 if test yes,no
= "$GCC,$with_gnu_ld"; then
11804 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11807 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11810 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11816 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11819 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11823 # Older versions of the 11.00 compiler do not understand -b yet
11824 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11826 $as_echo_n "checking if $CC understands -b... " >&6; }
11827 if ${lt_cv_prog_compiler__b+:} false
; then :
11828 $as_echo_n "(cached) " >&6
11830 lt_cv_prog_compiler__b
=no
11831 save_LDFLAGS
=$LDFLAGS
11832 LDFLAGS
="$LDFLAGS -b"
11833 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11834 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11835 # The linker can only warn and ignore the option if not recognized
11836 # So say no if there are warnings
11837 if test -s conftest.err
; then
11838 # Append any errors to the config.log.
11839 cat conftest.err
1>&5
11840 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
11841 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11842 if diff conftest.exp conftest.er2
>/dev
/null
; then
11843 lt_cv_prog_compiler__b
=yes
11846 lt_cv_prog_compiler__b
=yes
11850 LDFLAGS
=$save_LDFLAGS
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11854 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11856 if test yes = "$lt_cv_prog_compiler__b"; then
11857 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11859 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11865 if test no
= "$with_gnu_ld"; then
11866 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
11867 hardcode_libdir_separator
=:
11872 hardcode_shlibpath_var
=no
11875 hardcode_direct
=yes
11876 hardcode_direct_absolute
=yes
11877 export_dynamic_flag_spec
='$wl-E'
11879 # hardcode_minus_L: Not really in the search PATH,
11880 # but as the default location of the library.
11881 hardcode_minus_L
=yes
11887 irix5
* | irix6
* | nonstopux
*)
11888 if test yes = "$GCC"; then
11889 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'
11890 # Try to use the -exported_symbol ld option, if it does not
11891 # work, assume that -exports_file does not work either and
11892 # implicitly export all symbols.
11893 # This should be the same for all languages, so no per-tag cache variable.
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11895 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11896 if ${lt_cv_irix_exported_symbol+:} false
; then :
11897 $as_echo_n "(cached) " >&6
11899 save_LDFLAGS
=$LDFLAGS
11900 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11903 int foo (void) { return 0; }
11905 if ac_fn_c_try_link
"$LINENO"; then :
11906 lt_cv_irix_exported_symbol
=yes
11908 lt_cv_irix_exported_symbol
=no
11910 rm -f core conftest.err conftest.
$ac_objext \
11911 conftest
$ac_exeext conftest.
$ac_ext
11912 LDFLAGS
=$save_LDFLAGS
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11915 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11916 if test yes = "$lt_cv_irix_exported_symbol"; then
11917 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'
11920 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'
11921 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'
11923 archive_cmds_need_lc
='no'
11924 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
11925 hardcode_libdir_separator
=:
11927 link_all_deplibs
=yes
11931 case $cc_basename in
11933 # Fabrice Bellard et al's Tiny C Compiler
11935 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11941 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11942 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11944 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11946 hardcode_libdir_flag_spec
='-R$libdir'
11947 hardcode_direct
=yes
11948 hardcode_shlibpath_var
=no
11952 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11953 hardcode_direct
=yes
11954 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
11955 hardcode_libdir_separator
=:
11956 hardcode_shlibpath_var
=no
11962 openbsd
* | bitrig
*)
11963 if test -f /usr
/libexec
/ld.so
; then
11964 hardcode_direct
=yes
11965 hardcode_shlibpath_var
=no
11966 hardcode_direct_absolute
=yes
11967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11968 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11969 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11970 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
11971 export_dynamic_flag_spec
='$wl-E'
11973 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11974 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
11982 hardcode_libdir_flag_spec
='-L$libdir'
11983 hardcode_minus_L
=yes
11984 allow_undefined_flag
=unsupported
11986 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11987 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11988 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11989 $ECHO EXPORTS >> $output_objdir/$libname.def~
11990 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11991 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11992 emximp -o $lib $output_objdir/$libname.def'
11993 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11994 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11995 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11996 $ECHO EXPORTS >> $output_objdir/$libname.def~
11997 prefix_cmds="$SED"~
11998 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11999 prefix_cmds="$prefix_cmds -e 1d";
12001 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12002 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12003 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12004 emximp -o $lib $output_objdir/$libname.def'
12005 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12006 enable_shared_with_static_runtimes
=yes
12010 if test yes = "$GCC"; then
12011 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
12012 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'
12014 allow_undefined_flag
=' -expect_unresolved \*'
12015 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'
12017 archive_cmds_need_lc
='no'
12018 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
12019 hardcode_libdir_separator
=:
12022 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
12023 if test yes = "$GCC"; then
12024 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
12025 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'
12026 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
12028 allow_undefined_flag
=' -expect_unresolved \*'
12029 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'
12030 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~
12031 $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'
12033 # Both c and cxx compiler support -rpath directly
12034 hardcode_libdir_flag_spec
='-rpath $libdir'
12036 archive_cmds_need_lc
='no'
12037 hardcode_libdir_separator
=:
12041 no_undefined_flag
=' -z defs'
12042 if test yes = "$GCC"; then
12044 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12045 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12046 $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'
12048 case `$CC -V 2>&1` in
12051 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12053 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12057 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12058 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12059 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12063 hardcode_libdir_flag_spec
='-R$libdir'
12064 hardcode_shlibpath_var
=no
12066 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12068 # The compiler driver will combine and reorder linker options,
12069 # but understands '-z linker_flag'. GCC discards it without '$wl',
12070 # but is careful enough not to reorder.
12071 # Supported since Solaris 2.6 (maybe 2.5.1?)
12072 if test yes = "$GCC"; then
12073 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12075 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
12079 link_all_deplibs
=yes
12083 if test sequent
= "$host_vendor"; then
12084 # Use $CC to link under sequent, because it throws in some extra .o
12085 # files that make .init and .fini sections work.
12086 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12088 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12090 hardcode_libdir_flag_spec
='-L$libdir'
12091 hardcode_direct
=yes
12092 hardcode_minus_L
=yes
12093 hardcode_shlibpath_var
=no
12097 case $host_vendor in
12099 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12100 hardcode_direct
=yes # is this really true???
12103 ## LD is ld it makes a PLAMLIB
12104 ## CC just makes a GrossModule.
12105 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12106 reload_cmds
='$CC -r -o $output$reload_objs'
12110 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12111 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
12114 runpath_var
='LD_RUN_PATH'
12115 hardcode_shlibpath_var
=no
12119 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12120 hardcode_shlibpath_var
=no
12121 export_dynamic_flag_spec
='-Bexport'
12125 if test -d /usr
/nec
; then
12126 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12127 hardcode_shlibpath_var
=no
12128 runpath_var
=LD_RUN_PATH
12129 hardcode_runpath_var
=yes
12134 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12135 no_undefined_flag
='$wl-z,text'
12136 archive_cmds_need_lc
=no
12137 hardcode_shlibpath_var
=no
12138 runpath_var
='LD_RUN_PATH'
12140 if test yes = "$GCC"; then
12141 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149 sysv5
* | sco3.2v5
* | sco5v6
*)
12150 # Note: We CANNOT use -z defs as we might desire, because we do not
12151 # link with -lc, and that would cause any symbols used from libc to
12152 # always be unresolved, which means just about no library would
12153 # ever link correctly. If we're not using GNU ld we use -z text
12154 # though, which does catch some bad symbols but isn't as heavy-handed
12156 no_undefined_flag
='$wl-z,text'
12157 allow_undefined_flag
='$wl-z,nodefs'
12158 archive_cmds_need_lc
=no
12159 hardcode_shlibpath_var
=no
12160 hardcode_libdir_flag_spec
='$wl-R,$libdir'
12161 hardcode_libdir_separator
=':'
12162 link_all_deplibs
=yes
12163 export_dynamic_flag_spec
='$wl-Bexport'
12164 runpath_var
='LD_RUN_PATH'
12166 if test yes = "$GCC"; then
12167 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12168 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12177 hardcode_libdir_flag_spec
='-L$libdir'
12178 hardcode_shlibpath_var
=no
12186 if test sni
= "$host_vendor"; then
12188 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
12189 export_dynamic_flag_spec
='$wl-Blargedynsym'
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12196 $as_echo "$ld_shlibs" >&6; }
12197 test no
= "$ld_shlibs" && can_build_shared
=no
12199 with_gnu_ld
=$with_gnu_ld
12216 # Do we need to explicitly link libc?
12218 case "x$archive_cmds_need_lc" in
12220 # Assume -lc should be added
12221 archive_cmds_need_lc
=yes
12223 if test yes,yes = "$GCC,$enable_shared"; then
12224 case $archive_cmds in
12226 # FIXME: we may have to deal with multi-command sequences.
12229 # Test whether the compiler implicitly links with -lc since on some
12230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12231 # to ld, don't add -lc before -lgcc.
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12233 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12234 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
12235 $as_echo_n "(cached) " >&6
12238 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12241 (eval $ac_compile) 2>&5
12243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244 test $ac_status = 0; } 2>conftest.err
; then
12247 libobjs
=conftest.
$ac_objext
12249 wl
=$lt_prog_compiler_wl
12250 pic_flag
=$lt_prog_compiler_pic
12256 lt_save_allow_undefined_flag
=$allow_undefined_flag
12257 allow_undefined_flag
=
12258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12259 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262 test $ac_status = 0; }
12264 lt_cv_archive_cmds_need_lc
=no
12266 lt_cv_archive_cmds_need_lc
=yes
12268 allow_undefined_flag
=$lt_save_allow_undefined_flag
12270 cat conftest.err
1>&5
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12276 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12277 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12436 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12438 if test yes = "$GCC"; then
12440 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
12441 *) lt_awk_arg
='/^libraries:/' ;;
12444 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
12445 *) lt_sed_strip_eq
='s|=/|/|g' ;;
12447 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12448 case $lt_search_path_spec in
12450 # if the path contains ";" then we assume it to be the separator
12451 # otherwise default to the standard path separator (i.e. ":") - it is
12452 # assumed that no part of a normal pathname contains ";" but that should
12453 # okay in the real world where ";" in dirpaths is itself problematic.
12454 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12457 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12460 # Ok, now we have the path, separated by spaces, we can step through it
12461 # and add multilib dir if necessary...
12462 lt_tmp_lt_search_path_spec
=
12463 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12464 # ...but if some path component already ends with the multilib dir we assume
12465 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12466 case "$lt_multi_os_dir; $lt_search_path_spec " in
12467 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
12471 for lt_sys_path
in $lt_search_path_spec; do
12472 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12473 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12474 elif test -n "$lt_multi_os_dir"; then
12475 test -d "$lt_sys_path" && \
12476 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
12479 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12480 BEGIN {RS = " "; FS = "/|\n";} {
12483 for (lt_i = NF; lt_i > 0; lt_i--) {
12484 if ($lt_i != "" && $lt_i != ".") {
12485 if ($lt_i == "..") {
12488 if (lt_count == 0) {
12489 lt_foo = "/" $lt_i lt_foo;
12496 if (lt_foo != "") { lt_freq[lt_foo]++; }
12497 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12499 # AWK program above erroneously prepends '/' to C:/dos/paths
12502 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
12503 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12505 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12507 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12509 library_names_spec
=
12510 libname_spec
='lib$name'
12514 postuninstall_cmds
=
12518 shlibpath_overrides_runpath
=unknown
12520 dynamic_linker
="$host_os ld.so"
12521 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12522 need_lib_prefix
=unknown
12523 hardcode_into_libs
=no
12525 # when you set need_version to no, make sure it does not cause -set_version
12526 # flags to be left without arguments
12527 need_version
=unknown
12533 version_type
=linux
# correct to gnu/linux during the next big refactor
12534 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
12535 shlibpath_var
=LIBPATH
12537 # AIX 3 has no versioning support, so we append a major version to the name.
12538 soname_spec
='$libname$release$shared_ext$major'
12542 version_type
=linux
# correct to gnu/linux during the next big refactor
12545 hardcode_into_libs
=yes
12546 if test ia64
= "$host_cpu"; then
12547 # AIX 5 supports IA64
12548 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12549 shlibpath_var
=LD_LIBRARY_PATH
12551 # With GCC up to 2.95.x, collect2 would create an import file
12552 # for dependence libraries. The import file would start with
12553 # the line '#! .'. This would cause the generated library to
12554 # depend on '.', always an invalid library. This was fixed in
12555 # development snapshots of GCC prior to 3.0.
12557 aix4 | aix4.
[01] | aix4.
[01].
*)
12558 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12560 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
12563 can_build_shared
=no
12567 # Using Import Files as archive members, it is possible to support
12568 # filename-based versioning of shared library archives on AIX. While
12569 # this would work for both with and without runtime linking, it will
12570 # prevent static linking of such archives. So we do filename-based
12571 # shared library versioning with .so extension only, which is used
12572 # when both runtime linking and shared linking is enabled.
12573 # Unfortunately, runtime linking may impact performance, so we do
12574 # not want this to be the default eventually. Also, we use the
12575 # versioned .so libs for executables only if there is the -brtl
12576 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12577 # To allow for filename-based versioning support, we need to create
12578 # libNAME.so.V as an archive file, containing:
12579 # *) an Import File, referring to the versioned filename of the
12580 # archive as well as the shared archive member, telling the
12581 # bitwidth (32 or 64) of that shared object, and providing the
12582 # list of exported symbols of that shared object, eventually
12583 # decorated with the 'weak' keyword
12584 # *) the shared object with the F_LOADONLY flag set, to really avoid
12585 # it being seen by the linker.
12586 # At run time we better use the real file rather than another symlink,
12587 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12589 case $with_aix_soname,$aix_use_runtimelinking in
12590 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12591 # soname into executable. Probably we can add versioning support to
12592 # collect2, so additional links can be useful in future.
12593 aix
,yes) # traditional libtool
12594 dynamic_linker
='AIX unversionable lib.so'
12595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12596 # instead of lib<name>.a to let people know that these are not
12597 # typical AIX shared libraries.
12598 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12600 aix
,no
) # traditional AIX only
12601 dynamic_linker
='AIX lib.a(lib.so.V)'
12602 # We preserve .a as extension for shared libraries through AIX4.2
12603 # and later when we are not doing run time linking.
12604 library_names_spec
='$libname$release.a $libname.a'
12605 soname_spec
='$libname$release$shared_ext$major'
12607 svr4
,*) # full svr4 only
12608 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
12609 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
12610 # We do not specify a path in Import Files, so LIBPATH fires.
12611 shlibpath_overrides_runpath
=yes
12613 *,yes) # both, prefer svr4
12614 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12615 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
12616 # unpreferred sharedlib libNAME.a needs extra handling
12617 postinstall_cmds
='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12618 postuninstall_cmds
='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12619 # We do not specify a path in Import Files, so LIBPATH fires.
12620 shlibpath_overrides_runpath
=yes
12622 *,no
) # both, prefer aix
12623 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12624 library_names_spec
='$libname$release.a $libname.a'
12625 soname_spec
='$libname$release$shared_ext$major'
12626 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12627 postinstall_cmds
='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12628 postuninstall_cmds
='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12631 shlibpath_var
=LIBPATH
12638 # Since July 2007 AmigaOS4 officially supports .so libraries.
12639 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12640 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12643 library_names_spec
='$libname.ixlibrary $libname.a'
12644 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12645 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12651 library_names_spec
='$libname$shared_ext'
12652 dynamic_linker
="$host_os ld.so"
12653 shlibpath_var
=LIBRARY_PATH
12657 version_type
=linux
# correct to gnu/linux during the next big refactor
12659 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12660 soname_spec
='$libname$release$shared_ext$major'
12661 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12662 shlibpath_var
=LD_LIBRARY_PATH
12663 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12664 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12665 # the default ld.so.conf also contains /usr/contrib/lib and
12666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12667 # libtool to hard-code these into programs
12670 cygwin
* | mingw
* | pw32
* | cegcc
*)
12671 version_type
=windows
12676 case $GCC,$cc_basename in
12679 library_names_spec
='$libname.dll.a'
12680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12681 postinstall_cmds
='base_file=`basename \$file`~
12682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12683 dldir=$destdir/`dirname \$dlpath`~
12684 test -d \$dldir || mkdir -p \$dldir~
12685 $install_prog $dir/$dlname \$dldir/$dlname~
12686 chmod a+x \$dldir/$dlname~
12687 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12688 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12690 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12691 dlpath=$dir/\$dldll~
12693 shlibpath_overrides_runpath
=yes
12697 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12698 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
12700 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
12703 # MinGW DLLs use traditional 'lib' prefix
12704 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
12707 # pw32 DLLs use 'pw' prefix rather than 'lib'
12708 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
12711 dynamic_linker
='Win32 ld.exe'
12716 libname_spec
='$name'
12717 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
12718 library_names_spec
='$libname.dll.lib'
12722 sys_lib_search_path_spec
=
12725 for lt_path
in $LIB
12728 # Let DOS variable expansion print the short 8.3 style file name.
12729 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12730 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
12733 # Convert to MSYS style.
12734 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12737 # Convert to unix form, then to dos form, then back to unix form
12738 # but this time dos style (no spaces!) so that the unix form looks
12739 # like /cygdrive/c/PROGRA~1:/cygdr...
12740 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
12741 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12742 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12745 sys_lib_search_path_spec
=$LIB
12746 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
12747 # It is most probably a Windows format PATH.
12748 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12750 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12752 # FIXME: find the short name or the path components, as spaces are
12753 # common. (e.g. "Program Files" -> "PROGRA~1")
12757 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12758 postinstall_cmds
='base_file=`basename \$file`~
12759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12760 dldir=$destdir/`dirname \$dlpath`~
12761 test -d \$dldir || mkdir -p \$dldir~
12762 $install_prog $dir/$dlname \$dldir/$dlname'
12763 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12764 dlpath=$dir/\$dldll~
12766 shlibpath_overrides_runpath
=yes
12767 dynamic_linker
='Win32 link.exe'
12771 # Assume MSVC wrapper
12772 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
12773 dynamic_linker
='Win32 ld.exe'
12776 # FIXME: first we should search . and the directory the executable is in
12780 darwin
* | rhapsody
*)
12781 dynamic_linker
="$host_os dyld"
12782 version_type
=darwin
12785 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
12786 soname_spec
='$libname$release$major$shared_ext'
12787 shlibpath_overrides_runpath
=yes
12788 shlibpath_var
=DYLD_LIBRARY_PATH
12789 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12791 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
12792 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12796 version_type
=linux
# correct to gnu/linux during the next big refactor
12799 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12800 soname_spec
='$libname$release$shared_ext$major'
12801 shlibpath_var
=LD_LIBRARY_PATH
12804 freebsd
* | dragonfly
*)
12805 # DragonFly does not have aout. When/if they implement a new
12806 # versioning mechanism, adjust this.
12807 if test -x /usr
/bin
/objformat
; then
12808 objformat
=`/usr/bin/objformat`
12811 freebsd
[23].
*) objformat
=aout
;;
12812 *) objformat
=elf
;;
12815 version_type
=freebsd-
$objformat
12816 case $version_type in
12818 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12819 soname_spec
='$libname$release$shared_ext$major'
12824 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12828 shlibpath_var
=LD_LIBRARY_PATH
12831 shlibpath_overrides_runpath
=yes
12833 freebsd3.
[01]* | freebsdelf3.
[01]*)
12834 shlibpath_overrides_runpath
=yes
12835 hardcode_into_libs
=yes
12837 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12838 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12839 shlibpath_overrides_runpath
=no
12840 hardcode_into_libs
=yes
12842 *) # from 4.6 on, and DragonFly
12843 shlibpath_overrides_runpath
=yes
12844 hardcode_into_libs
=yes
12850 version_type
=linux
# correct to gnu/linux during the next big refactor
12853 dynamic_linker
="$host_os runtime_loader"
12854 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12855 soname_spec
='$libname$release$shared_ext$major'
12856 shlibpath_var
=LIBRARY_PATH
12857 shlibpath_overrides_runpath
=no
12858 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12859 hardcode_into_libs
=yes
12862 hpux9
* | hpux10
* | hpux11
*)
12863 # Give a soname corresponding to the major version so that dld.sl refuses to
12864 # link against other versions.
12871 hardcode_into_libs
=yes
12872 dynamic_linker
="$host_os dld.so"
12873 shlibpath_var
=LD_LIBRARY_PATH
12874 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12875 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12876 soname_spec
='$libname$release$shared_ext$major'
12877 if test 32 = "$HPUX_IA64_MODE"; then
12878 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12879 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
12881 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12882 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
12887 hardcode_into_libs
=yes
12888 dynamic_linker
="$host_os dld.sl"
12889 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12890 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12891 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12892 soname_spec
='$libname$release$shared_ext$major'
12893 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12894 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12898 dynamic_linker
="$host_os dld.sl"
12899 shlibpath_var
=SHLIB_PATH
12900 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12901 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12902 soname_spec
='$libname$release$shared_ext$major'
12905 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12906 postinstall_cmds
='chmod 555 $lib'
12907 # or fails outright, so override atomically:
12908 install_override_mode
=555
12912 version_type
=linux
# correct to gnu/linux during the next big refactor
12915 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12916 soname_spec
='$libname$release$shared_ext$major'
12917 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12918 shlibpath_var
=LD_LIBRARY_PATH
12919 shlibpath_overrides_runpath
=no
12920 hardcode_into_libs
=yes
12923 irix5
* | irix6
* | nonstopux
*)
12925 nonstopux
*) version_type
=nonstopux
;;
12927 if test yes = "$lt_cv_prog_gnu_ld"; then
12928 version_type
=linux
# correct to gnu/linux during the next big refactor
12935 soname_spec
='$libname$release$shared_ext$major'
12936 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12938 irix5
* | nonstopux
*)
12939 libsuff
= shlibsuff
=
12942 case $LD in # libtool.m4 will add one of these switches to LD
12943 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12944 libsuff
= shlibsuff
= libmagic
=32-bit;;
12945 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12946 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12947 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12948 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12949 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12953 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12954 shlibpath_overrides_runpath
=no
12955 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12956 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
12957 hardcode_into_libs
=yes
12960 # No shared lib support for Linux oldld, aout, or coff.
12961 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12966 version_type
=none
# Android doesn't support versioned libraries.
12969 library_names_spec
='$libname$release$shared_ext'
12970 soname_spec
='$libname$release$shared_ext'
12972 shlibpath_var
=LD_LIBRARY_PATH
12973 shlibpath_overrides_runpath
=yes
12975 # This implies no fast_install, which is unacceptable.
12976 # Some rework will be needed to allow for fast_install
12977 # before this can be enabled.
12978 hardcode_into_libs
=yes
12980 dynamic_linker
='Android linker'
12981 # Don't embed -rpath directories since the linker doesn't support them.
12982 hardcode_libdir_flag_spec
='-L$libdir'
12985 # This must be glibc/ELF.
12986 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
12987 version_type
=linux
# correct to gnu/linux during the next big refactor
12990 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12991 soname_spec
='$libname$release$shared_ext$major'
12992 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12993 shlibpath_var
=LD_LIBRARY_PATH
12994 shlibpath_overrides_runpath
=no
12996 # Some binutils ld are patched to set DT_RUNPATH
12997 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
12998 $as_echo_n "(cached) " >&6
13000 lt_cv_shlibpath_overrides_runpath
=no
13001 save_LDFLAGS
=$LDFLAGS
13002 save_libdir
=$libdir
13003 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13004 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13016 if ac_fn_c_try_link
"$LINENO"; then :
13017 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
13018 lt_cv_shlibpath_overrides_runpath
=yes
13021 rm -f core conftest.err conftest.
$ac_objext \
13022 conftest
$ac_exeext conftest.
$ac_ext
13023 LDFLAGS
=$save_LDFLAGS
13024 libdir
=$save_libdir
13028 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
13030 # This implies no fast_install, which is unacceptable.
13031 # Some rework will be needed to allow for fast_install
13032 # before this can be enabled.
13033 hardcode_into_libs
=yes
13035 # Add ABI-specific directories to the system library path.
13036 sys_lib_dlsearch_path_spec
="/lib64 /usr/lib64 /lib /usr/lib"
13038 # Ideally, we could use ldconfig to report *all* directores which are
13039 # searched for libraries, however this is still not possible. Aside from not
13040 # being certain /sbin/ldconfig is available, command
13041 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13042 # even though it is searched at run-time. Try to do the best guess by
13043 # appending ld.so.conf contents (and includes) to the search path.
13044 if test -f /etc
/ld.so.conf
; then
13045 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' ' '`
13046 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13049 # We used to test for /lib/ld.so.1 and disable shared libraries on
13050 # powerpc, because MkLinux only supported shared libraries with the
13051 # GNU dynamic linker. Since this was broken with cross compilers,
13052 # most powerpc-linux boxes support dynamic linking these days and
13053 # people can always --disable-shared, the test was removed, and we
13054 # assume the GNU/Linux dynamic linker is in use.
13055 dynamic_linker
='GNU/Linux ld.so'
13062 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13063 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13064 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13065 dynamic_linker
='NetBSD (a.out) ld.so'
13067 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13068 soname_spec
='$libname$release$shared_ext$major'
13069 dynamic_linker
='NetBSD ld.elf_so'
13071 shlibpath_var
=LD_LIBRARY_PATH
13072 shlibpath_overrides_runpath
=yes
13073 hardcode_into_libs
=yes
13077 version_type
=linux
# correct to gnu/linux during the next big refactor
13078 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13079 shlibpath_var
=LD_LIBRARY_PATH
13080 shlibpath_overrides_runpath
=yes
13087 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13088 soname_spec
='$libname$release$shared_ext$major'
13089 shlibpath_var
=LD_LIBRARY_PATH
13090 shlibpath_overrides_runpath
=no
13091 hardcode_into_libs
=yes
13092 dynamic_linker
='ldqnx.so'
13095 openbsd
* | bitrig
*)
13097 sys_lib_dlsearch_path_spec
=/usr
/lib
13099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13104 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13105 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13106 shlibpath_var
=LD_LIBRARY_PATH
13107 shlibpath_overrides_runpath
=yes
13111 libname_spec
='$name'
13112 version_type
=windows
13116 # OS/2 can only load a DLL with a base name of 8 characters or less.
13117 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
13118 v=$($ECHO $release$versuffix | tr -d .-);
13119 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13120 $ECHO $n$v`$shared_ext'
13121 library_names_spec
='${libname}_dll.$libext'
13122 dynamic_linker
='OS/2 ld.exe'
13123 shlibpath_var
=BEGINLIBPATH
13124 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
13125 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13126 postinstall_cmds
='base_file=`basename \$file`~
13127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13128 dldir=$destdir/`dirname \$dlpath`~
13129 test -d \$dldir || mkdir -p \$dldir~
13130 $install_prog $dir/$dlname \$dldir/$dlname~
13131 chmod a+x \$dldir/$dlname~
13132 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13133 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13135 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13136 dlpath=$dir/\$dldll~
13140 osf3
* | osf4
* | osf5
*)
13144 soname_spec
='$libname$release$shared_ext$major'
13145 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13146 shlibpath_var
=LD_LIBRARY_PATH
13147 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13148 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13156 version_type
=linux
# correct to gnu/linux during the next big refactor
13159 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13160 soname_spec
='$libname$release$shared_ext$major'
13161 shlibpath_var
=LD_LIBRARY_PATH
13162 shlibpath_overrides_runpath
=yes
13163 hardcode_into_libs
=yes
13164 # ldd complains unless libraries are executable
13165 postinstall_cmds
='chmod +x $lib'
13170 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13171 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13172 shlibpath_var
=LD_LIBRARY_PATH
13173 shlibpath_overrides_runpath
=yes
13174 if test yes = "$with_gnu_ld"; then
13181 version_type
=linux
# correct to gnu/linux during the next big refactor
13182 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13183 soname_spec
='$libname$release$shared_ext$major'
13184 shlibpath_var
=LD_LIBRARY_PATH
13185 case $host_vendor in
13187 shlibpath_overrides_runpath
=no
13189 runpath_var
=LD_RUN_PATH
13197 shlibpath_overrides_runpath
=no
13198 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13204 if test -d /usr
/nec
; then
13205 version_type
=linux
# correct to gnu/linux during the next big refactor
13206 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13207 soname_spec
='$libname$shared_ext.$major'
13208 shlibpath_var
=LD_LIBRARY_PATH
13212 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13216 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13217 soname_spec
='$libname$release$shared_ext$major'
13218 shlibpath_var
=LD_LIBRARY_PATH
13219 shlibpath_overrides_runpath
=yes
13220 hardcode_into_libs
=yes
13221 if test yes = "$with_gnu_ld"; then
13222 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13224 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13227 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13231 sys_lib_dlsearch_path_spec
='/usr/lib'
13235 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13236 version_type
=linux
# correct to gnu/linux during the next big refactor
13239 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13240 shlibpath_var
=LD_LIBRARY_PATH
13241 shlibpath_overrides_runpath
=no
13242 hardcode_into_libs
=yes
13246 version_type
=linux
# correct to gnu/linux during the next big refactor
13247 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13248 soname_spec
='$libname$release$shared_ext$major'
13249 shlibpath_var
=LD_LIBRARY_PATH
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13257 $as_echo "$dynamic_linker" >&6; }
13258 test no
= "$dynamic_linker" && can_build_shared
=no
13260 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13261 if test yes = "$GCC"; then
13262 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13265 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13266 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
13269 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13270 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
13273 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13274 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
13276 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13277 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
13279 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13280 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13379 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13381 if test -n "$hardcode_libdir_flag_spec" ||
13382 test -n "$runpath_var" ||
13383 test yes = "$hardcode_automatic"; then
13385 # We can hardcode non-existent directories.
13386 if test no
!= "$hardcode_direct" &&
13387 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13388 # have to relink, otherwise we might link with an installed library
13389 # when we should be linking with a yet-to-be-installed one
13390 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13391 test no
!= "$hardcode_minus_L"; then
13392 # Linking always hardcodes the temporary library directory.
13393 hardcode_action
=relink
13395 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13396 hardcode_action
=immediate
13399 # We cannot hardcode anything, or else we can only hardcode existing
13401 hardcode_action
=unsupported
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13404 $as_echo "$hardcode_action" >&6; }
13406 if test relink
= "$hardcode_action" ||
13407 test yes = "$inherit_rpath"; then
13408 # Fast installation is not supported
13409 enable_fast_install
=no
13410 elif test yes = "$shlibpath_overrides_runpath" ||
13411 test no
= "$enable_shared"; then
13412 # Fast installation is not necessary
13413 enable_fast_install
=needless
13421 if test yes != "$enable_dlopen"; then
13422 enable_dlopen
=unknown
13423 enable_dlopen_self
=unknown
13424 enable_dlopen_self_static
=unknown
13431 lt_cv_dlopen
=load_add_on
13433 lt_cv_dlopen_self
=yes
13436 mingw
* | pw32
* | cegcc
*)
13437 lt_cv_dlopen
=LoadLibrary
13442 lt_cv_dlopen
=dlopen
13447 # if libdl is installed we need to link against it
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13449 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13450 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13451 $as_echo_n "(cached) " >&6
13453 ac_check_lib_save_LIBS
=$LIBS
13455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13473 if ac_fn_c_try_link
"$LINENO"; then :
13474 ac_cv_lib_dl_dlopen
=yes
13476 ac_cv_lib_dl_dlopen
=no
13478 rm -f core conftest.err conftest.
$ac_objext \
13479 conftest
$ac_exeext conftest.
$ac_ext
13480 LIBS
=$ac_check_lib_save_LIBS
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13483 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13484 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13485 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
13490 lt_cv_dlopen_self
=yes
13497 # Don't try to run any link tests for TPF. We know it's impossible
13498 # because TPF is a cross-compiler, and we know how we open DSOs.
13499 lt_cv_dlopen
=dlopen
13501 lt_cv_dlopen_self
=no
13505 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
13506 if test "x$ac_cv_func_shl_load" = xyes
; then :
13507 lt_cv_dlopen
=shl_load
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13510 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13511 if ${ac_cv_lib_dld_shl_load+:} false
; then :
13512 $as_echo_n "(cached) " >&6
13514 ac_check_lib_save_LIBS
=$LIBS
13516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13529 return shl_load ();
13534 if ac_fn_c_try_link
"$LINENO"; then :
13535 ac_cv_lib_dld_shl_load
=yes
13537 ac_cv_lib_dld_shl_load
=no
13539 rm -f core conftest.err conftest.
$ac_objext \
13540 conftest
$ac_exeext conftest.
$ac_ext
13541 LIBS
=$ac_check_lib_save_LIBS
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13544 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13545 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
13546 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
13548 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13549 if test "x$ac_cv_func_dlopen" = xyes
; then :
13550 lt_cv_dlopen
=dlopen
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13553 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13554 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13555 $as_echo_n "(cached) " >&6
13557 ac_check_lib_save_LIBS
=$LIBS
13559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13562 /* Override any GCC internal prototype to avoid an error.
13563 Use char because int might match the return type of a GCC
13564 builtin and then its argument prototype would still apply. */
13577 if ac_fn_c_try_link
"$LINENO"; then :
13578 ac_cv_lib_dl_dlopen
=yes
13580 ac_cv_lib_dl_dlopen
=no
13582 rm -f core conftest.err conftest.
$ac_objext \
13583 conftest
$ac_exeext conftest.
$ac_ext
13584 LIBS
=$ac_check_lib_save_LIBS
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13587 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13588 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13589 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13592 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13593 if ${ac_cv_lib_svld_dlopen+:} false
; then :
13594 $as_echo_n "(cached) " >&6
13596 ac_check_lib_save_LIBS
=$LIBS
13597 LIBS
="-lsvld $LIBS"
13598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13616 if ac_fn_c_try_link
"$LINENO"; then :
13617 ac_cv_lib_svld_dlopen
=yes
13619 ac_cv_lib_svld_dlopen
=no
13621 rm -f core conftest.err conftest.
$ac_objext \
13622 conftest
$ac_exeext conftest.
$ac_ext
13623 LIBS
=$ac_check_lib_save_LIBS
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13626 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13627 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
13628 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13631 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13632 if ${ac_cv_lib_dld_dld_link+:} false
; then :
13633 $as_echo_n "(cached) " >&6
13635 ac_check_lib_save_LIBS
=$LIBS
13637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13640 /* Override any GCC internal prototype to avoid an error.
13641 Use char because int might match the return type of a GCC
13642 builtin and then its argument prototype would still apply. */
13650 return dld_link ();
13655 if ac_fn_c_try_link
"$LINENO"; then :
13656 ac_cv_lib_dld_dld_link
=yes
13658 ac_cv_lib_dld_dld_link
=no
13660 rm -f core conftest.err conftest.
$ac_objext \
13661 conftest
$ac_exeext conftest.
$ac_ext
13662 LIBS
=$ac_check_lib_save_LIBS
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13665 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13666 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
13667 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
13688 if test no
= "$lt_cv_dlopen"; then
13694 case $lt_cv_dlopen in
13696 save_CPPFLAGS
=$CPPFLAGS
13697 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13699 save_LDFLAGS
=$LDFLAGS
13700 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13703 LIBS
="$lt_cv_dlopen_libs $LIBS"
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13706 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13707 if ${lt_cv_dlopen_self+:} false
; then :
13708 $as_echo_n "(cached) " >&6
13710 if test yes = "$cross_compiling"; then :
13711 lt_cv_dlopen_self
=cross
13713 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13714 lt_status
=$lt_dlunknown
13715 cat > conftest.
$ac_ext <<_LT_EOF
13716 #line $LINENO "configure"
13717 #include "confdefs.h"
13726 # define LT_DLGLOBAL RTLD_GLOBAL
13729 # define LT_DLGLOBAL DL_GLOBAL
13731 # define LT_DLGLOBAL 0
13735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13736 find out it does not work in some platform. */
13737 #ifndef LT_DLLAZY_OR_NOW
13739 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13742 # define LT_DLLAZY_OR_NOW DL_LAZY
13745 # define LT_DLLAZY_OR_NOW RTLD_NOW
13748 # define LT_DLLAZY_OR_NOW DL_NOW
13750 # define LT_DLLAZY_OR_NOW 0
13757 /* When -fvisibility=hidden is used, assume the code has been annotated
13758 correspondingly for the symbols needed. */
13759 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13760 int fnord () __attribute__((visibility("default")));
13763 int fnord () { return 42; }
13766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13767 int status = $lt_dlunknown;
13771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13774 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13775 else puts (dlerror ());
13777 /* dlclose (self); */
13785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13786 (eval $ac_link) 2>&5
13788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13789 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
13790 (.
/conftest
; exit; ) >&5 2>/dev
/null
13792 case x
$lt_status in
13793 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13794 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13795 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
13798 # compilation failed
13799 lt_cv_dlopen_self
=no
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13807 $as_echo "$lt_cv_dlopen_self" >&6; }
13809 if test yes = "$lt_cv_dlopen_self"; then
13810 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13812 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13813 if ${lt_cv_dlopen_self_static+:} false
; then :
13814 $as_echo_n "(cached) " >&6
13816 if test yes = "$cross_compiling"; then :
13817 lt_cv_dlopen_self_static
=cross
13819 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13820 lt_status
=$lt_dlunknown
13821 cat > conftest.
$ac_ext <<_LT_EOF
13822 #line $LINENO "configure"
13823 #include "confdefs.h"
13832 # define LT_DLGLOBAL RTLD_GLOBAL
13835 # define LT_DLGLOBAL DL_GLOBAL
13837 # define LT_DLGLOBAL 0
13841 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13842 find out it does not work in some platform. */
13843 #ifndef LT_DLLAZY_OR_NOW
13845 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13848 # define LT_DLLAZY_OR_NOW DL_LAZY
13851 # define LT_DLLAZY_OR_NOW RTLD_NOW
13854 # define LT_DLLAZY_OR_NOW DL_NOW
13856 # define LT_DLLAZY_OR_NOW 0
13863 /* When -fvisibility=hidden is used, assume the code has been annotated
13864 correspondingly for the symbols needed. */
13865 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13866 int fnord () __attribute__((visibility("default")));
13869 int fnord () { return 42; }
13872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13873 int status = $lt_dlunknown;
13877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13880 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13881 else puts (dlerror ());
13883 /* dlclose (self); */
13891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13892 (eval $ac_link) 2>&5
13894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13895 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
13896 (.
/conftest
; exit; ) >&5 2>/dev
/null
13898 case x
$lt_status in
13899 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13900 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13901 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
13904 # compilation failed
13905 lt_cv_dlopen_self_static
=no
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13913 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13916 CPPFLAGS
=$save_CPPFLAGS
13917 LDFLAGS
=$save_LDFLAGS
13922 case $lt_cv_dlopen_self in
13923 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13924 *) enable_dlopen_self
=unknown
;;
13927 case $lt_cv_dlopen_self_static in
13928 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13929 *) enable_dlopen_self_static
=unknown
;;
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13952 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13953 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
13954 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
13955 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13957 $as_echo "yes" >&6; }
13959 # FIXME - insert some real tests, host_os isn't really good enough
13962 if test -n "$STRIP"; then
13963 striplib
="$STRIP -x"
13964 old_striplib
="$STRIP -S"
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13966 $as_echo "yes" >&6; }
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13969 $as_echo "no" >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974 $as_echo "no" >&6; }
13990 # Report what library types will actually be built
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13992 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13994 $as_echo "$can_build_shared" >&6; }
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13997 $as_echo_n "checking whether to build shared libraries... " >&6; }
13998 test no
= "$can_build_shared" && enable_shared
=no
14000 # On AIX, shared libraries and static libraries use the same namespace, and
14001 # are all built from PIC.
14004 test yes = "$enable_shared" && enable_static
=no
14005 if test -n "$RANLIB"; then
14006 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
14007 postinstall_cmds
='$RANLIB $lib'
14012 if test ia64
!= "$host_cpu"; then
14013 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14014 yes,aix
,yes) ;; # shared object as lib.so file only
14015 yes,svr4
,*) ;; # shared object as lib.so archive member only
14016 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14022 $as_echo "$enable_shared" >&6; }
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14025 $as_echo_n "checking whether to build static libraries... " >&6; }
14026 # Make sure either enable_shared or enable_static is yes.
14027 test yes = "$enable_shared" || enable_static
=yes
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14029 $as_echo "$enable_static" >&6; }
14036 ac_cpp
='$CPP $CPPFLAGS'
14037 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14057 ac_config_commands
="$ac_config_commands libtool"
14062 # Only expand once:
14065 if test -n "$ac_tool_prefix"; then
14066 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14067 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069 $as_echo_n "checking for $ac_word... " >&6; }
14070 if ${ac_cv_prog_RC+:} false
; then :
14071 $as_echo_n "(cached) " >&6
14073 if test -n "$RC"; then
14074 ac_cv_prog_RC
="$RC" # Let the user override the test.
14076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14077 for as_dir
in $PATH
14080 test -z "$as_dir" && as_dir
=.
14081 for ac_exec_ext
in '' $ac_executable_extensions; do
14082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14083 ac_cv_prog_RC
="${ac_tool_prefix}windres"
14084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 if test -n "$RC"; then
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
14096 $as_echo "$RC" >&6; }
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099 $as_echo "no" >&6; }
14104 if test -z "$ac_cv_prog_RC"; then
14106 # Extract the first word of "windres", so it can be a program name with args.
14107 set dummy windres
; ac_word
=$2
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14109 $as_echo_n "checking for $ac_word... " >&6; }
14110 if ${ac_cv_prog_ac_ct_RC+:} false
; then :
14111 $as_echo_n "(cached) " >&6
14113 if test -n "$ac_ct_RC"; then
14114 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
14116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14117 for as_dir
in $PATH
14120 test -z "$as_dir" && as_dir
=.
14121 for ac_exec_ext
in '' $ac_executable_extensions; do
14122 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14123 ac_cv_prog_ac_ct_RC
="windres"
14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14133 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
14134 if test -n "$ac_ct_RC"; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
14136 $as_echo "$ac_ct_RC" >&6; }
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139 $as_echo "no" >&6; }
14142 if test "x$ac_ct_RC" = x
; then
14145 case $cross_compiling:$ac_tool_warned in
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14149 ac_tool_warned
=yes ;;
14154 RC
="$ac_cv_prog_RC"
14160 # Source file extension for RC test sources.
14163 # Object file extension for compiled RC test sources.
14167 # Code to be used in simple compile tests
14168 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14170 # Code to be used in simple link tests
14171 lt_simple_link_test_code
=$lt_simple_compile_test_code
14173 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14180 # If no C compiler was specified, use CC.
14183 # If no C compiler flags were specified, use CFLAGS.
14184 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
14186 # Allow CC to be a program name with arguments.
14190 # save warnings/boilerplate of simple test code
14191 ac_outfile
=conftest.
$ac_objext
14192 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
14193 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14194 _lt_compiler_boilerplate
=`cat conftest.err`
14197 ac_outfile
=conftest.
$ac_objext
14198 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
14199 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14200 _lt_linker_boilerplate
=`cat conftest.err`
14204 # Allow CC to be a program name with arguments.
14206 lt_save_CFLAGS
=$CFLAGS
14213 func_cc_basename
$compiler
14214 cc_basename
=$func_cc_basename_result
14216 lt_cv_prog_compiler_c_o_RC
=yes
14218 if test -n "$compiler"; then
14227 ac_cpp
='$CPP $CPPFLAGS'
14228 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14233 CFLAGS
=$lt_save_CFLAGS
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14238 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14239 if ${ac_cv_c_const+:} false
; then :
14240 $as_echo_n "(cached) " >&6
14242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14249 #ifndef __cplusplus
14250 /* Ultrix mips cc rejects this sort of thing. */
14251 typedef int charset[2];
14252 const charset cs = { 0, 0 };
14253 /* SunOS 4.1.1 cc rejects this. */
14254 char const *const *pcpcc;
14256 /* NEC SVR4.0.2 mips cc rejects this. */
14257 struct point {int x, y;};
14258 static struct point const zero = {0,0};
14259 /* AIX XL C 1.02.0.0 rejects this.
14260 It does not let you subtract one const X* pointer from another in
14261 an arm of an if-expression whose if-part is not a constant
14263 const char *g = "string";
14264 pcpcc = &g + (g ? g-g : 0);
14265 /* HPUX 7.0 cc rejects these. */
14267 ppc = (char**) pcpcc;
14268 pcpcc = (char const *const *) ppc;
14269 { /* SCO 3.2v4 cc rejects this sort of thing. */
14272 char const *s = 0 ? (char *) 0 : (char const *) 0;
14277 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14278 int x[] = {25, 17};
14279 const int *foo = &x[0];
14282 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14283 typedef const int *iptr;
14287 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14288 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14289 struct s { int j; const int *ap[3]; } bx;
14290 struct s *b = &bx; b->j = 5;
14292 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14293 const int foo = 10;
14294 if (!foo) return 0;
14296 return !cs[0] && !zero.x;
14303 if ac_fn_c_try_compile
"$LINENO"; then :
14308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14311 $as_echo "$ac_cv_c_const" >&6; }
14312 if test $ac_cv_c_const = no
; then
14314 $as_echo "#define const /**/" >>confdefs.h
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14319 $as_echo_n "checking for inline... " >&6; }
14320 if ${ac_cv_c_inline+:} false
; then :
14321 $as_echo_n "(cached) " >&6
14324 for ac_kw
in inline __inline__ __inline
; do
14325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 #ifndef __cplusplus
14329 static $ac_kw foo_t static_foo () {return 0; }
14330 $ac_kw foo_t foo () {return 0; }
14334 if ac_fn_c_try_compile
"$LINENO"; then :
14335 ac_cv_c_inline
=$ac_kw
14337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14338 test "$ac_cv_c_inline" != no
&& break
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14343 $as_echo "$ac_cv_c_inline" >&6; }
14345 case $ac_cv_c_inline in
14348 case $ac_cv_c_inline in
14350 *) ac_val
=$ac_cv_c_inline;;
14352 cat >>confdefs.h
<<_ACEOF
14353 #ifndef __cplusplus
14354 #define inline $ac_val
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14361 $as_echo_n "checking for working volatile... " >&6; }
14362 if ${ac_cv_c_volatile+:} false
; then :
14363 $as_echo_n "(cached) " >&6
14365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14373 int * volatile y = (int *) 0;
14379 if ac_fn_c_try_compile
"$LINENO"; then :
14380 ac_cv_c_volatile
=yes
14382 ac_cv_c_volatile
=no
14384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14387 $as_echo "$ac_cv_c_volatile" >&6; }
14388 if test $ac_cv_c_volatile = no
; then
14390 $as_echo "#define volatile /**/" >>confdefs.h
14394 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14395 if test "x$ac_cv_type_off_t" = xyes
; then :
14399 cat >>confdefs.h
<<_ACEOF
14400 #define off_t long int
14405 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14406 if test "x$ac_cv_type_pid_t" = xyes
; then :
14410 cat >>confdefs.h
<<_ACEOF
14416 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14417 if test "x$ac_cv_type_size_t" = xyes
; then :
14421 cat >>confdefs.h
<<_ACEOF
14422 #define size_t unsigned int
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14428 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14429 if ${ac_cv_type_uid_t+:} false
; then :
14430 $as_echo_n "(cached) " >&6
14432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14434 #include <sys/types.h>
14437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14438 $EGREP "uid_t" >/dev
/null
2>&1; then :
14439 ac_cv_type_uid_t
=yes
14441 ac_cv_type_uid_t
=no
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14447 $as_echo "$ac_cv_type_uid_t" >&6; }
14448 if test $ac_cv_type_uid_t = no
; then
14450 $as_echo "#define uid_t int" >>confdefs.h
14453 $as_echo "#define gid_t int" >>confdefs.h
14457 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
14458 case $ac_cv_c_int8_t in #(
14462 cat >>confdefs.h
<<_ACEOF
14463 #define int8_t $ac_cv_c_int8_t
14468 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
14469 case $ac_cv_c_int16_t in #(
14473 cat >>confdefs.h
<<_ACEOF
14474 #define int16_t $ac_cv_c_int16_t
14479 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
14480 case $ac_cv_c_int32_t in #(
14484 cat >>confdefs.h
<<_ACEOF
14485 #define int32_t $ac_cv_c_int32_t
14490 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
14491 case $ac_cv_c_int64_t in #(
14495 cat >>confdefs.h
<<_ACEOF
14496 #define int64_t $ac_cv_c_int64_t
14501 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
14502 case $ac_cv_c_uint8_t in #(
14506 $as_echo "#define _UINT8_T 1" >>confdefs.h
14509 cat >>confdefs.h
<<_ACEOF
14510 #define uint8_t $ac_cv_c_uint8_t
14515 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
14516 case $ac_cv_c_uint16_t in #(
14521 cat >>confdefs.h
<<_ACEOF
14522 #define uint16_t $ac_cv_c_uint16_t
14527 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
14528 case $ac_cv_c_uint32_t in #(
14532 $as_echo "#define _UINT32_T 1" >>confdefs.h
14535 cat >>confdefs.h
<<_ACEOF
14536 #define uint32_t $ac_cv_c_uint32_t
14541 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
14542 case $ac_cv_c_uint64_t in #(
14546 $as_echo "#define _UINT64_T 1" >>confdefs.h
14549 cat >>confdefs.h
<<_ACEOF
14550 #define uint64_t $ac_cv_c_uint64_t
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14556 $as_echo_n "checking return type of signal handlers... " >&6; }
14557 if ${ac_cv_type_signal+:} false
; then :
14558 $as_echo_n "(cached) " >&6
14560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562 #include <sys/types.h>
14563 #include <signal.h>
14568 return *(signal (0, 0)) (0) == 1;
14573 if ac_fn_c_try_compile
"$LINENO"; then :
14574 ac_cv_type_signal
=int
14576 ac_cv_type_signal
=void
14578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14581 $as_echo "$ac_cv_type_signal" >&6; }
14583 cat >>confdefs.h
<<_ACEOF
14584 #define RETSIGTYPE $ac_cv_type_signal
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
14589 $as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
14590 if ${ax_cv_cpp_vararg_macro_iso+:} false
; then :
14591 $as_echo_n "(cached) " >&6
14593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14594 /* end confdefs.h. */
14596 #define macro(a, ...) func(a, __VA_ARGS__)
14597 int func(int a, int b, int c);
14603 int i = macro(1, 2, 3);
14610 if ac_fn_c_try_compile
"$LINENO"; then :
14611 ax_cv_cpp_vararg_macro_iso
=yes
14613 ax_cv_cpp_vararg_macro_iso
=no
14616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
14620 $as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
14621 if test "x$ax_cv_cpp_vararg_macro_iso" = xyes
; then :
14623 $as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
14628 $as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
14629 if ${ax_cv_cpp_vararg_macro_gcc+:} false
; then :
14630 $as_echo_n "(cached) " >&6
14632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14635 #define macro(a, b...) func(a, b)
14636 int func(int a, int b, int c);
14642 int i = macro(1, 2, 3);
14649 if ac_fn_c_try_compile
"$LINENO"; then :
14650 ax_cv_cpp_vararg_macro_gcc
=yes
14652 ax_cv_cpp_vararg_macro_gcc
=no
14655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
14659 $as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
14660 if test "x$ax_cv_cpp_vararg_macro_gcc" = xyes
; then :
14662 $as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
14667 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14668 #include <sys/types.h>
14670 #include <ws2tcpip.h>
14672 #include <sys/socket.h>
14677 if test "x$ac_cv_type_socklen_t" = xyes
; then :
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14682 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14683 if ${ax_cv_socklen_t_equiv+:} false
; then :
14684 $as_echo_n "(cached) " >&6
14687 #AS_CASE is not supported on <autoconf-2.60
14689 *-mingw*) ax_cv_socklen_t_equiv
=int
;;
14691 # Systems have either "struct sockaddr *" or
14692 # "void *" as the second argument to getpeername
14693 for arg2
in "struct sockaddr" void
; do
14694 for t
in int size_t unsigned long
"unsigned long"; do
14695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14698 #include <sys/types.h>
14699 #include <sys/socket.h>
14700 int getpeername (int, $arg2 *, $t *);
14707 getpeername(0,0,&len);
14714 if ac_fn_c_try_compile
"$LINENO"; then :
14715 ax_cv_socklen_t_equiv
="$t"; break
14718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14720 test -n "$ax_cv_socklen_t_equiv" && break
14725 if ${ax_cv_socklen_t_equiv:+false} :; then :
14726 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
14729 cat >>confdefs.h
<<_ACEOF
14730 #define socklen_t $ax_cv_socklen_t_equiv
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
14738 $as_echo "$ax_cv_socklen_t_equiv" >&6; }
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
14745 $as_echo_n "checking for C compiler empty array size... " >&6; }
14746 if ${ax_cv_c_empty_array+:} false
; then :
14747 $as_echo_n "(cached) " >&6
14749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14756 struct { int foo; int bar[0]; } mystruct;
14763 if ac_fn_c_try_compile
"$LINENO"; then :
14764 ax_cv_c_empty_array
=0
14766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14773 struct { int foo; int bar[]; } mystruct;
14780 if ac_fn_c_try_compile
"$LINENO"; then :
14781 ax_cv_c_empty_array
=
14783 as_fn_error $?
"C compiler is unable to creaty empty arrays" "$LINENO" 5
14786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
14793 $as_echo "$ax_cv_c_empty_array" >&6; }
14794 cat >>confdefs.h
<<_ACEOF
14795 #define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
14798 # The cast to long int works around a bug in the HP C Compiler
14799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14801 # This bug is HP SR number 8606223364.
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14803 $as_echo_n "checking size of unsigned int... " >&6; }
14804 if ${ac_cv_sizeof_unsigned_int+:} false
; then :
14805 $as_echo_n "(cached) " >&6
14807 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14810 if test "$ac_cv_type_unsigned_int" = yes; then
14811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14813 as_fn_error
77 "cannot compute sizeof (unsigned int)
14814 See \`config.log' for more details" "$LINENO" 5; }
14816 ac_cv_sizeof_unsigned_int
=0
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14822 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14826 cat >>confdefs.h
<<_ACEOF
14827 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14831 # The cast to long int works around a bug in the HP C Compiler
14832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14834 # This bug is HP SR number 8606223364.
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14836 $as_echo_n "checking size of unsigned long... " >&6; }
14837 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
14838 $as_echo_n "(cached) " >&6
14840 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14843 if test "$ac_cv_type_unsigned_long" = yes; then
14844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14846 as_fn_error
77 "cannot compute sizeof (unsigned long)
14847 See \`config.log' for more details" "$LINENO" 5; }
14849 ac_cv_sizeof_unsigned_long
=0
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14855 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14859 cat >>confdefs.h
<<_ACEOF
14860 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14865 stdio.h stdarg.h stdbool.h limits.h \
14866 time.h errno.h fcntl.h io.h direct.h \
14867 ctype.h sys
/types.h sys
/socket.h \
14868 signal.h unistd.h dlfcn.h \
14869 netinet
/in.h netinet
/in_systm.h \
14870 netinet
/tcp.h arpa
/inet.h netdb.h \
14871 windows.h winsock2.h ws2tcpip.h \
14875 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14876 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14877 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14878 cat >>confdefs.h
<<_ACEOF
14879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14887 sys
/time.h sys
/ioctl.h sys
/stat.h \
14888 sys
/mman.h sys
/file.h sys
/wait.h \
14889 unistd.h signal.h libgen.h stropts.h \
14890 syslog.h
pwd.h grp.h \
14891 sys
/sockio.h sys
/uio.h linux
/sockios.h \
14892 linux
/types.h sys
/poll.h sys
/epoll.h err.h \
14895 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14896 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14897 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14898 cat >>confdefs.h
<<_ACEOF
14899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14908 #ifdef HAVE_STDLIB_H
14909 #include <stdlib.h>
14911 #ifdef HAVE_SYS_TYPES_H
14912 #include <sys/types.h>
14914 #ifdef HAVE_SYS_SOCKET_H
14915 #include <sys/socket.h>
14917 #ifdef HAVE_NETINET_IN_H
14918 #include <netinet/in.h>
14920 #ifdef HAVE_WINDOWS_H
14921 #include <windows.h>
14923 #ifdef HAVE_WINSOCK2_H
14924 #include <winsock2.h>
14926 #ifdef HAVE_WS2TCPIP_H
14927 #include <ws2tcpip.h>
14929 #ifdef HAVE_NETINET_IN_SYSTM_H
14930 #include <netinet/in_systm.h>
14932 #ifdef HAVE_NETINET_IP_H
14933 #include <netinet/ip.h>
14937 for ac_header
in net
/if.h netinet
/ip.h resolv.h sys
/un.h net
/if_utun.h sys
/kern_control.h
14939 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14940 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
14943 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14944 cat >>confdefs.h
<<_ACEOF
14945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14953 ac_fn_c_check_type
"$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
14956 if test "x$ac_cv_type_in_addr_t" = xyes
; then :
14958 cat >>confdefs.h
<<_ACEOF
14959 #define HAVE_IN_ADDR_T 1
14965 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14969 ac_fn_c_check_type
"$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
14972 if test "x$ac_cv_type_struct_iphdr" = xyes
; then :
14974 $as_echo "#define HAVE_IPHDR 1" >>confdefs.h
14978 ac_fn_c_check_type
"$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES}
14981 if test "x$ac_cv_type_struct_sock_extended_err" = xyes
; then :
14983 $as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
14987 ac_fn_c_check_type
"$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
14990 if test "x$ac_cv_type_struct_msghdr" = xyes
; then :
14992 $as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
14996 ac_fn_c_check_type
"$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
14999 if test "x$ac_cv_type_struct_cmsghdr" = xyes
; then :
15001 $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
15005 ac_fn_c_check_type
"$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
15008 if test "x$ac_cv_type_struct_in_pktinfo" = xyes
; then :
15010 $as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
15014 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
15017 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
15020 as_fn_error $?
"struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
15023 ac_fn_c_check_decl
"$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
15026 if test "x$ac_cv_have_decl_SO_MARK" = xyes
; then :
15032 cat >>confdefs.h
<<_ACEOF
15033 #define HAVE_DECL_SO_MARK $ac_have_decl
15037 ac_fn_c_check_decl
"$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
15038 #ifdef HAVE_SIGNAL_H
15039 #include <signal.h>
15044 if test "x$ac_cv_have_decl_SIGHUP" = xyes
; then :
15050 cat >>confdefs.h
<<_ACEOF
15051 #define HAVE_DECL_SIGHUP $ac_have_decl
15053 if test $ac_have_decl = 1; then :
15057 $as_echo "#define SIGHUP 1" >>confdefs.h
15061 ac_fn_c_check_decl
"$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
15062 #ifdef HAVE_SIGNAL_H
15063 #include <signal.h>
15068 if test "x$ac_cv_have_decl_SIGINT" = xyes
; then :
15074 cat >>confdefs.h
<<_ACEOF
15075 #define HAVE_DECL_SIGINT $ac_have_decl
15077 if test $ac_have_decl = 1; then :
15081 $as_echo "#define SIGINT 2" >>confdefs.h
15085 ac_fn_c_check_decl
"$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
15086 #ifdef HAVE_SIGNAL_H
15087 #include <signal.h>
15092 if test "x$ac_cv_have_decl_SIGUSR1" = xyes
; then :
15098 cat >>confdefs.h
<<_ACEOF
15099 #define HAVE_DECL_SIGUSR1 $ac_have_decl
15101 if test $ac_have_decl = 1; then :
15105 $as_echo "#define SIGUSR1 10" >>confdefs.h
15109 ac_fn_c_check_decl
"$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
15110 #ifdef HAVE_SIGNAL_H
15111 #include <signal.h>
15116 if test "x$ac_cv_have_decl_SIGUSR2" = xyes
; then :
15122 cat >>confdefs.h
<<_ACEOF
15123 #define HAVE_DECL_SIGUSR2 $ac_have_decl
15125 if test $ac_have_decl = 1; then :
15129 $as_echo "#define SIGUSR2 12" >>confdefs.h
15133 ac_fn_c_check_decl
"$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
15134 #ifdef HAVE_SIGNAL_H
15135 #include <signal.h>
15140 if test "x$ac_cv_have_decl_SIGTERM" = xyes
; then :
15146 cat >>confdefs.h
<<_ACEOF
15147 #define HAVE_DECL_SIGTERM $ac_have_decl
15149 if test $ac_have_decl = 1; then :
15153 $as_echo "#define SIGTERM 15" >>confdefs.h
15158 for ac_header
in vfork.h
15160 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15161 if test "x$ac_cv_header_vfork_h" = xyes
; then :
15162 cat >>confdefs.h
<<_ACEOF
15163 #define HAVE_VFORK_H 1
15170 for ac_func
in fork vfork
15172 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15173 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15174 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15175 cat >>confdefs.h
<<_ACEOF
15176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15182 if test "x$ac_cv_func_fork" = xyes
; then
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15184 $as_echo_n "checking for working fork... " >&6; }
15185 if ${ac_cv_func_fork_works+:} false
; then :
15186 $as_echo_n "(cached) " >&6
15188 if test "$cross_compiling" = yes; then :
15189 ac_cv_func_fork_works
=cross
15191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15193 $ac_includes_default
15198 /* By Ruediger Kuhlmann. */
15199 return fork () < 0;
15205 if ac_fn_c_try_run
"$LINENO"; then :
15206 ac_cv_func_fork_works
=yes
15208 ac_cv_func_fork_works
=no
15210 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15211 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15216 $as_echo "$ac_cv_func_fork_works" >&6; }
15219 ac_cv_func_fork_works
=$ac_cv_func_fork
15221 if test "x$ac_cv_func_fork_works" = xcross
; then
15223 *-*-amigaos* |
*-*-msdosdjgpp*)
15224 # Override, as these systems have only a dummy fork() stub
15225 ac_cv_func_fork_works
=no
15228 ac_cv_func_fork_works
=yes
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15232 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15234 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15235 if test "x$ac_cv_func_vfork" = xyes
; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15237 $as_echo_n "checking for working vfork... " >&6; }
15238 if ${ac_cv_func_vfork_works+:} false
; then :
15239 $as_echo_n "(cached) " >&6
15241 if test "$cross_compiling" = yes; then :
15242 ac_cv_func_vfork_works
=cross
15244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15246 /* Thanks to Paul Eggert for this test. */
15247 $ac_includes_default
15248 #include <sys/wait.h>
15249 #ifdef HAVE_VFORK_H
15250 # include <vfork.h>
15252 /* On some sparc systems, changes by the child to local and incoming
15253 argument registers are propagated back to the parent. The compiler
15254 is told about this with #include <vfork.h>, but some compilers
15255 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15256 static variable whose address is put into a register that is
15257 clobbered by the vfork. */
15260 sparc_address_test (int arg)
15262 sparc_address_test (arg) int arg;
15265 static pid_t child;
15283 pid_t parent = getpid ();
15286 sparc_address_test (0);
15291 /* Here is another test for sparc vfork register problems. This
15292 test uses lots of local variables, at least as many local
15293 variables as main has allocated so far including compiler
15294 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15295 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15296 reuse the register of parent for one of the local variables,
15297 since it will think that parent can't possibly be used any more
15298 in this routine. Assigning to the local variable will thus
15299 munge parent in the parent process. */
15301 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15302 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15303 /* Convince the compiler that p..p7 are live; otherwise, it might
15304 use the same hardware register for all 8 local variables. */
15305 if (p != p1 || p != p2 || p != p3 || p != p4
15306 || p != p5 || p != p6 || p != p7)
15309 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15310 from child file descriptors. If the child closes a descriptor
15311 before it execs or exits, this munges the parent's descriptor
15312 as well. Test for this by closing stdout in the child. */
15313 _exit(close(fileno(stdout)) != 0);
15318 while (wait(&status) != child)
15321 /* Was there some problem with vforking? */
15324 /* Did the child fail? (This shouldn't happen.) */
15327 /* Did the vfork/compiler bug occur? */
15328 || parent != getpid()
15330 /* Did the file descriptor bug occur? */
15331 || fstat(fileno(stdout), &st) != 0
15336 if ac_fn_c_try_run
"$LINENO"; then :
15337 ac_cv_func_vfork_works
=yes
15339 ac_cv_func_vfork_works
=no
15341 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15342 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15347 $as_echo "$ac_cv_func_vfork_works" >&6; }
15350 if test "x$ac_cv_func_fork_works" = xcross
; then
15351 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15353 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15356 if test "x$ac_cv_func_vfork_works" = xyes
; then
15358 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15362 $as_echo "#define vfork fork" >>confdefs.h
15365 if test "x$ac_cv_func_fork_works" = xyes
; then
15367 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15373 daemon chroot getpwnam setuid nice system getpid dup dup2 \
15374 getpass strerror syslog openlog mlockall getgrnam setgid \
15375 setgroups stat flock readv writev
time gettimeofday \
15376 ctime memset vsnprintf strdup \
15377 setsid chdir putenv getpeername unlink \
15378 chsize ftruncate execve getpeereid
umask basename dirname access \
15382 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15383 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15384 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15385 cat >>confdefs.h
<<_ACEOF
15386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15394 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15395 if ${ac_cv_lib_dl_dlopen+:} false
; then :
15396 $as_echo_n "(cached) " >&6
15398 ac_check_lib_save_LIBS
=$LIBS
15400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15403 /* Override any GCC internal prototype to avoid an error.
15404 Use char because int might match the return type of a GCC
15405 builtin and then its argument prototype would still apply. */
15418 if ac_fn_c_try_link
"$LINENO"; then :
15419 ac_cv_lib_dl_dlopen
=yes
15421 ac_cv_lib_dl_dlopen
=no
15423 rm -f core conftest.err conftest.
$ac_objext \
15424 conftest
$ac_exeext conftest.
$ac_ext
15425 LIBS
=$ac_check_lib_save_LIBS
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15428 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15429 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
15437 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
15438 if ${ac_cv_lib_nsl_inet_ntoa+:} false
; then :
15439 $as_echo_n "(cached) " >&6
15441 ac_check_lib_save_LIBS
=$LIBS
15443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15444 /* end confdefs.h. */
15446 /* Override any GCC internal prototype to avoid an error.
15447 Use char because int might match the return type of a GCC
15448 builtin and then its argument prototype would still apply. */
15456 return inet_ntoa ();
15461 if ac_fn_c_try_link
"$LINENO"; then :
15462 ac_cv_lib_nsl_inet_ntoa
=yes
15464 ac_cv_lib_nsl_inet_ntoa
=no
15466 rm -f core conftest.err conftest.
$ac_objext \
15467 conftest
$ac_exeext conftest.
$ac_ext
15468 LIBS
=$ac_check_lib_save_LIBS
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
15471 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
15472 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes
; then :
15473 SOCKETS_LIBS
="${SOCKETS_LIBS} -lnsl"
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15478 $as_echo_n "checking for socket in -lsocket... " >&6; }
15479 if ${ac_cv_lib_socket_socket+:} false
; then :
15480 $as_echo_n "(cached) " >&6
15482 ac_check_lib_save_LIBS
=$LIBS
15483 LIBS
="-lsocket $LIBS"
15484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15487 /* Override any GCC internal prototype to avoid an error.
15488 Use char because int might match the return type of a GCC
15489 builtin and then its argument prototype would still apply. */
15502 if ac_fn_c_try_link
"$LINENO"; then :
15503 ac_cv_lib_socket_socket
=yes
15505 ac_cv_lib_socket_socket
=no
15507 rm -f core conftest.err conftest.
$ac_objext \
15508 conftest
$ac_exeext conftest.
$ac_ext
15509 LIBS
=$ac_check_lib_save_LIBS
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15512 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15513 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
15514 SOCKETS_LIBS
="${SOCKETS_LIBS} -lsocket"
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
15519 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
15520 if ${ac_cv_lib_resolv_gethostbyname+:} false
; then :
15521 $as_echo_n "(cached) " >&6
15523 ac_check_lib_save_LIBS
=$LIBS
15524 LIBS
="-lresolv $LIBS"
15525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15526 /* end confdefs.h. */
15528 /* Override any GCC internal prototype to avoid an error.
15529 Use char because int might match the return type of a GCC
15530 builtin and then its argument prototype would still apply. */
15534 char gethostbyname ();
15538 return gethostbyname ();
15543 if ac_fn_c_try_link
"$LINENO"; then :
15544 ac_cv_lib_resolv_gethostbyname
=yes
15546 ac_cv_lib_resolv_gethostbyname
=no
15548 rm -f core conftest.err conftest.
$ac_objext \
15549 conftest
$ac_exeext conftest.
$ac_ext
15550 LIBS
=$ac_check_lib_save_LIBS
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
15553 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
15554 if test "x$ac_cv_lib_resolv_gethostbyname" = xyes
; then :
15555 SOCKETS_LIBS
="${SOCKETS_LIBS} -lresolv"
15562 LIBS
="${LIBS} ${SOCKETS_LIBS}"
15563 for ac_func
in sendmsg recvmsg inet_ntop inet_pton
15565 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15566 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15567 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15568 cat >>confdefs.h
<<_ACEOF
15569 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15575 # Windows use stdcall for winsock so we cannot auto detect these
15578 if test "${WIN32}" = "yes"; then
15581 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
15585 $as_echo "#define HAVE_RECV 1" >>confdefs.h
15589 $as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
15593 $as_echo "#define HAVE_SEND 1" >>confdefs.h
15597 $as_echo "#define HAVE_SENDTO 1" >>confdefs.h
15601 $as_echo "#define HAVE_LISTEN 1" >>confdefs.h
15605 $as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
15609 $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
15613 $as_echo "#define HAVE_BIND 1" >>confdefs.h
15617 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
15621 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
15625 $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
15629 $as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
15633 $as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
15637 $as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
15641 $as_echo "#define HAVE_POLL 1" >>confdefs.h
15645 for ac_func
in socket recv recvfrom send sendto listen accept connect
bind select gethostbyname inet_ntoa
15647 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15648 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15649 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15650 cat >>confdefs.h
<<_ACEOF
15651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15655 as_fn_error $?
"Required library function not found" "$LINENO" 5
15660 for ac_func
in setsockopt getsockopt getsockname poll
15662 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15663 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15664 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15665 cat >>confdefs.h
<<_ACEOF
15666 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15675 # we assume res_init() always exist, but need to find out *where*...
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
15677 $as_echo_n "checking for library containing __res_init... " >&6; }
15678 if ${ac_cv_search___res_init+:} false
; then :
15679 $as_echo_n "(cached) " >&6
15681 ac_func_search_save_LIBS
=$LIBS
15682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15685 /* Override any GCC internal prototype to avoid an error.
15686 Use char because int might match the return type of a GCC
15687 builtin and then its argument prototype would still apply. */
15691 char __res_init ();
15695 return __res_init ();
15700 for ac_lib
in '' resolv
bind; do
15701 if test -z "$ac_lib"; then
15702 ac_res
="none required"
15705 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15707 if ac_fn_c_try_link
"$LINENO"; then :
15708 ac_cv_search___res_init
=$ac_res
15710 rm -f core conftest.err conftest.
$ac_objext \
15712 if ${ac_cv_search___res_init+:} false
; then :
15716 if ${ac_cv_search___res_init+:} false
; then :
15719 ac_cv_search___res_init
=no
15721 rm conftest.
$ac_ext
15722 LIBS
=$ac_func_search_save_LIBS
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
15725 $as_echo "$ac_cv_search___res_init" >&6; }
15726 ac_res
=$ac_cv_search___res_init
15727 if test "$ac_res" != no
; then :
15728 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
15732 $as_echo_n "checking for library containing res_9_init... " >&6; }
15733 if ${ac_cv_search_res_9_init+:} false
; then :
15734 $as_echo_n "(cached) " >&6
15736 ac_func_search_save_LIBS
=$LIBS
15737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15738 /* end confdefs.h. */
15740 /* Override any GCC internal prototype to avoid an error.
15741 Use char because int might match the return type of a GCC
15742 builtin and then its argument prototype would still apply. */
15746 char res_9_init ();
15750 return res_9_init ();
15755 for ac_lib
in '' resolv
bind; do
15756 if test -z "$ac_lib"; then
15757 ac_res
="none required"
15760 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15762 if ac_fn_c_try_link
"$LINENO"; then :
15763 ac_cv_search_res_9_init
=$ac_res
15765 rm -f core conftest.err conftest.
$ac_objext \
15767 if ${ac_cv_search_res_9_init+:} false
; then :
15771 if ${ac_cv_search_res_9_init+:} false
; then :
15774 ac_cv_search_res_9_init
=no
15776 rm conftest.
$ac_ext
15777 LIBS
=$ac_func_search_save_LIBS
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
15780 $as_echo "$ac_cv_search_res_9_init" >&6; }
15781 ac_res
=$ac_cv_search_res_9_init
15782 if test "$ac_res" != no
; then :
15783 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
15787 $as_echo_n "checking for library containing res_init... " >&6; }
15788 if ${ac_cv_search_res_init+:} false
; then :
15789 $as_echo_n "(cached) " >&6
15791 ac_func_search_save_LIBS
=$LIBS
15792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h. */
15795 /* Override any GCC internal prototype to avoid an error.
15796 Use char because int might match the return type of a GCC
15797 builtin and then its argument prototype would still apply. */
15805 return res_init ();
15810 for ac_lib
in '' resolv
bind; do
15811 if test -z "$ac_lib"; then
15812 ac_res
="none required"
15815 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15817 if ac_fn_c_try_link
"$LINENO"; then :
15818 ac_cv_search_res_init
=$ac_res
15820 rm -f core conftest.err conftest.
$ac_objext \
15822 if ${ac_cv_search_res_init+:} false
; then :
15826 if ${ac_cv_search_res_init+:} false
; then :
15829 ac_cv_search_res_init
=no
15831 rm conftest.
$ac_ext
15832 LIBS
=$ac_func_search_save_LIBS
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
15835 $as_echo "$ac_cv_search_res_init" >&6; }
15836 ac_res
=$ac_cv_search_res_init
15837 if test "$ac_res" != no
; then :
15838 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15848 old_CFLAGS
="${CFLAGS}"
15849 CFLAGS
="${CFLAGS} ${TAP_CFLAGS}"
15851 net
/if_tun.h net
/tun
/if_tun.h \
15856 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15857 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15858 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15859 cat >>confdefs.h
<<_ACEOF
15860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15862 have_tap_header
="yes"
15868 ac_fn_c_check_decl
"$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
15869 #ifdef HAVE_LINUX_IF_TUN_H
15870 #include <linux/if_tun.h>
15875 if test "x$ac_cv_have_decl_TUNSETPERSIST" = xyes
; then :
15881 cat >>confdefs.h
<<_ACEOF
15882 #define HAVE_DECL_TUNSETPERSIST $ac_have_decl
15884 if test $ac_have_decl = 1; then :
15886 $as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
15890 CFLAGS
="${old_CFLAGS}"
15891 test "${have_tap_header}" = "yes" || as_fn_error $?
"no tap header could be found" "$LINENO" 5
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
15894 $as_echo_n "checking for setcon in -lselinux... " >&6; }
15895 if ${ac_cv_lib_selinux_setcon+:} false
; then :
15896 $as_echo_n "(cached) " >&6
15898 ac_check_lib_save_LIBS
=$LIBS
15899 LIBS
="-lselinux $LIBS"
15900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15903 /* Override any GCC internal prototype to avoid an error.
15904 Use char because int might match the return type of a GCC
15905 builtin and then its argument prototype would still apply. */
15918 if ac_fn_c_try_link
"$LINENO"; then :
15919 ac_cv_lib_selinux_setcon
=yes
15921 ac_cv_lib_selinux_setcon
=no
15923 rm -f core conftest.err conftest.
$ac_objext \
15924 conftest
$ac_exeext conftest.
$ac_ext
15925 LIBS
=$ac_check_lib_save_LIBS
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
15928 $as_echo "$ac_cv_lib_selinux_setcon" >&6; }
15929 if test "x$ac_cv_lib_selinux_setcon" = xyes
; then :
15930 SELINUX_LIBS
="-lselinux"
15938 if test -z "${LIBPAM_LIBS}"; then
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
15940 $as_echo_n "checking for pam_start in -lpam... " >&6; }
15941 if ${ac_cv_lib_pam_pam_start+:} false
; then :
15942 $as_echo_n "(cached) " >&6
15944 ac_check_lib_save_LIBS
=$LIBS
15946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15949 /* Override any GCC internal prototype to avoid an error.
15950 Use char because int might match the return type of a GCC
15951 builtin and then its argument prototype would still apply. */
15959 return pam_start ();
15964 if ac_fn_c_try_link
"$LINENO"; then :
15965 ac_cv_lib_pam_pam_start
=yes
15967 ac_cv_lib_pam_pam_start
=no
15969 rm -f core conftest.err conftest.
$ac_objext \
15970 conftest
$ac_exeext conftest.
$ac_ext
15971 LIBS
=$ac_check_lib_save_LIBS
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
15974 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15975 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
15976 LIBPAM_LIBS
="-lpam"
15982 case "${with_mem_check}" in
15984 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
15985 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
; then :
15987 CFLAGS
="${CFLAGS} -g -fno-inline"
15989 $as_echo "#define USE_VALGRIND 1" >>confdefs.h
15993 as_fn_error $?
"valgrind headers not found." "$LINENO" 5
16000 ac_fn_c_check_header_mongrel
"$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
16001 if test "x$ac_cv_header_dmalloc_h" = xyes
; then :
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
16003 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
16004 if ${ac_cv_lib_dmalloc_malloc+:} false
; then :
16005 $as_echo_n "(cached) " >&6
16007 ac_check_lib_save_LIBS
=$LIBS
16008 LIBS
="-ldmalloc $LIBS"
16009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16012 /* Override any GCC internal prototype to avoid an error.
16013 Use char because int might match the return type of a GCC
16014 builtin and then its argument prototype would still apply. */
16027 if ac_fn_c_try_link
"$LINENO"; then :
16028 ac_cv_lib_dmalloc_malloc
=yes
16030 ac_cv_lib_dmalloc_malloc
=no
16032 rm -f core conftest.err conftest.
$ac_objext \
16033 conftest
$ac_exeext conftest.
$ac_ext
16034 LIBS
=$ac_check_lib_save_LIBS
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
16037 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
16038 if test "x$ac_cv_lib_dmalloc_malloc" = xyes
; then :
16040 LIBS
="${LIBS} -ldmalloc"
16042 $as_echo "#define DMALLOC 1" >>confdefs.h
16046 as_fn_error $?
"dmalloc library not found." "$LINENO" 5
16051 as_fn_error $?
"dmalloc headers not found." "$LINENO" 5
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
16059 $as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
16060 if ${ac_cv_lib_ssl_CRYPTO_mem_ctrl+:} false
; then :
16061 $as_echo_n "(cached) " >&6
16063 ac_check_lib_save_LIBS
=$LIBS
16065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16068 /* Override any GCC internal prototype to avoid an error.
16069 Use char because int might match the return type of a GCC
16070 builtin and then its argument prototype would still apply. */
16074 char CRYPTO_mem_ctrl ();
16078 return CRYPTO_mem_ctrl ();
16083 if ac_fn_c_try_link
"$LINENO"; then :
16084 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=yes
16086 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=no
16088 rm -f core conftest.err conftest.
$ac_objext \
16089 conftest
$ac_exeext conftest.
$ac_ext
16090 LIBS
=$ac_check_lib_save_LIBS
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
16093 $as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
16094 if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = xyes
; then :
16097 $as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
16100 $as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
16103 as_fn_error $?
"Memory Debugging function in OpenSSL library not found." "$LINENO" 5
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
16113 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
16115 if test -n "$PKCS11_HELPER_CFLAGS"; then
16116 pkg_cv_PKCS11_HELPER_CFLAGS
="$PKCS11_HELPER_CFLAGS"
16117 elif test -n "$PKG_CONFIG"; then
16118 if test -n "$PKG_CONFIG" && \
16119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
16120 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
16122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16123 test $ac_status = 0; }; then
16124 pkg_cv_PKCS11_HELPER_CFLAGS
=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
16125 test "x$?" != "x0" && pkg_failed
=yes
16132 if test -n "$PKCS11_HELPER_LIBS"; then
16133 pkg_cv_PKCS11_HELPER_LIBS
="$PKCS11_HELPER_LIBS"
16134 elif test -n "$PKG_CONFIG"; then
16135 if test -n "$PKG_CONFIG" && \
16136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
16137 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
16139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16140 test $ac_status = 0; }; then
16141 pkg_cv_PKCS11_HELPER_LIBS
=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
16142 test "x$?" != "x0" && pkg_failed
=yes
16152 if test $pkg_failed = yes; then
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154 $as_echo "no" >&6; }
16156 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16157 _pkg_short_errors_supported
=yes
16159 _pkg_short_errors_supported
=no
16161 if test $_pkg_short_errors_supported = yes; then
16162 PKCS11_HELPER_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
16164 PKCS11_HELPER_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
16166 # Put the nasty error message in config.log where it belongs
16167 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
16171 elif test $pkg_failed = untried
; then
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16177 PKCS11_HELPER_CFLAGS
=$pkg_cv_PKCS11_HELPER_CFLAGS
16178 PKCS11_HELPER_LIBS
=$pkg_cv_PKCS11_HELPER_LIBS
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16180 $as_echo "yes" >&6; }
16181 have_pkcs11_helper
="yes"
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5
16187 $as_echo_n "checking for OPENSSL_CRYPTO... " >&6; }
16189 if test -n "$OPENSSL_CRYPTO_CFLAGS"; then
16190 pkg_cv_OPENSSL_CRYPTO_CFLAGS
="$OPENSSL_CRYPTO_CFLAGS"
16191 elif test -n "$PKG_CONFIG"; then
16192 if test -n "$PKG_CONFIG" && \
16193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
16194 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
16196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16197 test $ac_status = 0; }; then
16198 pkg_cv_OPENSSL_CRYPTO_CFLAGS
=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null`
16199 test "x$?" != "x0" && pkg_failed
=yes
16206 if test -n "$OPENSSL_CRYPTO_LIBS"; then
16207 pkg_cv_OPENSSL_CRYPTO_LIBS
="$OPENSSL_CRYPTO_LIBS"
16208 elif test -n "$PKG_CONFIG"; then
16209 if test -n "$PKG_CONFIG" && \
16210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
16211 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
16213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16214 test $ac_status = 0; }; then
16215 pkg_cv_OPENSSL_CRYPTO_LIBS
=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null`
16216 test "x$?" != "x0" && pkg_failed
=yes
16226 if test $pkg_failed = yes; then
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16228 $as_echo "no" >&6; }
16230 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16231 _pkg_short_errors_supported
=yes
16233 _pkg_short_errors_supported
=no
16235 if test $_pkg_short_errors_supported = yes; then
16236 OPENSSL_CRYPTO_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
16238 OPENSSL_CRYPTO_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
16240 # Put the nasty error message in config.log where it belongs
16241 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
16244 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
16245 if ${ac_cv_lib_crypto_RSA_new+:} false
; then :
16246 $as_echo_n "(cached) " >&6
16248 ac_check_lib_save_LIBS
=$LIBS
16249 LIBS
="-lcrypto $LIBS"
16250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16253 /* Override any GCC internal prototype to avoid an error.
16254 Use char because int might match the return type of a GCC
16255 builtin and then its argument prototype would still apply. */
16268 if ac_fn_c_try_link
"$LINENO"; then :
16269 ac_cv_lib_crypto_RSA_new
=yes
16271 ac_cv_lib_crypto_RSA_new
=no
16273 rm -f core conftest.err conftest.
$ac_objext \
16274 conftest
$ac_exeext conftest.
$ac_ext
16275 LIBS
=$ac_check_lib_save_LIBS
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
16278 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
16279 if test "x$ac_cv_lib_crypto_RSA_new" = xyes
; then :
16281 have_openssl_crypto
="yes"
16282 OPENSSL_CRYPTO_LIBS
="-lcrypto"
16288 elif test $pkg_failed = untried
; then
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290 $as_echo "no" >&6; }
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
16292 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
16293 if ${ac_cv_lib_crypto_RSA_new+:} false
; then :
16294 $as_echo_n "(cached) " >&6
16296 ac_check_lib_save_LIBS
=$LIBS
16297 LIBS
="-lcrypto $LIBS"
16298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16301 /* Override any GCC internal prototype to avoid an error.
16302 Use char because int might match the return type of a GCC
16303 builtin and then its argument prototype would still apply. */
16316 if ac_fn_c_try_link
"$LINENO"; then :
16317 ac_cv_lib_crypto_RSA_new
=yes
16319 ac_cv_lib_crypto_RSA_new
=no
16321 rm -f core conftest.err conftest.
$ac_objext \
16322 conftest
$ac_exeext conftest.
$ac_ext
16323 LIBS
=$ac_check_lib_save_LIBS
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
16326 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
16327 if test "x$ac_cv_lib_crypto_RSA_new" = xyes
; then :
16329 have_openssl_crypto
="yes"
16330 OPENSSL_CRYPTO_LIBS
="-lcrypto"
16337 OPENSSL_CRYPTO_CFLAGS
=$pkg_cv_OPENSSL_CRYPTO_CFLAGS
16338 OPENSSL_CRYPTO_LIBS
=$pkg_cv_OPENSSL_CRYPTO_LIBS
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16340 $as_echo "yes" >&6; }
16341 have_openssl_crypto
="yes"
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5
16347 $as_echo_n "checking for OPENSSL_SSL... " >&6; }
16349 if test -n "$OPENSSL_SSL_CFLAGS"; then
16350 pkg_cv_OPENSSL_SSL_CFLAGS
="$OPENSSL_SSL_CFLAGS"
16351 elif test -n "$PKG_CONFIG"; then
16352 if test -n "$PKG_CONFIG" && \
16353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
16354 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
16356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16357 test $ac_status = 0; }; then
16358 pkg_cv_OPENSSL_SSL_CFLAGS
=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null`
16359 test "x$?" != "x0" && pkg_failed
=yes
16366 if test -n "$OPENSSL_SSL_LIBS"; then
16367 pkg_cv_OPENSSL_SSL_LIBS
="$OPENSSL_SSL_LIBS"
16368 elif test -n "$PKG_CONFIG"; then
16369 if test -n "$PKG_CONFIG" && \
16370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
16371 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
16373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16374 test $ac_status = 0; }; then
16375 pkg_cv_OPENSSL_SSL_LIBS
=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null`
16376 test "x$?" != "x0" && pkg_failed
=yes
16386 if test $pkg_failed = yes; then
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16388 $as_echo "no" >&6; }
16390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16391 _pkg_short_errors_supported
=yes
16393 _pkg_short_errors_supported
=no
16395 if test $_pkg_short_errors_supported = yes; then
16396 OPENSSL_SSL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
16398 OPENSSL_SSL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
16400 # Put the nasty error message in config.log where it belongs
16401 echo "$OPENSSL_SSL_PKG_ERRORS" >&5
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
16404 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
16405 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false
; then :
16406 $as_echo_n "(cached) " >&6
16408 ac_check_lib_save_LIBS
=$LIBS
16409 LIBS
="-lssl -lcrypto
16411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16414 /* Override any GCC internal prototype to avoid an error.
16415 Use char because int might match the return type of a GCC
16416 builtin and then its argument prototype would still apply. */
16420 char SSL_CTX_new ();
16424 return SSL_CTX_new ();
16429 if ac_fn_c_try_link
"$LINENO"; then :
16430 ac_cv_lib_ssl_SSL_CTX_new
=yes
16432 ac_cv_lib_ssl_SSL_CTX_new
=no
16434 rm -f core conftest.err conftest.
$ac_objext \
16435 conftest
$ac_exeext conftest.
$ac_ext
16436 LIBS
=$ac_check_lib_save_LIBS
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
16439 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
16440 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
; then :
16442 have_openssl_ssl
="yes"
16443 OPENSSL_SSL_LIBS
="-lssl"
16448 elif test $pkg_failed = untried
; then
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16450 $as_echo "no" >&6; }
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
16452 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
16453 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false
; then :
16454 $as_echo_n "(cached) " >&6
16456 ac_check_lib_save_LIBS
=$LIBS
16457 LIBS
="-lssl -lcrypto
16459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16462 /* Override any GCC internal prototype to avoid an error.
16463 Use char because int might match the return type of a GCC
16464 builtin and then its argument prototype would still apply. */
16468 char SSL_CTX_new ();
16472 return SSL_CTX_new ();
16477 if ac_fn_c_try_link
"$LINENO"; then :
16478 ac_cv_lib_ssl_SSL_CTX_new
=yes
16480 ac_cv_lib_ssl_SSL_CTX_new
=no
16482 rm -f core conftest.err conftest.
$ac_objext \
16483 conftest
$ac_exeext conftest.
$ac_ext
16484 LIBS
=$ac_check_lib_save_LIBS
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
16487 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
16488 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
; then :
16490 have_openssl_ssl
="yes"
16491 OPENSSL_SSL_LIBS
="-lssl"
16497 OPENSSL_SSL_CFLAGS
=$pkg_cv_OPENSSL_SSL_CFLAGS
16498 OPENSSL_SSL_LIBS
=$pkg_cv_OPENSSL_SSL_LIBS
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16500 $as_echo "yes" >&6; }
16501 have_openssl_ssl
="yes"
16504 if test "${have_openssl_crypto}" = "yes"; then
16505 saved_CFLAGS
="${CFLAGS}"
16506 saved_LIBS
="${LIBS}"
16507 CFLAGS
="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
16508 LIBS
="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
16509 for ac_func
in EVP_CIPHER_CTX_set_key_length
16511 ac_fn_c_check_func
"$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
16512 if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = xyes
; then :
16513 cat >>confdefs.h
<<_ACEOF
16514 #define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
16520 have_openssl_engine
="yes"
16522 ENGINE_load_builtin_engines \
16523 ENGINE_register_all_complete \
16527 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16528 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16529 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16530 cat >>confdefs.h
<<_ACEOF
16531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16535 have_openssl_engine
="no"; break
16541 CFLAGS
="${saved_CFLAGS}"
16542 LIBS
="${saved_LIBS}"
16547 have_polarssl_ssl
="yes"
16548 have_polarssl_crypto
="yes"
16549 if test -z "${POLARSSL_LIBS}"; then
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
16551 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
16552 if ${ac_cv_lib_polarssl_ssl_init+:} false
; then :
16553 $as_echo_n "(cached) " >&6
16555 ac_check_lib_save_LIBS
=$LIBS
16556 LIBS
="-lpolarssl ${PKCS11_HELPER_LIBS}
16558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16561 /* Override any GCC internal prototype to avoid an error.
16562 Use char because int might match the return type of a GCC
16563 builtin and then its argument prototype would still apply. */
16571 return ssl_init ();
16576 if ac_fn_c_try_link
"$LINENO"; then :
16577 ac_cv_lib_polarssl_ssl_init
=yes
16579 ac_cv_lib_polarssl_ssl_init
=no
16581 rm -f core conftest.err conftest.
$ac_objext \
16582 conftest
$ac_exeext conftest.
$ac_ext
16583 LIBS
=$ac_check_lib_save_LIBS
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
16586 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
16587 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes
; then :
16588 POLARSSL_LIBS
="-lpolarssl"
16591 have_polarssl_ssl
="no"
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5
16593 $as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; }
16594 if ${ac_cv_lib_polarssl_aes_crypt_cbc+:} false
; then :
16595 $as_echo_n "(cached) " >&6
16597 ac_check_lib_save_LIBS
=$LIBS
16598 LIBS
="-lpolarssl ${PKCS11_HELPER_LIBS}
16600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16603 /* Override any GCC internal prototype to avoid an error.
16604 Use char because int might match the return type of a GCC
16605 builtin and then its argument prototype would still apply. */
16609 char aes_crypt_cbc ();
16613 return aes_crypt_cbc ();
16618 if ac_fn_c_try_link
"$LINENO"; then :
16619 ac_cv_lib_polarssl_aes_crypt_cbc
=yes
16621 ac_cv_lib_polarssl_aes_crypt_cbc
=no
16623 rm -f core conftest.err conftest.
$ac_objext \
16624 conftest
$ac_exeext conftest.
$ac_ext
16625 LIBS
=$ac_check_lib_save_LIBS
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5
16628 $as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; }
16629 if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = xyes
; then :
16630 cat >>confdefs.h
<<_ACEOF
16631 #define HAVE_LIBPOLARSSL 1
16634 LIBS
="-lpolarssl $LIBS"
16637 have_polarssl_crypto
="no"
16645 if test "${with_crypto_library}" = "polarssl" ; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5
16647 $as_echo_n "checking polarssl version... " >&6; }
16648 old_CFLAGS
="${CFLAGS}"
16649 CFLAGS
="${POLARSSL_CFLAGS} ${CFLAGS}"
16650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h. */
16653 #include <polarssl/version.h>
16659 #if POLARSSL_VERSION_NUMBER < 0x01030800 || POLARSSL_VERSION_NUMBER >= 0x01040000
16660 #error invalid version
16668 if ac_fn_c_try_compile
"$LINENO"; then :
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16670 $as_echo "ok" >&6; }
16672 as_fn_error $?
"PolarSSL 1.3.x required and must be 1.3.8 or later" "$LINENO" 5
16675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16677 polarssl_with_pkcs11
="no"
16678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16681 #include <polarssl/config.h>
16687 #ifndef POLARSSL_PKCS11_C
16688 #error pkcs11 wrapper missing
16696 if ac_fn_c_try_compile
"$LINENO"; then :
16697 polarssl_with_pkcs11
="yes"
16699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16700 CFLAGS
="${old_CFLAGS}"
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl pkcs11 support" >&5
16703 $as_echo_n "checking polarssl pkcs11 support... " >&6; }
16704 if test "${enable_pkcs11}" = "yes"; then
16705 if test "${polarssl_with_pkcs11}" = "yes"; then
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16707 $as_echo "ok" >&6; }
16709 as_fn_error $?
"polarssl has no pkcs11 wrapper compiled in" "$LINENO" 5
16712 if test "${polarssl_with_pkcs11}" != "yes"; then
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16714 $as_echo "ok" >&6; }
16716 as_fn_error $?
"PolarSSL compiled with PKCS11, while OpenVPN is not" "$LINENO" 5
16725 if test -z "${LZO_LIBS}"; then
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
16727 $as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
16728 if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false
; then :
16729 $as_echo_n "(cached) " >&6
16731 ac_check_lib_save_LIBS
=$LIBS
16732 LIBS
="-llzo2 $LIBS"
16733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16736 /* Override any GCC internal prototype to avoid an error.
16737 Use char because int might match the return type of a GCC
16738 builtin and then its argument prototype would still apply. */
16742 char lzo1x_1_15_compress ();
16746 return lzo1x_1_15_compress ();
16751 if ac_fn_c_try_link
"$LINENO"; then :
16752 ac_cv_lib_lzo2_lzo1x_1_15_compress
=yes
16754 ac_cv_lib_lzo2_lzo1x_1_15_compress
=no
16756 rm -f core conftest.err conftest.
$ac_objext \
16757 conftest
$ac_exeext conftest.
$ac_ext
16758 LIBS
=$ac_check_lib_save_LIBS
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
16761 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
16762 if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes
; then :
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
16766 $as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
16767 if ${ac_cv_lib_lzo_lzo1x_1_15_compress+:} false
; then :
16768 $as_echo_n "(cached) " >&6
16770 ac_check_lib_save_LIBS
=$LIBS
16772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16773 /* end confdefs.h. */
16775 /* Override any GCC internal prototype to avoid an error.
16776 Use char because int might match the return type of a GCC
16777 builtin and then its argument prototype would still apply. */
16781 char lzo1x_1_15_compress ();
16785 return lzo1x_1_15_compress ();
16790 if ac_fn_c_try_link
"$LINENO"; then :
16791 ac_cv_lib_lzo_lzo1x_1_15_compress
=yes
16793 ac_cv_lib_lzo_lzo1x_1_15_compress
=no
16795 rm -f core conftest.err conftest.
$ac_objext \
16796 conftest
$ac_exeext conftest.
$ac_ext
16797 LIBS
=$ac_check_lib_save_LIBS
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
16800 $as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
16801 if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = xyes
; then :
16812 if test "${have_lzo}" = "yes"; then
16813 saved_CFLAGS
="${CFLAGS}"
16814 CFLAGS
="${CFLAGS} ${LZO_CFLAGS}"
16815 for ac_header
in lzo
/lzoutil.h
16817 ac_fn_c_check_header_mongrel
"$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
16818 if test "x$ac_cv_header_lzo_lzoutil_h" = xyes
; then :
16819 cat >>confdefs.h
<<_ACEOF
16820 #define HAVE_LZO_LZOUTIL_H 1
16824 for ac_header
in lzoutil.h
16826 ac_fn_c_check_header_mongrel
"$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
16827 if test "x$ac_cv_header_lzoutil_h" = xyes
; then :
16828 cat >>confdefs.h
<<_ACEOF
16829 #define HAVE_LZOUTIL_H 1
16833 as_fn_error $?
"lzoutil.h is missing" "$LINENO" 5
16844 for ac_header
in lzo
/lzo1x.h
16846 ac_fn_c_check_header_mongrel
"$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
16847 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes
; then :
16848 cat >>confdefs.h
<<_ACEOF
16849 #define HAVE_LZO_LZO1X_H 1
16853 for ac_header
in lzo1x.h
16855 ac_fn_c_check_header_mongrel
"$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
16856 if test "x$ac_cv_header_lzo1x_h" = xyes
; then :
16857 cat >>confdefs.h
<<_ACEOF
16858 #define HAVE_LZO1X_H 1
16862 as_fn_error $?
"lzo1x.h is missing" "$LINENO" 5
16873 CFLAGS
="${saved_CFLAGS}"
16878 if test "$enable_systemd" = "yes" ; then
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16882 $as_echo_n "checking for libsystemd... " >&6; }
16884 if test -n "$libsystemd_CFLAGS"; then
16885 pkg_cv_libsystemd_CFLAGS
="$libsystemd_CFLAGS"
16886 elif test -n "$PKG_CONFIG"; then
16887 if test -n "$PKG_CONFIG" && \
16888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
16889 ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
16891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16892 test $ac_status = 0; }; then
16893 pkg_cv_libsystemd_CFLAGS
=`$PKG_CONFIG --cflags "systemd libsystemd" 2>/dev/null`
16894 test "x$?" != "x0" && pkg_failed
=yes
16901 if test -n "$libsystemd_LIBS"; then
16902 pkg_cv_libsystemd_LIBS
="$libsystemd_LIBS"
16903 elif test -n "$PKG_CONFIG"; then
16904 if test -n "$PKG_CONFIG" && \
16905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
16906 ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
16908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16909 test $ac_status = 0; }; then
16910 pkg_cv_libsystemd_LIBS
=`$PKG_CONFIG --libs "systemd libsystemd" 2>/dev/null`
16911 test "x$?" != "x0" && pkg_failed
=yes
16921 if test $pkg_failed = yes; then
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16923 $as_echo "no" >&6; }
16925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16926 _pkg_short_errors_supported
=yes
16928 _pkg_short_errors_supported
=no
16930 if test $_pkg_short_errors_supported = yes; then
16931 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd libsystemd" 2>&1`
16933 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "systemd libsystemd" 2>&1`
16935 # Put the nasty error message in config.log where it belongs
16936 echo "$libsystemd_PKG_ERRORS" >&5
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16941 $as_echo_n "checking for libsystemd... " >&6; }
16943 if test -n "$libsystemd_CFLAGS"; then
16944 pkg_cv_libsystemd_CFLAGS
="$libsystemd_CFLAGS"
16945 elif test -n "$PKG_CONFIG"; then
16946 if test -n "$PKG_CONFIG" && \
16947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16948 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16951 test $ac_status = 0; }; then
16952 pkg_cv_libsystemd_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16953 test "x$?" != "x0" && pkg_failed
=yes
16960 if test -n "$libsystemd_LIBS"; then
16961 pkg_cv_libsystemd_LIBS
="$libsystemd_LIBS"
16962 elif test -n "$PKG_CONFIG"; then
16963 if test -n "$PKG_CONFIG" && \
16964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16965 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16968 test $ac_status = 0; }; then
16969 pkg_cv_libsystemd_LIBS
=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16970 test "x$?" != "x0" && pkg_failed
=yes
16980 if test $pkg_failed = yes; then
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16982 $as_echo "no" >&6; }
16984 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16985 _pkg_short_errors_supported
=yes
16987 _pkg_short_errors_supported
=no
16989 if test $_pkg_short_errors_supported = yes; then
16990 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16992 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16994 # Put the nasty error message in config.log where it belongs
16995 echo "$libsystemd_PKG_ERRORS" >&5
16997 as_fn_error $?
"Package requirements (libsystemd-daemon) were not met:
16999 $libsystemd_PKG_ERRORS
17001 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17002 installed software in a non-standard prefix.
17004 Alternatively, you may set the environment variables libsystemd_CFLAGS
17005 and libsystemd_LIBS to avoid the need to call pkg-config.
17006 See the pkg-config man page for more details." "$LINENO" 5
17007 elif test $pkg_failed = untried
; then
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17009 $as_echo "no" >&6; }
17010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17012 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
17013 is in your PATH or set the PKG_CONFIG environment variable to the full
17014 path to pkg-config.
17016 Alternatively, you may set the environment variables libsystemd_CFLAGS
17017 and libsystemd_LIBS to avoid the need to call pkg-config.
17018 See the pkg-config man page for more details.
17020 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17021 See \`config.log' for more details" "$LINENO" 5; }
17023 libsystemd_CFLAGS
=$pkg_cv_libsystemd_CFLAGS
17024 libsystemd_LIBS
=$pkg_cv_libsystemd_LIBS
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17026 $as_echo "yes" >&6; }
17030 elif test $pkg_failed = untried
; then
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
17036 $as_echo_n "checking for libsystemd... " >&6; }
17038 if test -n "$libsystemd_CFLAGS"; then
17039 pkg_cv_libsystemd_CFLAGS
="$libsystemd_CFLAGS"
17040 elif test -n "$PKG_CONFIG"; then
17041 if test -n "$PKG_CONFIG" && \
17042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17043 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17046 test $ac_status = 0; }; then
17047 pkg_cv_libsystemd_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
17048 test "x$?" != "x0" && pkg_failed
=yes
17055 if test -n "$libsystemd_LIBS"; then
17056 pkg_cv_libsystemd_LIBS
="$libsystemd_LIBS"
17057 elif test -n "$PKG_CONFIG"; then
17058 if test -n "$PKG_CONFIG" && \
17059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17060 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17063 test $ac_status = 0; }; then
17064 pkg_cv_libsystemd_LIBS
=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
17065 test "x$?" != "x0" && pkg_failed
=yes
17075 if test $pkg_failed = yes; then
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077 $as_echo "no" >&6; }
17079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17080 _pkg_short_errors_supported
=yes
17082 _pkg_short_errors_supported
=no
17084 if test $_pkg_short_errors_supported = yes; then
17085 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
17087 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
17089 # Put the nasty error message in config.log where it belongs
17090 echo "$libsystemd_PKG_ERRORS" >&5
17092 as_fn_error $?
"Package requirements (libsystemd-daemon) were not met:
17094 $libsystemd_PKG_ERRORS
17096 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17097 installed software in a non-standard prefix.
17099 Alternatively, you may set the environment variables libsystemd_CFLAGS
17100 and libsystemd_LIBS to avoid the need to call pkg-config.
17101 See the pkg-config man page for more details." "$LINENO" 5
17102 elif test $pkg_failed = untried
; then
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104 $as_echo "no" >&6; }
17105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17107 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
17108 is in your PATH or set the PKG_CONFIG environment variable to the full
17109 path to pkg-config.
17111 Alternatively, you may set the environment variables libsystemd_CFLAGS
17112 and libsystemd_LIBS to avoid the need to call pkg-config.
17113 See the pkg-config man page for more details.
17115 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17116 See \`config.log' for more details" "$LINENO" 5; }
17118 libsystemd_CFLAGS
=$pkg_cv_libsystemd_CFLAGS
17119 libsystemd_LIBS
=$pkg_cv_libsystemd_LIBS
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17121 $as_echo "yes" >&6; }
17126 libsystemd_CFLAGS
=$pkg_cv_libsystemd_CFLAGS
17127 libsystemd_LIBS
=$pkg_cv_libsystemd_LIBS
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17129 $as_echo "yes" >&6; }
17132 for ac_header
in systemd
/sd-daemon.h
17134 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
17135 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
17136 cat >>confdefs.h
<<_ACEOF
17137 #define HAVE_SYSTEMD_SD_DAEMON_H 1
17142 as_fn_error $?
"systemd development headers not found." "$LINENO" 5
17149 saved_LIBS
="${LIBS}"
17150 LIBS
="${LIBS} ${libsystemd_LIBS}"
17151 for ac_func
in sd_booted
17153 ac_fn_c_check_func
"$LINENO" "sd_booted" "ac_cv_func_sd_booted"
17154 if test "x$ac_cv_func_sd_booted" = xyes
; then :
17155 cat >>confdefs.h
<<_ACEOF
17156 #define HAVE_SD_BOOTED 1
17160 as_fn_error $?
"systemd library is missing sd_booted()" "$LINENO" 5
17164 OPTIONAL_SYSTEMD_LIBS
="${libsystemd_LIBS}"
17166 $as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
17168 LIBS
="${saved_LIBS}"
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
17173 $as_echo_n "checking git checkout... " >&6; }
17175 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
17177 $as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
17182 $as_echo "${GIT_CHECKOUT}" >&6; }
17184 if test -n "${SP_PLATFORM_WINDOWS}"; then
17186 cat >>confdefs.h
<<_ACEOF
17187 #define PATH_SEPARATOR '\\\\'
17191 cat >>confdefs.h
<<_ACEOF
17192 #define PATH_SEPARATOR_STR "\\\\"
17197 cat >>confdefs.h
<<_ACEOF
17198 #define PATH_SEPARATOR '/'
17202 cat >>confdefs.h
<<_ACEOF
17203 #define PATH_SEPARATOR_STR "/"
17208 if test "${enable_x509_alt_username}" = "yes"; then
17209 if test "${with_crypto_library}" = "polarssl" ; then
17210 as_fn_error $?
"PolarSSL does not support the --x509-username-field feature" "$LINENO" 5
17214 $as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
17218 test "${ac_cv_header_sys_uio_h}" = "yes" &&
17219 $as_echo "#define HAVE_IOVEC 1" >>confdefs.h
17221 test "${enable_multi}" = "yes" &&
17222 $as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
17224 test "${enable_server}" = "no" &&
17225 $as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
17227 test "${enable_management}" = "yes" &&
17228 $as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
17230 test "${enable_socks}" = "yes" &&
17231 $as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
17233 test "${enable_http_proxy}" = "yes" &&
17234 $as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
17236 test "${enable_multihome}" = "yes" &&
17237 $as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
17239 test "${enable_debug}" = "yes" &&
17240 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
17242 test "${enable_small}" = "yes" &&
17243 $as_echo "#define ENABLE_SMALL 1" >>confdefs.h
17245 test "${enable_fragment}" = "yes" &&
17246 $as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
17248 test "${enable_port_share}" = "yes" &&
17249 $as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
17251 test "${enable_def_auth}" = "yes" &&
17252 $as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
17254 test "${enable_pf}" = "yes" &&
17255 $as_echo "#define ENABLE_PF 1" >>confdefs.h
17257 test "${enable_strict_options}" = "yes" &&
17258 $as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
17261 case "${with_crypto_library}" in
17263 have_crypto_crypto
="${have_openssl_crypto}"
17264 have_crypto_ssl
="${have_openssl_ssl}"
17265 CRYPTO_CRYPTO_CFLAGS
="${OPENSSL_CRYPTO_CFLAGS}"
17266 CRYPTO_CRYPTO_LIBS
="${OPENSSL_CRYPTO_LIBS}"
17267 CRYPTO_SSL_CFLAGS
="${OPENSSL_SSL_CFLAGS}"
17268 CRYPTO_SSL_LIBS
="${OPENSSL_SSL_LIBS}"
17270 $as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
17272 test "${have_openssl_engine}" = "yes" &&
17273 $as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
17277 have_crypto_crypto
="${have_polarssl_crypto}"
17278 have_crypto_ssl
="${have_polarssl_ssl}"
17279 CRYPTO_CRYPTO_CFLAGS
="${POLARSSL_CFLAGS}"
17280 CRYPTO_CRYPTO_LIBS
="${POLARSSL_LIBS}"
17282 $as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h
17287 if test "${enable_ssl}" = "yes"; then
17288 test "${enable_crypto}" != "yes" && as_fn_error $?
"crypto must be enabled for ssl" "$LINENO" 5
17289 test "${have_crypto_ssl}" != "yes" && as_fn_error $?
"${with_ssl_library} ssl is required but missing" "$LINENO" 5
17290 OPTIONAL_CRYPTO_CFLAGS
="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
17291 OPTIONAL_CRYPTO_LIBS
="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
17293 $as_echo "#define ENABLE_SSL 1" >>confdefs.h
17297 if test "${enable_crypto}" = "yes"; then
17298 test "${have_crypto_crypto}" != "yes" && as_fn_error $?
"${with_crypto_library} crypto is required but missing" "$LINENO" 5
17299 test "${enable_crypto_ofb_cfb}" = "yes" &&
17300 $as_echo "#define ENABLE_OFB_CFB_MODE 1" >>confdefs.h
17302 OPTIONAL_CRYPTO_CFLAGS
="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
17303 OPTIONAL_CRYPTO_LIBS
="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
17305 $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
17309 if test "${enable_plugins}" = "yes"; then
17310 OPTIONAL_DL_LIBS
="${DL_LIBS}"
17312 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
17315 enable_plugin_auth_pam
="no"
17316 enable_plugin_down_root
="no"
17319 if test "${enable_iproute2}" = "yes"; then
17320 test -z "${IPROUTE}" && as_fn_error $?
"ip utility is required but missing" "$LINENO" 5
17322 $as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
17325 if test "${WIN32}" != "yes"; then
17326 test -z "${ROUTE}" && as_fn_error $?
"route utility is required but missing" "$LINENO" 5
17327 test -z "${IFCONFIG}" && as_fn_error $?
"ifconfig utility is required but missing" "$LINENO" 5
17331 if test "${enable_selinux}" = "yes"; then
17332 test -z "${SELINUX_LIBS}" && as_fn_error $?
"libselinux required but missing" "$LINENO" 5
17333 OPTIONAL_SELINUX_LIBS
="${SELINUX_LIBS}"
17335 $as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
17339 if test "${enable_lzo}" = "yes"; then
17340 test "${have_lzo}" != "yes" && as_fn_error $?
"lzo enabled but missing" "$LINENO" 5
17341 OPTIONAL_LZO_CFLAGS
="${LZO_CFLAGS}"
17342 OPTIONAL_LZO_LIBS
="${LZO_LIBS}"
17344 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
17347 if test "${enable_lzo_stub}" = "yes"; then
17348 test "${enable_lzo}" = "yes" && as_fn_error $?
"Cannot have both lzo stub and lzo enabled" "$LINENO" 5
17350 $as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h
17353 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
17357 if test "${enable_pkcs11}" = "yes"; then
17358 test "${have_pkcs11_helper}" != "yes" && as_fn_error $?
"PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
17359 test "${enable_ssl}" != "yes" && as_fn_error $?
"PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5
17360 OPTIONAL_PKCS11_HELPER_CFLAGS
="${PKCS11_HELPER_CFLAGS}"
17361 OPTIONAL_PKCS11_HELPER_LIBS
="${PKCS11_HELPER_LIBS}"
17363 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11KIT" >&5
17368 $as_echo_n "checking for P11KIT... " >&6; }
17370 if test -n "$P11KIT_CFLAGS"; then
17371 pkg_cv_P11KIT_CFLAGS
="$P11KIT_CFLAGS"
17372 elif test -n "$PKG_CONFIG"; then
17373 if test -n "$PKG_CONFIG" && \
17374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1\""; } >&5
17375 ($PKG_CONFIG --exists --print-errors "p11-kit-1") 2>&5
17377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17378 test $ac_status = 0; }; then
17379 pkg_cv_P11KIT_CFLAGS
=`$PKG_CONFIG --cflags "p11-kit-1" 2>/dev/null`
17380 test "x$?" != "x0" && pkg_failed
=yes
17387 if test -n "$P11KIT_LIBS"; then
17388 pkg_cv_P11KIT_LIBS
="$P11KIT_LIBS"
17389 elif test -n "$PKG_CONFIG"; then
17390 if test -n "$PKG_CONFIG" && \
17391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1\""; } >&5
17392 ($PKG_CONFIG --exists --print-errors "p11-kit-1") 2>&5
17394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17395 test $ac_status = 0; }; then
17396 pkg_cv_P11KIT_LIBS
=`$PKG_CONFIG --libs "p11-kit-1" 2>/dev/null`
17397 test "x$?" != "x0" && pkg_failed
=yes
17407 if test $pkg_failed = yes; then
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17409 $as_echo "no" >&6; }
17411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17412 _pkg_short_errors_supported
=yes
17414 _pkg_short_errors_supported
=no
17416 if test $_pkg_short_errors_supported = yes; then
17417 P11KIT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "p11-kit-1" 2>&1`
17419 P11KIT_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "p11-kit-1" 2>&1`
17421 # Put the nasty error message in config.log where it belongs
17422 echo "$P11KIT_PKG_ERRORS" >&5
17426 elif test $pkg_failed = untried
; then
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17428 $as_echo "no" >&6; }
17432 P11KIT_CFLAGS
=$pkg_cv_P11KIT_CFLAGS
17433 P11KIT_LIBS
=$pkg_cv_P11KIT_LIBS
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17435 $as_echo "yes" >&6; }
17436 proxy_module
="`$PKG_CONFIG --variable=proxy_module p11-kit-1`"
17438 cat >>confdefs.h
<<_ACEOF
17439 #define DEFAULT_PKCS11_MODULE "${proxy_module}"
17445 if test "${enable_pedantic}" = "yes"; then
17446 enable_strict
="yes"
17447 CFLAGS
="${CFLAGS} -pedantic"
17448 test "${WIN32}" != "yes" && CFLAGS
="${CFLAGS} -ansi"
17450 if test "${enable_strict}" = "yes"; then
17451 CFLAGS
="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
17454 if test "${WIN32}" = "yes"; then
17455 test -z "${MAN2HTML}" && as_fn_error $?
"man2html is required for win32" "$LINENO" 5
17458 if test "${enable_plugin_auth_pam}" = "yes"; then
17459 PLUGIN_AUTH_PAM_CFLAGS
="${LIBPAM_CFLAGS}"
17460 if test "${enable_pam_dlopen}" = "yes"; then
17462 $as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
17464 PLUGIN_AUTH_PAM_LIBS
="${DL_LIBS}"
17466 test -z "${LIBPAM_LIBS}" && as_fn_error $?
"libpam required but missing" "$LINENO" 5
17467 PLUGIN_AUTH_PAM_LIBS
="${LIBPAM_LIBS}"
17471 CONFIGURE_DEFINES
="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
17473 cat >>confdefs.h
<<_ACEOF
17474 #define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
17478 TAP_WIN_COMPONENT_ID
="tap0901"
17479 TAP_WIN_MIN_MAJOR
="9"
17480 TAP_WIN_MIN_MINOR
="9"
17482 cat >>confdefs.h
<<_ACEOF
17483 #define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
17487 cat >>confdefs.h
<<_ACEOF
17488 #define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
17492 cat >>confdefs.h
<<_ACEOF
17493 #define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
17513 if test "${WIN32}" = "yes"; then
17521 if test "${GIT_CHECKOUT}" = "yes"; then
17523 GIT_CHECKOUT_FALSE
='#'
17525 GIT_CHECKOUT_TRUE
='#'
17526 GIT_CHECKOUT_FALSE
=
17529 if test "${enable_plugin_auth_pam}" = "yes"; then
17530 ENABLE_PLUGIN_AUTH_PAM_TRUE
=
17531 ENABLE_PLUGIN_AUTH_PAM_FALSE
='#'
17533 ENABLE_PLUGIN_AUTH_PAM_TRUE
='#'
17534 ENABLE_PLUGIN_AUTH_PAM_FALSE
=
17537 if test "${enable_plugin_down_root}" = "yes"; then
17538 ENABLE_PLUGIN_DOWN_ROOT_TRUE
=
17539 ENABLE_PLUGIN_DOWN_ROOT_FALSE
='#'
17541 ENABLE_PLUGIN_DOWN_ROOT_TRUE
='#'
17542 ENABLE_PLUGIN_DOWN_ROOT_FALSE
=
17546 plugindir
="${with_plugindir}"
17547 sampledir
="\$(docdir)/sample"
17551 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"
17553 ac_config_files
="$ac_config_files tests/t_client.sh"
17555 cat >confcache
<<\_ACEOF
17556 # This file is a shell script that caches the results of configure
17557 # tests run on this system so they can be shared between configure
17558 # scripts and configure runs, see configure's option --config-cache.
17559 # It is not useful on other systems. If it contains results you don't
17560 # want to keep, you may remove or edit it.
17562 # config.status only pays attention to the cache file if you give it
17563 # the --recheck option to rerun configure.
17565 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17566 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17567 # following values.
17571 # The following way of writing the cache mishandles newlines in values,
17572 # but we know of no workaround that is simple, portable, and efficient.
17573 # So, we kill variables containing newlines.
17574 # Ultrix sh set writes to stderr and can't be redirected directly,
17575 # and sets the high bit in the cache file unless we assign to the vars.
17577 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17578 eval ac_val
=\$
$ac_var
17582 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17586 _ | IFS | as_nl
) ;; #(
17587 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17588 *) { eval $ac_var=; unset $ac_var;} ;;
17594 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17595 *${as_nl}ac_space
=\
*)
17596 # `set' does not quote correctly, so add quotes: double-quote
17597 # substitution turns \\\\ into \\, and sed turns \\ into \.
17600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17603 # `set' quotes correctly as required by POSIX, so do not add quotes.
17604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17617 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17618 if test -w "$cache_file"; then
17619 if test "x$cache_file" != "x/dev/null"; then
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17621 $as_echo "$as_me: updating cache $cache_file" >&6;}
17622 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17623 cat confcache
>"$cache_file"
17625 case $cache_file in #(
17627 mv -f confcache
"$cache_file"$$
&&
17628 mv -f "$cache_file"$$
"$cache_file" ;; #(
17630 mv -f confcache
"$cache_file" ;;
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17636 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17641 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17642 # Let make expand exec_prefix.
17643 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17645 DEFS
=-DHAVE_CONFIG_H
17650 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17651 # 1. Remove the extension, and $U if already installed.
17652 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17653 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17655 # will be set to the directory where LIBOBJS objects are built.
17656 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17657 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17659 LIBOBJS
=$ac_libobjs
17661 LTLIBOBJS
=$ac_ltlibobjs
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17665 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17666 if test -n "$am_sleep_pid"; then
17667 # Hide warnings about reused PIDs.
17668 wait $am_sleep_pid 2>/dev
/null
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17671 $as_echo "done" >&6; }
17672 if test -n "$EXEEXT"; then
17674 am__EXEEXT_FALSE
='#'
17676 am__EXEEXT_TRUE
='#'
17680 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17681 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17685 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17688 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
17689 as_fn_error $?
"conditional \"WIN32\" was never defined.
17690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17692 if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
17693 as_fn_error $?
"conditional \"GIT_CHECKOUT\" was never defined.
17694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17696 if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
17697 as_fn_error $?
"conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
17698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17700 if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
17701 as_fn_error $?
"conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
17702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17705 : "${CONFIG_STATUS=./config.status}"
17707 ac_clean_files_save
=$ac_clean_files
17708 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17710 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17712 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17714 # Generated by $as_me.
17715 # Run this file to recreate the current configuration.
17716 # Compiler output produced by configure, useful for debugging
17717 # configure, is in config.log if it exists.
17720 ac_cs_recheck=false
17723 SHELL=\${CONFIG_SHELL-$SHELL}
17726 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17727 ## -------------------- ##
17728 ## M4sh Initialization. ##
17729 ## -------------------- ##
17731 # Be more Bourne compatible
17732 DUALCASE
=1; export DUALCASE
# for MKS sh
17733 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17737 # is contrary to our usage. Disable this feature.
17738 alias -g '${1+"$@"}'='"$@"'
17739 setopt NO_GLOB_SUBST
17741 case `(set -o) 2>/dev/null` in #(
17753 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17754 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17755 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17757 # Prefer a ksh shell builtin over an external printf program on Solaris,
17758 # but without wasting forks for bash or zsh.
17759 if test -z "$BASH_VERSION$ZSH_VERSION" \
17760 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17761 as_echo='print
-r --'
17762 as_echo_n='print
-rn --'
17763 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17764 as_echo='printf %s
\n'
17765 as_echo_n='printf %s
'
17767 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17768 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17769 as_echo_n='/usr
/ucb
/echo -n'
17771 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17772 as_echo_n_body='eval
17776 expr "X$arg" : "X\\(.*\\)$as_nl";
17777 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17779 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17781 export as_echo_n_body
17782 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17784 export as_echo_body
17785 as_echo='sh
-c $as_echo_body as_echo
'
17788 # The user is always right.
17789 if test "${PATH_SEPARATOR+set}" != set; then
17791 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17792 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17799 # We need space, tab and new line, in precisely that order. Quoting is
17800 # there to prevent editors from complaining about space-tab.
17801 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17802 # splitting by setting IFS to empty value.)
17805 # Find who we are. Look in the path if we contain no directory separator.
17808 *[\\/]* ) as_myself=$0 ;;
17809 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17810 for as_dir in $PATH
17813 test -z "$as_dir" && as_dir=.
17814 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17820 # We did not find ourselves, most probably we were run as `sh COMMAND'
17821 # in which case we are not to be found in the path.
17822 if test "x$as_myself" = x
; then
17825 if test ! -f "$as_myself"; then
17826 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17830 # Unset variables that we do not need and which cause bugs (e.g. in
17831 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17832 # suppresses any "Segmentation fault" message there. '((' could
17833 # trigger a bug in pdksh 5.2.14.
17834 for as_var
in BASH_ENV ENV MAIL MAILPATH
17835 do eval test x\
${$as_var+set} = xset \
17836 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17849 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17852 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17853 # ----------------------------------------
17854 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17855 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17856 # script with STATUS, using 1 if that was 0.
17859 as_status
=$1; test $as_status -eq 0 && as_status
=1
17861 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17862 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17864 $as_echo "$as_me: error: $2" >&2
17865 as_fn_exit
$as_status
17869 # as_fn_set_status STATUS
17870 # -----------------------
17871 # Set $? to STATUS, without forking.
17872 as_fn_set_status
()
17875 } # as_fn_set_status
17877 # as_fn_exit STATUS
17878 # -----------------
17879 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17883 as_fn_set_status
$1
17887 # as_fn_unset ax_cv_socklen_t_equiv
17888 # ---------------------------------
17889 # Portably unset VAR.
17892 { eval $1=; unset $1;}
17894 as_unset
=as_fn_unset
17895 # as_fn_append ax_cv_socklen_t_equiv VALUE
17896 # ----------------------------------------
17897 # Append the text in VALUE to the end of the definition contained in VAR. Take
17898 # advantage of any shell optimizations that allow amortized linear growth over
17899 # repeated appends, instead of the typical quadratic growth present in naive
17901 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17902 eval 'as_fn_append ()
17913 # as_fn_arith ARG...
17914 # ------------------
17915 # Perform arithmetic evaluation on the ARGs, and store the result in the
17916 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17917 # must be portable across $(()) and expr.
17918 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17919 eval 'as_fn_arith ()
17926 as_val
=`expr "$@" || test $? -eq 1`
17931 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17932 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17938 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17939 as_basename
=basename
17944 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17950 as_me
=`$as_basename -- "$0" ||
17951 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17952 X"$0" : 'X\(//\)$' \| \
17953 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17955 sed '/^.*\/\([^/][^/]*\)\/*$/{
17969 # Avoid depending upon Character Ranges.
17970 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17971 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17972 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17973 as_cr_digits
='0123456789'
17974 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17976 ECHO_C
= ECHO_N
= ECHO_T
=
17977 case `echo -n x` in #(((((
17979 case `echo 'xy\c'` in
17980 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17982 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17989 rm -f conf$$ conf$$.exe conf$$.
file
17990 if test -d conf$$.dir
; then
17991 rm -f conf$$.dir
/conf$$.
file
17994 mkdir conf$$.dir
2>/dev
/null
17996 if (echo >conf$$.
file) 2>/dev
/null
; then
17997 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17999 # ... but there are two gotchas:
18000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18002 # In both cases, we have to default to `cp -pR'.
18003 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18005 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18013 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18014 rmdir conf$$.dir
2>/dev
/null
18019 # Create "$as_dir" as a directory, including parents if necessary.
18024 -*) as_dir
=.
/$as_dir;;
18026 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18030 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18031 *) as_qdir
=$as_dir;;
18033 as_dirs
="'$as_qdir' $as_dirs"
18034 as_dir
=`$as_dirname -- "$as_dir" ||
18035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18036 X"$as_dir" : 'X\(//\)[^/]' \| \
18037 X"$as_dir" : 'X\(//\)$' \| \
18038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18039 $as_echo X"$as_dir" |
18040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18044 /^X\(\/\/\)[^/].*/{
18057 test -d "$as_dir" && break
18059 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18060 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18064 if mkdir
-p .
2>/dev
/null
; then
18065 as_mkdir_p
='mkdir -p "$as_dir"'
18067 test -d .
/-p && rmdir .
/-p
18072 # as_fn_executable_p FILE
18073 # -----------------------
18074 # Test if FILE is an executable regular file.
18075 as_fn_executable_p
()
18077 test -f "$1" && test -x "$1"
18078 } # as_fn_executable_p
18079 as_test_x
='test -x'
18080 as_executable_p
=as_fn_executable_p
18082 # Sed expression to map a string onto a valid CPP name.
18083 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18085 # Sed expression to map a string onto a valid variable name.
18086 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18090 ## ----------------------------------- ##
18091 ## Main body of $CONFIG_STATUS script. ##
18092 ## ----------------------------------- ##
18094 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18097 # Save the log message, to keep $0 and so on meaningful, and to
18098 # report actual input values of CONFIG_FILES etc. instead of their
18099 # values after options handling.
18101 This file was extended by OpenVPN $as_me 2.3.11, which was
18102 generated by GNU Autoconf 2.69. Invocation command line was
18104 CONFIG_FILES = $CONFIG_FILES
18105 CONFIG_HEADERS = $CONFIG_HEADERS
18106 CONFIG_LINKS = $CONFIG_LINKS
18107 CONFIG_COMMANDS = $CONFIG_COMMANDS
18110 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18115 case $ac_config_files in *"
18116 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18119 case $ac_config_headers in *"
18120 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18125 # Files that config.status was made for.
18126 config_files="$ac_config_files"
18127 config_headers="$ac_config_headers"
18128 config_commands="$ac_config_commands"
18132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18134 \`$as_me' instantiates files and other configuration actions
18135 from templates according to the current configuration. Unless the files
18136 and actions are specified as TAGs, all are instantiated by default.
18138 Usage: $0 [OPTION]... [TAG]...
18140 -h, --help print this help, then exit
18141 -V, --version print version number and configuration settings, then exit
18142 --config print configuration, then exit
18143 -q, --quiet, --silent
18144 do not print progress messages
18145 -d, --debug don't remove temporary files
18146 --recheck update $as_me by reconfiguring in the same conditions
18147 --file=FILE[:TEMPLATE]
18148 instantiate the configuration file FILE
18149 --header=FILE[:TEMPLATE]
18150 instantiate the configuration header FILE
18152 Configuration files:
18155 Configuration headers:
18158 Configuration commands:
18161 Report bugs to <openvpn-users@lists.sourceforge.net>."
18164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18165 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18167 OpenVPN config.status 2.3.11
18168 configured by $0, generated by GNU Autoconf 2.69,
18169 with options \\"\$ac_cs_config\\"
18171 Copyright (C) 2012 Free Software Foundation, Inc.
18172 This config.status script is free software; the Free Software Foundation
18173 gives unlimited permission to copy, distribute and modify it."
18180 test -n "\$AWK" || AWK=awk
18183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18184 # The default lists apply if the user does not specify any file.
18190 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18191 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18195 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18207 # Handling of the options.
18208 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18210 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18211 $as_echo "$ac_cs_version"; exit ;;
18212 --config |
--confi |
--conf |
--con |
--co |
--c )
18213 $as_echo "$ac_cs_config"; exit ;;
18214 --debug |
--debu |
--deb |
--de |
--d |
-d )
18216 --file |
--fil |
--fi |
--f )
18219 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18220 '') as_fn_error $?
"missing file argument" ;;
18222 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18223 ac_need_defaults
=false
;;
18224 --header |
--heade |
--head |
--hea )
18227 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18229 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18230 ac_need_defaults
=false
;;
18232 # Conflict between --help and --header
18233 as_fn_error $?
"ambiguous option: \`$1'
18234 Try \`$0 --help' for more information.";;
18235 --help |
--hel |
-h )
18236 $as_echo "$ac_cs_usage"; exit ;;
18237 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18238 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18241 # This is an error.
18242 -*) as_fn_error $?
"unrecognized option: \`$1'
18243 Try \`$0 --help' for more information." ;;
18245 *) as_fn_append ac_config_targets
" $1"
18246 ac_need_defaults
=false
;;
18252 ac_configure_extra_args
=
18254 if $ac_cs_silent; then
18256 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18261 if \$ac_cs_recheck; then
18262 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18264 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18265 CONFIG_SHELL='$SHELL'
18266 export CONFIG_SHELL
18271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18276 ## Running $as_me. ##
18282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18286 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18289 # The HP-UX ksh and POSIX shell print the target directory to stdout
18290 # if CDPATH is set.
18291 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18293 sed_quote_subst='$sed_quote_subst'
18294 double_quote_subst='$double_quote_subst'
18295 delay_variable_subst='$delay_variable_subst'
18296 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18297 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18298 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18299 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18300 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18301 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18302 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18303 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18304 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18305 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18306 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18307 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18308 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18309 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18310 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18311 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18312 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18313 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18314 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18315 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18316 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18317 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18318 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18319 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18320 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18321 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18322 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18323 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18324 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18325 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18326 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18327 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18328 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18329 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18330 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18331 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18332 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18333 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18334 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18335 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18336 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18337 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18338 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18339 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18340 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18341 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18342 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18343 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18344 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18345 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18346 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18347 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18348 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18349 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18350 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18351 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18352 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18353 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18354 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18355 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"`'
18356 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18357 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18358 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18359 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18360 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18361 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18362 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18363 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18364 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18365 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18366 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18367 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18368 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18369 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18370 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18371 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18372 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18373 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18374 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18375 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18376 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18377 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18378 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18379 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18380 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18381 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18382 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18383 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18384 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18385 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18386 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18387 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18388 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18389 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18390 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18391 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18392 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18393 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18394 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18395 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18396 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18397 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18398 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18399 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18400 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18401 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18402 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18403 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18404 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18405 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18406 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18407 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18408 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18409 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18410 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18411 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18412 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18413 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18414 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18415 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18416 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18417 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18418 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18419 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18420 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18421 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18422 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18423 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18424 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18425 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18426 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18427 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18428 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18429 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18430 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18431 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18432 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
18433 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
18434 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
18435 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
18436 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
18437 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
18438 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
18439 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
18440 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
18441 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
18442 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
18443 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
18444 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
18445 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18446 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18447 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
18448 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
18449 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
18450 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
18451 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
18452 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
18453 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
18454 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
18455 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
18456 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
18457 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18458 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
18459 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
18460 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
18461 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
18462 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
18463 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
18464 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
18465 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
18466 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
18467 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
18468 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
18469 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
18470 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
18471 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
18472 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
18473 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
18476 LTCFLAGS='$LTCFLAGS'
18477 compiler='$compiler_DEFAULT'
18479 # A function that is used when there is no print builtin or printf.
18480 func_fallback_echo ()
18482 eval 'cat <<_LTECHO_EOF
18487 # Quote evaled strings.
18504 deplibs_check_method \
18508 sharedlib_from_linklib_cmd \
18511 archiver_list_spec \
18517 lt_cv_sys_global_symbol_pipe \
18518 lt_cv_sys_global_symbol_to_cdecl \
18519 lt_cv_sys_global_symbol_to_import \
18520 lt_cv_sys_global_symbol_to_c_name_address \
18521 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18522 lt_cv_nm_interface \
18523 nm_file_list_spec \
18524 lt_cv_truncate_bin \
18525 lt_prog_compiler_no_builtin_flag \
18526 lt_prog_compiler_pic \
18527 lt_prog_compiler_wl \
18528 lt_prog_compiler_static \
18529 lt_cv_prog_compiler_c_o \
18538 export_dynamic_flag_spec \
18539 whole_archive_flag_spec \
18540 compiler_needs_object \
18542 allow_undefined_flag \
18543 no_undefined_flag \
18544 hardcode_libdir_flag_spec \
18545 hardcode_libdir_separator \
18549 variables_saved_for_relink \
18551 library_names_spec \
18553 install_override_mode \
18560 lt_prog_compiler_no_builtin_flag_RC \
18561 lt_prog_compiler_pic_RC \
18562 lt_prog_compiler_wl_RC \
18563 lt_prog_compiler_static_RC \
18564 lt_cv_prog_compiler_c_o_RC \
18565 export_dynamic_flag_spec_RC \
18566 whole_archive_flag_spec_RC \
18567 compiler_needs_object_RC \
18569 allow_undefined_flag_RC \
18570 no_undefined_flag_RC \
18571 hardcode_libdir_flag_spec_RC \
18572 hardcode_libdir_separator_RC \
18573 exclude_expsyms_RC \
18574 include_expsyms_RC \
18575 file_list_spec_RC; do
18576 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18577 *[\\\\\\\`\\"\\\$]*)
18578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18581 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18586 # Double-quote double-evaled strings.
18587 for var in reload_cmds \
18588 old_postinstall_cmds \
18589 old_postuninstall_cmds \
18591 extract_expsyms_cmds \
18592 old_archive_from_new_cmds \
18593 old_archive_from_expsyms_cmds \
18595 archive_expsym_cmds \
18597 module_expsym_cmds \
18598 export_symbols_cmds \
18602 postuninstall_cmds \
18604 sys_lib_search_path_spec \
18605 configure_time_dlsearch_path \
18606 configure_time_lt_sys_library_path \
18608 old_archive_cmds_RC \
18609 old_archive_from_new_cmds_RC \
18610 old_archive_from_expsyms_cmds_RC \
18612 archive_expsym_cmds_RC \
18614 module_expsym_cmds_RC \
18615 export_symbols_cmds_RC \
18617 postlink_cmds_RC; do
18618 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18619 *[\\\\\\\`\\"\\\$]*)
18620 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18623 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18628 ac_aux_dir='$ac_aux_dir'
18630 # See if we are running on zsh, and set the options that allow our
18631 # commands through without removal of \ escapes INIT.
18632 if test -n "\${ZSH_VERSION+set}"; then
18633 setopt NO_GLOB_SUBST
18649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18651 # Handling of arguments.
18652 for ac_config_target
in $ac_config_targets
18654 case $ac_config_target in
18655 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18656 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18657 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18658 "version.sh") CONFIG_FILES
="$CONFIG_FILES version.sh" ;;
18659 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18660 "build/Makefile") CONFIG_FILES
="$CONFIG_FILES build/Makefile" ;;
18661 "build/msvc/Makefile") CONFIG_FILES
="$CONFIG_FILES build/msvc/Makefile" ;;
18662 "build/msvc/msvc-generate/Makefile") CONFIG_FILES
="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
18663 "distro/Makefile") CONFIG_FILES
="$CONFIG_FILES distro/Makefile" ;;
18664 "distro/rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES distro/rpm/Makefile" ;;
18665 "distro/rpm/openvpn.spec") CONFIG_FILES
="$CONFIG_FILES distro/rpm/openvpn.spec" ;;
18666 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
18667 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
18668 "src/compat/Makefile") CONFIG_FILES
="$CONFIG_FILES src/compat/Makefile" ;;
18669 "src/openvpn/Makefile") CONFIG_FILES
="$CONFIG_FILES src/openvpn/Makefile" ;;
18670 "src/openvpnserv/Makefile") CONFIG_FILES
="$CONFIG_FILES src/openvpnserv/Makefile" ;;
18671 "src/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/Makefile" ;;
18672 "src/plugins/auth-pam/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
18673 "src/plugins/down-root/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
18674 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
18675 "sample/Makefile") CONFIG_FILES
="$CONFIG_FILES sample/Makefile" ;;
18676 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18677 "tests/t_client.sh") CONFIG_FILES
="$CONFIG_FILES tests/t_client.sh" ;;
18679 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18684 # If the user did not use the arguments to specify the items to instantiate,
18685 # then the envvar interface is used. Set only those that are not.
18686 # We use the long form for the default assignment because of an extremely
18687 # bizarre bug on SunOS 4.1.3.
18688 if $ac_need_defaults; then
18689 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18690 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18694 # Have a temporary directory for convenience. Make it in the build tree
18695 # simply because there is no reason against having it here, and in addition,
18696 # creating and moving files from /tmp can sometimes cause problems.
18697 # Hook for its removal unless debugging.
18698 # Note that there is a small window in which the directory will not be cleaned:
18699 # after its creation but before its name has been assigned to `$tmp'.
18703 trap 'exit_status=$?
18704 : "${ac_tmp:=$tmp}"
18705 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18707 trap 'as_fn_exit 1' 1 2 13 15
18709 # Create a (secure) tmp directory for tmp files.
18712 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18716 tmp
=.
/conf$$
-$RANDOM
18717 (umask 077 && mkdir
"$tmp")
18718 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18721 # Set up the scripts for CONFIG_FILES section.
18722 # No need to generate them if there are no CONFIG_FILES.
18723 # This happens for instance with `./config.status config.h'.
18724 if test -n "$CONFIG_FILES"; then
18727 ac_cr
=`echo X | tr X '\015'`
18728 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18729 # But we know of no other shell where ac_cr would be empty at this
18730 # point, so we can use a bashism as a fallback.
18731 if test "x$ac_cr" = x
; then
18732 eval ac_cr
=\$
\'\\r
\'
18734 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18735 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18738 ac_cs_awk_cr
=$ac_cr
18741 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18746 echo "cat >conf$$subs.awk <<_ACEOF" &&
18747 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18749 } >conf$$subs.sh ||
18750 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18751 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18753 for ac_last_try in false false false false false :; do
18754 . ./conf$$subs.sh ||
18755 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18757 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18758 if test $ac_delim_n = $ac_delim_num; then
18760 elif $ac_last_try; then
18761 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18763 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18766 rm -f conf$$subs.sh
18768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18769 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18773 s/^/S["/; s
/!.
*/"]=/
18783 s/\(.\{148\}\)..*/\1/
18785 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18790 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18797 s/\(.\{148\}\)..*/\1/
18799 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18803 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18808 ' <conf$$subs.awk | sed '
18813 ' >>$CONFIG_STATUS || ac_write_fail=1
18814 rm -f conf$$subs.awk
18815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18817 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18818 for (key in S) S_is_set[key] = 1
18824 nfields = split(line, field, "@
")
18826 len = length(field[1])
18827 for (i = 2; i < nfields; i++) {
18829 keylen = length(key)
18830 if (S_is_set[key]) {
18832 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18833 len += length(value) + length(field[++i])
18844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18845 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18846 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18849 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18850 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18853 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18854 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18855 # trailing colons and then remove the whole line if VPATH becomes empty
18856 # (actually we leave an empty line to preserve line numbers).
18857 if test "x
$srcdir" = x.; then
18858 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18877 fi # test -n "$CONFIG_FILES"
18879 # Set up the scripts for CONFIG_HEADERS section.
18880 # No need to generate them if there are no CONFIG_HEADERS.
18881 # This happens for instance with `./config.status Makefile'.
18882 if test -n "$CONFIG_HEADERS"; then
18883 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18887 # Transform confdefs.h into an awk script `defines.awk', embedded as
18888 # here-document in config.status, that substitutes the proper values into
18889 # config.h.in to produce config.h.
18891 # Create a delimiter string that does not exist in confdefs.h, to ease
18892 # handling of long lines.
18894 for ac_last_try in false false :; do
18895 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18896 if test -z "$ac_tt"; then
18898 elif $ac_last_try; then
18899 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18901 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18905 # For the awk script, D is an array of macro values keyed by name,
18906 # likewise P contains macro parameters if any. Preserve backslash
18907 # newline sequences.
18909 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18911 s/.\{148\}/&'"$ac_delim"'/g
18914 s/^[ ]*#[ ]*define[ ][ ]*/ /
18921 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18923 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18928 D["\
1"]=" \
3\\\\\\n
"\\/p
18930 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18935 s/.\{148\}/&'"$ac_delim"'/g
18940 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18943 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18945 ' <confdefs.h | sed '
18946 s/'"$ac_delim"'/"\\\
18947 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18950 for (key in D) D_is_set[key] = 1
18953 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18955 split(line, arg, " ")
18956 if (arg[1] == "#") {
18960 defundef
= substr
(arg
[1], 2)
18963 split(mac1
, mac2
, "(") #)
18965 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18966 if (D_is_set
[macro
]) {
18967 # Preserve the white space surrounding the "#".
18968 print prefix
"define", macro P
[macro
] D
[macro
]
18971 # Replace #undef with comments. This is necessary, for example,
18972 # in the case of _POSIX_SOURCE, which is predefined and required
18973 # on some systems where configure will not decide to define it.
18974 if (defundef
== "undef") {
18975 print
"/*", prefix defundef
, macro
, "*/"
18983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18984 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18985 fi # test -n "$CONFIG_HEADERS"
18988 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18993 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18995 case $ac_mode$ac_tag in
18997 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18998 :[FH
]-) ac_tag
=-:-;;
18999 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19016 -) ac_f
="$ac_tmp/stdin";;
19017 *) # Look for the file first in the build tree, then in the source tree
19018 # (if the path is not absolute). The absolute path cannot be DOS-style,
19019 # because $ac_f cannot contain `:'.
19023 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19025 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19027 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19028 as_fn_append ac_file_inputs
" '$ac_f'"
19031 # Let's still pretend it is `configure' which instantiates (i.e., don't
19032 # use $as_me), people would be surprised to read:
19033 # /* config.h. Generated by config.status. */
19034 configure_input
='Generated from '`
19035 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19037 if test x
"$ac_file" != x-
; then
19038 configure_input
="$ac_file. $configure_input"
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19040 $as_echo "$as_me: creating $ac_file" >&6;}
19042 # Neutralize special characters interpreted by sed in replacement strings.
19043 case $configure_input in #(
19044 *\
&* |
*\|
* |
*\\* )
19045 ac_sed_conf_input
=`$as_echo "$configure_input" |
19046 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19047 *) ac_sed_conf_input
=$configure_input;;
19051 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
19052 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
19057 ac_dir
=`$as_dirname -- "$ac_file" ||
19058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19059 X"$ac_file" : 'X\(//\)[^/]' \| \
19060 X"$ac_file" : 'X\(//\)$' \| \
19061 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19062 $as_echo X"$ac_file" |
19063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19067 /^X\(\/\/\)[^/].*/{
19080 as_dir
="$ac_dir"; as_fn_mkdir_p
19084 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19086 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19087 # A ".." for each directory in $ac_dir_suffix.
19088 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19089 case $ac_top_builddir_sub in
19090 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19091 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19094 ac_abs_top_builddir
=$ac_pwd
19095 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19096 # for backward compatibility:
19097 ac_top_builddir
=$ac_top_build_prefix
19100 .
) # We are building in place.
19102 ac_top_srcdir
=$ac_top_builddir_sub
19103 ac_abs_top_srcdir
=$ac_pwd ;;
19104 [\\/]* | ?
:[\\/]* ) # Absolute name.
19105 ac_srcdir
=$srcdir$ac_dir_suffix;
19106 ac_top_srcdir
=$srcdir
19107 ac_abs_top_srcdir
=$srcdir ;;
19108 *) # Relative name.
19109 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19110 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19111 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19113 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19123 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19124 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19126 ac_MKDIR_P
=$MKDIR_P
19128 [\\/$
]* | ?
:[\\/]* ) ;;
19129 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
19133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19134 # If the template does not know about datarootdir, expand it.
19135 # FIXME: This hack should be removed a few years after 2.60.
19136 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19148 *datarootdir
*) ac_datarootdir_seen
=yes;;
19149 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19154 ac_datarootdir_hack='
19155 s&@datadir@&$datadir&g
19156 s&@docdir@&$docdir&g
19157 s&@infodir@&$infodir&g
19158 s&@localedir@&$localedir&g
19159 s&@mandir@&$mandir&g
19160 s&\\\${datarootdir}&$datarootdir&g' ;;
19164 # Neutralize VPATH when `$srcdir' = `.'.
19165 # Shell code in configure.ac might set extrasub.
19166 # FIXME: do we really want to maintain this feature?
19167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19168 ac_sed_extra="$ac_vpsub
19171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19173 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19174 s|@configure_input@|
$ac_sed_conf_input|
;t t
19175 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19176 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19177 s
&@srcdir@
&$ac_srcdir&;t t
19178 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19179 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19180 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19181 s
&@builddir@
&$ac_builddir&;t t
19182 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19183 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19184 s
&@INSTALL@
&$ac_INSTALL&;t t
19185 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19186 $ac_datarootdir_hack
19188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
19189 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19192 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19194 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19196 which seems to be undefined. Please make sure it is defined" >&5
19197 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19198 which seems to be undefined. Please make sure it is defined" >&2;}
19200 rm -f "$ac_tmp/stdin"
19202 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19203 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19211 if test x"$ac_file" != x-; then
19213 $as_echo "/* $configure_input */" \
19214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19215 } >"$ac_tmp/config.h" \
19216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19217 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19219 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19222 mv "$ac_tmp/config.h" "$ac_file" \
19223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19226 $as_echo "/* $configure_input */" \
19227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19228 || as_fn_error $? "could not create -" "$LINENO" 5
19230 # Compute "$ac_file"'s index
in $config_headers.
19233 for _am_header
in $config_headers :; do
19234 case $_am_header in
19235 $_am_arg |
$_am_arg:* )
19238 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19241 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19242 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19243 X"$_am_arg" : 'X\(//\)[^/]' \| \
19244 X"$_am_arg" : 'X\(//\)$' \| \
19245 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19246 $as_echo X"$_am_arg" |
19247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19251 /^X\(\/\/\)[^/].*/{
19263 s/.*/./; q'`/stamp-h
$_am_stamp_count
19266 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19267 $as_echo "$as_me: executing $ac_file commands" >&6;}
19272 case $ac_file$ac_mode in
19273 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19274 # Older Autoconf quotes --file arguments for eval, but not when files
19275 # are listed without --file. Let's play safe and only enable the eval
19276 # if we detect the quoting.
19277 case $CONFIG_FILES in
19278 *\'*) eval set x
"$CONFIG_FILES" ;;
19279 *) set x
$CONFIG_FILES ;;
19284 # Strip MF so we end up with the name of the file.
19285 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19286 # Check whether this is an Automake generated Makefile or not.
19287 # We used to match only the files named 'Makefile.in', but
19288 # some people rename them; so instead we look at the file content.
19289 # Grep'ing the first line is not enough: some people post-process
19290 # each Makefile.in and add a new line on top of each file to say so.
19291 # Grep'ing the whole file is not good either: AIX grep has a line
19292 # limit of 2048, but all sed's we know have understand at least 4000.
19293 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19294 dirpart
=`$as_dirname -- "$mf" ||
19295 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19296 X"$mf" : 'X\(//\)[^/]' \| \
19297 X"$mf" : 'X\(//\)$' \| \
19298 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19304 /^X\(\/\/\)[^/].*/{
19320 # Extract the definition of DEPDIR, am__include, and am__quote
19321 # from the Makefile without running 'make'.
19322 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19323 test -z "$DEPDIR" && continue
19324 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19325 test -z "$am__include" && continue
19326 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19327 # Find all dependency output files, they are included files with
19328 # $(DEPDIR) in their names. We invoke sed twice because it is the
19329 # simplest approach to changing $(DEPDIR) to its actual value in the
19331 for file in `sed -n "
19332 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19333 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19334 # Make sure the directory exists.
19335 test -f "$dirpart/$file" && continue
19336 fdir
=`$as_dirname -- "$file" ||
19337 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19338 X"$file" : 'X\(//\)[^/]' \| \
19339 X"$file" : 'X\(//\)$' \| \
19340 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19341 $as_echo X"$file" |
19342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19346 /^X\(\/\/\)[^/].*/{
19359 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19360 # echo "creating $dirpart/$file"
19361 echo '# dummy' > "$dirpart/$file"
19368 # See if we are running on zsh, and set the options that allow our
19369 # commands through without removal of \ escapes.
19370 if test -n "${ZSH_VERSION+set}"; then
19371 setopt NO_GLOB_SUBST
19375 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19378 cat <<_LT_EOF >> "$cfgfile"
19380 # Generated automatically by $as_me ($PACKAGE) $VERSION
19381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19382 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19384 # Provide generalized library-building support services.
19385 # Written by Gordon Matzigkeit, 1996
19387 # Copyright (C) 2014 Free Software Foundation, Inc.
19388 # This is free software; see the source for copying conditions. There is NO
19389 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19391 # GNU Libtool is free software; you can redistribute it and/or modify
19392 # it under the terms of the GNU General Public License as published by
19393 # the Free Software Foundation; either version 2 of of the License, or
19394 # (at your option) any later version.
19396 # As a special exception to the GNU General Public License, if you
19397 # distribute this file as part of a program or library that is built
19398 # using GNU Libtool, you may include this file under the same
19399 # distribution terms that you use for the rest of that program.
19401 # GNU Libtool is distributed in the hope that it will be useful, but
19402 # WITHOUT ANY WARRANTY; without even the implied warranty of
19403 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19404 # GNU General Public License for more details.
19406 # You should have received a copy of the GNU General Public License
19407 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19410 # The names of the tagged configurations supported by this script.
19411 available_tags='RC '
19413 # Configured defaults for sys_lib_dlsearch_path munging.
19414 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19416 # ### BEGIN LIBTOOL CONFIG
19418 # Which release of libtool.m4 was used?
19419 macro_version=$macro_version
19420 macro_revision=$macro_revision
19422 # Assembler program.
19425 # DLL creation program.
19426 DLLTOOL=$lt_DLLTOOL
19428 # Object dumper program.
19429 OBJDUMP=$lt_OBJDUMP
19431 # Whether or not to build shared libraries.
19432 build_libtool_libs=$enable_shared
19434 # Whether or not to build static libraries.
19435 build_old_libs=$enable_static
19437 # What type of objects to build.
19440 # Whether or not to optimize for fast installation.
19441 fast_install=$enable_fast_install
19443 # Shared archive member basename,for filename based shared library versioning on AIX.
19444 shared_archive_member_spec=$shared_archive_member_spec
19446 # Shell to use when invoking shell scripts.
19449 # An echo program that protects backslashes.
19452 # The PATH separator for the build system.
19453 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19456 host_alias=$host_alias
19460 # The build system.
19461 build_alias=$build_alias
19465 # A sed program that does not truncate output.
19468 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19469 Xsed="\$SED -e 1s/^X//"
19471 # A grep program that handles long lines.
19477 # A literal string matcher.
19480 # A BSD- or MS-compatible name lister.
19483 # Whether we need soft or hard links.
19486 # What is the maximum length of a command?
19487 max_cmd_len=$max_cmd_len
19489 # Object file suffix (normally "o").
19492 # Executable file suffix (normally "").
19495 # whether the shell understands "unset".
19498 # turn spaces into newlines.
19501 # turn newlines into spaces.
19504 # convert \$build file names to \$host format.
19505 to_host_file_cmd=$lt_cv_to_host_file_cmd
19507 # convert \$build files to toolchain format.
19508 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19510 # Method to check whether dependent libraries are shared objects.
19511 deplibs_check_method=$lt_deplibs_check_method
19513 # Command to use when deplibs_check_method = "file_magic".
19514 file_magic_cmd=$lt_file_magic_cmd
19516 # How to find potential files when deplibs_check_method = "file_magic".
19517 file_magic_glob=$lt_file_magic_glob
19519 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19520 want_nocaseglob=$lt_want_nocaseglob
19522 # Command to associate shared and link libraries.
19523 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19528 # Flags to create an archive.
19529 AR_FLAGS=$lt_AR_FLAGS
19531 # How to feed a file listing to the archiver.
19532 archiver_list_spec=$lt_archiver_list_spec
19534 # A symbol stripping program.
19537 # Commands used to install an old-style archive.
19539 old_postinstall_cmds=$lt_old_postinstall_cmds
19540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19542 # Whether to use a lock for old archive extraction.
19543 lock_old_archive_extraction=$lock_old_archive_extraction
19548 # LTCC compiler flags.
19549 LTCFLAGS=$lt_CFLAGS
19551 # Take the output of nm and produce a listing of raw symbols and C names.
19552 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19554 # Transform the output of nm in a proper C declaration.
19555 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19557 # Transform the output of nm into a list of symbols to manually relocate.
19558 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19560 # Transform the output of nm in a C name address pair.
19561 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19563 # Transform the output of nm in a C name address pair when lib prefix is needed.
19564 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19566 # The name lister interface.
19567 nm_interface=$lt_lt_cv_nm_interface
19569 # Specify filename containing input files for \$NM.
19570 nm_file_list_spec=$lt_nm_file_list_spec
19572 # The root where to search for dependent libraries,and where our libraries should be installed.
19573 lt_sysroot=$lt_sysroot
19575 # Command to truncate a binary pipe.
19576 lt_truncate_bin=$lt_lt_cv_truncate_bin
19578 # The name of the directory that contains temporary libtool files.
19581 # Used to examine libraries when file_magic_cmd begins with "file".
19582 MAGIC_CMD=$MAGIC_CMD
19584 # Must we lock files when doing compilation?
19585 need_locks=$lt_need_locks
19588 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19590 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19591 DSYMUTIL=$lt_DSYMUTIL
19593 # Tool to change global to local symbols on Mac OS X.
19596 # Tool to manipulate fat objects and archives on Mac OS X.
19599 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19602 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19603 OTOOL64=$lt_OTOOL64
19605 # Old archive suffix (normally "a").
19608 # Shared library suffix (normally ".so").
19609 shrext_cmds=$lt_shrext_cmds
19611 # The commands to extract the exported symbol list from a shared archive.
19612 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19614 # Variables whose values should be saved in libtool wrapper scripts and
19615 # restored at link time.
19616 variables_saved_for_relink=$lt_variables_saved_for_relink
19618 # Do we need the "lib" prefix for modules?
19619 need_lib_prefix=$need_lib_prefix
19621 # Do we need a version for libraries?
19622 need_version=$need_version
19624 # Library versioning type.
19625 version_type=$version_type
19627 # Shared library runtime path variable.
19628 runpath_var=$runpath_var
19630 # Shared library path variable.
19631 shlibpath_var=$shlibpath_var
19633 # Is shlibpath searched before the hard-coded library search path?
19634 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19636 # Format of library name prefix.
19637 libname_spec=$lt_libname_spec
19639 # List of archive names. First name is the real one, the rest are links.
19640 # The last name is the one that the linker finds with -lNAME
19641 library_names_spec=$lt_library_names_spec
19643 # The coded name of the library, if different from the real name.
19644 soname_spec=$lt_soname_spec
19646 # Permission mode override for installation of shared libraries.
19647 install_override_mode=$lt_install_override_mode
19649 # Command to use after installation of a shared archive.
19650 postinstall_cmds=$lt_postinstall_cmds
19652 # Command to use after uninstallation of a shared archive.
19653 postuninstall_cmds=$lt_postuninstall_cmds
19655 # Commands used to finish a libtool library installation in a directory.
19656 finish_cmds=$lt_finish_cmds
19658 # As "finish_cmds", except a single script fragment to be evaled but
19660 finish_eval=$lt_finish_eval
19662 # Whether we should hardcode library paths into libraries.
19663 hardcode_into_libs=$hardcode_into_libs
19665 # Compile-time system search path for libraries.
19666 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19668 # Detected run-time system search path for libraries.
19669 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19671 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19672 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19674 # Whether dlopen is supported.
19675 dlopen_support=$enable_dlopen
19677 # Whether dlopen of programs is supported.
19678 dlopen_self=$enable_dlopen_self
19680 # Whether dlopen of statically linked programs is supported.
19681 dlopen_self_static=$enable_dlopen_self_static
19683 # Commands to strip libraries.
19684 old_striplib=$lt_old_striplib
19685 striplib=$lt_striplib
19688 # The linker used to build libraries.
19691 # How to create reloadable object files.
19692 reload_flag=$lt_reload_flag
19693 reload_cmds=$lt_reload_cmds
19695 # Commands used to build an old-style archive.
19696 old_archive_cmds=$lt_old_archive_cmds
19698 # A language specific compiler.
19701 # Is the compiler the GNU compiler?
19704 # Compiler flag to turn off builtin functions.
19705 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19707 # Additional compiler flags for building library objects.
19708 pic_flag=$lt_lt_prog_compiler_pic
19710 # How to pass a linker flag through the compiler.
19711 wl=$lt_lt_prog_compiler_wl
19713 # Compiler flag to prevent dynamic linking.
19714 link_static_flag=$lt_lt_prog_compiler_static
19716 # Does compiler simultaneously support -c and -o options?
19717 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19719 # Whether or not to add -lc for building shared libraries.
19720 build_libtool_need_lc=$archive_cmds_need_lc
19722 # Whether or not to disallow shared libs when runtime libs are static.
19723 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19725 # Compiler flag to allow reflexive dlopens.
19726 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19728 # Compiler flag to generate shared objects directly from archives.
19729 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19731 # Whether the compiler copes with passing no objects directly.
19732 compiler_needs_object=$lt_compiler_needs_object
19734 # Create an old-style archive from a shared archive.
19735 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19737 # Create a temporary old-style archive to link instead of a shared archive.
19738 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19740 # Commands used to build a shared archive.
19741 archive_cmds=$lt_archive_cmds
19742 archive_expsym_cmds=$lt_archive_expsym_cmds
19744 # Commands used to build a loadable module if different from building
19745 # a shared archive.
19746 module_cmds=$lt_module_cmds
19747 module_expsym_cmds=$lt_module_expsym_cmds
19749 # Whether we are building with GNU ld or not.
19750 with_gnu_ld=$lt_with_gnu_ld
19752 # Flag that allows shared libraries with undefined symbols to be built.
19753 allow_undefined_flag=$lt_allow_undefined_flag
19755 # Flag that enforces no undefined symbols.
19756 no_undefined_flag=$lt_no_undefined_flag
19758 # Flag to hardcode \$libdir into a binary during linking.
19759 # This must work even if \$libdir does not exist
19760 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19762 # Whether we need a single "-rpath" flag with a separated argument.
19763 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19765 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19766 # DIR into the resulting binary.
19767 hardcode_direct=$hardcode_direct
19769 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19770 # DIR into the resulting binary and the resulting library dependency is
19771 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19772 # library is relocated.
19773 hardcode_direct_absolute=$hardcode_direct_absolute
19775 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19776 # into the resulting binary.
19777 hardcode_minus_L=$hardcode_minus_L
19779 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19780 # into the resulting binary.
19781 hardcode_shlibpath_var=$hardcode_shlibpath_var
19783 # Set to "yes" if building a shared library automatically hardcodes DIR
19784 # into the library and all subsequent libraries and executables linked
19786 hardcode_automatic=$hardcode_automatic
19788 # Set to yes if linker adds runtime paths of dependent libraries
19789 # to runtime path list.
19790 inherit_rpath=$inherit_rpath
19792 # Whether libtool must link a program against all its dependency libraries.
19793 link_all_deplibs=$link_all_deplibs
19795 # Set to "yes" if exported symbols are required.
19796 always_export_symbols=$always_export_symbols
19798 # The commands to list exported symbols.
19799 export_symbols_cmds=$lt_export_symbols_cmds
19801 # Symbols that should not be listed in the preloaded symbols.
19802 exclude_expsyms=$lt_exclude_expsyms
19804 # Symbols that must always be exported.
19805 include_expsyms=$lt_include_expsyms
19807 # Commands necessary for linking programs (against libraries) with templates.
19808 prelink_cmds=$lt_prelink_cmds
19810 # Commands necessary for finishing linking programs.
19811 postlink_cmds=$lt_postlink_cmds
19813 # Specify filename containing input files.
19814 file_list_spec=$lt_file_list_spec
19816 # How to hardcode a shared library path into an executable.
19817 hardcode_action=$hardcode_action
19819 # ### END LIBTOOL CONFIG
19823 cat <<'_LT_EOF' >> "$cfgfile"
19825 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19827 # func_munge_path_list VARIABLE PATH
19828 # -----------------------------------
19829 # VARIABLE is name of variable containing _space_ separated list of
19830 # directories to be munged by the contents of PATH, which is string
19833 # string "DIR[ DIR]" will be prepended to VARIABLE
19835 # string "DIR[ DIR]" will be appended to VARIABLE
19836 # "DIRP[:DIRP]::[DIRA:]DIRA"
19837 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19838 # "DIRA[ DIRA]" will be appended to VARIABLE
19840 # VARIABLE will be replaced by "DIR[ DIR]"
19841 func_munge_path_list ()
19847 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19850 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19853 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19854 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19857 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19863 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19864 func_cc_basename ()
19866 for cc_temp in $*""; do
19868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19874 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19878 # ### END FUNCTIONS SHARED WITH CONFIGURE
19884 cat <<\_LT_EOF
>> "$cfgfile"
19885 # AIX sometimes has problems with the GCC collect2 program. For some
19886 # reason, if we set the COLLECT_NAMES environment variable, the problems
19887 # vanish in a puff of smoke.
19888 if test set != "${COLLECT_NAMES+set}"; then
19890 export COLLECT_NAMES
19897 ltmain
=$ac_aux_dir/ltmain.sh
19900 # We use sed instead of cat because bash on DJGPP gets confused if
19901 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19902 # text mode, it properly converts lines to CR/LF. This bash problem
19903 # is reportedly fixed, but why not run on old versions too?
19904 sed '$q' "$ltmain" >> "$cfgfile" \
19905 ||
(rm -f "$cfgfile"; exit 1)
19907 mv -f "$cfgfile" "$ofile" ||
19908 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19912 cat <<_LT_EOF >> "$ofile"
19914 # ### BEGIN LIBTOOL TAG CONFIG: RC
19916 # The linker used to build libraries.
19919 # How to create reloadable object files.
19920 reload_flag=$lt_reload_flag_RC
19921 reload_cmds=$lt_reload_cmds_RC
19923 # Commands used to build an old-style archive.
19924 old_archive_cmds=$lt_old_archive_cmds_RC
19926 # A language specific compiler.
19929 # Is the compiler the GNU compiler?
19932 # Compiler flag to turn off builtin functions.
19933 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19935 # Additional compiler flags for building library objects.
19936 pic_flag=$lt_lt_prog_compiler_pic_RC
19938 # How to pass a linker flag through the compiler.
19939 wl=$lt_lt_prog_compiler_wl_RC
19941 # Compiler flag to prevent dynamic linking.
19942 link_static_flag=$lt_lt_prog_compiler_static_RC
19944 # Does compiler simultaneously support -c and -o options?
19945 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19947 # Whether or not to add -lc for building shared libraries.
19948 build_libtool_need_lc=$archive_cmds_need_lc_RC
19950 # Whether or not to disallow shared libs when runtime libs are static.
19951 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19953 # Compiler flag to allow reflexive dlopens.
19954 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19956 # Compiler flag to generate shared objects directly from archives.
19957 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19959 # Whether the compiler copes with passing no objects directly.
19960 compiler_needs_object=$lt_compiler_needs_object_RC
19962 # Create an old-style archive from a shared archive.
19963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19965 # Create a temporary old-style archive to link instead of a shared archive.
19966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19968 # Commands used to build a shared archive.
19969 archive_cmds=$lt_archive_cmds_RC
19970 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19972 # Commands used to build a loadable module if different from building
19973 # a shared archive.
19974 module_cmds=$lt_module_cmds_RC
19975 module_expsym_cmds=$lt_module_expsym_cmds_RC
19977 # Whether we are building with GNU ld or not.
19978 with_gnu_ld=$lt_with_gnu_ld_RC
19980 # Flag that allows shared libraries with undefined symbols to be built.
19981 allow_undefined_flag=$lt_allow_undefined_flag_RC
19983 # Flag that enforces no undefined symbols.
19984 no_undefined_flag=$lt_no_undefined_flag_RC
19986 # Flag to hardcode \$libdir into a binary during linking.
19987 # This must work even if \$libdir does not exist
19988 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19990 # Whether we need a single "-rpath" flag with a separated argument.
19991 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19993 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19994 # DIR into the resulting binary.
19995 hardcode_direct=$hardcode_direct_RC
19997 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19998 # DIR into the resulting binary and the resulting library dependency is
19999 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20000 # library is relocated.
20001 hardcode_direct_absolute=$hardcode_direct_absolute_RC
20003 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20004 # into the resulting binary.
20005 hardcode_minus_L=$hardcode_minus_L_RC
20007 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20008 # into the resulting binary.
20009 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20011 # Set to "yes" if building a shared library automatically hardcodes DIR
20012 # into the library and all subsequent libraries and executables linked
20014 hardcode_automatic=$hardcode_automatic_RC
20016 # Set to yes if linker adds runtime paths of dependent libraries
20017 # to runtime path list.
20018 inherit_rpath=$inherit_rpath_RC
20020 # Whether libtool must link a program against all its dependency libraries.
20021 link_all_deplibs=$link_all_deplibs_RC
20023 # Set to "yes" if exported symbols are required.
20024 always_export_symbols=$always_export_symbols_RC
20026 # The commands to list exported symbols.
20027 export_symbols_cmds=$lt_export_symbols_cmds_RC
20029 # Symbols that should not be listed in the preloaded symbols.
20030 exclude_expsyms=$lt_exclude_expsyms_RC
20032 # Symbols that must always be exported.
20033 include_expsyms=$lt_include_expsyms_RC
20035 # Commands necessary for linking programs (against libraries) with templates.
20036 prelink_cmds=$lt_prelink_cmds_RC
20038 # Commands necessary for finishing linking programs.
20039 postlink_cmds=$lt_postlink_cmds_RC
20041 # Specify filename containing input files.
20042 file_list_spec=$lt_file_list_spec_RC
20044 # How to hardcode a shared library path into an executable.
20045 hardcode_action=$hardcode_action_RC
20047 # ### END LIBTOOL TAG CONFIG: RC
20051 "tests/t_client.sh":F
) chmod +x
tests
/t_client.sh
;;
20059 ac_clean_files
=$ac_clean_files_save
20061 test $ac_write_fail = 0 ||
20062 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20065 # configure is writing to config.log, and then calls config.status.
20066 # config.status does its own redirection, appending to config.log.
20067 # Unfortunately, on DOS this fails, as config.log is still kept open
20068 # by configure, so config.status won't be able to write to it; its
20069 # output is simply discarded. So we exec the FD to /dev/null,
20070 # effectively closing config.log, so it can be properly (re)opened and
20071 # appended to by config.status. When coming back to configure, we
20072 # need to make the FD available again.
20073 if test "$no_create" != yes; then
20075 ac_config_status_args
=
20076 test "$silent" = yes &&
20077 ac_config_status_args
="$ac_config_status_args --quiet"
20079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20082 # would make configure fail if this is the last instruction.
20083 $ac_cs_success || as_fn_exit
1
20085 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20087 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}