2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenVPN 2.3.6.
5 # Report bugs to <openvpn-users@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
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.6'
594 PACKAGE_STRING
='OpenVPN 2.3.6'
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
672 OPENSSL_CRYPTO_CFLAGS
752 INSTALL_STRIP_PROGRAM
794 program_transform_name
807 enable_option_checking
809 enable_dependency_tracking
815 enable_x509_alt_username
832 enable_plugin_auth_pam
833 enable_plugin_down_root
837 enable_strict_options
852 ac_precious_vars
='build_alias
876 OPENSSL_CRYPTO_CFLAGS
888 # Initialize some variables set by options.
890 ac_init_version
=false
891 ac_unrecognized_opts
=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
902 program_transform_name
=s
,x
,x
,
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir
='${exec_prefix}/bin'
917 sbindir
='${exec_prefix}/sbin'
918 libexecdir
='${exec_prefix}/libexec'
919 datarootdir
='${prefix}/share'
920 datadir
='${datarootdir}'
921 sysconfdir
='${prefix}/etc'
922 sharedstatedir
='${prefix}/com'
923 localstatedir
='${prefix}/var'
924 includedir
='${prefix}/include'
925 oldincludedir
='/usr/include'
926 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir
='${datarootdir}/info'
932 libdir
='${exec_prefix}/lib'
933 localedir
='${datarootdir}/locale'
934 mandir
='${datarootdir}/man'
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\
$ac_option
948 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
959 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
961 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
964 -build |
--build |
--buil |
--bui |
--bu)
965 ac_prev
=build_alias
;;
966 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
967 build_alias
=$ac_optarg ;;
969 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
970 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
971 ac_prev
=cache_file
;;
972 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
973 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
974 cache_file
=$ac_optarg ;;
977 cache_file
=config.cache
;;
979 -datadir |
--datadir |
--datadi |
--datad)
981 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
982 datadir
=$ac_optarg ;;
984 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
985 |
--dataroo |
--dataro |
--datar)
986 ac_prev
=datarootdir
;;
987 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
988 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
989 datarootdir
=$ac_optarg ;;
991 -disable-* |
--disable-*)
992 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 as_fn_error $?
"invalid feature name: $ac_useropt"
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_
$ac_useropt"
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval enable_
$ac_useropt=no
;;
1007 -docdir |
--docdir |
--docdi |
--doc |
--do)
1009 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1010 docdir
=$ac_optarg ;;
1012 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1014 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1015 dvidir
=$ac_optarg ;;
1017 -enable-* |
--enable-*)
1018 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 as_fn_error $?
"invalid feature name: $ac_useropt"
1022 ac_useropt_orig
=$ac_useropt
1023 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_
$ac_useropt"
1028 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep
=', ';;
1031 eval enable_
$ac_useropt=\
$ac_optarg ;;
1033 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1034 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1035 |
--exec |
--exe |
--ex)
1036 ac_prev
=exec_prefix
;;
1037 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1038 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1039 |
--exec=* |
--exe=* |
--ex=*)
1040 exec_prefix
=$ac_optarg ;;
1042 -gas |
--gas |
--ga |
--g)
1043 # Obsolete; use --with-gas.
1046 -help |
--help |
--hel |
--he |
-h)
1047 ac_init_help
=long
;;
1048 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1049 ac_init_help
=recursive
;;
1050 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1051 ac_init_help
=short
;;
1053 -host |
--host |
--hos |
--ho)
1054 ac_prev
=host_alias
;;
1055 -host=* |
--host=* |
--hos=* |
--ho=*)
1056 host_alias
=$ac_optarg ;;
1058 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1060 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1062 htmldir
=$ac_optarg ;;
1064 -includedir |
--includedir |
--includedi |
--included |
--include \
1065 |
--includ |
--inclu |
--incl |
--inc)
1066 ac_prev
=includedir
;;
1067 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1068 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1069 includedir
=$ac_optarg ;;
1071 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1073 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1074 infodir
=$ac_optarg ;;
1076 -libdir |
--libdir |
--libdi |
--libd)
1078 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1079 libdir
=$ac_optarg ;;
1081 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1082 |
--libexe |
--libex |
--libe)
1083 ac_prev
=libexecdir
;;
1084 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1085 |
--libexe=* |
--libex=* |
--libe=*)
1086 libexecdir
=$ac_optarg ;;
1088 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1089 ac_prev
=localedir
;;
1090 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1091 localedir
=$ac_optarg ;;
1093 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1094 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1095 ac_prev
=localstatedir
;;
1096 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1097 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1098 localstatedir
=$ac_optarg ;;
1100 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1102 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1103 mandir
=$ac_optarg ;;
1105 -nfp |
--nfp |
--nf)
1106 # Obsolete; use --without-fp.
1109 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1110 |
--no-cr |
--no-c |
-n)
1113 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1114 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1117 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1118 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1119 |
--oldin |
--oldi |
--old |
--ol |
--o)
1120 ac_prev
=oldincludedir
;;
1121 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1122 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1123 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1124 oldincludedir
=$ac_optarg ;;
1126 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1128 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1129 prefix
=$ac_optarg ;;
1131 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1132 |
--program-pre |
--program-pr |
--program-p)
1133 ac_prev
=program_prefix
;;
1134 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1135 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1136 program_prefix
=$ac_optarg ;;
1138 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1139 |
--program-suf |
--program-su |
--program-s)
1140 ac_prev
=program_suffix
;;
1141 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1142 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1143 program_suffix
=$ac_optarg ;;
1145 -program-transform-name |
--program-transform-name \
1146 |
--program-transform-nam |
--program-transform-na \
1147 |
--program-transform-n |
--program-transform- \
1148 |
--program-transform |
--program-transfor \
1149 |
--program-transfo |
--program-transf \
1150 |
--program-trans |
--program-tran \
1151 |
--progr-tra |
--program-tr |
--program-t)
1152 ac_prev
=program_transform_name
;;
1153 -program-transform-name=* |
--program-transform-name=* \
1154 |
--program-transform-nam=* |
--program-transform-na=* \
1155 |
--program-transform-n=* |
--program-transform-=* \
1156 |
--program-transform=* |
--program-transfor=* \
1157 |
--program-transfo=* |
--program-transf=* \
1158 |
--program-trans=* |
--program-tran=* \
1159 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1160 program_transform_name
=$ac_optarg ;;
1162 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1164 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1165 pdfdir
=$ac_optarg ;;
1167 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1169 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1172 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1173 |
-silent |
--silent |
--silen |
--sile |
--sil)
1176 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1178 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1180 sbindir
=$ac_optarg ;;
1182 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1183 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1184 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1186 ac_prev
=sharedstatedir
;;
1187 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1188 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1189 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1191 sharedstatedir
=$ac_optarg ;;
1193 -site |
--site |
--sit)
1195 -site=* |
--site=* |
--sit=*)
1198 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1200 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1201 srcdir
=$ac_optarg ;;
1203 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1204 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1205 ac_prev
=sysconfdir
;;
1206 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1207 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1208 sysconfdir
=$ac_optarg ;;
1210 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1211 ac_prev
=target_alias
;;
1212 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1213 target_alias
=$ac_optarg ;;
1215 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1218 -version |
--version |
--versio |
--versi |
--vers |
-V)
1219 ac_init_version
=: ;;
1222 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1225 as_fn_error $?
"invalid package name: $ac_useropt"
1226 ac_useropt_orig
=$ac_useropt
1227 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep
=', ';;
1235 eval with_
$ac_useropt=\
$ac_optarg ;;
1237 -without-* |
--without-*)
1238 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1241 as_fn_error $?
"invalid package name: $ac_useropt"
1242 ac_useropt_orig
=$ac_useropt
1243 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1248 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep
=', ';;
1251 eval with_
$ac_useropt=no
;;
1254 # Obsolete; use --with-x.
1257 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1258 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1259 ac_prev
=x_includes
;;
1260 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1261 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1262 x_includes
=$ac_optarg ;;
1264 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1265 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1266 ac_prev
=x_libraries
;;
1267 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1268 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1269 x_libraries
=$ac_optarg ;;
1271 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1272 Try \`$0 --help' for more information"
1276 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 case $ac_envvar in #(
1279 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1280 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1282 eval $ac_envvar=\
$ac_optarg
1283 export $ac_envvar ;;
1286 # FIXME: should be removed in autoconf 3.0.
1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1296 if test -n "$ac_prev"; then
1297 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1298 as_fn_error $?
"missing argument to $ac_option"
1301 if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1304 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 # Check all directory arguments for consistency.
1310 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1315 eval ac_val
=\$
$ac_var
1316 # Remove trailing slashes.
1319 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\
$ac_val;;
1322 # Be sure to have absolute directory names.
1324 [\\/$
]* | ?
:[\\/]* ) continue;;
1325 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1327 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1335 target
=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x
; then
1339 if test "x$build_alias" = x
; then
1340 cross_compiling
=maybe
1341 elif test "x$build_alias" != "x$host_alias"; then
1347 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1349 test "$silent" = yes && exec 6>/dev
/null
1352 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di
=`ls -di .` &&
1354 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1355 as_fn_error $?
"working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 as_fn_error $?
"pwd does not report name of working directory"
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted
=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir
=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1392 ac_srcdir_defaulted
=no
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1396 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1398 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1410 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 for ac_var
in $ac_precious_vars; do
1413 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1415 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1420 # Report the --help message.
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1426 \`configure' configures OpenVPN 2.3.6 to adapt to many kinds of systems.
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1433 Defaults for the options are specified in brackets.
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print \`checking ...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1457 For better control, use the options below.
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1484 --program-prefix=PREFIX prepend PREFIX to installed program names
1485 --program-suffix=SUFFIX append SUFFIX to installed program names
1486 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1489 --build=BUILD configure
for building on BUILD
[guessed
]
1490 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1494 if test -n "$ac_init_help"; then
1495 case $ac_init_help in
1496 short | recursive
) echo "Configuration of OpenVPN 2.3.6:";;
1501 --disable-option-checking ignore unrecognized
--enable/--with options
1502 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1503 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1504 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1505 --disable-silent-rules verbose build output
(undo
: "make V=0")
1506 --enable-dependency-tracking
1507 do not reject slow dependency extractors
1508 --disable-dependency-tracking
1509 speeds up one-time build
1510 --disable-lzo disable LZO compression support
[default
=yes]
1511 --enable-lzo-stub don
't compile LZO compression support but still
1512 allow limited interoperability with LZO-enabled
1514 --disable-crypto disable crypto support [default=yes]
1515 --enable-ofb-cfb enable support for OFB and CFB cipher modes
1517 --disable-ssl disable SSL support for TLS-based key exchange
1519 --enable-x509-alt-username
1520 enable the --x509-username-field feature
1522 --disable-multi disable client/server support (--mode server +
1523 client mode) [default=yes]
1524 --disable-server disable server support only (but retain client
1525 support) [default=yes]
1526 --disable-plugins disable plug-in support [default=yes]
1527 --disable-management disable management server support [default=yes]
1528 --enable-pkcs11 enable pkcs11 support [default=no]
1529 --disable-socks disable Socks support [default=yes]
1530 --disable-http-proxy disable HTTP proxy support [default=yes]
1531 --disable-fragment disable internal fragmentation support (--fragment)
1533 --disable-multihome disable multi-homed UDP server support (--multihome)
1535 --disable-port-share disable TCP server port-share support (--port-share)
1537 --disable-debug disable debugging support (disable gremlin and verb
1538 7+ messages) [default=yes]
1539 --enable-small enable smaller executable size (disable OCC, usage
1540 message, and verb 4 parm list) [default=yes]
1541 --enable-password-save allow --askpass and --auth-user-pass passwords to be
1542 read from a file [default=yes]
1543 --enable-iproute2 enable support for iproute2 [default=no]
1544 --disable-def-auth disable deferred authentication [default=yes]
1545 --disable-pf disable internal packet filter [default=yes]
1546 --disable-plugin-auth-pam
1547 disable auth-pam plugin [default=platform specific]
1548 --disable-plugin-down-root
1549 disable down-root plugin [default=platform specific]
1550 --enable-pam-dlopen dlopen libpam [default=no]
1551 --enable-strict enable strict compiler warnings (debugging option)
1553 --enable-pedantic enable pedantic compiler warnings, will not generate
1554 a working executable (debugging option) [default=no]
1555 --enable-strict-options enable strict options check between peers (debugging
1556 option) [default=no]
1557 --enable-selinux enable SELinux support [default=no]
1558 --enable-systemd enable systemd suppport [default=no]
1559 --enable-shared[=PKGS] build shared libraries [default=yes]
1560 --enable-static[=PKGS] build static libraries [default=yes]
1561 --enable-fast-install[=PKGS]
1562 optimize for fast installation [default=yes]
1563 --disable-libtool-lock avoid locking (might break parallel builds)
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-special-build=STRING
1569 specify special build string
1570 --with-mem-check=TYPE build with debug memory checking,
1571 TYPE=no|dmalloc|valgrind|ssl [default=no]
1572 --with-crypto-library=library
1573 build with the given crypto library,
1574 TYPE=openssl|polarssl [default=openssl]
1575 --with-plugindir plugin directory [default=LIBDIR/openvpn]
1576 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-sysroot=DIR Search for dependent libraries within DIR
1580 (or the compiler's sysroot
if not specified
).
1582 Some influential environment variables
:
1583 CC C compiler
command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1586 nonstandard directory
<lib dir
>
1587 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1588 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1589 you have headers
in a nonstandard directory
<include dir
>
1591 PKG_CONFIG path to pkg-config utility
1593 directories to add to pkg-config
's search path
1595 path overriding pkg-config's built-in search path
1596 IFCONFIG full path to ipconfig utility
1597 ROUTE full path to route utility
1598 IPROUTE full path to ip utility
1599 NETSTAT path to netstat utility
1600 MAN2HTML path to man2html utility
1601 GIT path to git utility
1602 SYSTEMD_ASK_PASSWORD
1603 path to systemd-ask-password utility
1604 TAP_CFLAGS C compiler flags
for tap
1606 C compiler flags
for libpam
1607 LIBPAM_LIBS linker flags
for libpam
1608 PKCS11_HELPER_CFLAGS
1609 C compiler flags
for PKCS11_HELPER
, overriding pkg-config
1611 linker flags
for PKCS11_HELPER
, overriding pkg-config
1612 OPENSSL_CRYPTO_CFLAGS
1613 C compiler flags
for OPENSSL_CRYPTO
, overriding pkg-config
1615 linker flags
for OPENSSL_CRYPTO
, overriding pkg-config
1617 C compiler flags
for OPENSSL_SSL
, overriding pkg-config
1619 linker flags
for OPENSSL_SSL
, overriding pkg-config
1621 C compiler flags
for polarssl
1623 linker flags
for polarssl
1624 LZO_CFLAGS C compiler flags
for lzo
1625 LZO_LIBS linker flags
for lzo
1627 C compiler flags
for libsystemd
, overriding pkg-config
1629 linker flags
for libsystemd
, overriding pkg-config
1631 Use these variables to override the choices made by
`configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1634 Report bugs to <openvpn-users@lists.sourceforge.net>.
1639 if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1664 .) # We are building in place.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1697 OpenVPN configure 2.3.6
1698 generated by GNU Autoconf 2.69
1700 Copyright (C) 2012 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1721 *) ac_try_echo
=$ac_try;;
1723 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1727 if test -s conftest.err
; then
1728 grep -v '^ *+' conftest.err
>conftest.er1
1729 cat conftest.er1
>&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.
$ac_objext; then :
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.
$ac_ext >&5
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status
$ac_retval
1747 } # ac_fn_c_try_compile
1749 # ac_fn_c_try_cpp LINENO
1750 # ----------------------
1751 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1755 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } > conftest.i && {
1771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1786 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1789 # the include files in INCLUDES and setting the cache variable VAR
1791 ac_fn_c_check_header_mongrel ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if eval \${$3+:} false; then :
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1804 # Is the header compilable?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1806 $as_echo_n "checking $2 usability... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813 ac_header_compiler=yes
1815 ac_header_compiler=no
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1819 $as_echo "$ac_header_compiler" >&6; }
1821 # Is the header present?
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1823 $as_echo_n "checking $2 presence... " >&6; }
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1828 if ac_fn_c_try_cpp "$LINENO"; then :
1829 ac_header_preproc=yes
1831 ac_header_preproc=no
1833 rm -f conftest.err conftest.i conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1835 $as_echo "$ac_header_preproc" >&6; }
1837 # So? What about this header?
1838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1841 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1847 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1849 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1851 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1853 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856 ( $as_echo "## -------------------------------------------------- ##
1857 ## Report this to openvpn-users@lists.sourceforge.net ##
1858 ## -------------------------------------------------- ##"
1859 ) | sed "s/^/$as_me: WARNING: /" >&2
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval \${$3+:} false; then :
1865 $as_echo_n "(cached) " >&6
1867 eval "$3=\$ac_header_compiler"
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 } # ac_fn_c_check_header_mongrel
1877 # ac_fn_c_try_run LINENO
1878 # ----------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1880 # that executables *can* be run.
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_link"
1886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1887 *) ac_try_echo
=$ac_try;;
1889 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>&5
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1895 { { case "(($ac_try" in
1896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_try") 2>&5
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; }; }; then :
1907 $as_echo "$as_me: program exited with status $ac_status" >&5
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=$ac_status
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1919 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists and can be compiled using the include files in
1922 # INCLUDES, setting the cache variable VAR accordingly.
1923 ac_fn_c_check_header_compile ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1936 if ac_fn_c_try_compile "$LINENO"; then :
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 } # ac_fn_c_check_header_compile
1950 # ac_fn_c_try_link LINENO
1951 # -----------------------
1952 # Try to link conftest.$ac_ext, and return whether this succeeded.
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 rm -f conftest.$ac_objext conftest$ac_exeext
1957 if { { ac_try="$ac_link"
1959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1960 *) ac_try_echo
=$ac_try;;
1962 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_link") 2>conftest.err
1966 if test -s conftest.err
; then
1967 grep -v '^ *+' conftest.err
>conftest.er1
1968 cat conftest.er1
>&5
1969 mv -f conftest.er1 conftest.err
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && {
1973 test -z "$ac_c_werror_flag" ||
1974 test ! -s conftest.err
1975 } && test -s conftest
$ac_exeext && {
1976 test "$cross_compiling" = yes ||
1977 test -x conftest
$ac_exeext
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.
$ac_ext >&5
1986 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1987 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1988 # interfere with the next link command; also delete a directory that is
1989 # left behind by Apple's compiler. We do this before executing the actions.
1990 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 as_fn_set_status
$ac_retval
1994 } # ac_fn_c_try_link
1996 # ac_fn_c_check_func LINENO FUNC VAR
1997 # ----------------------------------
1998 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1999 ac_fn_c_check_func
()
2001 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \
${$3+:} false
; then :
2005 $as_echo_n "(cached) " >&6
2007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011 #define $2 innocuous_$2
2013 /* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char $2 (); below.
2015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016 <limits.h> exists even on freestanding compilers. */
2019 # include <limits.h>
2021 # include <assert.h>
2026 /* Override any GCC internal prototype to avoid an error.
2027 Use char because int might match the return type of a GCC
2028 builtin and then its argument prototype would still apply. */
2033 /* The GNU C library defines this for functions which it implements
2034 to always fail with ENOSYS. Some functions are actually named
2035 something starting with __ and the normal name is an alias. */
2036 #if defined __stub_$2 || defined __stub___$2
2048 if ac_fn_c_try_link
"$LINENO"; then :
2053 rm -f core conftest.err conftest.
$ac_objext \
2054 conftest
$ac_exeext conftest.
$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_func
2063 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2064 # -------------------------------------------
2065 # Tests whether TYPE exists after having included INCLUDES, setting cache
2066 # variable VAR accordingly.
2067 ac_fn_c_check_type
()
2069 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if eval \
${$3+:} false
; then :
2073 $as_echo_n "(cached) " >&6
2076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2088 if ac_fn_c_try_compile
"$LINENO"; then :
2089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2101 if ac_fn_c_try_compile
"$LINENO"; then :
2106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115 } # ac_fn_c_check_type
2117 # ac_fn_c_find_intX_t LINENO BITS VAR
2118 # -----------------------------------
2119 # Finds a signed integer type with width BITS, setting cache variable VAR
2121 ac_fn_c_find_intX_t
()
2123 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2125 $as_echo_n "checking for int$2_t... " >&6; }
2126 if eval \
${$3+:} false
; then :
2127 $as_echo_n "(cached) " >&6
2130 # Order is important - never check a type that is potentially smaller
2131 # than half of the expected target width.
2132 for ac_type
in int
$2_t 'int' 'long int' \
2133 'long long int' 'short int' 'signed char'; do
2134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $ac_includes_default
2137 enum { N = $2 / 2 - 1 };
2141 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2143 return test_array [0];
2149 if ac_fn_c_try_compile
"$LINENO"; then :
2150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $ac_includes_default
2153 enum { N = $2 / 2 - 1 };
2157 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2158 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2160 return test_array [0];
2166 if ac_fn_c_try_compile
"$LINENO"; then :
2173 eval "$3=\$ac_type" ;;
2176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2179 if eval test \"x\$
"$3"\" = x
"no"; then :
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_find_intX_t
2193 # ac_fn_c_find_uintX_t LINENO BITS VAR
2194 # ------------------------------------
2195 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2197 ac_fn_c_find_uintX_t
()
2199 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2201 $as_echo_n "checking for uint$2_t... " >&6; }
2202 if eval \
${$3+:} false
; then :
2203 $as_echo_n "(cached) " >&6
2206 # Order is important - never check a type that is potentially smaller
2207 # than half of the expected target width.
2208 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2209 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2212 $ac_includes_default
2216 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2218 return test_array [0];
2224 if ac_fn_c_try_compile
"$LINENO"; then :
2229 eval "$3=\$ac_type" ;;
2232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2233 if eval test \"x\$
"$3"\" = x
"no"; then :
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_c_find_uintX_t
2247 # ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2248 # --------------------------------------------------------------
2249 # Tries to find the compile-time value of EXPR in a program that includes
2250 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2252 ac_fn_c_compute_int
()
2254 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2255 if test "$cross_compiling" = yes; then
2256 # Depending upon the size, compute the lo and hi bounds.
2257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2263 static int test_array [1 - 2 * !(($2) >= 0)];
2265 return test_array [0];
2271 if ac_fn_c_try_compile
"$LINENO"; then :
2274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2280 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2282 return test_array [0];
2288 if ac_fn_c_try_compile
"$LINENO"; then :
2289 ac_hi
=$ac_mid; break
2291 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2292 if test $ac_lo -le $ac_mid; then
2296 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2307 static int test_array [1 - 2 * !(($2) < 0)];
2309 return test_array [0];
2315 if ac_fn_c_try_compile
"$LINENO"; then :
2318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2324 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2326 return test_array [0];
2332 if ac_fn_c_try_compile
"$LINENO"; then :
2333 ac_lo
=$ac_mid; break
2335 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2336 if test $ac_mid -le $ac_hi; then
2340 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2350 # Binary search between lo and hi bounds.
2351 while test "x$ac_lo" != "x$ac_hi"; do
2352 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2359 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2361 return test_array [0];
2367 if ac_fn_c_try_compile
"$LINENO"; then :
2370 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2375 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2382 static long int longval () { return $2; }
2383 static unsigned long int ulongval () { return $2; }
2390 FILE *f = fopen ("conftest.val", "w");
2395 long int i = longval ();
2398 fprintf (f, "%ld", i);
2402 unsigned long int i = ulongval ();
2405 fprintf (f, "%lu", i);
2407 /* Do not output a trailing newline, as this causes \r\n confusion
2408 on some platforms. */
2409 return ferror (f) || fclose (f) != 0;
2415 if ac_fn_c_try_run
"$LINENO"; then :
2416 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2420 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2421 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426 as_fn_set_status
$ac_retval
2428 } # ac_fn_c_compute_int
2430 # ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2431 # ---------------------------------------------------------------
2432 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2434 ac_fn_c_check_decl
()
2436 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2437 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2438 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2440 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2441 if eval \
${$3+:} false
; then :
2442 $as_echo_n "(cached) " >&6
2444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2450 #ifndef $as_decl_name
2452 (void) $as_decl_use;
2454 (void) $as_decl_name;
2462 if ac_fn_c_try_compile
"$LINENO"; then :
2467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474 } # ac_fn_c_check_decl
2475 cat >config.log
<<_ACEOF
2476 This file contains any messages produced by compilers while
2477 running configure, to aid debugging if configure makes a mistake.
2479 It was created by OpenVPN $as_me 2.3.6, which was
2480 generated by GNU Autoconf 2.69. Invocation command line was
2492 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2501 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2502 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2503 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2504 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2505 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2506 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2507 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir
=.
2516 $as_echo "PATH: $as_dir"
2532 # Keep a trace of the command line.
2533 # Strip out --no-create and --no-recursion so they do not pile up.
2534 # Strip out --silent because we don't want to record it for future runs.
2535 # Also quote any args containing shell meta-characters.
2536 # Make two passes to allow for proper duplicate-argument suppression.
2540 ac_must_keep_next
=false
2546 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2547 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2548 |
-silent |
--silent |
--silen |
--sile |
--sil)
2551 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2554 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2556 as_fn_append ac_configure_args1
" '$ac_arg'"
2557 if test $ac_must_keep_next = true
; then
2558 ac_must_keep_next
=false
# Got value, back to normal.
2561 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2562 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2563 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2564 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2565 case "$ac_configure_args0 " in
2566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2569 -* ) ac_must_keep_next
=true
;;
2572 as_fn_append ac_configure_args
" '$ac_arg'"
2577 { ac_configure_args0
=; unset ac_configure_args0
;}
2578 { ac_configure_args1
=; unset ac_configure_args1
;}
2580 # When interrupted or exit'd, cleanup temporary files, and complete
2581 # config.log. We remove comments because anyway the quotes in there
2582 # would cause problems or look ugly.
2583 # WARNING: Use '\'' to represent an apostrophe within the trap.
2584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2585 trap 'exit_status=$?
2586 # Save into config.log some information that might help in debugging.
2590 $as_echo "## ---------------- ##
2591 ## Cache variables. ##
2592 ## ---------------- ##"
2594 # The following way of writing the cache mishandles newlines in values,
2596 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2597 eval ac_val=\$$ac_var
2601 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2602 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2605 _ | IFS | as_nl) ;; #(
2606 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2607 *) { eval $ac_var=; unset $ac_var;} ;;
2612 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2613 *${as_nl}ac_space=\ *)
2615 "s/'\''/'\''\\\\'\'''\''/g;
2616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2626 $as_echo "## ----------------- ##
2627 ## Output variables. ##
2628 ## ----------------- ##"
2630 for ac_var in $ac_subst_vars
2632 eval ac_val=\$$ac_var
2634 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2636 $as_echo "$ac_var='\''$ac_val'\''"
2640 if test -n "$ac_subst_files"; then
2641 $as_echo "## ------------------- ##
2642 ## File substitutions. ##
2643 ## ------------------- ##"
2645 for ac_var
in $ac_subst_files
2647 eval ac_val
=\$
$ac_var
2649 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2651 $as_echo "$ac_var='\''$ac_val'\''"
2656 if test -s confdefs.h; then
2657 $as_echo "## ----------- ##
2664 test "$ac_signal" != 0 &&
2665 $as_echo "$as_me: caught signal $ac_signal"
2666 $as_echo "$as_me: exit $exit_status"
2668 rm -f core *.core core.conftest.* &&
2669 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2672 for ac_signal
in 1 2 13 15; do
2673 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2677 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2678 rm -f -r conftest
* confdefs.h
2680 $as_echo "/* confdefs.h */" > confdefs.h
2682 # Predefined preprocessor variables.
2684 cat >>confdefs.h
<<_ACEOF
2685 #define PACKAGE_NAME "$PACKAGE_NAME"
2688 cat >>confdefs.h
<<_ACEOF
2689 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2692 cat >>confdefs.h
<<_ACEOF
2693 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2696 cat >>confdefs.h
<<_ACEOF
2697 #define PACKAGE_STRING "$PACKAGE_STRING"
2700 cat >>confdefs.h
<<_ACEOF
2701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2704 cat >>confdefs.h
<<_ACEOF
2705 #define PACKAGE_URL "$PACKAGE_URL"
2709 # Let the site file select an alternate cache file if it wants to.
2710 # Prefer an explicitly selected file to automatically selected ones.
2713 if test -n "$CONFIG_SITE"; then
2714 # We do not want a PATH search for config.site.
2715 case $CONFIG_SITE in #((
2716 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2717 */*) ac_site_file1
=$CONFIG_SITE;;
2718 *) ac_site_file1
=.
/$CONFIG_SITE;;
2720 elif test "x$prefix" != xNONE
; then
2721 ac_site_file1
=$prefix/share
/config.site
2722 ac_site_file2
=$prefix/etc
/config.site
2724 ac_site_file1
=$ac_default_prefix/share
/config.site
2725 ac_site_file2
=$ac_default_prefix/etc
/config.site
2727 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2729 test "x$ac_site_file" = xNONE
&& continue
2730 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2732 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2733 sed 's/^/| /' "$ac_site_file" >&5
2735 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 as_fn_error $?
"failed to load site script $ac_site_file
2738 See \`config.log' for more details" "$LINENO" 5; }
2742 if test -r "$cache_file"; then
2743 # Some versions of bash will fail to source /dev/null (special files
2744 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2745 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2747 $as_echo "$as_me: loading cache $cache_file" >&6;}
2749 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2750 *) .
"./$cache_file";;
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2755 $as_echo "$as_me: creating cache $cache_file" >&6;}
2759 # Check that the precious variables saved in the cache have kept the same
2761 ac_cache_corrupted
=false
2762 for ac_var
in $ac_precious_vars; do
2763 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2764 eval ac_new_set
=\
$ac_env_${ac_var}_set
2765 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2766 eval ac_new_val
=\
$ac_env_${ac_var}_value
2767 case $ac_old_set,$ac_new_set in
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2770 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2771 ac_cache_corrupted
=: ;;
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2774 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2775 ac_cache_corrupted
=: ;;
2778 if test "x$ac_old_val" != "x$ac_new_val"; then
2779 # differences in whitespace do not lead to failure.
2780 ac_old_val_w
=`echo x $ac_old_val`
2781 ac_new_val_w
=`echo x $ac_new_val`
2782 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2784 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2785 ac_cache_corrupted
=:
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2788 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2789 eval $ac_var=\
$ac_old_val
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2792 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2794 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2797 # Pass precious variables to config.status.
2798 if test "$ac_new_set" = set; then
2800 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2801 *) ac_arg
=$ac_var=$ac_new_val ;;
2803 case " $ac_configure_args " in
2804 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2805 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2809 if $ac_cache_corrupted; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2813 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2814 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2816 ## -------------------- ##
2817 ## Main body of script. ##
2818 ## -------------------- ##
2821 ac_cpp
='$CPP $CPPFLAGS'
2822 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2833 if test -z "${docdir}"; then
2834 docdir
="\$(datadir)/doc/\$(PACKAGE_NAME)"
2837 if test -z "${htmldir}"; then
2838 htmldir
="\$(docdir)"
2843 $as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,6,0" >>confdefs.h
2847 for ac_dir
in .
"$srcdir"/.
; do
2848 if test -f "$ac_dir/install-sh"; then
2850 ac_install_sh
="$ac_aux_dir/install-sh -c"
2852 elif test -f "$ac_dir/install.sh"; then
2854 ac_install_sh
="$ac_aux_dir/install.sh -c"
2856 elif test -f "$ac_dir/shtool"; then
2858 ac_install_sh
="$ac_aux_dir/shtool install -c"
2862 if test -z "$ac_aux_dir"; then
2863 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2866 # These three variables are undocumented and unsupported,
2867 # and are intended to be withdrawn in a future Autoconf release.
2868 # They can cause serious problems if a builder's source tree is in a directory
2869 # whose full name contains unusual characters.
2870 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2871 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2872 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2875 ac_config_headers
="$ac_config_headers config.h"
2879 am__api_version
='1.14'
2881 # Find a good install program. We prefer a C program (faster),
2882 # so one script is as good as another. But avoid the broken or
2883 # incompatible versions:
2884 # SysV /etc/install, /usr/sbin/install
2885 # SunOS /usr/etc/install
2886 # IRIX /sbin/install
2888 # AmigaOS /C/install, which installs bootblocks on floppy discs
2889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2892 # OS/2's system install, which has a completely different semantic
2893 # ./install, which can be erroneously created by make from ./install.sh.
2894 # Reject install programs that cannot install multiple files.
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2896 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2897 if test -z "$INSTALL"; then
2898 if ${ac_cv_path_install+:} false
; then :
2899 $as_echo_n "(cached) " >&6
2901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir
=.
2906 # Account for people who put trailing slashes in PATH elements.
2907 case $as_dir/ in #((
2908 .
/ | .
// |
/[cC
]/* | \
2909 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2910 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2913 # OSF1 and SCO ODT 3.0 have their own names for install.
2914 # Don't use installbsd from OSF since it installs stuff as root
2916 for ac_prog
in ginstall scoinst
install; do
2917 for ac_exec_ext
in '' $ac_executable_extensions; do
2918 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2919 if test $ac_prog = install &&
2920 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2921 # AIX install. It has an incompatible calling convention.
2923 elif test $ac_prog = install &&
2924 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2925 # program-specific install script used by HP pwplus--don't use.
2928 rm -rf conftest.one conftest.two conftest.dir
2929 echo one
> conftest.one
2930 echo two
> conftest.two
2932 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2933 test -s conftest.one
&& test -s conftest.two
&&
2934 test -s conftest.dir
/conftest.one
&&
2935 test -s conftest.dir
/conftest.two
2937 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2950 rm -rf conftest.one conftest.two conftest.dir
2953 if test "${ac_cv_path_install+set}" = set; then
2954 INSTALL
=$ac_cv_path_install
2956 # As a last resort, use the slow shell script. Don't cache a
2957 # value for INSTALL within a source directory, because that will
2958 # break other packages using the cache if that directory is
2959 # removed, or if the value is a relative name.
2960 INSTALL
=$ac_install_sh
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2964 $as_echo "$INSTALL" >&6; }
2966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2967 # It thinks the first close brace ends the variable substitution.
2968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2972 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2975 $as_echo_n "checking whether build environment is sane... " >&6; }
2976 # Reject unsafe characters in $srcdir or the absolute working directory
2977 # name. Accept space and tab only in the latter.
2981 *[\\\"\
#\$\&\'\`$am_lf]*)
2982 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2985 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2986 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2989 # Do 'set' in a subshell so we don't clobber the current shell's
2990 # arguments. Must try -L first in case configure is actually a
2991 # symlink; some systems play weird games with the mod time of symlinks
2992 # (eg FreeBSD returns the mod time of the symlink's containing
2996 for am_try
in 1 2; do
2997 echo "timestamp, slept: $am_has_slept" > conftest.
file
2998 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2999 if test "$*" = "X"; then
3001 set X
`ls -t "$srcdir/configure" conftest.file`
3003 if test "$*" != "X $srcdir/configure conftest.file" \
3004 && test "$*" != "X conftest.file $srcdir/configure"; then
3006 # If neither matched, then we have a broken ls. This can happen
3007 # if, for instance, CONFIG_SHELL is bash and it inherits a
3008 # broken ls alias from the environment. This has actually
3009 # happened. Such a system could not be considered "sane".
3010 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3011 alias in your environment" "$LINENO" 5
3013 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3020 test "$2" = conftest.
file
3026 as_fn_error $?
"newly created file is older than distributed files!
3027 Check your system clock" "$LINENO" 5
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3030 $as_echo "yes" >&6; }
3031 # If we didn't sleep, we still need to ensure time stamps of config.status and
3032 # generated files are strictly newer.
3034 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3041 test "$program_prefix" != NONE
&&
3042 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3043 # Use a double $ so make ignores it.
3044 test "$program_suffix" != NONE
&&
3045 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3046 # Double any \ or $.
3047 # By default was `s,x,x', remove it if useless.
3048 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3049 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3051 # expand $ac_aux_dir to an absolute path
3052 am_aux_dir
=`cd $ac_aux_dir && pwd`
3054 if test x
"${MISSING+set}" != xset
; then
3057 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3059 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3062 # Use eval to expand $SHELL
3063 if eval "$MISSING --is-lightweight"; then
3064 am_missing_run
="$MISSING "
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3068 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3071 if test x
"${install_sh}" != xset
; then
3074 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3076 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3080 # Installed binaries are usually stripped using 'strip' when the user
3081 # run "make install-strip". However 'strip' might not be the right
3082 # tool to use in cross-compilation environments, therefore Automake
3083 # will honor the 'STRIP' environment variable to overrule this program.
3084 if test "$cross_compiling" != no
; then
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3087 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_STRIP+:} false
; then :
3091 $as_echo_n "(cached) " >&6
3093 if test -n "$STRIP"; then
3094 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir
=.
3101 for ac_exec_ext
in '' $ac_executable_extensions; do
3102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 STRIP
=$ac_cv_prog_STRIP
3114 if test -n "$STRIP"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3116 $as_echo "$STRIP" >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3124 if test -z "$ac_cv_prog_STRIP"; then
3126 # Extract the first word of "strip", so it can be a program name with args.
3127 set dummy strip
; ac_word
=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3131 $as_echo_n "(cached) " >&6
3133 if test -n "$ac_ct_STRIP"; then
3134 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir
=.
3141 for ac_exec_ext
in '' $ac_executable_extensions; do
3142 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_STRIP
="strip"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3154 if test -n "$ac_ct_STRIP"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3156 $as_echo "$ac_ct_STRIP" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3162 if test "x$ac_ct_STRIP" = x
; then
3165 case $cross_compiling:$ac_tool_warned in
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned
=yes ;;
3174 STRIP
="$ac_cv_prog_STRIP"
3178 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3182 if test -z "$MKDIR_P"; then
3183 if ${ac_cv_path_mkdir+:} false
; then :
3184 $as_echo_n "(cached) " >&6
3186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3187 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3190 test -z "$as_dir" && as_dir
=.
3191 for ac_prog
in mkdir gmkdir
; do
3192 for ac_exec_ext
in '' $ac_executable_extensions; do
3193 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3194 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3195 'mkdir (GNU coreutils) '* | \
3196 'mkdir (coreutils) '* | \
3197 'mkdir (fileutils) '4.1*)
3198 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3208 test -d .
/--version && rmdir .
/--version
3209 if test "${ac_cv_path_mkdir+set}" = set; then
3210 MKDIR_P
="$ac_cv_path_mkdir -p"
3212 # As a last resort, use the slow shell script. Don't cache a
3213 # value for MKDIR_P within a source directory, because that will
3214 # break other packages using the cache if that directory is
3215 # removed, or if the value is a relative name.
3216 MKDIR_P
="$ac_install_sh -d"
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3220 $as_echo "$MKDIR_P" >&6; }
3222 for ac_prog
in gawk mawk nawk
awk
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy
$ac_prog; ac_word
=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_AWK+:} false
; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$AWK"; then
3232 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir
=.
3239 for ac_exec_ext
in '' $ac_executable_extensions; do
3240 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_AWK
="$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 if test -n "$AWK"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3254 $as_echo "$AWK" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3261 test -n "$AWK" && break
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3265 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3267 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3268 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3269 $as_echo_n "(cached) " >&6
3271 cat >conftest.
make <<\_ACEOF
3274 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3276 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3277 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3279 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3281 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3285 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 SET_MAKE
="MAKE=${MAKE-make}"
3295 rm -rf .tst
2>/dev
/null
3296 mkdir .tst
2>/dev
/null
3297 if test -d .tst
; then
3302 rmdir .tst
2>/dev
/null
3304 # Check whether --enable-silent-rules was given.
3305 if test "${enable_silent_rules+set}" = set; then :
3306 enableval
=$enable_silent_rules;
3309 case $enable_silent_rules in # (((
3310 yes) AM_DEFAULT_VERBOSITY
=0;;
3311 no
) AM_DEFAULT_VERBOSITY
=1;;
3312 *) AM_DEFAULT_VERBOSITY
=1;;
3314 am_make
=${MAKE-make}
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3316 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3317 if ${am_cv_make_support_nested_variables+:} false
; then :
3318 $as_echo_n "(cached) " >&6
3320 if $as_echo 'TRUE=$(BAR$(V))
3326 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3327 am_cv_make_support_nested_variables
=yes
3329 am_cv_make_support_nested_variables
=no
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3333 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3334 if test $am_cv_make_support_nested_variables = yes; then
3336 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3338 AM_V
=$AM_DEFAULT_VERBOSITY
3339 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3343 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3344 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3345 # is not polluted with repeated "-I."
3346 am__isrc
=' -I$(srcdir)'
3347 # test to see if srcdir already configured
3348 if test -f $srcdir/config.status
; then
3349 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3353 # test whether we have cygpath
3354 if test -z "$CYGPATH_W"; then
3355 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3356 CYGPATH_W
='cygpath -w'
3363 # Define the identity of the package.
3368 cat >>confdefs.h
<<_ACEOF
3369 #define PACKAGE "$PACKAGE"
3373 cat >>confdefs.h
<<_ACEOF
3374 #define VERSION "$VERSION"
3377 # Some tools Automake needs.
3379 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3382 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3385 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3388 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3391 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3393 # For better backward compatibility. To be removed once Automake 1.9.x
3394 # dies out for good. For more background, see:
3395 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3396 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3397 mkdir_p
='$(MKDIR_P)'
3399 # We need awk for the "check" target. The system "awk" is bad on
3401 # Always define AMTAR for backward compatibility. Yes, it's still used
3402 # in the wild :-( We should find a proper way to deprecate it ...
3406 # We'll loop over all known methods to create a tar archive until one works.
3407 _am_tools
='gnutar pax cpio none'
3409 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3416 # POSIX will say in a future version that running "rm -f" with no argument
3417 # is OK; and we want to be able to make that assumption in our Makefile
3418 # recipes. So use an aggressive probe to check that the usage we want is
3419 # actually supported "in the wild" to an acceptable degree.
3420 # See automake bug#10828.
3421 # To make any issue more visible, cause the running configure to be aborted
3422 # by default if the 'rm' program in use doesn't match our expectations; the
3423 # user can still override this though.
3424 if rm -f && rm -fr && rm -rf; then : OK
; else
3428 Your 'rm' program seems unable to run without file operands specified
3429 on the command line, even when the '-f' option is present. This is contrary
3430 to the behaviour of most rm programs out there, and not conforming with
3431 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3433 Please tell bug-automake@gnu.org about your system, including the value
3434 of your $PATH and any error possibly output before this message. This
3435 can help us improve future automake versions.
3438 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3439 echo 'Configuration will proceed anyway, since you have set the' >&2
3440 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3444 Aborting the configuration process, to ensure you take notice of the issue.
3446 You can download and install GNU coreutils to get an 'rm' implementation
3447 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3449 If you want to complete the configuration process using your problematic
3450 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3451 to "yes", and re-run configure.
3454 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3457 # Make sure we can run config.sub.
3458 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3459 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3462 $as_echo_n "checking build system type... " >&6; }
3463 if ${ac_cv_build+:} false
; then :
3464 $as_echo_n "(cached) " >&6
3466 ac_build_alias
=$build_alias
3467 test "x$ac_build_alias" = x
&&
3468 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3469 test "x$ac_build_alias" = x
&&
3470 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3471 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3472 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3476 $as_echo "$ac_cv_build" >&6; }
3477 case $ac_cv_build in
3479 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3482 ac_save_IFS
=$IFS; IFS
='-'
3488 # Remember, the first character of IFS is used to create $*,
3489 # except with old shells:
3492 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3496 $as_echo_n "checking host system type... " >&6; }
3497 if ${ac_cv_host+:} false
; then :
3498 $as_echo_n "(cached) " >&6
3500 if test "x$host_alias" = x
; then
3501 ac_cv_host
=$ac_cv_build
3503 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3504 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3509 $as_echo "$ac_cv_host" >&6; }
3512 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3515 ac_save_IFS
=$IFS; IFS
='-'
3521 # Remember, the first character of IFS is used to create $*,
3522 # except with old shells:
3525 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3528 DEPDIR
="${am__leading_dot}deps"
3530 ac_config_commands
="$ac_config_commands depfiles"
3533 am_make
=${MAKE-make}
3534 cat > confinc
<< 'END'
3536 @
echo this is the am__doit target
3539 # If we don't find an include directive, just comment out the code.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3541 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3545 # First try GNU make style include.
3546 echo "include confinc" > confmf
3547 # Ignore all kinds of additional output from 'make'.
3548 case `$am_make -s -f confmf 2> /dev/null` in #(
3549 *the\ am__doit\ target
*)
3555 # Now try BSD make style include.
3556 if test "$am__include" = "#"; then
3557 echo '.include "confinc"' > confmf
3558 case `$am_make -s -f confmf 2> /dev/null` in #(
3559 *the\ am__doit\ target
*)
3560 am__include
=.include
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3569 $as_echo "$_am_result" >&6; }
3570 rm -f confinc confmf
3572 # Check whether --enable-dependency-tracking was given.
3573 if test "${enable_dependency_tracking+set}" = set; then :
3574 enableval
=$enable_dependency_tracking;
3577 if test "x$enable_dependency_tracking" != xno
; then
3578 am_depcomp
="$ac_aux_dir/depcomp"
3582 if test "x$enable_dependency_tracking" != xno; then
3592 ac_cpp
='$CPP $CPPFLAGS'
3593 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3596 if test -n "$ac_tool_prefix"; then
3597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3598 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if ${ac_cv_prog_CC+:} false
; then :
3602 $as_echo_n "(cached) " >&6
3604 if test -n "$CC"; then
3605 ac_cv_prog_CC
="$CC" # Let the user override the test.
3607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir
=.
3612 for ac_exec_ext
in '' $ac_executable_extensions; do
3613 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3614 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 if test -n "$CC"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3627 $as_echo "$CC" >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3635 if test -z "$ac_cv_prog_CC"; then
3637 # Extract the first word of "gcc", so it can be a program name with args.
3638 set dummy gcc
; ac_word
=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3642 $as_echo_n "(cached) " >&6
3644 if test -n "$ac_ct_CC"; then
3645 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3651 test -z "$as_dir" && as_dir
=.
3652 for ac_exec_ext
in '' $ac_executable_extensions; do
3653 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_ac_ct_CC
="gcc"
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3665 if test -n "$ac_ct_CC"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3667 $as_echo "$ac_ct_CC" >&6; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3673 if test "x$ac_ct_CC" = x
; then
3676 case $cross_compiling:$ac_tool_warned in
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680 ac_tool_warned
=yes ;;
3688 if test -z "$CC"; then
3689 if test -n "$ac_tool_prefix"; then
3690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3691 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if ${ac_cv_prog_CC+:} false
; then :
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC
="$CC" # Let the user override the test.
3700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir
=.
3705 for ac_exec_ext
in '' $ac_executable_extensions; do
3706 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3729 if test -z "$CC"; then
3730 # Extract the first word of "cc", so it can be a program name with args.
3731 set dummy cc
; ac_word
=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if ${ac_cv_prog_CC+:} false
; then :
3735 $as_echo_n "(cached) " >&6
3737 if test -n "$CC"; then
3738 ac_cv_prog_CC
="$CC" # Let the user override the test.
3741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir
=.
3746 for ac_exec_ext
in '' $ac_executable_extensions; do
3747 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3749 ac_prog_rejected
=yes
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 if test $ac_prog_rejected = yes; then
3761 # We found a bogon in the path, so make sure we never use it.
3762 set dummy
$ac_cv_prog_CC
3764 if test $# != 0; then
3765 # We chose a different compiler from the bogus one.
3766 # However, it has the same basename, so the bogon will be chosen
3767 # first if we set CC to just the basename; use the full file name.
3769 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3785 if test -z "$CC"; then
3786 if test -n "$ac_tool_prefix"; then
3787 for ac_prog
in cl.exe
3789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3790 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_CC+:} false
; then :
3794 $as_echo_n "(cached) " >&6
3796 if test -n "$CC"; then
3797 ac_cv_prog_CC
="$CC" # Let the user override the test.
3799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir
=.
3804 for ac_exec_ext
in '' $ac_executable_extensions; do
3805 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 if test -n "$CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 $as_echo "$CC" >&6; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3826 test -n "$CC" && break
3829 if test -z "$CC"; then
3831 for ac_prog
in cl.exe
3833 # Extract the first word of "$ac_prog", so it can be a program name with args.
3834 set dummy
$ac_prog; ac_word
=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3838 $as_echo_n "(cached) " >&6
3840 if test -n "$ac_ct_CC"; then
3841 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3847 test -z "$as_dir" && as_dir
=.
3848 for ac_exec_ext
in '' $ac_executable_extensions; do
3849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_ac_ct_CC
="$ac_prog"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3861 if test -n "$ac_ct_CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3863 $as_echo "$ac_ct_CC" >&6; }
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3870 test -n "$ac_ct_CC" && break
3873 if test "x$ac_ct_CC" = x
; then
3876 case $cross_compiling:$ac_tool_warned in
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3880 ac_tool_warned
=yes ;;
3889 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error $?
"no acceptable C compiler found in \$PATH
3892 See \`config.log' for more details" "$LINENO" 5; }
3894 # Provide some information about the compiler.
3895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3898 for ac_option
in --version -v -V -qversion; do
3899 { { ac_try
="$ac_compiler $ac_option >&5"
3901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905 $as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3908 if test -s conftest.err; then
3910 ... rest of stderr output deleted ...
3911 10q' conftest.err >conftest.er1
3912 cat conftest.er1 >&5
3914 rm -f conftest.er1 conftest.err
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3930 ac_clean_files_save=$ac_clean_files
3931 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3932 # Try to create an executable without -o first, disregard a.out.
3933 # It will help us diagnose broken compilers, and finding out an intuition
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3936 $as_echo_n "checking whether the C compiler works... " >&6; }
3937 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3939 # The possible output files:
3940 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3943 for ac_file in $ac_files
3946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3947 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3952 if { { ac_try="$ac_link_default"
3954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3955 *) ac_try_echo
=$ac_try;;
3957 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_link_default") 2>&5
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; then :
3963 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3964 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3965 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3966 # so that the user can short-circuit this test for compilers unknown to
3968 for ac_file
in $ac_files ''
3970 test -f "$ac_file" ||
continue
3972 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3975 # We found the default executable, but exeext='' is most
3979 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3981 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983 # We set ac_cv_exeext here because the later test for it is not
3984 # safe: cross compilers may not add the suffix if given an `-o'
3985 # argument, so we may need to know it at that point already.
3986 # Even if this section looks crufty: it has the advantage of
3993 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3998 if test -z "$ac_file"; then :
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 $as_echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.
$ac_ext >&5
4004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006 as_fn_error
77 "C compiler cannot create executables
4007 See \`config.log' for more details" "$LINENO" 5; }
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4010 $as_echo "yes" >&6; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4013 $as_echo_n "checking for C compiler default output file name... " >&6; }
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4015 $as_echo "$ac_file" >&6; }
4016 ac_exeext
=$ac_cv_exeext
4018 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4019 ac_clean_files
=$ac_clean_files_save
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4021 $as_echo_n "checking for suffix of executables... " >&6; }
4022 if { { ac_try
="$ac_link"
4024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_link") 2>&5
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }; then :
4033 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4034 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4035 # work properly (i.e., refer to `conftest.exe'), while it won't with
4037 for ac_file
in conftest.exe conftest conftest.
*; do
4038 test -f "$ac_file" ||
continue
4040 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4041 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4050 See \`config.log' for more details" "$LINENO" 5; }
4052 rm -f conftest conftest
$ac_cv_exeext
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4054 $as_echo "$ac_cv_exeext" >&6; }
4056 rm -f conftest.
$ac_ext
4057 EXEEXT
=$ac_cv_exeext
4059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4065 FILE *f = fopen ("conftest.out", "w");
4066 return ferror (f) || fclose (f) != 0;
4072 ac_clean_files
="$ac_clean_files conftest.out"
4073 # Check that the compiler produces executables we can run. If not, either
4074 # the compiler is broken, or we cross compile.
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4076 $as_echo_n "checking whether we are cross compiling... " >&6; }
4077 if test "$cross_compiling" != yes; then
4078 { { ac_try
="$ac_link"
4080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_link") 2>&5
4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }
4089 if { ac_try='./conftest$ac_cv_exeext'
4090 { { case "(($ac_try" in
4091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4092 *) ac_try_echo
=$ac_try;;
4094 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 $as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_try") 2>&5
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }; }; then
4102 if test "$cross_compiling" = maybe
; then
4105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error $?
"cannot run C compiled programs.
4108 If you meant to cross compile, use \`--host'.
4109 See \`config.log' for more details" "$LINENO" 5; }
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4114 $as_echo "$cross_compiling" >&6; }
4116 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4117 ac_clean_files
=$ac_clean_files_save
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4119 $as_echo_n "checking for suffix of object files... " >&6; }
4120 if ${ac_cv_objext+:} false
; then :
4121 $as_echo_n "(cached) " >&6
4123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4134 rm -f conftest.o conftest.obj
4135 if { { ac_try
="$ac_compile"
4137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4141 $as_echo "$ac_try_echo"; } >&5
4142 (eval "$ac_compile") 2>&5
4144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4145 test $ac_status = 0; }; then :
4146 for ac_file in conftest.o conftest.obj conftest.*; do
4147 test -f "$ac_file" || continue;
4149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4150 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4155 $as_echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4160 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4161 See \
`config.log' for more details" "$LINENO" 5; }
4163 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4166 $as_echo "$ac_cv_objext" >&6; }
4167 OBJEXT=$ac_cv_objext
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4170 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4171 if ${ac_cv_c_compiler_gnu+:} false; then :
4172 $as_echo_n "(cached) " >&6
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4188 if ac_fn_c_try_compile "$LINENO"; then :
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4198 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4199 if test $ac_compiler_gnu = yes; then
4204 ac_test_CFLAGS=${CFLAGS+set}
4205 ac_save_CFLAGS=$CFLAGS
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4207 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4208 if ${ac_cv_prog_cc_g+:} false; then :
4209 $as_echo_n "(cached) " >&6
4211 ac_save_c_werror_flag=$ac_c_werror_flag
4212 ac_c_werror_flag=yes
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4226 if ac_fn_c_try_compile "$LINENO"; then :
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4241 if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_c_werror_flag=$ac_save_c_werror_flag
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4257 if ac_fn_c_try_compile "$LINENO"; then :
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 ac_c_werror_flag=$ac_save_c_werror_flag
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4268 $as_echo "$ac_cv_prog_cc_g" >&6; }
4269 if test "$ac_test_CFLAGS" = set; then
4270 CFLAGS=$ac_save_CFLAGS
4271 elif test $ac_cv_prog_cc_g = yes; then
4272 if test "$GCC" = yes; then
4278 if test "$GCC" = yes; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4285 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4286 if ${ac_cv_prog_cc_c89+:} false; then :
4287 $as_echo_n "(cached) " >&6
4289 ac_cv_prog_cc_c89=no
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4297 struct buf { int x; };
4298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4299 static char *e (p, i)
4305 static char *f (char * (*g) (char **, int), char **p, ...)
4310 s = g (p, va_arg (v,int));
4315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4316 function prototypes and stuff, but not '\xHH' hex character constants.
4317 These don't provoke an error unfortunately, instead are silently treated
4318 as 'x'. The following induces an error, until -std is added to get
4319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4320 array size at least. It's necessary to write '\x00'==0 to get something
4321 that's true only with -std. */
4322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4324 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4325 inside strings and character constants. */
4327 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4329 int test (int i, double x);
4330 struct s1 {int (*f) (int a);};
4331 struct s2 {int (*f) (double a);};
4332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4343 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4344 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4346 CC="$ac_save_CC $ac_arg"
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_cv_prog_cc_c89=$ac_arg
4350 rm -f core conftest.err conftest.$ac_objext
4351 test "x$ac_cv_prog_cc_c89" != "xno" && break
4353 rm -f conftest.$ac_ext
4358 case "x$ac_cv_prog_cc_c89" in
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4361 $as_echo "none needed" >&6; } ;;
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4364 $as_echo "unsupported" >&6; } ;;
4366 CC="$CC $ac_cv_prog_cc_c89"
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4368 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4370 if test "x$ac_cv_prog_cc_c89" != xno; then :
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4386 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4387 if ${am_cv_prog_cc_c_o+:} false; then :
4388 $as_echo_n "(cached) " >&6
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4401 # Make sure it works both with $CC and with simple cc.
4402 # Following AC_PROG_CC_C_O, we do the test twice because some
4403 # compilers refuse to overwrite an existing .o file with -o,
4404 # though they will create one.
4405 am_cv_prog_cc_c_o=yes
4407 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4408 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } \
4412 && test -f conftest2.$ac_objext; then
4415 am_cv_prog_cc_c_o=no
4419 rm -f core conftest*
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4423 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4424 if test "$am_cv_prog_cc_c_o" != yes; then
4425 # Losing compiler, so override with the script.
4426 # FIXME: It is wrong to rewrite CC.
4427 # But if we don't then we get into trouble of one sort or another.
4428 # A longer-term fix would be to have automake use am__CC in this case,
4429 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4430 CC="$am_aux_dir/compile $CC"
4433 ac_cpp='$CPP $CPPFLAGS'
4434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439 depcc="$CC" am_compiler_list=
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4442 $as_echo_n "checking dependency style of $depcc... " >&6; }
4443 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4444 $as_echo_n "(cached) " >&6
4446 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4447 # We make a subdir and do the tests there. Otherwise we can end up
4448 # making bogus files that we don't know about and never remove. For
4449 # instance it was reported that on HP-UX the gcc test will end up
4450 # making a dummy file named 'D' -- because '-MD' means "put the output
4454 # Copy depcomp to subdir because otherwise we won't find it if we're
4455 # using a relative directory.
4456 cp "$am_depcomp" conftest.dir
4458 # We will build objects and dependencies in a subdirectory because
4459 # it helps to detect inapplicable dependency modes. For instance
4460 # both Tru64's cc and ICC support -MD to output dependencies as a
4461 # side effect of compilation, but ICC will put the dependencies in
4462 # the current directory while Tru64 will put them in the object
4466 am_cv_CC_dependencies_compiler_type=none
4467 if test "$am_compiler_list" = ""; then
4468 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4471 case " $depcc " in #(
4472 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4475 for depmode in $am_compiler_list; do
4476 # Setup a source with many dependencies, because some compilers
4477 # like to wrap large dependency lists on column 80 (with \), and
4478 # we should not choose a depcomp mode which is confused by this.
4480 # We need to recreate these files for each test, as the compiler may
4481 # overwrite some of them when testing with obscure command lines.
4482 # This happens at least with the AIX C compiler.
4484 for i in 1 2 3 4 5 6; do
4485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4486 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4487 # Solaris 10 /bin/sh.
4488 echo '/* dummy */' > sub/conftst$i.h
4490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4492 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4493 # mode. It turns out that the SunPro C++ compiler does not properly
4494 # handle '-M -o', and we need to detect this. Also, some Intel
4495 # versions had trouble with output in subdirs.
4496 am__obj=sub/conftest.${OBJEXT-o}
4497 am__minus_obj="-o $am__obj"
4500 # This depmode causes a compiler race in universal mode.
4501 test "$am__universal" = false || continue
4504 # After this tag, mechanisms are not by side-effect, so they'll
4505 # only be used when explicitly requested.
4506 if test "x$enable_dependency_tracking" = xyes; then
4512 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4513 # This compiler won't grok '-c -o', but also, the minuso test has
4514 # not run yet. These depmodes are late enough in the game, and
4515 # so weak that their functioning should not be impacted.
4516 am__obj=conftest.${OBJEXT-o}
4521 if depmode=$depmode \
4522 source=sub/conftest.c object=$am__obj \
4523 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4524 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4525 >/dev/null 2>conftest.err &&
4526 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4527 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4528 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4529 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4530 # icc doesn't choke on unknown options, it will just issue warnings
4531 # or remarks (even with -Werror). So we grep stderr for any message
4532 # that says an option was ignored or not supported.
4533 # When given -MP, icc 7.0 and 7.1 complain thusly:
4534 # icc: Command line warning: ignoring option '-M'; no argument required
4535 # The diagnosis changed in icc 8.0:
4536 # icc: Command line remark: option '-MP' not supported
4537 if (grep 'ignoring option' conftest.err ||
4538 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4539 am_cv_CC_dependencies_compiler_type=$depmode
4548 am_cv_CC_dependencies_compiler_type=none
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4553 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4554 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4557 test "x$enable_dependency_tracking" != xno \
4558 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4560 am__fastdepCC_FALSE='#'
4562 am__fastdepCC_TRUE='#'
4563 am__fastdepCC_FALSE=
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4574 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4575 # On Suns, sometimes $CPP names a directory.
4576 if test -n "$CPP" && test -d "$CPP"; then
4579 if test -z "$CPP"; then
4580 if ${ac_cv_prog_CPP+:} false; then :
4581 $as_echo_n "(cached) " >&6
4583 # Double quotes because CPP needs to be expanded
4584 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4587 for ac_c_preproc_warn_flag in '' yes
4589 # Use a header file that comes with gcc, so configuring glibc
4590 # with a fresh cross-compiler works.
4591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4592 # <limits.h> exists even on freestanding compilers.
4593 # On the NeXT, cc -E runs the code through the compiler's parser,
4594 # not just through cpp. "Syntax error" is here to catch this case.
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4598 # include <limits.h>
4600 # include <assert.h>
4604 if ac_fn_c_try_cpp "$LINENO"; then :
4607 # Broken: fails on valid input.
4610 rm -f conftest.err conftest.i conftest.$ac_ext
4612 # OK, works on sane cases. Now check whether nonexistent headers
4613 # can be detected and how.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 #include <ac_nonexistent.h>
4618 if ac_fn_c_try_cpp "$LINENO"; then :
4619 # Broken: success on invalid input.
4622 # Passes both tests.
4626 rm -f conftest.err conftest.i conftest.$ac_ext
4629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4630 rm -f conftest.i conftest.err conftest.
$ac_ext
4631 if $ac_preproc_ok; then :
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4644 $as_echo "$CPP" >&6; }
4646 for ac_c_preproc_warn_flag
in '' yes
4648 # Use a header file that comes with gcc, so configuring glibc
4649 # with a fresh cross-compiler works.
4650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4651 # <limits.h> exists even on freestanding compilers.
4652 # On the NeXT, cc -E runs the code through the compiler's parser,
4653 # not just through cpp. "Syntax error" is here to catch this case.
4654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4657 # include <limits.h>
4659 # include <assert.h>
4663 if ac_fn_c_try_cpp
"$LINENO"; then :
4666 # Broken: fails on valid input.
4669 rm -f conftest.err conftest.i conftest.
$ac_ext
4671 # OK, works on sane cases. Now check whether nonexistent headers
4672 # can be detected and how.
4673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #include <ac_nonexistent.h>
4677 if ac_fn_c_try_cpp
"$LINENO"; then :
4678 # Broken: success on invalid input.
4681 # Passes both tests.
4685 rm -f conftest.err conftest.i conftest.
$ac_ext
4688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4689 rm -f conftest.i conftest.err conftest.
$ac_ext
4690 if $ac_preproc_ok; then :
4693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4695 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4696 See \`config.log' for more details" "$LINENO" 5; }
4700 ac_cpp
='$CPP $CPPFLAGS'
4701 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4707 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4708 if ${ac_cv_path_GREP+:} false
; then :
4709 $as_echo_n "(cached) " >&6
4711 if test -z "$GREP"; then
4712 ac_path_GREP_found
=false
4713 # Loop through the user's path and test for each of PROGNAME-LIST
4714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4715 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4718 test -z "$as_dir" && as_dir
=.
4719 for ac_prog
in grep ggrep
; do
4720 for ac_exec_ext
in '' $ac_executable_extensions; do
4721 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4722 as_fn_executable_p
"$ac_path_GREP" ||
continue
4723 # Check for GNU ac_path_GREP and select it if it is found.
4724 # Check for GNU $ac_path_GREP
4725 case `"$ac_path_GREP" --version 2>&1` in
4727 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4730 $as_echo_n 0123456789 >"conftest.in"
4733 cat "conftest.in" "conftest.in" >"conftest.tmp"
4734 mv "conftest.tmp" "conftest.in"
4735 cp "conftest.in" "conftest.nl"
4736 $as_echo 'GREP' >> "conftest.nl"
4737 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4738 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4739 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4740 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4741 # Best one so far, save it but keep looking for a better one
4742 ac_cv_path_GREP
="$ac_path_GREP"
4743 ac_path_GREP_max
=$ac_count
4745 # 10*(2^10) chars as input seems more than enough
4746 test $ac_count -gt 10 && break
4748 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4751 $ac_path_GREP_found && break 3
4756 if test -z "$ac_cv_path_GREP"; then
4757 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4760 ac_cv_path_GREP
=$GREP
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4765 $as_echo "$ac_cv_path_GREP" >&6; }
4766 GREP
="$ac_cv_path_GREP"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4770 $as_echo_n "checking for egrep... " >&6; }
4771 if ${ac_cv_path_EGREP+:} false
; then :
4772 $as_echo_n "(cached) " >&6
4774 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4775 then ac_cv_path_EGREP
="$GREP -E"
4777 if test -z "$EGREP"; then
4778 ac_path_EGREP_found
=false
4779 # Loop through the user's path and test for each of PROGNAME-LIST
4780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4781 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4784 test -z "$as_dir" && as_dir
=.
4785 for ac_prog
in egrep; do
4786 for ac_exec_ext
in '' $ac_executable_extensions; do
4787 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4788 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4789 # Check for GNU ac_path_EGREP and select it if it is found.
4790 # Check for GNU $ac_path_EGREP
4791 case `"$ac_path_EGREP" --version 2>&1` in
4793 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4796 $as_echo_n 0123456789 >"conftest.in"
4799 cat "conftest.in" "conftest.in" >"conftest.tmp"
4800 mv "conftest.tmp" "conftest.in"
4801 cp "conftest.in" "conftest.nl"
4802 $as_echo 'EGREP' >> "conftest.nl"
4803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4804 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4805 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4807 # Best one so far, save it but keep looking for a better one
4808 ac_cv_path_EGREP
="$ac_path_EGREP"
4809 ac_path_EGREP_max
=$ac_count
4811 # 10*(2^10) chars as input seems more than enough
4812 test $ac_count -gt 10 && break
4814 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4817 $ac_path_EGREP_found && break 3
4822 if test -z "$ac_cv_path_EGREP"; then
4823 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4826 ac_cv_path_EGREP
=$EGREP
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4832 $as_echo "$ac_cv_path_EGREP" >&6; }
4833 EGREP
="$ac_cv_path_EGREP"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4837 $as_echo_n "checking for ANSI C header files... " >&6; }
4838 if ${ac_cv_header_stdc+:} false
; then :
4839 $as_echo_n "(cached) " >&6
4841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4856 if ac_fn_c_try_compile
"$LINENO"; then :
4857 ac_cv_header_stdc
=yes
4859 ac_cv_header_stdc
=no
4861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4863 if test $ac_cv_header_stdc = yes; then
4864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 $EGREP "memchr" >/dev
/null
2>&1; then :
4874 ac_cv_header_stdc
=no
4880 if test $ac_cv_header_stdc = yes; then
4881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4888 $EGREP "free" >/dev
/null
2>&1; then :
4891 ac_cv_header_stdc
=no
4897 if test $ac_cv_header_stdc = yes; then
4898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4899 if test "$cross_compiling" = yes; then :
4902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4906 #if ((' ' & 0x0FF) == 0x020)
4907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4910 # define ISLOWER(c) \
4911 (('a' <= (c) && (c) <= 'i') \
4912 || ('j' <= (c) && (c) <= 'r') \
4913 || ('s' <= (c) && (c) <= 'z'))
4914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4922 for (i = 0; i < 256; i++)
4923 if (XOR (islower (i), ISLOWER (i))
4924 || toupper (i) != TOUPPER (i))
4929 if ac_fn_c_try_run
"$LINENO"; then :
4932 ac_cv_header_stdc
=no
4934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4941 $as_echo "$ac_cv_header_stdc" >&6; }
4942 if test $ac_cv_header_stdc = yes; then
4944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4949 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4950 inttypes.h stdint.h unistd.h
4952 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4953 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4955 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4956 cat >>confdefs.h
<<_ACEOF
4957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4966 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4967 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4974 if test "$MINIX" = yes; then
4976 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4979 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4982 $as_echo "#define _MINIX 1" >>confdefs.h
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4988 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4989 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4990 $as_echo_n "(cached) " >&6
4992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4995 # define __EXTENSIONS__ 1
4996 $ac_includes_default
5005 if ac_fn_c_try_compile
"$LINENO"; then :
5006 ac_cv_safe_to_define___extensions__
=yes
5008 ac_cv_safe_to_define___extensions__
=no
5010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5013 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5014 test $ac_cv_safe_to_define___extensions__ = yes &&
5015 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5017 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5019 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5021 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5023 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5027 # Check whether --enable-lzo was given.
5028 if test "${enable_lzo+set}" = set; then :
5029 enableval
=$enable_lzo;
5036 # Check whether --enable-lzo-stub was given.
5037 if test "${enable_lzo_stub+set}" = set; then :
5038 enableval
=$enable_lzo_stub;
5040 enable_lzo_stub
="no"
5045 # Check whether --enable-crypto was given.
5046 if test "${enable_crypto+set}" = set; then :
5047 enableval
=$enable_crypto;
5054 # Check whether --enable-ofb-cfb was given.
5055 if test "${enable_ofb_cfb+set}" = set; then :
5056 enableval
=$enable_ofb_cfb;
5058 enable_crypto_ofb_cfb
="yes"
5063 # Check whether --enable-ssl was given.
5064 if test "${enable_ssl+set}" = set; then :
5065 enableval
=$enable_ssl;
5072 # Check whether --enable-x509-alt-username was given.
5073 if test "${enable_x509_alt_username+set}" = set; then :
5074 enableval
=$enable_x509_alt_username;
5076 enable_x509_alt_username
="no"
5081 # Check whether --enable-multi was given.
5082 if test "${enable_multi+set}" = set; then :
5083 enableval
=$enable_multi;
5090 # Check whether --enable-server was given.
5091 if test "${enable_server+set}" = set; then :
5092 enableval
=$enable_server;
5099 # Check whether --enable-plugins was given.
5100 if test "${enable_plugins+set}" = set; then :
5101 enableval
=$enable_plugins;
5103 enable_plugins
="yes"
5108 # Check whether --enable-management was given.
5109 if test "${enable_management+set}" = set; then :
5110 enableval
=$enable_management;
5112 enable_management
="yes"
5117 # Check whether --enable-pkcs11 was given.
5118 if test "${enable_pkcs11+set}" = set; then :
5119 enableval
=$enable_pkcs11;
5126 # Check whether --enable-socks was given.
5127 if test "${enable_socks+set}" = set; then :
5128 enableval
=$enable_socks;
5135 # Check whether --enable-http-proxy was given.
5136 if test "${enable_http_proxy+set}" = set; then :
5137 enableval
=$enable_http_proxy;
5139 enable_http_proxy
="yes"
5144 # Check whether --enable-fragment was given.
5145 if test "${enable_fragment+set}" = set; then :
5146 enableval
=$enable_fragment;
5148 enable_fragment
="yes"
5153 # Check whether --enable-multihome was given.
5154 if test "${enable_multihome+set}" = set; then :
5155 enableval
=$enable_multihome;
5157 enable_multihome
="yes"
5162 # Check whether --enable-port-share was given.
5163 if test "${enable_port_share+set}" = set; then :
5164 enableval
=$enable_port_share;
5166 enable_port_share
="yes"
5171 # Check whether --enable-debug was given.
5172 if test "${enable_debug+set}" = set; then :
5173 enableval
=$enable_debug;
5180 # Check whether --enable-small was given.
5181 if test "${enable_small+set}" = set; then :
5182 enableval
=$enable_small;
5189 # Check whether --enable-password-save was given.
5190 if test "${enable_password_save+set}" = set; then :
5191 enableval
=$enable_password_save;
5193 enable_password_save
="no"
5198 # Check whether --enable-iproute2 was given.
5199 if test "${enable_iproute2+set}" = set; then :
5200 enableval
=$enable_iproute2;
5202 enable_iproute2
="no"
5207 # Check whether --enable-def-auth was given.
5208 if test "${enable_def_auth+set}" = set; then :
5209 enableval
=$enable_def_auth;
5211 enable_def_auth
="yes"
5216 # Check whether --enable-pf was given.
5217 if test "${enable_pf+set}" = set; then :
5218 enableval
=$enable_pf;
5225 # Check whether --enable-plugin-auth-pam was given.
5226 if test "${enable_plugin_auth_pam+set}" = set; then :
5227 enableval
=$enable_plugin_auth_pam;
5231 *-*-openbsd*) enable_plugin_auth_pam
="no";;
5232 *-mingw*) enable_plugin_auth_pam
="no";;
5233 *) enable_plugin_auth_pam
="yes";;
5240 # Check whether --enable-plugin-down-root was given.
5241 if test "${enable_plugin_down_root+set}" = set; then :
5242 enableval
=$enable_plugin_down_root;
5246 *-mingw*) enable_plugin_down_root
="no";;
5247 *) enable_plugin_down_root
="yes";;
5254 # Check whether --enable-pam-dlopen was given.
5255 if test "${enable_pam_dlopen+set}" = set; then :
5256 enableval
=$enable_pam_dlopen;
5258 enable_pam_dlopen
="no"
5263 # Check whether --enable-strict was given.
5264 if test "${enable_strict+set}" = set; then :
5265 enableval
=$enable_strict;
5272 # Check whether --enable-pedantic was given.
5273 if test "${enable_pedantic+set}" = set; then :
5274 enableval
=$enable_pedantic;
5276 enable_pedantic
="no"
5281 # Check whether --enable-strict-options was given.
5282 if test "${enable_strict_options+set}" = set; then :
5283 enableval
=$enable_strict_options;
5285 enable_strict_options
="no"
5290 # Check whether --enable-selinux was given.
5291 if test "${enable_selinux+set}" = set; then :
5292 enableval
=$enable_selinux;
5299 # Check whether --enable-systemd was given.
5300 if test "${enable_systemd+set}" = set; then :
5301 enableval
=$enable_systemd;
5309 # Check whether --with-special-build was given.
5310 if test "${with_special_build+set}" = set; then :
5311 withval
=$with_special_build; test -n "${withval}" &&
5312 cat >>confdefs.h
<<_ACEOF
5313 #define CONFIGURE_SPECIAL_BUILD "${withval}"
5321 # Check whether --with-mem-check was given.
5322 if test "${with_mem_check+set}" = set; then :
5323 withval
=$with_mem_check;
5324 case "${withval}" in
5325 dmalloc|valgrind|ssl|no
) ;;
5326 *) as_fn_error $?
"bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5336 # Check whether --with-crypto-library was given.
5337 if test "${with_crypto_library+set}" = set; then :
5338 withval
=$with_crypto_library;
5339 case "${withval}" in
5340 openssl|polarssl
) ;;
5341 *) as_fn_error $?
"bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5345 with_crypto_library
="openssl"
5351 # Check whether --with-plugindir was given.
5352 if test "${with_plugindir+set}" = set; then :
5353 withval
=$with_plugindir;
5355 with_plugindir
="\$(libdir)/openvpn/plugins"
5362 cat >>confdefs.h
<<_ACEOF
5363 #define TARGET_ALIAS "${host}"
5369 $as_echo "#define TARGET_LINUX 1" >>confdefs.h
5372 cat >>confdefs.h
<<_ACEOF
5373 #define TARGET_PREFIX "L"
5379 $as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5382 cat >>confdefs.h
<<_ACEOF
5383 #define TARGET_PREFIX "S"
5389 $as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5392 cat >>confdefs.h
<<_ACEOF
5393 #define TARGET_PREFIX "O"
5399 $as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5402 cat >>confdefs.h
<<_ACEOF
5403 #define TARGET_PREFIX "F"
5409 $as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5412 cat >>confdefs.h
<<_ACEOF
5413 #define TARGET_PREFIX "N"
5419 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5422 cat >>confdefs.h
<<_ACEOF
5423 #define TARGET_PREFIX "M"
5426 have_tap_header
="yes"
5427 CPPFLAGS
="$CPPFLAGS -no-cpp-precomp"
5431 $as_echo "#define TARGET_WIN32 1" >>confdefs.h
5434 cat >>confdefs.h
<<_ACEOF
5435 #define TARGET_PREFIX "W"
5438 CPPFLAGS
="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5439 CPPFLAGS
="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
5444 $as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5447 cat >>confdefs.h
<<_ACEOF
5448 #define TARGET_PREFIX "D"
5454 cat >>confdefs.h
<<_ACEOF
5455 #define TARGET_PREFIX "X"
5458 have_tap_header
="yes"
5469 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5472 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5476 $as_echo_n "(cached) " >&6
5480 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir
=.
5488 for ac_exec_ext
in '' $ac_executable_extensions; do
5489 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5502 if test -n "$PKG_CONFIG"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5504 $as_echo "$PKG_CONFIG" >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5512 if test -z "$ac_cv_path_PKG_CONFIG"; then
5513 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5514 # Extract the first word of "pkg-config", so it can be a program name with args.
5515 set dummy pkg-config
; ac_word
=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5519 $as_echo_n "(cached) " >&6
5521 case $ac_pt_PKG_CONFIG in
5523 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir
=.
5531 for ac_exec_ext
in '' $ac_executable_extensions; do
5532 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5545 if test -n "$ac_pt_PKG_CONFIG"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5547 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5553 if test "x$ac_pt_PKG_CONFIG" = x
; then
5556 case $cross_compiling:$ac_tool_warned in
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned
=yes ;;
5562 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5565 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5569 if test -n "$PKG_CONFIG"; then
5570 _pkg_min_version
=0.9.0
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5572 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5573 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5575 $as_echo "yes" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5583 ac_cpp
='$CPP $CPPFLAGS'
5584 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5588 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5589 # On Suns, sometimes $CPP names a directory.
5590 if test -n "$CPP" && test -d "$CPP"; then
5593 if test -z "$CPP"; then
5594 if ${ac_cv_prog_CPP+:} false
; then :
5595 $as_echo_n "(cached) " >&6
5597 # Double quotes because CPP needs to be expanded
5598 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5601 for ac_c_preproc_warn_flag
in '' yes
5603 # Use a header file that comes with gcc, so configuring glibc
5604 # with a fresh cross-compiler works.
5605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5606 # <limits.h> exists even on freestanding compilers.
5607 # On the NeXT, cc -E runs the code through the compiler's parser,
5608 # not just through cpp. "Syntax error" is here to catch this case.
5609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5612 # include <limits.h>
5614 # include <assert.h>
5618 if ac_fn_c_try_cpp
"$LINENO"; then :
5621 # Broken: fails on valid input.
5624 rm -f conftest.err conftest.i conftest.
$ac_ext
5626 # OK, works on sane cases. Now check whether nonexistent headers
5627 # can be detected and how.
5628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <ac_nonexistent.h>
5632 if ac_fn_c_try_cpp
"$LINENO"; then :
5633 # Broken: success on invalid input.
5636 # Passes both tests.
5640 rm -f conftest.err conftest.i conftest.
$ac_ext
5643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5644 rm -f conftest.i conftest.err conftest.
$ac_ext
5645 if $ac_preproc_ok; then :
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5658 $as_echo "$CPP" >&6; }
5660 for ac_c_preproc_warn_flag
in '' yes
5662 # Use a header file that comes with gcc, so configuring glibc
5663 # with a fresh cross-compiler works.
5664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665 # <limits.h> exists even on freestanding compilers.
5666 # On the NeXT, cc -E runs the code through the compiler's parser,
5667 # not just through cpp. "Syntax error" is here to catch this case.
5668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5671 # include <limits.h>
5673 # include <assert.h>
5677 if ac_fn_c_try_cpp
"$LINENO"; then :
5680 # Broken: fails on valid input.
5683 rm -f conftest.err conftest.i conftest.
$ac_ext
5685 # OK, works on sane cases. Now check whether nonexistent headers
5686 # can be detected and how.
5687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <ac_nonexistent.h>
5691 if ac_fn_c_try_cpp
"$LINENO"; then :
5692 # Broken: success on invalid input.
5695 # Passes both tests.
5699 rm -f conftest.err conftest.i conftest.
$ac_ext
5702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5703 rm -f conftest.i conftest.err conftest.
$ac_ext
5704 if $ac_preproc_ok; then :
5707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5709 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5710 See \`config.log' for more details" "$LINENO" 5; }
5714 ac_cpp
='$CPP $CPPFLAGS'
5715 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5721 $as_echo_n "checking whether ln -s works... " >&6; }
5723 if test "$LN_S" = "ln -s"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725 $as_echo "yes" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5728 $as_echo "no, using $LN_S" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5732 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5733 if ${ac_cv_path_SED+:} false
; then :
5734 $as_echo_n "(cached) " >&6
5736 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
5737 for ac_i
in 1 2 3 4 5 6 7; do
5738 ac_script
="$ac_script$as_nl$ac_script"
5740 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
5741 { ac_script
=; unset ac_script
;}
5742 if test -z "$SED"; then
5743 ac_path_SED_found
=false
5744 # Loop through the user's path and test for each of PROGNAME-LIST
5745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5749 test -z "$as_dir" && as_dir
=.
5750 for ac_prog
in sed gsed
; do
5751 for ac_exec_ext
in '' $ac_executable_extensions; do
5752 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5753 as_fn_executable_p
"$ac_path_SED" ||
continue
5754 # Check for GNU ac_path_SED and select it if it is found.
5755 # Check for GNU $ac_path_SED
5756 case `"$ac_path_SED" --version 2>&1` in
5758 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5761 $as_echo_n 0123456789 >"conftest.in"
5764 cat "conftest.in" "conftest.in" >"conftest.tmp"
5765 mv "conftest.tmp" "conftest.in"
5766 cp "conftest.in" "conftest.nl"
5767 $as_echo '' >> "conftest.nl"
5768 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5769 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5770 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5771 if test $ac_count -gt ${ac_path_SED_max-0}; then
5772 # Best one so far, save it but keep looking for a better one
5773 ac_cv_path_SED
="$ac_path_SED"
5774 ac_path_SED_max
=$ac_count
5776 # 10*(2^10) chars as input seems more than enough
5777 test $ac_count -gt 10 && break
5779 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5782 $ac_path_SED_found && break 3
5787 if test -z "$ac_cv_path_SED"; then
5788 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5796 $as_echo "$ac_cv_path_SED" >&6; }
5797 SED
="$ac_cv_path_SED"
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5803 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5804 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5805 $as_echo_n "(cached) " >&6
5807 cat >conftest.
make <<\_ACEOF
5810 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5812 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5815 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5817 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5821 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823 $as_echo "yes" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 SET_MAKE
="MAKE=${MAKE-make}"
5839 for ac_prog
in ifconfig
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy
$ac_prog; ac_word
=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_path_IFCONFIG+:} false
; then :
5846 $as_echo_n "(cached) " >&6
5850 ac_cv_path_IFCONFIG
="$IFCONFIG" # Let the user override the test with a path.
5853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5854 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5855 for as_dir
in $as_dummy
5858 test -z "$as_dir" && as_dir
=.
5859 for ac_exec_ext
in '' $ac_executable_extensions; do
5860 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_path_IFCONFIG
="$as_dir/$ac_word$ac_exec_ext"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 IFCONFIG
=$ac_cv_path_IFCONFIG
5873 if test -n "$IFCONFIG"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
5875 $as_echo "$IFCONFIG" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5882 test -n "$IFCONFIG" && break
5885 for ac_prog
in route
5887 # Extract the first word of "$ac_prog", so it can be a program name with args.
5888 set dummy
$ac_prog; ac_word
=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_path_ROUTE+:} false
; then :
5892 $as_echo_n "(cached) " >&6
5896 ac_cv_path_ROUTE
="$ROUTE" # Let the user override the test with a path.
5899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5900 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5901 for as_dir
in $as_dummy
5904 test -z "$as_dir" && as_dir
=.
5905 for ac_exec_ext
in '' $ac_executable_extensions; do
5906 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_path_ROUTE
="$as_dir/$ac_word$ac_exec_ext"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 ROUTE
=$ac_cv_path_ROUTE
5919 if test -n "$ROUTE"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
5921 $as_echo "$ROUTE" >&6; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5928 test -n "$ROUTE" && break
5933 # Extract the first word of "$ac_prog", so it can be a program name with args.
5934 set dummy
$ac_prog; ac_word
=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if ${ac_cv_path_IPROUTE+:} false
; then :
5938 $as_echo_n "(cached) " >&6
5942 ac_cv_path_IPROUTE
="$IPROUTE" # Let the user override the test with a path.
5945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5946 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5947 for as_dir
in $as_dummy
5950 test -z "$as_dir" && as_dir
=.
5951 for ac_exec_ext
in '' $ac_executable_extensions; do
5952 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5953 ac_cv_path_IPROUTE
="$as_dir/$ac_word$ac_exec_ext"
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 IPROUTE
=$ac_cv_path_IPROUTE
5965 if test -n "$IPROUTE"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
5967 $as_echo "$IPROUTE" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5974 test -n "$IPROUTE" && break
5977 for ac_prog
in systemd-ask-password
5979 # Extract the first word of "$ac_prog", so it can be a program name with args.
5980 set dummy
$ac_prog; ac_word
=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if ${ac_cv_path_SYSTEMD_ASK_PASSWORD+:} false
; then :
5984 $as_echo_n "(cached) " >&6
5986 case $SYSTEMD_ASK_PASSWORD in
5988 ac_cv_path_SYSTEMD_ASK_PASSWORD
="$SYSTEMD_ASK_PASSWORD" # Let the user override the test with a path.
5991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5992 as_dummy
="$PATH:/usr/local/bin:/usr/bin:/bin"
5993 for as_dir
in $as_dummy
5996 test -z "$as_dir" && as_dir
=.
5997 for ac_exec_ext
in '' $ac_executable_extensions; do
5998 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_path_SYSTEMD_ASK_PASSWORD
="$as_dir/$ac_word$ac_exec_ext"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 SYSTEMD_ASK_PASSWORD
=$ac_cv_path_SYSTEMD_ASK_PASSWORD
6011 if test -n "$SYSTEMD_ASK_PASSWORD"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_ASK_PASSWORD" >&5
6013 $as_echo "$SYSTEMD_ASK_PASSWORD" >&6; }
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6020 test -n "$SYSTEMD_ASK_PASSWORD" && break
6023 for ac_prog
in netstat
6025 # Extract the first word of "$ac_prog", so it can be a program name with args.
6026 set dummy
$ac_prog; ac_word
=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if ${ac_cv_prog_NETSTAT+:} false
; then :
6030 $as_echo_n "(cached) " >&6
6032 if test -n "$NETSTAT"; then
6033 ac_cv_prog_NETSTAT
="$NETSTAT" # Let the user override the test.
6035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6036 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
6037 for as_dir
in $as_dummy
6040 test -z "$as_dir" && as_dir
=.
6041 for ac_exec_ext
in '' $ac_executable_extensions; do
6042 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_NETSTAT
="$ac_prog"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 NETSTAT
=$ac_cv_prog_NETSTAT
6054 if test -n "$NETSTAT"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
6056 $as_echo "$NETSTAT" >&6; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6063 test -n "$NETSTAT" && break
6065 test -n "$NETSTAT" || NETSTAT
="netstat"
6067 for ac_prog
in man2html
6069 # Extract the first word of "$ac_prog", so it can be a program name with args.
6070 set dummy
$ac_prog; ac_word
=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_MAN2HTML+:} false
; then :
6074 $as_echo_n "(cached) " >&6
6076 if test -n "$MAN2HTML"; then
6077 ac_cv_prog_MAN2HTML
="$MAN2HTML" # Let the user override the test.
6079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir
=.
6084 for ac_exec_ext
in '' $ac_executable_extensions; do
6085 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_MAN2HTML
="$ac_prog"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 MAN2HTML
=$ac_cv_prog_MAN2HTML
6097 if test -n "$MAN2HTML"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
6099 $as_echo "$MAN2HTML" >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6106 test -n "$MAN2HTML" && break
6111 # Extract the first word of "$ac_prog", so it can be a program name with args.
6112 set dummy
$ac_prog; ac_word
=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_GIT+:} false
; then :
6116 $as_echo_n "(cached) " >&6
6118 if test -n "$GIT"; then
6119 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
6121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6125 test -z "$as_dir" && as_dir
=.
6126 for ac_exec_ext
in '' $ac_executable_extensions; do
6127 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_GIT
="$ac_prog"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 if test -n "$GIT"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6141 $as_echo "$GIT" >&6; }
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6148 test -n "$GIT" && break
6152 cat >>confdefs.h
<<_ACEOF
6153 #define IFCONFIG_PATH "$IFCONFIG"
6157 cat >>confdefs.h
<<_ACEOF
6158 #define IPROUTE_PATH "$IPROUTE"
6162 cat >>confdefs.h
<<_ACEOF
6163 #define ROUTE_PATH "$ROUTE"
6167 cat >>confdefs.h
<<_ACEOF
6168 #define SYSTEMD_ASK_PASSWORD_PATH "$SYSTEMD_ASK_PASSWORD"
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6179 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6184 macro_version
='2.4.2'
6185 macro_revision
='1.3337'
6199 ltmain
="$ac_aux_dir/ltmain.sh"
6201 # Backslashify metacharacters that are still active within
6202 # double-quoted strings.
6203 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
6205 # Same as above, but do not quote variable references.
6206 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
6208 # Sed substitution to delay expansion of an escaped shell variable in a
6209 # double_quote_subst'ed string.
6210 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6212 # Sed substitution to delay expansion of an escaped single quote.
6213 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
6215 # Sed substitution to avoid accidental globbing in evaled expressions
6216 no_glob_subst
='s/\*/\\\*/g'
6218 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6219 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6220 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6223 $as_echo_n "checking how to print strings... " >&6; }
6224 # Test print first, because it will be a builtin if present.
6225 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6226 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6228 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6231 # Use this function as a fallback that always works.
6232 func_fallback_echo ()
6234 eval 'cat <<_LTECHO_EOF
6238 ECHO='func_fallback_echo
'
6241 # func_echo_all arg...
6242 # Invoke $ECHO with all args, space-separated.
6249 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6250 $as_echo "printf" >&6; } ;;
6251 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6252 $as_echo "print -r" >&6; } ;;
6253 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6254 $as_echo "cat" >&6; } ;;
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6271 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6272 if ${ac_cv_path_SED+:} false; then :
6273 $as_echo_n "(cached) " >&6
6275 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6276 for ac_i in 1 2 3 4 5 6 7; do
6277 ac_script="$ac_script$as_nl$ac_script"
6279 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6280 { ac_script=; unset ac_script;}
6281 if test -z "$SED"; then
6282 ac_path_SED_found=false
6283 # Loop through the user's path and
test for each of PROGNAME-LIST
6284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir
=.
6289 for ac_prog
in sed gsed
; do
6290 for ac_exec_ext
in '' $ac_executable_extensions; do
6291 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6292 as_fn_executable_p
"$ac_path_SED" ||
continue
6293 # Check for GNU ac_path_SED and select it if it is found.
6294 # Check for GNU $ac_path_SED
6295 case `"$ac_path_SED" --version 2>&1` in
6297 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6300 $as_echo_n 0123456789 >"conftest.in"
6303 cat "conftest.in" "conftest.in" >"conftest.tmp"
6304 mv "conftest.tmp" "conftest.in"
6305 cp "conftest.in" "conftest.nl"
6306 $as_echo '' >> "conftest.nl"
6307 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6308 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6309 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6310 if test $ac_count -gt ${ac_path_SED_max-0}; then
6311 # Best one so far, save it but keep looking for a better one
6312 ac_cv_path_SED
="$ac_path_SED"
6313 ac_path_SED_max
=$ac_count
6315 # 10*(2^10) chars as input seems more than enough
6316 test $ac_count -gt 10 && break
6318 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6321 $ac_path_SED_found && break 3
6326 if test -z "$ac_cv_path_SED"; then
6327 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6335 $as_echo "$ac_cv_path_SED" >&6; }
6336 SED
="$ac_cv_path_SED"
6339 test -z "$SED" && SED
=sed
6340 Xsed
="$SED -e 1s/^X//"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6353 $as_echo_n "checking for fgrep... " >&6; }
6354 if ${ac_cv_path_FGREP+:} false
; then :
6355 $as_echo_n "(cached) " >&6
6357 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6358 then ac_cv_path_FGREP
="$GREP -F"
6360 if test -z "$FGREP"; then
6361 ac_path_FGREP_found
=false
6362 # Loop through the user's path and test for each of PROGNAME-LIST
6363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6364 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6367 test -z "$as_dir" && as_dir
=.
6368 for ac_prog
in fgrep
; do
6369 for ac_exec_ext
in '' $ac_executable_extensions; do
6370 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6371 as_fn_executable_p
"$ac_path_FGREP" ||
continue
6372 # Check for GNU ac_path_FGREP and select it if it is found.
6373 # Check for GNU $ac_path_FGREP
6374 case `"$ac_path_FGREP" --version 2>&1` in
6376 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6379 $as_echo_n 0123456789 >"conftest.in"
6382 cat "conftest.in" "conftest.in" >"conftest.tmp"
6383 mv "conftest.tmp" "conftest.in"
6384 cp "conftest.in" "conftest.nl"
6385 $as_echo 'FGREP' >> "conftest.nl"
6386 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6387 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6388 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6389 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6390 # Best one so far, save it but keep looking for a better one
6391 ac_cv_path_FGREP
="$ac_path_FGREP"
6392 ac_path_FGREP_max
=$ac_count
6394 # 10*(2^10) chars as input seems more than enough
6395 test $ac_count -gt 10 && break
6397 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6400 $ac_path_FGREP_found && break 3
6405 if test -z "$ac_cv_path_FGREP"; then
6406 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6409 ac_cv_path_FGREP
=$FGREP
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6415 $as_echo "$ac_cv_path_FGREP" >&6; }
6416 FGREP
="$ac_cv_path_FGREP"
6419 test -z "$GREP" && GREP
=grep
6439 # Check whether --with-gnu-ld was given.
6440 if test "${with_gnu_ld+set}" = set; then :
6441 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6447 if test "$GCC" = yes; then
6448 # Check if gcc -print-prog-name=ld gives a path.
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6450 $as_echo_n "checking for ld used by $CC... " >&6; }
6453 # gcc leaves a trailing carriage return which upsets mingw
6454 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6456 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6459 # Accept absolute paths.
6461 re_direlt
='/[^/][^/]*/\.\./'
6462 # Canonicalize the pathname of ld
6463 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6464 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6465 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6467 test -z "$LD" && LD
="$ac_prog"
6470 # If it fails, then pretend we aren't using GCC.
6474 # If it is relative, then search for the first ld in PATH.
6478 elif test "$with_gnu_ld" = yes; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6480 $as_echo_n "checking for GNU ld... " >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6483 $as_echo_n "checking for non-GNU ld... " >&6; }
6485 if ${lt_cv_path_LD+:} false
; then :
6486 $as_echo_n "(cached) " >&6
6488 if test -z "$LD"; then
6489 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6490 for ac_dir
in $PATH; do
6492 test -z "$ac_dir" && ac_dir
=.
6493 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6494 lt_cv_path_LD
="$ac_dir/$ac_prog"
6495 # Check to see if the program is GNU ld. I'd rather use --version,
6496 # but apparently some variants of GNU ld only accept -v.
6497 # Break only if it was the GNU/non-GNU ld that we prefer.
6498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6499 *GNU
* |
*'with BFD'*)
6500 test "$with_gnu_ld" != no
&& break
6503 test "$with_gnu_ld" != yes && break
6510 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6515 if test -n "$LD"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6517 $as_echo "$LD" >&6; }
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6522 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6524 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6525 if ${lt_cv_prog_gnu_ld+:} false
; then :
6526 $as_echo_n "(cached) " >&6
6528 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6529 case `$LD -v 2>&1 </dev/null` in
6530 *GNU
* |
*'with BFD'*)
6531 lt_cv_prog_gnu_ld
=yes
6534 lt_cv_prog_gnu_ld
=no
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6539 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6540 with_gnu_ld
=$lt_cv_prog_gnu_ld
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6551 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6552 if ${lt_cv_path_NM+:} false
; then :
6553 $as_echo_n "(cached) " >&6
6555 if test -n "$NM"; then
6556 # Let the user override the test.
6559 lt_nm_to_check
="${ac_tool_prefix}nm"
6560 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6561 lt_nm_to_check
="$lt_nm_to_check nm"
6563 for lt_tmp_nm
in $lt_nm_to_check; do
6564 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6565 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6567 test -z "$ac_dir" && ac_dir
=.
6568 tmp_nm
="$ac_dir/$lt_tmp_nm"
6569 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6570 # Check to see if the nm accepts a BSD-compat flag.
6571 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6572 # nm: unknown option "B" ignored
6573 # Tru64's nm complains that /dev/null is an invalid object file
6574 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6575 */dev
/null
* |
*'Invalid file or object type'*)
6576 lt_cv_path_NM
="$tmp_nm -B"
6580 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6582 lt_cv_path_NM
="$tmp_nm -p"
6586 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6587 continue # so that we can try to find one that supports BSD flags
6596 : ${lt_cv_path_NM=no}
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6600 $as_echo "$lt_cv_path_NM" >&6; }
6601 if test "$lt_cv_path_NM" != "no"; then
6604 # Didn't find any BSD compatible name lister, look for dumpbin.
6605 if test -n "$DUMPBIN"; then :
6606 # Let the user override the test.
6608 if test -n "$ac_tool_prefix"; then
6609 for ac_prog
in dumpbin
"link -dump"
6611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6612 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6616 $as_echo_n "(cached) " >&6
6618 if test -n "$DUMPBIN"; then
6619 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6625 test -z "$as_dir" && as_dir
=.
6626 for ac_exec_ext
in '' $ac_executable_extensions; do
6627 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6628 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 DUMPBIN
=$ac_cv_prog_DUMPBIN
6639 if test -n "$DUMPBIN"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6641 $as_echo "$DUMPBIN" >&6; }
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6648 test -n "$DUMPBIN" && break
6651 if test -z "$DUMPBIN"; then
6652 ac_ct_DUMPBIN
=$DUMPBIN
6653 for ac_prog
in dumpbin
"link -dump"
6655 # Extract the first word of "$ac_prog", so it can be a program name with args.
6656 set dummy
$ac_prog; ac_word
=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6660 $as_echo_n "(cached) " >&6
6662 if test -n "$ac_ct_DUMPBIN"; then
6663 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir
=.
6670 for ac_exec_ext
in '' $ac_executable_extensions; do
6671 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6683 if test -n "$ac_ct_DUMPBIN"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6685 $as_echo "$ac_ct_DUMPBIN" >&6; }
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6692 test -n "$ac_ct_DUMPBIN" && break
6695 if test "x$ac_ct_DUMPBIN" = x
; then
6698 case $cross_compiling:$ac_tool_warned in
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6702 ac_tool_warned
=yes ;;
6704 DUMPBIN
=$ac_ct_DUMPBIN
6708 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6710 DUMPBIN
="$DUMPBIN -symbols"
6718 if test "$DUMPBIN" != ":"; then
6722 test -z "$NM" && NM
=nm
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6730 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6731 if ${lt_cv_nm_interface+:} false
; then :
6732 $as_echo_n "(cached) " >&6
6734 lt_cv_nm_interface
="BSD nm"
6735 echo "int some_variable = 0;" > conftest.
$ac_ext
6736 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6737 (eval "$ac_compile" 2>conftest.err
)
6738 cat conftest.err
>&5
6739 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6740 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6741 cat conftest.err
>&5
6742 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6743 cat conftest.out
>&5
6744 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6745 lt_cv_nm_interface
="MS dumpbin"
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6750 $as_echo "$lt_cv_nm_interface" >&6; }
6752 # find the maximum length of command line arguments
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6754 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6755 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6756 $as_echo_n "(cached) " >&6
6763 # On DJGPP, this test can blow up pretty badly due to problems in libc
6764 # (any single argument exceeding 2000 bytes causes a buffer overrun
6765 # during glob expansion). Even if it were fixed, the result of this
6766 # check would be larger than it should be.
6767 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6771 # Under GNU Hurd, this test is not required because there is
6772 # no limit to the length of command line arguments.
6773 # Libtool will interpret -1 as no limit whatsoever
6774 lt_cv_sys_max_cmd_len
=-1;
6777 cygwin
* | mingw
* | cegcc
*)
6778 # On Win9x/ME, this test blows up -- it succeeds, but takes
6779 # about 5 minutes as the teststring grows exponentially.
6780 # Worse, since 9x/ME are not pre-emptively multitasking,
6781 # you end up with a "frozen" computer, even though with patience
6782 # the test eventually succeeds (with a max line length of 256k).
6783 # Instead, let's just punt: use the minimum linelength reported by
6784 # all of the supported platforms: 8192 (on NT/2K/XP).
6785 lt_cv_sys_max_cmd_len
=8192;
6789 # On MiNT this can take a long time and run out of memory.
6790 lt_cv_sys_max_cmd_len
=8192;
6794 # On AmigaOS with pdksh, this test takes hours, literally.
6795 # So we just punt and use a minimum line length of 8192.
6796 lt_cv_sys_max_cmd_len
=8192;
6799 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6800 # This has been around since 386BSD, at least. Likely further.
6801 if test -x /sbin
/sysctl
; then
6802 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6803 elif test -x /usr
/sbin
/sysctl
; then
6804 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6806 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6808 # And add a safety zone
6809 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6810 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6814 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6815 lt_cv_sys_max_cmd_len
=196608
6819 # The test takes a long time on OS/2.
6820 lt_cv_sys_max_cmd_len
=8192
6824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6826 # nice to cause kernel panics so lets avoid the loop below.
6827 # First set a reasonable default.
6828 lt_cv_sys_max_cmd_len
=16384
6830 if test -x /sbin
/sysconfig
; then
6831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6832 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6837 lt_cv_sys_max_cmd_len
=102400
6839 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6840 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6841 if test -n "$kargmax"; then
6842 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6844 lt_cv_sys_max_cmd_len
=32768
6848 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6849 if test -n "$lt_cv_sys_max_cmd_len" && \
6850 test undefined
!= "$lt_cv_sys_max_cmd_len"; then
6851 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6852 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6854 # Make teststring a little bigger before we do anything with it.
6855 # a 1K string should be a reasonable start.
6856 for i
in 1 2 3 4 5 6 7 8 ; do
6857 teststring
=$teststring$teststring
6859 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6860 # If test is not a shell built-in, we'll probably end up computing a
6861 # maximum length that is only half of the actual maximum length, but
6863 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6864 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6865 test $i != 17 # 1/2 MB should be enough
6868 teststring
=$teststring$teststring
6870 # Only check the string length outside the loop.
6871 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6873 # Add a significant safety factor because C++ compilers can tack on
6874 # massive amounts of additional arguments before passing them to the
6875 # linker. It appears as though 1/2 is a usable value.
6876 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6883 if test -n $lt_cv_sys_max_cmd_len ; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6885 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6888 $as_echo "none" >&6; }
6890 max_cmd_len
=$lt_cv_sys_max_cmd_len
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6902 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6903 # Try some XSI features
6906 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6908 && eval 'test $(( 1 + 1 )) -eq 2 \
6909 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6912 $as_echo "$xsi_shell" >&6; }
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6916 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6918 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6920 && lt_shell_append=yes
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6922 $as_echo "$lt_shell_append" >&6; }
6925 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6935 # test EBCDIC or ASCII
6936 case `echo X|tr X '\101'` in
6937 A) # ASCII based system
6938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6939 lt_SP2NL='tr \040 \012'
6940 lt_NL2SP='tr \015\012 \040\040'
6942 *) # EBCDIC based system
6943 lt_SP2NL='tr \100 \n'
6944 lt_NL2SP='tr \r\n \100\100'
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
6957 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
6958 if ${lt_cv_to_host_file_cmd+:} false; then :
6959 $as_echo_n "(cached
) " >&6
6964 *-*-mingw* ) # actually msys
6965 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6968 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6970 * ) # otherwise, assume *nix
6971 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6977 *-*-mingw* ) # actually msys
6978 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6981 lt_cv_to_host_file_cmd=func_convert_file_noop
6983 * ) # otherwise, assume *nix
6984 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6988 * ) # unhandled hosts (and "normal
" native builds)
6989 lt_cv_to_host_file_cmd=func_convert_file_noop
6995 to_host_file_cmd=$lt_cv_to_host_file_cmd
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
6997 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
7004 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
7005 if ${lt_cv_to_tool_file_cmd+:} false; then :
7006 $as_echo_n "(cached
) " >&6
7008 #assume ordinary cross tools, or native build.
7009 lt_cv_to_tool_file_cmd=func_convert_file_noop
7013 *-*-mingw* ) # actually msys
7014 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7022 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
7024 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
7031 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
7032 if ${lt_cv_ld_reload_flag+:} false; then :
7033 $as_echo_n "(cached
) " >&6
7035 lt_cv_ld_reload_flag='-r'
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
7038 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7039 reload_flag=$lt_cv_ld_reload_flag
7040 case $reload_flag in
7042 *) reload_flag=" $reload_flag" ;;
7044 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7046 cygwin* | mingw* | pw32* | cegcc*)
7047 if test "$GCC" != yes; then
7052 if test "$GCC" = yes; then
7053 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7072 $as_echo_n "checking
for $ac_word...
" >&6; }
7073 if ${ac_cv_prog_OBJDUMP+:} false; then :
7074 $as_echo_n "(cached
) " >&6
7076 if test -n "$OBJDUMP"; then
7077 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7096 OBJDUMP=$ac_cv_prog_OBJDUMP
7097 if test -n "$OBJDUMP"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
7099 $as_echo "$OBJDUMP" >&6; }
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7102 $as_echo "no
" >&6; }
7107 if test -z "$ac_cv_prog_OBJDUMP"; then
7108 ac_ct_OBJDUMP=$OBJDUMP
7109 # Extract the first word of "objdump
", so it can be a program name with args.
7110 set dummy objdump; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7112 $as_echo_n "checking
for $ac_word...
" >&6; }
7113 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7114 $as_echo_n "(cached
) " >&6
7116 if test -n "$ac_ct_OBJDUMP"; then
7117 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7136 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7137 if test -n "$ac_ct_OBJDUMP"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
7139 $as_echo "$ac_ct_OBJDUMP" >&6; }
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7142 $as_echo "no
" >&6; }
7145 if test "x
$ac_ct_OBJDUMP" = x; then
7148 case $cross_compiling:$ac_tool_warned in
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7151 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7152 ac_tool_warned=yes ;;
7154 OBJDUMP=$ac_ct_OBJDUMP
7157 OBJDUMP="$ac_cv_prog_OBJDUMP"
7160 test -z "$OBJDUMP" && OBJDUMP=objdump
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
7168 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
7169 if ${lt_cv_deplibs_check_method+:} false; then :
7170 $as_echo_n "(cached
) " >&6
7172 lt_cv_file_magic_cmd='$MAGIC_CMD'
7173 lt_cv_file_magic_test_file=
7174 lt_cv_deplibs_check_method='unknown'
7175 # Need to set the preceding variable on all platforms that support
7176 # interlibrary dependencies.
7177 # 'none' -- dependencies not supported.
7178 # `unknown' -- same as none, but documents that we really don't know.
7179 # 'pass_all' -- all dependencies passed with no checks.
7180 # 'test_compile' -- check by making test program.
7181 # 'file_magic [[regex]]' -- check by looking for files in library path
7182 # which responds to the $file_magic_cmd with a given extended regex.
7183 # If you have `file' or equivalent on your system and you're not sure
7184 # whether `pass_all' will *always* work, you probably want this one.
7188 lt_cv_deplibs_check_method=pass_all
7192 lt_cv_deplibs_check_method=pass_all
7196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7197 lt_cv_file_magic_cmd='/usr/bin/file -L'
7198 lt_cv_file_magic_test_file=/shlib/libc.so
7202 # func_win32_libid is a shell function defined in ltmain.sh
7203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7204 lt_cv_file_magic_cmd='func_win32_libid'
7208 # Base MSYS/MinGW do not provide the 'file' command needed by
7209 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7210 # unless we find 'file', for example because we are cross-compiling.
7211 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7212 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
7213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7214 lt_cv_file_magic_cmd='func_win32_libid'
7216 # Keep this pattern in sync with the one in func_win32_libid.
7217 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7218 lt_cv_file_magic_cmd='$OBJDUMP -f'
7223 # use the weaker test based on 'objdump'. See mingw*.
7224 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7225 lt_cv_file_magic_cmd='$OBJDUMP -f'
7228 darwin* | rhapsody*)
7229 lt_cv_deplibs_check_method=pass_all
7232 freebsd* | dragonfly*)
7233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7236 # Not sure whether the presence of OpenBSD here was a mistake.
7237 # Let's accept both of them until this is cleared up.
7238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7239 lt_cv_file_magic_cmd=/usr/bin/file
7240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7244 lt_cv_deplibs_check_method=pass_all
7249 lt_cv_deplibs_check_method=pass_all
7252 hpux10.20* | hpux11*)
7253 lt_cv_file_magic_cmd=/usr/bin/file
7256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7257 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7261 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7264 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7265 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7271 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7275 irix5* | irix6* | nonstopux*)
7277 *-32|*"-32 ") libmagic=32-bit;;
7278 *-n32|*"-n32 ") libmagic=N32;;
7279 *-64|*"-64 ") libmagic=64-bit;;
7280 *) libmagic=never-match;;
7282 lt_cv_deplibs_check_method=pass_all
7285 # This must be glibc/ELF.
7286 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7287 lt_cv_deplibs_check_method=pass_all
7290 netbsd* | netbsdelf*-gnu)
7291 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7300 lt_cv_file_magic_cmd=/usr/bin/file
7301 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7305 lt_cv_deplibs_check_method=pass_all
7309 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
7310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7316 osf3* | osf4* | osf5*)
7317 lt_cv_deplibs_check_method=pass_all
7321 lt_cv_deplibs_check_method=pass_all
7325 lt_cv_deplibs_check_method=pass_all
7328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7329 lt_cv_deplibs_check_method=pass_all
7333 case $host_vendor in
7335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7339 lt_cv_deplibs_check_method=pass_all
7342 lt_cv_file_magic_cmd='/bin/file'
7343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7346 lt_cv_file_magic_cmd='/bin/file'
7347 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
7348 lt_cv_file_magic_test_file=/lib/libc.so
7351 lt_cv_deplibs_check_method=pass_all
7354 lt_cv_deplibs_check_method=pass_all
7360 lt_cv_deplibs_check_method=pass_all
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
7366 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7370 if test "$build" = "$host"; then
7373 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7376 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
7382 file_magic_cmd=$lt_cv_file_magic_cmd
7383 deplibs_check_method=$lt_cv_deplibs_check_method
7384 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7411 $as_echo_n "checking
for $ac_word...
" >&6; }
7412 if ${ac_cv_prog_DLLTOOL+:} false; then :
7413 $as_echo_n "(cached
) " >&6
7415 if test -n "$DLLTOOL"; then
7416 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7435 DLLTOOL=$ac_cv_prog_DLLTOOL
7436 if test -n "$DLLTOOL"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
7438 $as_echo "$DLLTOOL" >&6; }
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7441 $as_echo "no
" >&6; }
7446 if test -z "$ac_cv_prog_DLLTOOL"; then
7447 ac_ct_DLLTOOL=$DLLTOOL
7448 # Extract the first word of "dlltool
", so it can be a program name with args.
7449 set dummy dlltool; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7451 $as_echo_n "checking
for $ac_word...
" >&6; }
7452 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7453 $as_echo_n "(cached
) " >&6
7455 if test -n "$ac_ct_DLLTOOL"; then
7456 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7475 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7476 if test -n "$ac_ct_DLLTOOL"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
7478 $as_echo "$ac_ct_DLLTOOL" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7481 $as_echo "no
" >&6; }
7484 if test "x
$ac_ct_DLLTOOL" = x; then
7487 case $cross_compiling:$ac_tool_warned in
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7490 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7491 ac_tool_warned=yes ;;
7493 DLLTOOL=$ac_ct_DLLTOOL
7496 DLLTOOL="$ac_cv_prog_DLLTOOL"
7499 test -z "$DLLTOOL" && DLLTOOL=dlltool
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
7508 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
7509 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7510 $as_echo_n "(cached
) " >&6
7512 lt_cv_sharedlib_from_linklib_cmd='unknown'
7515 cygwin* | mingw* | pw32* | cegcc*)
7516 # two different shell functions defined in ltmain.sh
7517 # decide which to use based on capabilities of $DLLTOOL
7518 case `$DLLTOOL --help 2>&1` in
7519 *--identify-strict*)
7520 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7523 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7528 # fallback: assume linklib IS sharedlib
7529 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
7535 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7536 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7537 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7545 if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7551 $as_echo_n "checking
for $ac_word...
" >&6; }
7552 if ${ac_cv_prog_AR+:} false; then :
7553 $as_echo_n "(cached
) " >&6
7555 if test -n "$AR"; then
7556 ac_cv_prog_AR="$AR" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7576 if test -n "$AR"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
7578 $as_echo "$AR" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7581 $as_echo "no
" >&6; }
7585 test -n "$AR" && break
7588 if test -z "$AR"; then
7592 # Extract the first word of "$ac_prog", so it can be a program name with args.
7593 set dummy $ac_prog; ac_word=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7595 $as_echo_n "checking
for $ac_word...
" >&6; }
7596 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7597 $as_echo_n "(cached
) " >&6
7599 if test -n "$ac_ct_AR"; then
7600 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_prog_ac_ct_AR="$ac_prog"
7610 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7619 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7620 if test -n "$ac_ct_AR"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
7622 $as_echo "$ac_ct_AR" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7625 $as_echo "no
" >&6; }
7629 test -n "$ac_ct_AR" && break
7632 if test "x
$ac_ct_AR" = x; then
7635 case $cross_compiling:$ac_tool_warned in
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7638 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7639 ac_tool_warned=yes ;;
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
7659 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
7660 if ${lt_cv_ar_at_file+:} false; then :
7661 $as_echo_n "(cached
) " >&6
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7675 if ac_fn_c_try_compile "$LINENO"; then :
7676 echo conftest.$ac_objext > conftest.lst
7677 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7678 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7679 (eval $lt_ar_try) 2>&5
7681 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7682 test $ac_status = 0; }
7683 if test "$ac_status" -eq 0; then
7684 # Ensure the archiver fails upon bogus file names.
7685 rm -f conftest.$ac_objext libconftest.a
7686 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7687 (eval $lt_ar_try) 2>&5
7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7690 test $ac_status = 0; }
7691 if test "$ac_status" -ne 0; then
7695 rm -f conftest.* libconftest.a
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
7702 $as_echo "$lt_cv_ar_at_file" >&6; }
7704 if test "x
$lt_cv_ar_at_file" = xno; then
7707 archiver_list_spec=$lt_cv_ar_at_file
7716 if test -n "$ac_tool_prefix"; then
7717 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7718 set dummy ${ac_tool_prefix}strip; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7720 $as_echo_n "checking
for $ac_word...
" >&6; }
7721 if ${ac_cv_prog_STRIP+:} false; then :
7722 $as_echo_n "(cached
) " >&6
7724 if test -n "$STRIP"; then
7725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7744 STRIP=$ac_cv_prog_STRIP
7745 if test -n "$STRIP"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7747 $as_echo "$STRIP" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7750 $as_echo "no
" >&6; }
7755 if test -z "$ac_cv_prog_STRIP"; then
7757 # Extract the first word of "strip
", so it can be a program name with args.
7758 set dummy strip; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7760 $as_echo_n "checking
for $ac_word...
" >&6; }
7761 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7762 $as_echo_n "(cached
) " >&6
7764 if test -n "$ac_ct_STRIP"; then
7765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_ac_ct_STRIP="strip
"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7785 if test -n "$ac_ct_STRIP"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7787 $as_echo "$ac_ct_STRIP" >&6; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7790 $as_echo "no
" >&6; }
7793 if test "x
$ac_ct_STRIP" = x; then
7796 case $cross_compiling:$ac_tool_warned in
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7799 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7800 ac_tool_warned=yes ;;
7805 STRIP="$ac_cv_prog_STRIP"
7808 test -z "$STRIP" && STRIP=:
7815 if test -n "$ac_tool_prefix"; then
7816 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7819 $as_echo_n "checking
for $ac_word...
" >&6; }
7820 if ${ac_cv_prog_RANLIB+:} false; then :
7821 $as_echo_n "(cached
) " >&6
7823 if test -n "$RANLIB"; then
7824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7843 RANLIB=$ac_cv_prog_RANLIB
7844 if test -n "$RANLIB"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7846 $as_echo "$RANLIB" >&6; }
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7849 $as_echo "no
" >&6; }
7854 if test -z "$ac_cv_prog_RANLIB"; then
7855 ac_ct_RANLIB=$RANLIB
7856 # Extract the first word of "ranlib
", so it can be a program name with args.
7857 set dummy ranlib; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7859 $as_echo_n "checking
for $ac_word...
" >&6; }
7860 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7861 $as_echo_n "(cached
) " >&6
7863 if test -n "$ac_ct_RANLIB"; then
7864 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7883 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7884 if test -n "$ac_ct_RANLIB"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7886 $as_echo "$ac_ct_RANLIB" >&6; }
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7889 $as_echo "no
" >&6; }
7892 if test "x
$ac_ct_RANLIB" = x; then
7895 case $cross_compiling:$ac_tool_warned in
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7898 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7899 ac_tool_warned=yes ;;
7901 RANLIB=$ac_ct_RANLIB
7904 RANLIB="$ac_cv_prog_RANLIB"
7907 test -z "$RANLIB" && RANLIB=:
7914 # Determine commands to create old-style static archives.
7915 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7916 old_postinstall_cmds='chmod 644 $oldlib'
7917 old_postuninstall_cmds=
7919 if test -n "$RANLIB"; then
7922 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
7925 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
7928 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
7933 lock_old_archive_extraction=yes ;;
7935 lock_old_archive_extraction=no ;;
7976 # If no C compiler was specified, use CC.
7979 # If no C compiler flags were specified, use CFLAGS.
7980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7982 # Allow CC to be a program name with arguments.
7986 # Check for command to grab the raw symbol name followed by C symbol from nm.
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7988 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7989 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7990 $as_echo_n "(cached
) " >&6
7993 # These are sane defaults that work on at least a few old systems.
7994 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7996 # Character class describing NM global symbol codes.
7997 symcode='[BCDEGRST]'
7999 # Regexp to match symbols that can be accessed directly from C.
8000 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8002 # Define system-specific variables.
8007 cygwin* | mingw* | pw32* | cegcc*)
8008 symcode='[ABCDGISTW]'
8011 if test "$host_cpu" = ia64; then
8012 symcode='[ABCDEGRST]'
8016 symcode='[BCDEGRST]'
8019 symcode='[BCDEGQRST]'
8030 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8038 # If we're using GNU nm, then use its standard symbol codes.
8039 case `$NM -V 2>&1` in
8040 *GNU* | *'with BFD'*)
8041 symcode='[ABCDGIRSTW]' ;;
8044 # Transform an extracted symbol line into a proper C declaration.
8045 # Some systems (esp. on ia64) link data and code symbols differently,
8046 # so use this general approach.
8047 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8049 # Transform an extracted symbol line into symbol name and symbol address
8050 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8051 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8053 # Handle CRLF in mingw tool chain
8057 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8061 # Try without a prefix underscore, then with it.
8062 for ac_symprfx in "" "_
"; do
8064 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8065 symxfrm="\\1 $ac_symprfx\\2 \\2"
8067 # Write the raw and C identifiers.
8068 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
8069 # Fake it for dumpbin and say T for any non-static function
8070 # and D for any global variable.
8071 # Also find C++ and __fastcall symbols from MSVC++,
8072 # which start with @ or ?.
8073 lt_cv_sys_global_symbol_pipe="$AWK '"\
8074 " {last_section=section; section=\$ 3};"\
8075 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8076 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8077 " \$ 0!~/External *\|/{next};"\
8078 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8079 " {if(hide[section]) next};"\
8080 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8081 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8082 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8083 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8084 " ' prfx
=^
$ac_symprfx"
8086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8088 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
8090 # Check to see that the pipe works correctly.
8094 cat > conftest.$ac_ext <<_LT_EOF
8099 void nm_test_func(void);
8100 void nm_test_func(void){}
8104 int main(){nm_test_var='a';nm_test_func();return(0);}
8107 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8108 (eval $ac_compile) 2>&5
8110 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8111 test $ac_status = 0; }; then
8112 # Now try to grab the symbols.
8114 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
8115 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8117 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8118 test $ac_status = 0; } && test -s "$nlist"; then
8119 # Try sorting and uniquifying the output.
8120 if sort "$nlist" | uniq > "$nlist"T; then
8121 mv -f "$nlist"T "$nlist"
8126 # Make sure that we snagged all the symbols we need.
8127 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8128 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8129 cat <<_LT_EOF > conftest.$ac_ext
8130 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8131 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8132 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8133 relocations are performed -- see ld's documentation on pseudo-relocs. */
8134 # define LT_DLSYM_CONST
8135 #elif defined(__osf__)
8136 /* This system does not cope well with relocations in const data. */
8137 # define LT_DLSYM_CONST
8139 # define LT_DLSYM_CONST const
8147 # Now generate the symbol file.
8148 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8150 cat <<_LT_EOF >> conftest.$ac_ext
8152 /* The mapping between symbol names and symbols. */
8153 LT_DLSYM_CONST struct {
8157 lt__PROGRAM__LTX_preloaded_symbols[] =
8159 { "@PROGRAM@
", (void *) 0 },
8161 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8162 cat <<\_LT_EOF >> conftest.$ac_ext
8166 /* This works around a problem in FreeBSD linker */
8167 #ifdef FREEBSD_WORKAROUND
8168 static const void *lt_preloaded_setup() {
8169 return lt__PROGRAM__LTX_preloaded_symbols;
8177 # Now try linking the two files.
8178 mv conftest.$ac_objext conftstm.$ac_objext
8179 lt_globsym_save_LIBS=$LIBS
8180 lt_globsym_save_CFLAGS=$CFLAGS
8181 LIBS="conftstm.
$ac_objext"
8182 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8183 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8184 (eval $ac_link) 2>&5
8186 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8187 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8190 LIBS=$lt_globsym_save_LIBS
8191 CFLAGS=$lt_globsym_save_CFLAGS
8193 echo "cannot
find nm_test_func
in $nlist" >&5
8196 echo "cannot
find nm_test_var
in $nlist" >&5
8199 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
8202 echo "$progname: failed program was
:" >&5
8203 cat conftest.$ac_ext >&5
8205 rm -rf conftest* conftst*
8207 # Do not use the global_symbol_pipe unless it works.
8208 if test "$pipe_works" = yes; then
8211 lt_cv_sys_global_symbol_pipe=
8217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8218 lt_cv_sys_global_symbol_to_cdecl=
8220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
8222 $as_echo "failed
" >&6; }
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
8225 $as_echo "ok
" >&6; }
8228 # Response file support.
8229 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
8230 nm_file_list_spec='@'
8231 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8232 nm_file_list_spec='@'
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
8262 $as_echo_n "checking
for sysroot...
" >&6; }
8264 # Check whether --with-sysroot was given.
8265 if test "${with_sysroot+set}" = set; then :
8266 withval=$with_sysroot;
8273 case ${with_sysroot} in #(
8275 if test "$GCC" = yes; then
8276 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8280 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
8286 $as_echo "${with_sysroot}" >&6; }
8287 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
8292 $as_echo "${lt_sysroot:-no}" >&6; }
8298 # Check whether --enable-libtool-lock was given.
8299 if test "${enable_libtool_lock+set}" = set; then :
8300 enableval=$enable_libtool_lock;
8303 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
8305 # Some flags need to be propagated to the compiler or linker for good
8309 # Find out which ABI we are using.
8310 echo 'int i;' > conftest.$ac_ext
8311 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8312 (eval $ac_compile) 2>&5
8314 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8315 test $ac_status = 0; }; then
8316 case `/usr/bin/file conftest.$ac_objext` in
8328 # Find out which ABI we are using.
8329 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
8330 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8331 (eval $ac_compile) 2>&5
8333 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8334 test $ac_status = 0; }; then
8335 if test "$lt_cv_prog_gnu_ld" = yes; then
8336 case `/usr/bin/file conftest.$ac_objext` in
8338 LD="${LD-ld} -melf32bsmip"
8341 LD="${LD-ld} -melf32bmipn32"
8344 LD="${LD-ld} -melf64bmip"
8348 case `/usr/bin/file conftest.$ac_objext` in
8364 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8365 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8366 # Find out which ABI we are using.
8367 echo 'int i;' > conftest.$ac_ext
8368 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8369 (eval $ac_compile) 2>&5
8371 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8372 test $ac_status = 0; }; then
8373 case `/usr/bin/file conftest.o` in
8376 x86_64-*kfreebsd*-gnu)
8377 LD="${LD-ld} -m elf_i386_fbsd
"
8380 case `/usr/bin/file conftest.o` in
8382 LD="${LD-ld} -m elf32_x86_64
"
8385 LD="${LD-ld} -m elf_i386
"
8390 LD="${LD-ld} -m elf32lppclinux
"
8393 LD="${LD-ld} -m elf32ppclinux
"
8396 LD="${LD-ld} -m elf_s390
"
8399 LD="${LD-ld} -m elf32_sparc
"
8405 x86_64-*kfreebsd*-gnu)
8406 LD="${LD-ld} -m elf_x86_64_fbsd
"
8409 LD="${LD-ld} -m elf_x86_64
"
8412 LD="${LD-ld} -m elf64lppc
"
8415 LD="${LD-ld} -m elf64ppc
"
8417 s390*-*linux*|s390*-*tpf*)
8418 LD="${LD-ld} -m elf64_s390
"
8421 LD="${LD-ld} -m elf64_sparc
"
8431 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8432 SAVE_CFLAGS="$CFLAGS"
8433 CFLAGS="$CFLAGS -belf"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
8435 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
8436 if ${lt_cv_cc_needs_belf+:} false; then :
8437 $as_echo_n "(cached
) " >&6
8440 ac_cpp='$CPP $CPPFLAGS'
8441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8456 if ac_fn_c_try_link "$LINENO"; then :
8457 lt_cv_cc_needs_belf=yes
8459 lt_cv_cc_needs_belf=no
8461 rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8464 ac_cpp='$CPP $CPPFLAGS'
8465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
8471 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8472 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8473 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8474 CFLAGS="$SAVE_CFLAGS"
8478 # Find out which ABI we are using.
8479 echo 'int i;' > conftest.$ac_ext
8480 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8481 (eval $ac_compile) 2>&5
8483 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8484 test $ac_status = 0; }; then
8485 case `/usr/bin/file conftest.o` in
8487 case $lt_cv_prog_gnu_ld in
8491 LD="${LD-ld} -m elf_x86_64
"
8494 LD="${LD-ld} -m elf64_sparc
"
8497 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8498 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8503 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8515 need_locks="$enable_libtool_lock"
8517 if test -n "$ac_tool_prefix"; then
8518 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
8519 set dummy ${ac_tool_prefix}mt; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8521 $as_echo_n "checking
for $ac_word...
" >&6; }
8522 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8523 $as_echo_n "(cached
) " >&6
8525 if test -n "$MANIFEST_TOOL"; then
8526 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8535 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8545 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8546 if test -n "$MANIFEST_TOOL"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
8548 $as_echo "$MANIFEST_TOOL" >&6; }
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8551 $as_echo "no
" >&6; }
8556 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8557 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8558 # Extract the first word of "mt
", so it can be a program name with args.
8559 set dummy mt; ac_word=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8561 $as_echo_n "checking
for $ac_word...
" >&6; }
8562 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8563 $as_echo_n "(cached
) " >&6
8565 if test -n "$ac_ct_MANIFEST_TOOL"; then
8566 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8585 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8586 if test -n "$ac_ct_MANIFEST_TOOL"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
8588 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8591 $as_echo "no
" >&6; }
8594 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
8597 case $cross_compiling:$ac_tool_warned in
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8600 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8601 ac_tool_warned=yes ;;
8603 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8606 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8609 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
8611 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
8612 if ${lt_cv_path_mainfest_tool+:} false; then :
8613 $as_echo_n "(cached
) " >&6
8615 lt_cv_path_mainfest_tool=no
8616 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8617 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8618 cat conftest.err >&5
8619 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8620 lt_cv_path_mainfest_tool=yes
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
8625 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8626 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
8636 rhapsody* | darwin*)
8637 if test -n "$ac_tool_prefix"; then
8638 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
8639 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8641 $as_echo_n "checking
for $ac_word...
" >&6; }
8642 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8643 $as_echo_n "(cached
) " >&6
8645 if test -n "$DSYMUTIL"; then
8646 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8665 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8666 if test -n "$DSYMUTIL"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
8668 $as_echo "$DSYMUTIL" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8671 $as_echo "no
" >&6; }
8676 if test -z "$ac_cv_prog_DSYMUTIL"; then
8677 ac_ct_DSYMUTIL=$DSYMUTIL
8678 # Extract the first word of "dsymutil
", so it can be a program name with args.
8679 set dummy dsymutil; ac_word=$2
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8681 $as_echo_n "checking
for $ac_word...
" >&6; }
8682 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8683 $as_echo_n "(cached
) " >&6
8685 if test -n "$ac_ct_DSYMUTIL"; then
8686 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
8696 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8705 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8706 if test -n "$ac_ct_DSYMUTIL"; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
8708 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8711 $as_echo "no
" >&6; }
8714 if test "x
$ac_ct_DSYMUTIL" = x; then
8717 case $cross_compiling:$ac_tool_warned in
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8720 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8721 ac_tool_warned=yes ;;
8723 DSYMUTIL=$ac_ct_DSYMUTIL
8726 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8729 if test -n "$ac_tool_prefix"; then
8730 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
8731 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8733 $as_echo_n "checking
for $ac_word...
" >&6; }
8734 if ${ac_cv_prog_NMEDIT+:} false; then :
8735 $as_echo_n "(cached
) " >&6
8737 if test -n "$NMEDIT"; then
8738 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8757 NMEDIT=$ac_cv_prog_NMEDIT
8758 if test -n "$NMEDIT"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
8760 $as_echo "$NMEDIT" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8763 $as_echo "no
" >&6; }
8768 if test -z "$ac_cv_prog_NMEDIT"; then
8769 ac_ct_NMEDIT=$NMEDIT
8770 # Extract the first word of "nmedit
", so it can be a program name with args.
8771 set dummy nmedit; ac_word=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8773 $as_echo_n "checking
for $ac_word...
" >&6; }
8774 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8775 $as_echo_n "(cached
) " >&6
8777 if test -n "$ac_ct_NMEDIT"; then
8778 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
8788 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8797 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8798 if test -n "$ac_ct_NMEDIT"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
8800 $as_echo "$ac_ct_NMEDIT" >&6; }
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8803 $as_echo "no
" >&6; }
8806 if test "x
$ac_ct_NMEDIT" = x; then
8809 case $cross_compiling:$ac_tool_warned in
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8812 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8813 ac_tool_warned=yes ;;
8815 NMEDIT=$ac_ct_NMEDIT
8818 NMEDIT="$ac_cv_prog_NMEDIT"
8821 if test -n "$ac_tool_prefix"; then
8822 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
8823 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8825 $as_echo_n "checking
for $ac_word...
" >&6; }
8826 if ${ac_cv_prog_LIPO+:} false; then :
8827 $as_echo_n "(cached
) " >&6
8829 if test -n "$LIPO"; then
8830 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8849 LIPO=$ac_cv_prog_LIPO
8850 if test -n "$LIPO"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8852 $as_echo "$LIPO" >&6; }
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8855 $as_echo "no
" >&6; }
8860 if test -z "$ac_cv_prog_LIPO"; then
8862 # Extract the first word of "lipo
", so it can be a program name with args.
8863 set dummy lipo; ac_word=$2
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8865 $as_echo_n "checking
for $ac_word...
" >&6; }
8866 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8867 $as_echo_n "(cached
) " >&6
8869 if test -n "$ac_ct_LIPO"; then
8870 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876 test -z "$as_dir" && as_dir=.
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8879 ac_cv_prog_ac_ct_LIPO="lipo
"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8889 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8890 if test -n "$ac_ct_LIPO"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8892 $as_echo "$ac_ct_LIPO" >&6; }
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8895 $as_echo "no
" >&6; }
8898 if test "x
$ac_ct_LIPO" = x; then
8901 case $cross_compiling:$ac_tool_warned in
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8904 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8905 ac_tool_warned=yes ;;
8910 LIPO="$ac_cv_prog_LIPO"
8913 if test -n "$ac_tool_prefix"; then
8914 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8915 set dummy ${ac_tool_prefix}otool; ac_word=$2
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8917 $as_echo_n "checking
for $ac_word...
" >&6; }
8918 if ${ac_cv_prog_OTOOL+:} false; then :
8919 $as_echo_n "(cached
) " >&6
8921 if test -n "$OTOOL"; then
8922 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
8930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8932 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8941 OTOOL=$ac_cv_prog_OTOOL
8942 if test -n "$OTOOL"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8944 $as_echo "$OTOOL" >&6; }
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8947 $as_echo "no
" >&6; }
8952 if test -z "$ac_cv_prog_OTOOL"; then
8954 # Extract the first word of "otool
", so it can be a program name with args.
8955 set dummy otool; ac_word=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8957 $as_echo_n "checking
for $ac_word...
" >&6; }
8958 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8959 $as_echo_n "(cached
) " >&6
8961 if test -n "$ac_ct_OTOOL"; then
8962 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971 ac_cv_prog_ac_ct_OTOOL="otool
"
8972 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8981 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8982 if test -n "$ac_ct_OTOOL"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8984 $as_echo "$ac_ct_OTOOL" >&6; }
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8987 $as_echo "no
" >&6; }
8990 if test "x
$ac_ct_OTOOL" = x; then
8993 case $cross_compiling:$ac_tool_warned in
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8996 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8997 ac_tool_warned=yes ;;
9002 OTOOL="$ac_cv_prog_OTOOL"
9005 if test -n "$ac_tool_prefix"; then
9006 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
9007 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9009 $as_echo_n "checking
for $ac_word...
" >&6; }
9010 if ${ac_cv_prog_OTOOL64+:} false; then :
9011 $as_echo_n "(cached
) " >&6
9013 if test -n "$OTOOL64"; then
9014 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 test -z "$as_dir" && as_dir=.
9021 for ac_exec_ext in '' $ac_executable_extensions; do
9022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
9024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9033 OTOOL64=$ac_cv_prog_OTOOL64
9034 if test -n "$OTOOL64"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
9036 $as_echo "$OTOOL64" >&6; }
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9039 $as_echo "no
" >&6; }
9044 if test -z "$ac_cv_prog_OTOOL64"; then
9045 ac_ct_OTOOL64=$OTOOL64
9046 # Extract the first word of "otool64
", so it can be a program name with args.
9047 set dummy otool64; ac_word=$2
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9049 $as_echo_n "checking
for $ac_word...
" >&6; }
9050 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9051 $as_echo_n "(cached
) " >&6
9053 if test -n "$ac_ct_OTOOL64"; then
9054 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060 test -z "$as_dir" && as_dir=.
9061 for ac_exec_ext in '' $ac_executable_extensions; do
9062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9063 ac_cv_prog_ac_ct_OTOOL64="otool64
"
9064 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9073 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9074 if test -n "$ac_ct_OTOOL64"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
9076 $as_echo "$ac_ct_OTOOL64" >&6; }
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9079 $as_echo "no
" >&6; }
9082 if test "x
$ac_ct_OTOOL64" = x; then
9085 case $cross_compiling:$ac_tool_warned in
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9088 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9089 ac_tool_warned=yes ;;
9091 OTOOL64=$ac_ct_OTOOL64
9094 OTOOL64="$ac_cv_prog_OTOOL64"
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
9124 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
9125 if ${lt_cv_apple_cc_single_mod+:} false; then :
9126 $as_echo_n "(cached
) " >&6
9128 lt_cv_apple_cc_single_mod=no
9129 if test -z "${LT_MULTI_MODULE}"; then
9130 # By default we will add the -single_module flag. You can override
9131 # by either setting the environment variable LT_MULTI_MODULE
9132 # non-empty at configure time, or by adding -multi_module to the
9134 rm -rf libconftest.dylib*
9135 echo "int foo
(void
){return 1;}" > conftest.c
9136 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9137 -dynamiclib -Wl,-single_module conftest.c
" >&5
9138 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9139 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9141 # If there is a non-empty error log, and "single_module
"
9142 # appears in it, assume the flag caused a linker warning
9143 if test -s conftest.err && $GREP single_module conftest.err; then
9144 cat conftest.err >&5
9145 # Otherwise, if the output was created with a 0 exit code from
9146 # the compiler, it worked.
9147 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9148 lt_cv_apple_cc_single_mod=yes
9150 cat conftest.err >&5
9152 rm -rf libconftest.dylib*
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
9157 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
9160 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
9161 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9162 $as_echo_n "(cached
) " >&6
9164 lt_cv_ld_exported_symbols_list=no
9165 save_LDFLAGS=$LDFLAGS
9166 echo "_main
" > conftest.sym
9167 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9179 if ac_fn_c_try_link "$LINENO"; then :
9180 lt_cv_ld_exported_symbols_list=yes
9182 lt_cv_ld_exported_symbols_list=no
9184 rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9186 LDFLAGS="$save_LDFLAGS"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
9190 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
9193 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
9194 if ${lt_cv_ld_force_load+:} false; then :
9195 $as_echo_n "(cached
) " >&6
9197 lt_cv_ld_force_load=no
9198 cat > conftest.c << _LT_EOF
9199 int forced_loaded() { return 2;}
9201 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
9202 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9203 echo "$AR cru libconftest.a conftest.o
" >&5
9204 $AR cru libconftest.a conftest.o 2>&5
9205 echo "$RANLIB libconftest.a
" >&5
9206 $RANLIB libconftest.a 2>&5
9207 cat > conftest.c << _LT_EOF
9208 int main() { return 0;}
9210 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
9211 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9213 if test -s conftest.err && $GREP force_load conftest.err; then
9214 cat conftest.err >&5
9215 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9216 lt_cv_ld_force_load=yes
9218 cat conftest.err >&5
9220 rm -f conftest.err libconftest.a conftest conftest.c
9221 rm -rf conftest.dSYM
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
9225 $as_echo "$lt_cv_ld_force_load" >&6; }
9227 rhapsody* | darwin1.[012])
9228 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9230 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9231 darwin*) # darwin 5.x on
9232 # if running on 10.5 or later, the deployment target defaults
9233 # to the OS version, if on x86, and 10.4, the deployment
9234 # target defaults to 10.4. Don't you love it?
9235 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9236 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9237 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9239 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9241 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9245 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9246 _lt_dar_single_mod='$single_module'
9248 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9249 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9251 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9253 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
9254 _lt_dsymutil='~$DSYMUTIL $lib || :'
9261 for ac_header in dlfcn.h
9263 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
9265 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
9266 cat >>confdefs.h <<_ACEOF
9267 #define HAVE_DLFCN_H 1
9279 enable_win32_dll=yes
9282 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9283 if test -n "$ac_tool_prefix"; then
9284 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
9285 set dummy ${ac_tool_prefix}as; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9287 $as_echo_n "checking
for $ac_word...
" >&6; }
9288 if ${ac_cv_prog_AS+:} false; then :
9289 $as_echo_n "(cached
) " >&6
9291 if test -n "$AS"; then
9292 ac_cv_prog_AS="$AS" # Let the user override the test.
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9301 ac_cv_prog_AS="${ac_tool_prefix}as
"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9312 if test -n "$AS"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
9314 $as_echo "$AS" >&6; }
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9317 $as_echo "no
" >&6; }
9322 if test -z "$ac_cv_prog_AS"; then
9324 # Extract the first word of "as
", so it can be a program name with args.
9325 set dummy as; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9327 $as_echo_n "checking
for $ac_word...
" >&6; }
9328 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9329 $as_echo_n "(cached
) " >&6
9331 if test -n "$ac_ct_AS"; then
9332 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9338 test -z "$as_dir" && as_dir=.
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9341 ac_cv_prog_ac_ct_AS="as
"
9342 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9351 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9352 if test -n "$ac_ct_AS"; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AS" >&5
9354 $as_echo "$ac_ct_AS" >&6; }
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9357 $as_echo "no
" >&6; }
9360 if test "x
$ac_ct_AS" = x; then
9363 case $cross_compiling:$ac_tool_warned in
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9366 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9367 ac_tool_warned=yes ;;
9375 if test -n "$ac_tool_prefix"; then
9376 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
9377 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9379 $as_echo_n "checking
for $ac_word...
" >&6; }
9380 if ${ac_cv_prog_DLLTOOL+:} false; then :
9381 $as_echo_n "(cached
) " >&6
9383 if test -n "$DLLTOOL"; then
9384 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 test -z "$as_dir" && as_dir=.
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9393 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
9394 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9403 DLLTOOL=$ac_cv_prog_DLLTOOL
9404 if test -n "$DLLTOOL"; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
9406 $as_echo "$DLLTOOL" >&6; }
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9409 $as_echo "no
" >&6; }
9414 if test -z "$ac_cv_prog_DLLTOOL"; then
9415 ac_ct_DLLTOOL=$DLLTOOL
9416 # Extract the first word of "dlltool
", so it can be a program name with args.
9417 set dummy dlltool; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9419 $as_echo_n "checking
for $ac_word...
" >&6; }
9420 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9421 $as_echo_n "(cached
) " >&6
9423 if test -n "$ac_ct_DLLTOOL"; then
9424 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9433 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9443 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9444 if test -n "$ac_ct_DLLTOOL"; then
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
9446 $as_echo "$ac_ct_DLLTOOL" >&6; }
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9449 $as_echo "no
" >&6; }
9452 if test "x
$ac_ct_DLLTOOL" = x; then
9455 case $cross_compiling:$ac_tool_warned in
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9458 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9459 ac_tool_warned=yes ;;
9461 DLLTOOL=$ac_ct_DLLTOOL
9464 DLLTOOL="$ac_cv_prog_DLLTOOL"
9467 if test -n "$ac_tool_prefix"; then
9468 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
9469 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9471 $as_echo_n "checking
for $ac_word...
" >&6; }
9472 if ${ac_cv_prog_OBJDUMP+:} false; then :
9473 $as_echo_n "(cached
) " >&6
9475 if test -n "$OBJDUMP"; then
9476 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9485 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
9486 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9495 OBJDUMP=$ac_cv_prog_OBJDUMP
9496 if test -n "$OBJDUMP"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
9498 $as_echo "$OBJDUMP" >&6; }
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9501 $as_echo "no
" >&6; }
9506 if test -z "$ac_cv_prog_OBJDUMP"; then
9507 ac_ct_OBJDUMP=$OBJDUMP
9508 # Extract the first word of "objdump
", so it can be a program name with args.
9509 set dummy objdump; ac_word=$2
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9511 $as_echo_n "checking
for $ac_word...
" >&6; }
9512 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9513 $as_echo_n "(cached
) " >&6
9515 if test -n "$ac_ct_OBJDUMP"; then
9516 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9525 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
9526 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9535 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9536 if test -n "$ac_ct_OBJDUMP"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
9538 $as_echo "$ac_ct_OBJDUMP" >&6; }
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9541 $as_echo "no
" >&6; }
9544 if test "x
$ac_ct_OBJDUMP" = x; then
9547 case $cross_compiling:$ac_tool_warned in
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9550 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9551 ac_tool_warned=yes ;;
9553 OBJDUMP=$ac_ct_OBJDUMP
9556 OBJDUMP="$ac_cv_prog_OBJDUMP"
9562 test -z "$AS" && AS=as
9568 test -z "$DLLTOOL" && DLLTOOL=dlltool
9574 test -z "$OBJDUMP" && OBJDUMP=objdump
9586 # Check whether --enable-shared was given.
9587 if test "${enable_shared+set}" = set; then :
9588 enableval=$enable_shared; p=${PACKAGE-default}
9590 yes) enable_shared=yes ;;
9591 no) enable_shared=no ;;
9594 # Look at the argument we got. We use all the common list separators.
9595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9596 for pkg in $enableval; do
9598 if test "X
$pkg" = "X
$p"; then
9617 # Check whether --enable-static was given.
9618 if test "${enable_static+set}" = set; then :
9619 enableval=$enable_static; p=${PACKAGE-default}
9621 yes) enable_static=yes ;;
9622 no) enable_static=no ;;
9625 # Look at the argument we got. We use all the common list separators.
9626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9627 for pkg in $enableval; do
9629 if test "X
$pkg" = "X
$p"; then
9649 # Check whether --with-pic was given.
9650 if test "${with_pic+set}" = set; then :
9651 withval=$with_pic; lt_p=${PACKAGE-default}
9653 yes|no) pic_mode=$withval ;;
9656 # Look at the argument we got. We use all the common list separators.
9657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9658 for lt_pkg in $withval; do
9660 if test "X
$lt_pkg" = "X
$lt_p"; then
9672 test -z "$pic_mode" && pic_mode=default
9680 # Check whether --enable-fast-install was given.
9681 if test "${enable_fast_install+set}" = set; then :
9682 enableval=$enable_fast_install; p=${PACKAGE-default}
9684 yes) enable_fast_install=yes ;;
9685 no) enable_fast_install=no ;;
9687 enable_fast_install=no
9688 # Look at the argument we got. We use all the common list separators.
9689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9690 for pkg in $enableval; do
9692 if test "X
$pkg" = "X
$p"; then
9693 enable_fast_install=yes
9700 enable_fast_install=yes
9713 # This can be used to rebuild libtool when needed
9714 LIBTOOL_DEPS="$ltmain"
9716 # Always use our own libtool.
9717 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9748 test -z "$LN_S" && LN_S="ln -s"
9763 if test -n "${ZSH_VERSION+set}" ; then
9764 setopt NO_GLOB_SUBST
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
9768 $as_echo_n "checking
for objdir...
" >&6; }
9769 if ${lt_cv_objdir+:} false; then :
9770 $as_echo_n "(cached
) " >&6
9772 rm -f .libs 2>/dev/null
9773 mkdir .libs 2>/dev/null
9774 if test -d .libs; then
9777 # MS-DOS does not allow filenames that begin with a dot.
9780 rmdir .libs 2>/dev/null
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
9783 $as_echo "$lt_cv_objdir" >&6; }
9784 objdir=$lt_cv_objdir
9790 cat >>confdefs.h <<_ACEOF
9791 #define LT_OBJDIR "$lt_cv_objdir/"
9799 # AIX sometimes has problems with the GCC collect2 program. For some
9800 # reason, if we set the COLLECT_NAMES environment variable, the problems
9801 # vanish in a puff of smoke.
9802 if test "X
${COLLECT_NAMES+set}" != Xset; then
9804 export COLLECT_NAMES
9811 can_build_shared=yes
9813 # All known linkers require a `.a' archive for static linking (except MSVC,
9814 # which needs '.lib').
9817 with_gnu_ld="$lt_cv_prog_gnu_ld"
9820 old_CFLAGS="$CFLAGS"
9822 # Set sane defaults for various variables
9823 test -z "$CC" && CC=cc
9824 test -z "$LTCC" && LTCC=$CC
9825 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9826 test -z "$LD" && LD=ld
9827 test -z "$ac_objext" && ac_objext=o
9829 for cc_temp in $compiler""; do
9831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9837 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
9840 # Only perform the check for file, if the check method requires it
9841 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9842 case $deplibs_check_method in
9844 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
9846 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
9847 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9848 $as_echo_n "(cached
) " >&6
9852 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9855 lt_save_MAGIC_CMD="$MAGIC_CMD"
9856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9857 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9858 for ac_dir in $ac_dummy; do
9860 test -z "$ac_dir" && ac_dir=.
9861 if test -f $ac_dir/${ac_tool_prefix}file; then
9862 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9863 if test -n "$file_magic_test_file"; then
9864 case $deplibs_check_method in
9866 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9868 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9869 $EGREP "$file_magic_regex" > /dev/null; then
9874 *** Warning: the command libtool uses to detect shared libraries,
9875 *** $file_magic_cmd, produces output that libtool cannot recognize.
9876 *** The result is that libtool may fail to recognize shared libraries
9877 *** as such. This will affect the creation of libtool libraries that
9878 *** depend on shared libraries, but programs linked with such libtool
9879 *** libraries will work regardless of this problem. Nevertheless, you
9880 *** may want to report the problem to your system manager and/or to
9881 *** bug-libtool@gnu.org
9891 MAGIC_CMD="$lt_save_MAGIC_CMD"
9896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9897 if test -n "$MAGIC_CMD"; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9899 $as_echo "$MAGIC_CMD" >&6; }
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9902 $as_echo "no
" >&6; }
9909 if test -z "$lt_cv_path_MAGIC_CMD"; then
9910 if test -n "$ac_tool_prefix"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
9912 $as_echo_n "checking
for file...
" >&6; }
9913 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9914 $as_echo_n "(cached
) " >&6
9918 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9921 lt_save_MAGIC_CMD="$MAGIC_CMD"
9922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9923 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9924 for ac_dir in $ac_dummy; do
9926 test -z "$ac_dir" && ac_dir=.
9927 if test -f $ac_dir/file; then
9928 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9929 if test -n "$file_magic_test_file"; then
9930 case $deplibs_check_method in
9932 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9935 $EGREP "$file_magic_regex" > /dev/null; then
9940 *** Warning: the command libtool uses to detect shared libraries,
9941 *** $file_magic_cmd, produces output that libtool cannot recognize.
9942 *** The result is that libtool may fail to recognize shared libraries
9943 *** as such. This will affect the creation of libtool libraries that
9944 *** depend on shared libraries, but programs linked with such libtool
9945 *** libraries will work regardless of this problem. Nevertheless, you
9946 *** may want to report the problem to your system manager and/or to
9947 *** bug-libtool@gnu.org
9957 MAGIC_CMD="$lt_save_MAGIC_CMD"
9962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9963 if test -n "$MAGIC_CMD"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9965 $as_echo "$MAGIC_CMD" >&6; }
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9968 $as_echo "no
" >&6; }
9981 # Use C for the default configuration in the libtool script
9985 ac_cpp='$CPP $CPPFLAGS'
9986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9991 # Source file extension for C test sources.
9994 # Object file extension for compiled C test sources.
9998 # Code to be used in simple compile tests
9999 lt_simple_compile_test_code="int some_variable
= 0;"
10001 # Code to be used in simple link tests
10002 lt_simple_link_test_code='int main(){return(0);}'
10010 # If no C compiler was specified, use CC.
10013 # If no C compiler flags were specified, use CFLAGS.
10014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10016 # Allow CC to be a program name with arguments.
10019 # Save the default compiler, since it gets overwritten when the other
10020 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10021 compiler_DEFAULT=$CC
10023 # save warnings/boilerplate of simple test code
10024 ac_outfile=conftest.$ac_objext
10025 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10026 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10027 _lt_compiler_boilerplate=`cat conftest.err`
10030 ac_outfile=conftest.$ac_objext
10031 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10032 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10033 _lt_linker_boilerplate=`cat conftest.err`
10038 ## There is no encapsulation within the following macros, do not change
10039 ## the running order or otherwise move them around unless you know exactly
10040 ## what you are doing...
10041 if test -n "$compiler"; then
10043 lt_prog_compiler_no_builtin_flag=
10045 if test "$GCC" = yes; then
10046 case $cc_basename in
10048 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10050 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
10054 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
10055 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10056 $as_echo_n "(cached
) " >&6
10058 lt_cv_prog_compiler_rtti_exceptions=no
10059 ac_outfile=conftest.$ac_objext
10060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10061 lt_compiler_flag="-fno-rtti -fno-exceptions"
10062 # Insert the option either (1) after the last *FLAGS variable, or
10063 # (2) before a word containing "conftest.
", or (3) at the end.
10064 # Note that $ac_compile itself does not contain backslashes and begins
10065 # with a dollar sign (not a hyphen), so the echo should work correctly.
10066 # The option is referenced via a variable to avoid confusing sed.
10067 lt_compile=`echo "$ac_compile" | $SED \
10068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10070 -e 's:$: $lt_compiler_flag:'`
10071 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10072 (eval "$lt_compile" 2>conftest.err)
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10076 if (exit $ac_status) && test -s "$ac_outfile"; then
10077 # The compiler can only warn and ignore the option if not recognized
10078 # So say no if there are warnings other than the usual output.
10079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10082 lt_cv_prog_compiler_rtti_exceptions=yes
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
10089 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10091 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10092 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10104 lt_prog_compiler_wl=
10105 lt_prog_compiler_pic=
10106 lt_prog_compiler_static=
10109 if test "$GCC" = yes; then
10110 lt_prog_compiler_wl='-Wl,'
10111 lt_prog_compiler_static='-static'
10115 # All AIX code is PIC.
10116 if test "$host_cpu" = ia64; then
10117 # AIX 5 now supports IA64 processor
10118 lt_prog_compiler_static='-Bstatic'
10125 # see comment about AmigaOS4 .so support
10126 lt_prog_compiler_pic='-fPIC'
10129 # FIXME: we need at least 68020 code to build shared libraries, but
10130 # adding the `-m68020' flag to GCC prevents building anything better,
10132 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10137 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10138 # PIC is the default for these OSes.
10141 mingw* | cygwin* | pw32* | os2* | cegcc*)
10142 # This hack is so that the source file can tell whether it is being
10143 # built for inclusion in a dll (and should export symbols for example).
10144 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10145 # (--disable-auto-import) libraries
10146 lt_prog_compiler_pic='-DDLL_EXPORT'
10149 darwin* | rhapsody*)
10150 # PIC is the default on this platform
10151 # Common symbols not allowed in MH_DYLIB files
10152 lt_prog_compiler_pic='-fno-common'
10156 # PIC is the default for Haiku.
10157 # The "-static" flag exists, but is broken.
10158 lt_prog_compiler_static=
10162 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10163 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10164 # sets the default TLS model and affects inlining.
10170 lt_prog_compiler_pic='-fPIC'
10176 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10177 # Instead, we relocate shared libraries at runtime.
10181 # Just because we use GCC doesn't mean we suddenly get shared libraries
10182 # on systems that don't support them.
10183 lt_prog_compiler_can_build_shared=no
10188 # QNX uses GNU C++, but need to define -shared option too, otherwise
10189 # it will coredump.
10190 lt_prog_compiler_pic='-fPIC -shared'
10194 if test -d /usr/nec; then
10195 lt_prog_compiler_pic=-Kconform_pic
10200 lt_prog_compiler_pic='-fPIC'
10204 case $cc_basename in
10205 nvcc*) # Cuda Compiler Driver 2.2
10206 lt_prog_compiler_wl='-Xlinker '
10207 if test -n "$lt_prog_compiler_pic"; then
10208 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10213 # PORTME Check for flag to pass linker flags through the system compiler.
10216 lt_prog_compiler_wl='-Wl,'
10217 if test "$host_cpu" = ia64; then
10218 # AIX 5 now supports IA64 processor
10219 lt_prog_compiler_static='-Bstatic'
10221 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10225 mingw* | cygwin* | pw32* | os2* | cegcc*)
10226 # This hack is so that the source file can tell whether it is being
10227 # built for inclusion in a dll (and should export symbols for example).
10228 lt_prog_compiler_pic='-DDLL_EXPORT'
10231 hpux9* | hpux10* | hpux11*)
10232 lt_prog_compiler_wl='-Wl,'
10233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10234 # not for PA HP-UX.
10240 lt_prog_compiler_pic='+Z'
10243 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10244 lt_prog_compiler_static='${wl}-a ${wl}archive'
10247 irix5* | irix6* | nonstopux*)
10248 lt_prog_compiler_wl='-Wl,'
10249 # PIC (with -KPIC) is the default.
10250 lt_prog_compiler_static='-non_shared'
10253 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10254 case $cc_basename in
10255 # old Intel for x86_64 which still supported -KPIC.
10257 lt_prog_compiler_wl='-Wl,'
10258 lt_prog_compiler_pic='-KPIC'
10259 lt_prog_compiler_static='-static'
10261 # icc used to be incompatible with GCC.
10262 # ICC 10 doesn't accept -KPIC any more.
10264 lt_prog_compiler_wl='-Wl,'
10265 lt_prog_compiler_pic='-fPIC'
10266 lt_prog_compiler_static='-static'
10268 # Lahey Fortran 8.1.
10270 lt_prog_compiler_wl='-Wl,'
10271 lt_prog_compiler_pic='--shared'
10272 lt_prog_compiler_static='--static'
10275 # NAG Fortran compiler
10276 lt_prog_compiler_wl='-Wl,-Wl,,'
10277 lt_prog_compiler_pic='-PIC'
10278 lt_prog_compiler_static='-Bstatic'
10280 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10281 # Portland Group compilers (*not* the Pentium gcc compiler,
10282 # which looks to be a dead project)
10283 lt_prog_compiler_wl='-Wl,'
10284 lt_prog_compiler_pic='-fpic'
10285 lt_prog_compiler_static='-Bstatic'
10288 lt_prog_compiler_wl='-Wl,'
10289 # All Alpha code is PIC.
10290 lt_prog_compiler_static='-non_shared'
10292 xl* | bgxl* | bgf* | mpixl*)
10293 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10294 lt_prog_compiler_wl='-Wl,'
10295 lt_prog_compiler_pic='-qpic'
10296 lt_prog_compiler_static='-qstaticlink'
10299 case `$CC -V 2>&1 | sed 5q` in
10300 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10301 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10302 lt_prog_compiler_pic='-KPIC'
10303 lt_prog_compiler_static='-Bstatic'
10304 lt_prog_compiler_wl=''
10306 *Sun\ F* | *Sun*Fortran*)
10307 lt_prog_compiler_pic='-KPIC'
10308 lt_prog_compiler_static='-Bstatic'
10309 lt_prog_compiler_wl='-Qoption ld '
10313 lt_prog_compiler_pic='-KPIC'
10314 lt_prog_compiler_static='-Bstatic'
10315 lt_prog_compiler_wl='-Wl,'
10317 *Intel*\ [CF]*Compiler*)
10318 lt_prog_compiler_wl='-Wl,'
10319 lt_prog_compiler_pic='-fPIC'
10320 lt_prog_compiler_static='-static'
10323 lt_prog_compiler_wl='-Wl,'
10324 lt_prog_compiler_pic='-fpic'
10325 lt_prog_compiler_static='-Bstatic'
10333 lt_prog_compiler_pic='-KPIC'
10334 lt_prog_compiler_static='-Bstatic'
10338 # QNX uses GNU C++, but need to define -shared option too, otherwise
10339 # it will coredump.
10340 lt_prog_compiler_pic='-fPIC -shared'
10343 osf3* | osf4* | osf5*)
10344 lt_prog_compiler_wl='-Wl,'
10345 # All OSF/1 code is PIC.
10346 lt_prog_compiler_static='-non_shared'
10350 lt_prog_compiler_static='-non_shared'
10354 lt_prog_compiler_pic='-KPIC'
10355 lt_prog_compiler_static='-Bstatic'
10356 case $cc_basename in
10357 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10358 lt_prog_compiler_wl='-Qoption ld ';;
10360 lt_prog_compiler_wl='-Wl,';;
10365 lt_prog_compiler_wl='-Qoption ld '
10366 lt_prog_compiler_pic='-PIC'
10367 lt_prog_compiler_static='-Bstatic'
10370 sysv4 | sysv4.2uw2* | sysv4.3*)
10371 lt_prog_compiler_wl='-Wl,'
10372 lt_prog_compiler_pic='-KPIC'
10373 lt_prog_compiler_static='-Bstatic'
10377 if test -d /usr/nec ;then
10378 lt_prog_compiler_pic='-Kconform_pic'
10379 lt_prog_compiler_static='-Bstatic'
10383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10384 lt_prog_compiler_wl='-Wl,'
10385 lt_prog_compiler_pic='-KPIC'
10386 lt_prog_compiler_static='-Bstatic'
10390 lt_prog_compiler_wl='-Wl,'
10391 lt_prog_compiler_can_build_shared=no
10395 lt_prog_compiler_pic='-pic'
10396 lt_prog_compiler_static='-Bstatic'
10400 lt_prog_compiler_can_build_shared=no
10406 # For platforms which do not support PIC, -DPIC is meaningless:
10408 lt_prog_compiler_pic=
10411 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
10416 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
10417 if ${lt_cv_prog_compiler_pic+:} false; then :
10418 $as_echo_n "(cached
) " >&6
10420 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic" >&5
10423 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10424 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10427 # Check to make sure the PIC flag actually works.
10429 if test -n "$lt_prog_compiler_pic"; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
10431 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
10432 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10433 $as_echo_n "(cached
) " >&6
10435 lt_cv_prog_compiler_pic_works=no
10436 ac_outfile=conftest.$ac_objext
10437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10438 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10439 # Insert the option either (1) after the last *FLAGS variable, or
10440 # (2) before a word containing "conftest.
", or (3) at the end.
10441 # Note that $ac_compile itself does not contain backslashes and begins
10442 # with a dollar sign (not a hyphen), so the echo should work correctly.
10443 # The option is referenced via a variable to avoid confusing sed.
10444 lt_compile=`echo "$ac_compile" | $SED \
10445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10447 -e 's:$: $lt_compiler_flag:'`
10448 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10449 (eval "$lt_compile" 2>conftest.err)
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10453 if (exit $ac_status) && test -s "$ac_outfile"; then
10454 # The compiler can only warn and ignore the option if not recognized
10455 # So say no if there are warnings other than the usual output.
10456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10459 lt_cv_prog_compiler_pic_works=yes
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
10466 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10468 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10469 case $lt_prog_compiler_pic in
10471 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10474 lt_prog_compiler_pic=
10475 lt_prog_compiler_can_build_shared=no
10491 # Check to make sure the static flag actually works.
10493 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
10495 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
10496 if ${lt_cv_prog_compiler_static_works+:} false; then :
10497 $as_echo_n "(cached
) " >&6
10499 lt_cv_prog_compiler_static_works=no
10500 save_LDFLAGS="$LDFLAGS"
10501 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10502 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10503 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10504 # The linker can only warn and ignore the option if not recognized
10505 # So say no if there are warnings
10506 if test -s conftest.err; then
10507 # Append any errors to the config.log.
10508 cat conftest.err 1>&5
10509 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10511 if diff conftest.exp conftest.er2 >/dev/null; then
10512 lt_cv_prog_compiler_static_works=yes
10515 lt_cv_prog_compiler_static_works=yes
10519 LDFLAGS="$save_LDFLAGS"
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
10523 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10525 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10528 lt_prog_compiler_static=
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
10538 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
10539 if ${lt_cv_prog_compiler_c_o+:} false; then :
10540 $as_echo_n "(cached
) " >&6
10542 lt_cv_prog_compiler_c_o=no
10543 $RM -r conftest 2>/dev/null
10547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10549 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
10550 # Insert the option either (1) after the last *FLAGS variable, or
10551 # (2) before a word containing "conftest.
", or (3) at the end.
10552 # Note that $ac_compile itself does not contain backslashes and begins
10553 # with a dollar sign (not a hyphen), so the echo should work correctly.
10554 lt_compile=`echo "$ac_compile" | $SED \
10555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10557 -e 's:$: $lt_compiler_flag:'`
10558 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10559 (eval "$lt_compile" 2>out/conftest.err)
10561 cat out/conftest.err >&5
10562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10563 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10565 # The compiler can only warn and ignore the option if not recognized
10566 # So say no if there are warnings
10567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10568 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10569 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10570 lt_cv_prog_compiler_c_o=yes
10575 # SGI C++ compiler will create directory out/ii_files/ for
10576 # template instantiation
10577 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10578 $RM out/* && rmdir out
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
10585 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
10593 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
10594 if ${lt_cv_prog_compiler_c_o+:} false; then :
10595 $as_echo_n "(cached
) " >&6
10597 lt_cv_prog_compiler_c_o=no
10598 $RM -r conftest 2>/dev/null
10602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10604 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
10605 # Insert the option either (1) after the last *FLAGS variable, or
10606 # (2) before a word containing "conftest.
", or (3) at the end.
10607 # Note that $ac_compile itself does not contain backslashes and begins
10608 # with a dollar sign (not a hyphen), so the echo should work correctly.
10609 lt_compile=`echo "$ac_compile" | $SED \
10610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10612 -e 's:$: $lt_compiler_flag:'`
10613 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10614 (eval "$lt_compile" 2>out/conftest.err)
10616 cat out/conftest.err >&5
10617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10618 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10620 # The compiler can only warn and ignore the option if not recognized
10621 # So say no if there are warnings
10622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10623 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10624 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10625 lt_cv_prog_compiler_c_o=yes
10630 # SGI C++ compiler will create directory out/ii_files/ for
10631 # template instantiation
10632 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10633 $RM out/* && rmdir out
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
10640 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10645 hard_links="nottested
"
10646 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10647 # do not overwrite the value of need_locks provided by the user
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
10649 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
10652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10654 ln conftest.a conftest.b 2>&5 || hard_links=no
10655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
10657 $as_echo "$hard_links" >&6; }
10658 if test "$hard_links" = no; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
10660 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
10673 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
10676 allow_undefined_flag=
10677 always_export_symbols=no
10679 archive_expsym_cmds=
10680 compiler_needs_object=no
10681 enable_shared_with_static_runtimes=no
10682 export_dynamic_flag_spec=
10683 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10684 hardcode_automatic=no
10686 hardcode_direct_absolute=no
10687 hardcode_libdir_flag_spec=
10688 hardcode_libdir_separator=
10689 hardcode_minus_L=no
10690 hardcode_shlibpath_var=unsupported
10692 link_all_deplibs=unknown
10694 module_expsym_cmds=
10695 old_archive_from_new_cmds=
10696 old_archive_from_expsyms_cmds=
10697 thread_safe_flag_spec=
10698 whole_archive_flag_spec=
10699 # include_expsyms should be a list of space-separated symbols to be *always*
10700 # included in the symbol list
10702 # exclude_expsyms can be an extended regexp of symbols to exclude
10703 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10704 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10705 # as well as any symbol that contains `d'.
10706 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10707 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10708 # platforms (ab)use it in PIC code, but their linkers get confused if
10709 # the symbol is explicitly referenced. Since portable code cannot
10710 # rely on this symbol name, it's probably fine to never include it in
10711 # preloaded symbol tables.
10712 # Exclude shared library initialization/finalization symbols.
10713 extract_expsyms_cmds=
10716 cygwin* | mingw* | pw32* | cegcc*)
10717 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10718 # When not using gcc, we currently assume that we are using
10719 # Microsoft Visual C++.
10720 if test "$GCC" != yes; then
10725 # we just hope/assume this is gcc and not c89 (= MSVC++)
10731 linux* | k*bsd*-gnu | gnu*)
10732 link_all_deplibs=no
10738 # On some targets, GNU ld is compatible enough with the native linker
10739 # that we're better off using the native interface for both.
10740 lt_use_gnu_ld_interface=no
10741 if test "$with_gnu_ld" = yes; then
10744 # The AIX port of GNU ld has always aspired to compatibility
10745 # with the native linker. However, as the warning in the GNU ld
10746 # block says, versions before 2.19.5* couldn't really create working
10747 # shared libraries, regardless of the interface used.
10748 case `$LD -v 2>&1` in
10749 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10750 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10751 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10753 lt_use_gnu_ld_interface=yes
10758 lt_use_gnu_ld_interface=yes
10763 if test "$lt_use_gnu_ld_interface" = yes; then
10764 # If archive_cmds runs LD, not CC, wlarc should be empty
10767 # Set some defaults for GNU ld with shared library support. These
10768 # are reset later if shared libraries are not supported. Putting them
10769 # here allows them to be overridden if necessary.
10770 runpath_var=LD_RUN_PATH
10771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10772 export_dynamic_flag_spec='${wl}--export-dynamic'
10773 # ancient GNU ld didn't support --whole-archive et. al.
10774 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10775 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10777 whole_archive_flag_spec=
10779 supports_anon_versioning=no
10780 case `$LD -v 2>&1` in
10781 *GNU\ gold*) supports_anon_versioning=yes ;;
10782 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10783 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10784 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10785 *\ 2.11.*) ;; # other 2.11 versions
10786 *) supports_anon_versioning=yes ;;
10789 # See if GNU ld supports shared libraries.
10792 # On AIX/PPC, the GNU linker is very broken
10793 if test "$host_cpu" != ia64; then
10797 *** Warning: the GNU linker, at least up to release 2.19, is reported
10798 *** to be unable to reliably create shared libraries on AIX.
10799 *** Therefore, libtool is disabling shared libraries support. If you
10800 *** really care for shared libraries, you may want to install binutils
10801 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10802 *** You will then need to restart the configuration process.
10811 # see comment about AmigaOS4 .so support
10812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10813 archive_expsym_cmds=''
10816 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10817 hardcode_libdir_flag_spec
='-L$libdir'
10818 hardcode_minus_L
=yes
10824 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10825 allow_undefined_flag
=unsupported
10826 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10827 # support --undefined. This deserves some investigation. FIXME
10828 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10834 cygwin
* | mingw
* | pw32
* | cegcc
*)
10835 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10836 # as there is no search path for DLLs.
10837 hardcode_libdir_flag_spec
='-L$libdir'
10838 export_dynamic_flag_spec
='${wl}--export-all-symbols'
10839 allow_undefined_flag
=unsupported
10840 always_export_symbols
=no
10841 enable_shared_with_static_runtimes
=yes
10842 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10843 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10845 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
10846 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10847 # If the export-symbols file already is a .def file (1st line
10848 # is EXPORTS), use it as is; otherwise, prepend...
10849 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10850 cp $export_symbols $output_objdir/$soname.def;
10852 echo EXPORTS > $output_objdir/$soname.def;
10853 cat $export_symbols >> $output_objdir/$soname.def;
10855 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10862 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10863 link_all_deplibs
=yes
10868 hardcode_shlibpath_var
=no
10869 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10870 export_dynamic_flag_spec
='${wl}-E'
10871 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10872 # Instead, shared libraries are loaded at an image base (0x10000000 by
10873 # default) and relocated if they conflict, which is a slow very memory
10874 # consuming and fragmenting process. To avoid this, we pick a random,
10875 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10876 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10877 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10878 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10881 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10883 if test "$host_os" = linux-dietlibc
; then
10884 case $cc_basename in
10885 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
10888 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
10889 && test "$tmp_diet" = no
10891 tmp_addflag
=' $pic_flag'
10892 tmp_sharedflag
='-shared'
10893 case $cc_basename,$host_cpu in
10894 pgcc
*) # Portland Group C compiler
10895 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10896 tmp_addflag
=' $pic_flag'
10898 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10899 # Portland Group f77 and f90 compilers
10900 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10901 tmp_addflag
=' $pic_flag -Mnomain' ;;
10902 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
10903 tmp_addflag
=' -i_dynamic' ;;
10904 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
10905 tmp_addflag
=' -i_dynamic -nofor_main' ;;
10906 ifc
* | ifort
*) # Intel Fortran compiler
10907 tmp_addflag
=' -nofor_main' ;;
10908 lf95
*) # Lahey Fortran 8.1
10909 whole_archive_flag_spec
=
10910 tmp_sharedflag
='--shared' ;;
10911 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10912 tmp_sharedflag
='-qmkshrobj'
10914 nvcc
*) # Cuda Compiler Driver 2.2
10915 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10916 compiler_needs_object
=yes
10919 case `$CC -V 2>&1 | sed 5q` in
10920 *Sun\ C
*) # Sun C 5.9
10921 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10922 compiler_needs_object
=yes
10923 tmp_sharedflag
='-G' ;;
10924 *Sun\ F
*) # Sun Fortran 8.3
10925 tmp_sharedflag
='-G' ;;
10927 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10929 if test "x$supports_anon_versioning" = xyes
; then
10930 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10931 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10932 echo "local: *; };" >> $output_objdir/$libname.ver~
10933 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10936 case $cc_basename in
10937 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
10938 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10939 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
10940 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10941 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10942 if test "x$supports_anon_versioning" = xyes
; then
10943 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10945 echo "local: *; };" >> $output_objdir/$libname.ver~
10946 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10955 netbsd
* | netbsdelf
*-gnu)
10956 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10957 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10960 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10961 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10966 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10971 *** create shared libraries on Solaris systems. Therefore, libtool
10972 *** is disabling shared libraries support. We urge you to upgrade GNU
10973 *** binutils to release 2.9.1 or newer. Another option is to modify
10974 *** your PATH or compiler configuration so that the native linker is
10975 *** used, and then restart.
10978 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10979 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10980 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10986 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10987 case `$LD -v 2>&1` in
10988 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10992 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10993 *** reliably create shared libraries on SCO systems. Therefore, libtool
10994 *** is disabling shared libraries support. We urge you to upgrade GNU
10995 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10996 *** your PATH or compiler configuration so that the native linker is
10997 *** used, and then restart.
11002 # For security reasons, it is highly recommended that you always
11003 # use absolute paths for naming shared libraries, and exclude the
11004 # DT_RUNPATH tag from executables and libraries. But doing so
11005 # requires that you compile everything twice, which is a pain.
11006 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11007 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11008 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11009 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11018 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11020 hardcode_direct
=yes
11021 hardcode_shlibpath_var
=no
11025 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11026 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11027 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11034 if test "$ld_shlibs" = no
; then
11036 hardcode_libdir_flag_spec
=
11037 export_dynamic_flag_spec
=
11038 whole_archive_flag_spec
=
11041 # PORTME fill in a description of your system's linker (not GNU ld)
11044 allow_undefined_flag
=unsupported
11045 always_export_symbols
=yes
11046 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11047 # Note: this linker hardcodes the directories in LIBPATH if there
11048 # are no directories specified by -L.
11049 hardcode_minus_L
=yes
11050 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11051 # Neither direct hardcoding nor static linking is supported with a
11053 hardcode_direct
=unsupported
11058 if test "$host_cpu" = ia64
; then
11059 # On IA64, the linker does run time linking by default, so we don't
11060 # have to do anything special.
11061 aix_use_runtimelinking
=no
11062 exp_sym_flag
='-Bexport'
11065 # If we're using GNU nm, then we don't want the "-C" option.
11066 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11067 # Also, AIX nm treats weak defined symbols like other global
11068 # defined symbols, whereas GNU nm marks them as "W".
11069 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
11070 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11072 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11074 aix_use_runtimelinking
=no
11076 # Test if we are trying to use run time linking or normal
11077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11078 # need to do runtime linking.
11079 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
11080 for ld_flag
in $LDFLAGS; do
11081 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
11082 aix_use_runtimelinking
=yes
11089 exp_sym_flag
='-bexport'
11090 no_entry_flag
='-bnoentry'
11093 # When large executables or shared objects are built, AIX ld can
11094 # have problems creating the table of contents. If linking a library
11095 # or program results in "error TOC overflow" add -mminimal-toc to
11096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11100 hardcode_direct
=yes
11101 hardcode_direct_absolute
=yes
11102 hardcode_libdir_separator
=':'
11103 link_all_deplibs
=yes
11104 file_list_spec
='${wl}-f,'
11106 if test "$GCC" = yes; then
11107 case $host_os in aix4.
[012]|aix4.
[012].
*)
11108 # We only want to do this on AIX 4.2 and lower, the check
11109 # below for broken collect2 doesn't work under 4.3+
11110 collect2name
=`${CC} -print-prog-name=collect2`
11111 if test -f "$collect2name" &&
11112 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
11114 # We have reworked collect2
11117 # We have old collect2
11118 hardcode_direct
=unsupported
11119 # It fails to find uninstalled libraries when the uninstalled
11120 # path is not listed in the libpath. Setting hardcode_minus_L
11121 # to unsupported forces relinking
11122 hardcode_minus_L
=yes
11123 hardcode_libdir_flag_spec
='-L$libdir'
11124 hardcode_libdir_separator
=
11128 shared_flag
='-shared'
11129 if test "$aix_use_runtimelinking" = yes; then
11130 shared_flag
="$shared_flag "'${wl}-G'
11132 link_all_deplibs
=no
11135 if test "$host_cpu" = ia64
; then
11136 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11137 # chokes on -Wl,-G. The following line is correct:
11140 if test "$aix_use_runtimelinking" = yes; then
11141 shared_flag
='${wl}-G'
11143 shared_flag
='${wl}-bM:SRE'
11148 export_dynamic_flag_spec
='${wl}-bexpall'
11149 # It seems that -bexpall does not export symbols beginning with
11150 # underscore (_), so it is better to generate a list of symbols to export.
11151 always_export_symbols
=yes
11152 if test "$aix_use_runtimelinking" = yes; then
11153 # Warning - without using the other runtime loading flags (-brtl),
11154 # -berok will link without error, but may produce a broken library.
11155 allow_undefined_flag
='-berok'
11156 # Determine the default libpath from the value encoded in an
11157 # empty executable.
11158 if test "${lt_cv_aix_libpath+set}" = set; then
11159 aix_libpath
=$lt_cv_aix_libpath
11161 if ${lt_cv_aix_libpath_+:} false
; then :
11162 $as_echo_n "(cached) " >&6
11164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11175 if ac_fn_c_try_link
"$LINENO"; then :
11177 lt_aix_libpath_sed
='
11178 /Import File Strings/,/^$/ {
11180 s/^0 *\([^ ]*\) *$/\1/
11184 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11185 # Check for a 64-bit object if we didn't find anything.
11186 if test -z "$lt_cv_aix_libpath_"; then
11187 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11190 rm -f core conftest.err conftest.
$ac_objext \
11191 conftest
$ac_exeext conftest.
$ac_ext
11192 if test -z "$lt_cv_aix_libpath_"; then
11193 lt_cv_aix_libpath_
="/usr/lib:/lib"
11198 aix_libpath
=$lt_cv_aix_libpath_
11201 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11202 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11204 if test "$host_cpu" = ia64
; then
11205 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
11206 allow_undefined_flag
="-z nodefs"
11207 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11209 # Determine the default libpath from the value encoded in an
11210 # empty executable.
11211 if test "${lt_cv_aix_libpath+set}" = set; then
11212 aix_libpath
=$lt_cv_aix_libpath
11214 if ${lt_cv_aix_libpath_+:} false
; then :
11215 $as_echo_n "(cached) " >&6
11217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11228 if ac_fn_c_try_link
"$LINENO"; then :
11230 lt_aix_libpath_sed
='
11231 /Import File Strings/,/^$/ {
11233 s/^0 *\([^ ]*\) *$/\1/
11237 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11238 # Check for a 64-bit object if we didn't find anything.
11239 if test -z "$lt_cv_aix_libpath_"; then
11240 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11243 rm -f core conftest.err conftest.
$ac_objext \
11244 conftest
$ac_exeext conftest.
$ac_ext
11245 if test -z "$lt_cv_aix_libpath_"; then
11246 lt_cv_aix_libpath_
="/usr/lib:/lib"
11251 aix_libpath
=$lt_cv_aix_libpath_
11254 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11255 # Warning - without using the other run time loading flags,
11256 # -berok will link without error, but may produce a broken library.
11257 no_undefined_flag
=' ${wl}-bernotok'
11258 allow_undefined_flag
=' ${wl}-berok'
11259 if test "$with_gnu_ld" = yes; then
11260 # We only use this code for GNU lds that support --whole-archive.
11261 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11263 # Exported symbols can be pulled into shared objects from archives
11264 whole_archive_flag_spec
='$convenience'
11266 archive_cmds_need_lc
=yes
11267 # This is similar to how AIX traditionally builds its shared libraries.
11268 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11276 # see comment about AmigaOS4 .so support
11277 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11278 archive_expsym_cmds
=''
11281 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11282 hardcode_libdir_flag_spec
='-L$libdir'
11283 hardcode_minus_L
=yes
11289 export_dynamic_flag_spec
=-rdynamic
11292 cygwin
* | mingw
* | pw32
* | cegcc
*)
11293 # When not using gcc, we currently assume that we are using
11294 # Microsoft Visual C++.
11295 # hardcode_libdir_flag_spec is actually meaningless, as there is
11296 # no search path for DLLs.
11297 case $cc_basename in
11300 hardcode_libdir_flag_spec
=' '
11301 allow_undefined_flag
=unsupported
11302 always_export_symbols
=yes
11304 # Tell ltmain to make .lib files, not .a files.
11306 # Tell ltmain to make .dll files, not .so files.
11308 # FIXME: Setting linknames here is a bad hack.
11309 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11310 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11311 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
11313 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
11315 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11317 # The linker will not automatically build a static lib if we build a DLL.
11318 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11319 enable_shared_with_static_runtimes
=yes
11320 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11321 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11323 old_postinstall_cmds
='chmod 644 $oldlib'
11324 postlink_cmds
='lt_outputfile="@OUTPUT@"~
11325 lt_tool_outputfile="@TOOL_OUTPUT@"~
11326 case $lt_outputfile in
11329 lt_outputfile="$lt_outputfile.exe"
11330 lt_tool_outputfile="$lt_tool_outputfile.exe"
11333 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11334 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11335 $RM "$lt_outputfile.manifest";
11339 # Assume MSVC wrapper
11340 hardcode_libdir_flag_spec
=' '
11341 allow_undefined_flag
=unsupported
11342 # Tell ltmain to make .lib files, not .a files.
11344 # Tell ltmain to make .dll files, not .so files.
11346 # FIXME: Setting linknames here is a bad hack.
11347 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11348 # The linker will automatically build a .lib file if we build a DLL.
11349 old_archive_from_new_cmds
='true'
11350 # FIXME: Should let the user specify the lib program.
11351 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
11352 enable_shared_with_static_runtimes
=yes
11357 darwin
* | rhapsody
*)
11360 archive_cmds_need_lc
=no
11362 hardcode_automatic
=yes
11363 hardcode_shlibpath_var
=unsupported
11364 if test "$lt_cv_ld_force_load" = "yes"; then
11365 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11368 whole_archive_flag_spec
=''
11370 link_all_deplibs
=yes
11371 allow_undefined_flag
="$_lt_dar_allow_undefined"
11372 case $cc_basename in
11373 ifort
*) _lt_dar_can_shared
=yes ;;
11374 *) _lt_dar_can_shared
=$GCC ;;
11376 if test "$_lt_dar_can_shared" = "yes"; then
11377 output_verbose_link_cmd
=func_echo_all
11378 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11379 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11380 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11381 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11390 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11391 hardcode_libdir_flag_spec
='-L$libdir'
11392 hardcode_shlibpath_var
=no
11395 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11396 # support. Future versions do this automatically, but an explicit c++rt0.o
11397 # does not break anything, and helps significantly (at the cost of a little
11400 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11401 hardcode_libdir_flag_spec
='-R$libdir'
11402 hardcode_direct
=yes
11403 hardcode_shlibpath_var
=no
11406 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11408 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11409 hardcode_direct
=yes
11410 hardcode_minus_L
=yes
11411 hardcode_shlibpath_var
=no
11414 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11415 freebsd
* | dragonfly
*)
11416 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11417 hardcode_libdir_flag_spec
='-R$libdir'
11418 hardcode_direct
=yes
11419 hardcode_shlibpath_var
=no
11423 if test "$GCC" = yes; then
11424 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11426 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11428 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11429 hardcode_libdir_separator
=:
11430 hardcode_direct
=yes
11432 # hardcode_minus_L: Not really in the search PATH,
11433 # but as the default location of the library.
11434 hardcode_minus_L
=yes
11435 export_dynamic_flag_spec
='${wl}-E'
11439 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11440 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11442 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11444 if test "$with_gnu_ld" = no
; then
11445 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11446 hardcode_libdir_separator
=:
11447 hardcode_direct
=yes
11448 hardcode_direct_absolute
=yes
11449 export_dynamic_flag_spec
='${wl}-E'
11450 # hardcode_minus_L: Not really in the search PATH,
11451 # but as the default location of the library.
11452 hardcode_minus_L
=yes
11457 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11460 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11463 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11466 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11472 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11475 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11479 # Older versions of the 11.00 compiler do not understand -b yet
11480 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11482 $as_echo_n "checking if $CC understands -b... " >&6; }
11483 if ${lt_cv_prog_compiler__b+:} false
; then :
11484 $as_echo_n "(cached) " >&6
11486 lt_cv_prog_compiler__b
=no
11487 save_LDFLAGS
="$LDFLAGS"
11488 LDFLAGS
="$LDFLAGS -b"
11489 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11490 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11491 # The linker can only warn and ignore the option if not recognized
11492 # So say no if there are warnings
11493 if test -s conftest.err
; then
11494 # Append any errors to the config.log.
11495 cat conftest.err
1>&5
11496 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
11497 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11498 if diff conftest.exp conftest.er2
>/dev
/null
; then
11499 lt_cv_prog_compiler__b
=yes
11502 lt_cv_prog_compiler__b
=yes
11506 LDFLAGS
="$save_LDFLAGS"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11510 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11512 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
11513 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11515 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11521 if test "$with_gnu_ld" = no
; then
11522 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11523 hardcode_libdir_separator
=:
11528 hardcode_shlibpath_var
=no
11531 hardcode_direct
=yes
11532 hardcode_direct_absolute
=yes
11533 export_dynamic_flag_spec
='${wl}-E'
11535 # hardcode_minus_L: Not really in the search PATH,
11536 # but as the default location of the library.
11537 hardcode_minus_L
=yes
11543 irix5
* | irix6
* | nonstopux
*)
11544 if test "$GCC" = yes; then
11545 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11546 # Try to use the -exported_symbol ld option, if it does not
11547 # work, assume that -exports_file does not work either and
11548 # implicitly export all symbols.
11549 # This should be the same for all languages, so no per-tag cache variable.
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11551 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11552 if ${lt_cv_irix_exported_symbol+:} false
; then :
11553 $as_echo_n "(cached) " >&6
11555 save_LDFLAGS
="$LDFLAGS"
11556 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 int foo (void) { return 0; }
11561 if ac_fn_c_try_link
"$LINENO"; then :
11562 lt_cv_irix_exported_symbol
=yes
11564 lt_cv_irix_exported_symbol
=no
11566 rm -f core conftest.err conftest.
$ac_objext \
11567 conftest
$ac_exeext conftest.
$ac_ext
11568 LDFLAGS
="$save_LDFLAGS"
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11571 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11572 if test "$lt_cv_irix_exported_symbol" = yes; then
11573 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11576 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11577 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11579 archive_cmds_need_lc
='no'
11580 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11581 hardcode_libdir_separator
=:
11583 link_all_deplibs
=yes
11586 netbsd
* | netbsdelf
*-gnu)
11587 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11588 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11590 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11592 hardcode_libdir_flag_spec
='-R$libdir'
11593 hardcode_direct
=yes
11594 hardcode_shlibpath_var
=no
11598 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11599 hardcode_direct
=yes
11600 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11601 hardcode_libdir_separator
=:
11602 hardcode_shlibpath_var
=no
11609 if test -f /usr
/libexec
/ld.so
; then
11610 hardcode_direct
=yes
11611 hardcode_shlibpath_var
=no
11612 hardcode_direct_absolute
=yes
11613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11614 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11615 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11616 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11617 export_dynamic_flag_spec
='${wl}-E'
11620 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
11621 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11622 hardcode_libdir_flag_spec
='-R$libdir'
11625 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11626 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11636 hardcode_libdir_flag_spec
='-L$libdir'
11637 hardcode_minus_L
=yes
11638 allow_undefined_flag
=unsupported
11639 archive_cmds
='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11640 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11644 if test "$GCC" = yes; then
11645 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11646 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11648 allow_undefined_flag
=' -expect_unresolved \*'
11649 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11651 archive_cmds_need_lc
='no'
11652 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11653 hardcode_libdir_separator
=:
11656 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11657 if test "$GCC" = yes; then
11658 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11659 archive_cmds
='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11660 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11662 allow_undefined_flag
=' -expect_unresolved \*'
11663 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11664 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11665 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11667 # Both c and cxx compiler support -rpath directly
11668 hardcode_libdir_flag_spec
='-rpath $libdir'
11670 archive_cmds_need_lc
='no'
11671 hardcode_libdir_separator
=:
11675 no_undefined_flag
=' -z defs'
11676 if test "$GCC" = yes; then
11678 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11679 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11680 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11682 case `$CC -V 2>&1` in
11685 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11686 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11687 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11691 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11692 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11693 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11697 hardcode_libdir_flag_spec
='-R$libdir'
11698 hardcode_shlibpath_var
=no
11700 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11702 # The compiler driver will combine and reorder linker options,
11703 # but understands `-z linker_flag'. GCC discards it without `$wl',
11704 # but is careful enough not to reorder.
11705 # Supported since Solaris 2.6 (maybe 2.5.1?)
11706 if test "$GCC" = yes; then
11707 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11709 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
11713 link_all_deplibs
=yes
11717 if test "x$host_vendor" = xsequent
; then
11718 # Use $CC to link under sequent, because it throws in some extra .o
11719 # files that make .init and .fini sections work.
11720 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11722 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11724 hardcode_libdir_flag_spec
='-L$libdir'
11725 hardcode_direct
=yes
11726 hardcode_minus_L
=yes
11727 hardcode_shlibpath_var
=no
11731 case $host_vendor in
11733 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734 hardcode_direct
=yes # is this really true???
11737 ## LD is ld it makes a PLAMLIB
11738 ## CC just makes a GrossModule.
11739 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11740 reload_cmds
='$CC -r -o $output$reload_objs'
11744 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11745 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11748 runpath_var
='LD_RUN_PATH'
11749 hardcode_shlibpath_var
=no
11753 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11754 hardcode_shlibpath_var
=no
11755 export_dynamic_flag_spec
='-Bexport'
11759 if test -d /usr
/nec
; then
11760 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11761 hardcode_shlibpath_var
=no
11762 runpath_var
=LD_RUN_PATH
11763 hardcode_runpath_var
=yes
11768 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11769 no_undefined_flag
='${wl}-z,text'
11770 archive_cmds_need_lc
=no
11771 hardcode_shlibpath_var
=no
11772 runpath_var
='LD_RUN_PATH'
11774 if test "$GCC" = yes; then
11775 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11776 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 sysv5
* | sco3.2v5
* | sco5v6
*)
11784 # Note: We can NOT use -z defs as we might desire, because we do not
11785 # link with -lc, and that would cause any symbols used from libc to
11786 # always be unresolved, which means just about no library would
11787 # ever link correctly. If we're not using GNU ld we use -z text
11788 # though, which does catch some bad symbols but isn't as heavy-handed
11790 no_undefined_flag
='${wl}-z,text'
11791 allow_undefined_flag
='${wl}-z,nodefs'
11792 archive_cmds_need_lc
=no
11793 hardcode_shlibpath_var
=no
11794 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
11795 hardcode_libdir_separator
=':'
11796 link_all_deplibs
=yes
11797 export_dynamic_flag_spec
='${wl}-Bexport'
11798 runpath_var
='LD_RUN_PATH'
11800 if test "$GCC" = yes; then
11801 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11802 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11805 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11810 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11811 hardcode_libdir_flag_spec
='-L$libdir'
11812 hardcode_shlibpath_var
=no
11820 if test x
$host_vendor = xsni
; then
11822 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11823 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11830 $as_echo "$ld_shlibs" >&6; }
11831 test "$ld_shlibs" = no
&& can_build_shared
=no
11833 with_gnu_ld
=$with_gnu_ld
11850 # Do we need to explicitly link libc?
11852 case "x$archive_cmds_need_lc" in
11854 # Assume -lc should be added
11855 archive_cmds_need_lc
=yes
11857 if test "$enable_shared" = yes && test "$GCC" = yes; then
11858 case $archive_cmds in
11860 # FIXME: we may have to deal with multi-command sequences.
11863 # Test whether the compiler implicitly links with -lc since on some
11864 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11865 # to ld, don't add -lc before -lgcc.
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11867 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11868 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
11869 $as_echo_n "(cached) " >&6
11872 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11875 (eval $ac_compile) 2>&5
11877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11878 test $ac_status = 0; } 2>conftest.err
; then
11881 libobjs
=conftest.
$ac_objext
11883 wl
=$lt_prog_compiler_wl
11884 pic_flag
=$lt_prog_compiler_pic
11890 lt_save_allow_undefined_flag
=$allow_undefined_flag
11891 allow_undefined_flag
=
11892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11893 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11896 test $ac_status = 0; }
11898 lt_cv_archive_cmds_need_lc
=no
11900 lt_cv_archive_cmds_need_lc
=yes
11902 allow_undefined_flag
=$lt_save_allow_undefined_flag
11904 cat conftest.err
1>&5
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11910 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11911 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12070 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12072 if test "$GCC" = yes; then
12074 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
12075 *) lt_awk_arg
="/^libraries:/" ;;
12078 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
12079 *) lt_sed_strip_eq
="s,=/,/,g" ;;
12081 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12082 case $lt_search_path_spec in
12084 # if the path contains ";" then we assume it to be the separator
12085 # otherwise default to the standard path separator (i.e. ":") - it is
12086 # assumed that no part of a normal pathname contains ";" but that should
12087 # okay in the real world where ";" in dirpaths is itself problematic.
12088 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12091 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12094 # Ok, now we have the path, separated by spaces, we can step through it
12095 # and add multilib dir if necessary.
12096 lt_tmp_lt_search_path_spec
=
12097 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12098 for lt_sys_path
in $lt_search_path_spec; do
12099 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12100 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12102 test -d "$lt_sys_path" && \
12103 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
12106 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12107 BEGIN {RS=" "; FS="/|\n";} {
12110 for (lt_i = NF; lt_i > 0; lt_i--) {
12111 if ($lt_i != "" && $lt_i != ".") {
12112 if ($lt_i == "..") {
12115 if (lt_count == 0) {
12116 lt_foo="/" $lt_i lt_foo;
12123 if (lt_foo != "") { lt_freq[lt_foo]++; }
12124 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12126 # AWK program above erroneously prepends '/' to C:/dos/paths
12129 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
12130 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12132 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12134 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12136 library_names_spec
=
12137 libname_spec
='lib$name'
12141 postuninstall_cmds
=
12145 shlibpath_overrides_runpath
=unknown
12147 dynamic_linker
="$host_os ld.so"
12148 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12149 need_lib_prefix
=unknown
12150 hardcode_into_libs
=no
12152 # when you set need_version to no, make sure it does not cause -set_version
12153 # flags to be left without arguments
12154 need_version
=unknown
12158 version_type
=linux
# correct to gnu/linux during the next big refactor
12159 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12160 shlibpath_var
=LIBPATH
12162 # AIX 3 has no versioning support, so we append a major version to the name.
12163 soname_spec
='${libname}${release}${shared_ext}$major'
12167 version_type
=linux
# correct to gnu/linux during the next big refactor
12170 hardcode_into_libs
=yes
12171 if test "$host_cpu" = ia64
; then
12172 # AIX 5 supports IA64
12173 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12174 shlibpath_var
=LD_LIBRARY_PATH
12176 # With GCC up to 2.95.x, collect2 would create an import file
12177 # for dependence libraries. The import file would start with
12178 # the line `#! .'. This would cause the generated library to
12179 # depend on `.', always an invalid library. This was fixed in
12180 # development snapshots of GCC prior to 3.0.
12182 aix4 | aix4.
[01] | aix4.
[01].
*)
12183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12185 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
12188 can_build_shared
=no
12192 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12193 # soname into executable. Probably we can add versioning support to
12194 # collect2, so additional links can be useful in future.
12195 if test "$aix_use_runtimelinking" = yes; then
12196 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12197 # instead of lib<name>.a to let people know that these are not
12198 # typical AIX shared libraries.
12199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12201 # We preserve .a as extension for shared libraries through AIX4.2
12202 # and later when we are not doing run time linking.
12203 library_names_spec
='${libname}${release}.a $libname.a'
12204 soname_spec
='${libname}${release}${shared_ext}$major'
12206 shlibpath_var
=LIBPATH
12213 # Since July 2007 AmigaOS4 officially supports .so libraries.
12214 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12218 library_names_spec
='$libname.ixlibrary $libname.a'
12219 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12220 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12226 library_names_spec
='${libname}${shared_ext}'
12227 dynamic_linker
="$host_os ld.so"
12228 shlibpath_var
=LIBRARY_PATH
12232 version_type
=linux
# correct to gnu/linux during the next big refactor
12234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 soname_spec
='${libname}${release}${shared_ext}$major'
12236 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12237 shlibpath_var
=LD_LIBRARY_PATH
12238 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12239 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12240 # the default ld.so.conf also contains /usr/contrib/lib and
12241 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12242 # libtool to hard-code these into programs
12245 cygwin
* | mingw
* | pw32
* | cegcc
*)
12246 version_type
=windows
12251 case $GCC,$cc_basename in
12254 library_names_spec
='$libname.dll.a'
12255 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12256 postinstall_cmds
='base_file=`basename \${file}`~
12257 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12258 dldir=$destdir/`dirname \$dlpath`~
12259 test -d \$dldir || mkdir -p \$dldir~
12260 $install_prog $dir/$dlname \$dldir/$dlname~
12261 chmod a+x \$dldir/$dlname~
12262 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12263 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12265 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12266 dlpath=$dir/\$dldll~
12268 shlibpath_overrides_runpath
=yes
12272 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12273 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12275 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
12278 # MinGW DLLs use traditional 'lib' prefix
12279 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12282 # pw32 DLLs use 'pw' prefix rather than 'lib'
12283 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12286 dynamic_linker
='Win32 ld.exe'
12291 libname_spec
='$name'
12292 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12293 library_names_spec
='${libname}.dll.lib'
12297 sys_lib_search_path_spec
=
12300 for lt_path
in $LIB
12303 # Let DOS variable expansion print the short 8.3 style file name.
12304 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12305 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
12308 # Convert to MSYS style.
12309 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12312 # Convert to unix form, then to dos form, then back to unix form
12313 # but this time dos style (no spaces!) so that the unix form looks
12314 # like /cygdrive/c/PROGRA~1:/cygdr...
12315 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
12316 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12317 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12320 sys_lib_search_path_spec
="$LIB"
12321 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
12322 # It is most probably a Windows format PATH.
12323 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12325 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12327 # FIXME: find the short name or the path components, as spaces are
12328 # common. (e.g. "Program Files" -> "PROGRA~1")
12332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12333 postinstall_cmds
='base_file=`basename \${file}`~
12334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12335 dldir=$destdir/`dirname \$dlpath`~
12336 test -d \$dldir || mkdir -p \$dldir~
12337 $install_prog $dir/$dlname \$dldir/$dlname'
12338 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12339 dlpath=$dir/\$dldll~
12341 shlibpath_overrides_runpath
=yes
12342 dynamic_linker
='Win32 link.exe'
12346 # Assume MSVC wrapper
12347 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12348 dynamic_linker
='Win32 ld.exe'
12351 # FIXME: first we should search . and the directory the executable is in
12355 darwin
* | rhapsody
*)
12356 dynamic_linker
="$host_os dyld"
12357 version_type
=darwin
12360 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12361 soname_spec
='${libname}${release}${major}$shared_ext'
12362 shlibpath_overrides_runpath
=yes
12363 shlibpath_var
=DYLD_LIBRARY_PATH
12364 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12366 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
12367 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12371 version_type
=linux
# correct to gnu/linux during the next big refactor
12374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12375 soname_spec
='${libname}${release}${shared_ext}$major'
12376 shlibpath_var
=LD_LIBRARY_PATH
12379 freebsd
* | dragonfly
*)
12380 # DragonFly does not have aout. When/if they implement a new
12381 # versioning mechanism, adjust this.
12382 if test -x /usr
/bin
/objformat
; then
12383 objformat
=`/usr/bin/objformat`
12386 freebsd
[23].
*) objformat
=aout
;;
12387 *) objformat
=elf
;;
12390 version_type
=freebsd-
$objformat
12391 case $version_type in
12393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12398 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12402 shlibpath_var
=LD_LIBRARY_PATH
12405 shlibpath_overrides_runpath
=yes
12407 freebsd3.
[01]* | freebsdelf3.
[01]*)
12408 shlibpath_overrides_runpath
=yes
12409 hardcode_into_libs
=yes
12411 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12412 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12413 shlibpath_overrides_runpath
=no
12414 hardcode_into_libs
=yes
12416 *) # from 4.6 on, and DragonFly
12417 shlibpath_overrides_runpath
=yes
12418 hardcode_into_libs
=yes
12424 version_type
=linux
# correct to gnu/linux during the next big refactor
12427 dynamic_linker
="$host_os runtime_loader"
12428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12429 soname_spec
='${libname}${release}${shared_ext}$major'
12430 shlibpath_var
=LIBRARY_PATH
12431 shlibpath_overrides_runpath
=yes
12432 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12433 hardcode_into_libs
=yes
12436 hpux9
* | hpux10
* | hpux11
*)
12437 # Give a soname corresponding to the major version so that dld.sl refuses to
12438 # link against other versions.
12445 hardcode_into_libs
=yes
12446 dynamic_linker
="$host_os dld.so"
12447 shlibpath_var
=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12449 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12450 soname_spec
='${libname}${release}${shared_ext}$major'
12451 if test "X$HPUX_IA64_MODE" = X32
; then
12452 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12454 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12456 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12460 hardcode_into_libs
=yes
12461 dynamic_linker
="$host_os dld.sl"
12462 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12463 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12465 soname_spec
='${libname}${release}${shared_ext}$major'
12466 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12467 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12471 dynamic_linker
="$host_os dld.sl"
12472 shlibpath_var
=SHLIB_PATH
12473 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12475 soname_spec
='${libname}${release}${shared_ext}$major'
12478 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12479 postinstall_cmds
='chmod 555 $lib'
12480 # or fails outright, so override atomically:
12481 install_override_mode
=555
12485 version_type
=linux
# correct to gnu/linux during the next big refactor
12488 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12489 soname_spec
='${libname}${release}${shared_ext}$major'
12490 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12491 shlibpath_var
=LD_LIBRARY_PATH
12492 shlibpath_overrides_runpath
=no
12493 hardcode_into_libs
=yes
12496 irix5
* | irix6
* | nonstopux
*)
12498 nonstopux
*) version_type
=nonstopux
;;
12500 if test "$lt_cv_prog_gnu_ld" = yes; then
12501 version_type
=linux
# correct to gnu/linux during the next big refactor
12508 soname_spec
='${libname}${release}${shared_ext}$major'
12509 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12511 irix5
* | nonstopux
*)
12512 libsuff
= shlibsuff
=
12515 case $LD in # libtool.m4 will add one of these switches to LD
12516 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12517 libsuff
= shlibsuff
= libmagic
=32-bit;;
12518 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12519 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12520 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12521 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12522 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12526 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12527 shlibpath_overrides_runpath
=no
12528 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12529 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12530 hardcode_into_libs
=yes
12533 # No shared lib support for Linux oldld, aout, or coff.
12534 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12538 # This must be glibc/ELF.
12539 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
12540 version_type
=linux
# correct to gnu/linux during the next big refactor
12543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12544 soname_spec
='${libname}${release}${shared_ext}$major'
12545 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12546 shlibpath_var
=LD_LIBRARY_PATH
12547 shlibpath_overrides_runpath
=no
12549 # Some binutils ld are patched to set DT_RUNPATH
12550 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
12551 $as_echo_n "(cached) " >&6
12553 lt_cv_shlibpath_overrides_runpath
=no
12554 save_LDFLAGS
=$LDFLAGS
12555 save_libdir
=$libdir
12556 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12557 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12569 if ac_fn_c_try_link
"$LINENO"; then :
12570 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
12571 lt_cv_shlibpath_overrides_runpath
=yes
12574 rm -f core conftest.err conftest.
$ac_objext \
12575 conftest
$ac_exeext conftest.
$ac_ext
12576 LDFLAGS
=$save_LDFLAGS
12577 libdir
=$save_libdir
12581 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
12583 # This implies no fast_install, which is unacceptable.
12584 # Some rework will be needed to allow for fast_install
12585 # before this can be enabled.
12586 hardcode_into_libs
=yes
12588 # Append ld.so.conf contents to the search path
12589 if test -f /etc
/ld.so.conf
; then
12590 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12591 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12594 # We used to test for /lib/ld.so.1 and disable shared libraries on
12595 # powerpc, because MkLinux only supported shared libraries with the
12596 # GNU dynamic linker. Since this was broken with cross compilers,
12597 # most powerpc-linux boxes support dynamic linking these days and
12598 # people can always --disable-shared, the test was removed, and we
12599 # assume the GNU/Linux dynamic linker is in use.
12600 dynamic_linker
='GNU/Linux ld.so'
12607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12608 soname_spec
='${libname}${release}${shared_ext}$major'
12609 shlibpath_var
=LD_LIBRARY_PATH
12610 shlibpath_overrides_runpath
=no
12611 hardcode_into_libs
=yes
12612 dynamic_linker
='NetBSD ld.elf_so'
12619 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12620 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12621 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12622 dynamic_linker
='NetBSD (a.out) ld.so'
12624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12625 soname_spec
='${libname}${release}${shared_ext}$major'
12626 dynamic_linker
='NetBSD ld.elf_so'
12628 shlibpath_var
=LD_LIBRARY_PATH
12629 shlibpath_overrides_runpath
=yes
12630 hardcode_into_libs
=yes
12634 version_type
=linux
# correct to gnu/linux during the next big refactor
12635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12636 shlibpath_var
=LD_LIBRARY_PATH
12637 shlibpath_overrides_runpath
=yes
12644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12645 soname_spec
='${libname}${release}${shared_ext}$major'
12646 shlibpath_var
=LD_LIBRARY_PATH
12647 shlibpath_overrides_runpath
=no
12648 hardcode_into_libs
=yes
12649 dynamic_linker
='ldqnx.so'
12654 sys_lib_dlsearch_path_spec
="/usr/lib"
12656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12658 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12659 *) need_version
=no
;;
12661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12662 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12663 shlibpath_var
=LD_LIBRARY_PATH
12664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12666 openbsd2.
[89] | openbsd2.
[89].
*)
12667 shlibpath_overrides_runpath
=no
12670 shlibpath_overrides_runpath
=yes
12674 shlibpath_overrides_runpath
=yes
12679 libname_spec
='$name'
12682 library_names_spec
='$libname${shared_ext} $libname.a'
12683 dynamic_linker
='OS/2 ld.exe'
12684 shlibpath_var
=LIBPATH
12687 osf3
* | osf4
* | osf5
*)
12691 soname_spec
='${libname}${release}${shared_ext}$major'
12692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12693 shlibpath_var
=LD_LIBRARY_PATH
12694 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12695 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12703 version_type
=linux
# correct to gnu/linux during the next big refactor
12706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12707 soname_spec
='${libname}${release}${shared_ext}$major'
12708 shlibpath_var
=LD_LIBRARY_PATH
12709 shlibpath_overrides_runpath
=yes
12710 hardcode_into_libs
=yes
12711 # ldd complains unless libraries are executable
12712 postinstall_cmds
='chmod +x $lib'
12717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12718 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12719 shlibpath_var
=LD_LIBRARY_PATH
12720 shlibpath_overrides_runpath
=yes
12721 if test "$with_gnu_ld" = yes; then
12728 version_type
=linux
# correct to gnu/linux during the next big refactor
12729 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12730 soname_spec
='${libname}${release}${shared_ext}$major'
12731 shlibpath_var
=LD_LIBRARY_PATH
12732 case $host_vendor in
12734 shlibpath_overrides_runpath
=no
12736 runpath_var
=LD_RUN_PATH
12744 shlibpath_overrides_runpath
=no
12745 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12751 if test -d /usr
/nec
;then
12752 version_type
=linux
# correct to gnu/linux during the next big refactor
12753 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12754 soname_spec
='$libname${shared_ext}.$major'
12755 shlibpath_var
=LD_LIBRARY_PATH
12759 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12760 version_type
=freebsd-elf
12763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12764 soname_spec
='${libname}${release}${shared_ext}$major'
12765 shlibpath_var
=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath
=yes
12767 hardcode_into_libs
=yes
12768 if test "$with_gnu_ld" = yes; then
12769 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12771 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12774 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12778 sys_lib_dlsearch_path_spec
='/usr/lib'
12782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12783 version_type
=linux
# correct to gnu/linux during the next big refactor
12786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 shlibpath_var
=LD_LIBRARY_PATH
12788 shlibpath_overrides_runpath
=no
12789 hardcode_into_libs
=yes
12793 version_type
=linux
# correct to gnu/linux during the next big refactor
12794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12795 soname_spec
='${libname}${release}${shared_ext}$major'
12796 shlibpath_var
=LD_LIBRARY_PATH
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12804 $as_echo "$dynamic_linker" >&6; }
12805 test "$dynamic_linker" = no
&& can_build_shared
=no
12807 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12808 if test "$GCC" = yes; then
12809 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12813 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12816 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12911 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12913 if test -n "$hardcode_libdir_flag_spec" ||
12914 test -n "$runpath_var" ||
12915 test "X$hardcode_automatic" = "Xyes" ; then
12917 # We can hardcode non-existent directories.
12918 if test "$hardcode_direct" != no
&&
12919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12920 # have to relink, otherwise we might link with an installed library
12921 # when we should be linking with a yet-to-be-installed one
12922 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12923 test "$hardcode_minus_L" != no
; then
12924 # Linking always hardcodes the temporary library directory.
12925 hardcode_action
=relink
12927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12928 hardcode_action
=immediate
12931 # We cannot hardcode anything, or else we can only hardcode existing
12933 hardcode_action
=unsupported
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12936 $as_echo "$hardcode_action" >&6; }
12938 if test "$hardcode_action" = relink ||
12939 test "$inherit_rpath" = yes; then
12940 # Fast installation is not supported
12941 enable_fast_install
=no
12942 elif test "$shlibpath_overrides_runpath" = yes ||
12943 test "$enable_shared" = no
; then
12944 # Fast installation is not necessary
12945 enable_fast_install
=needless
12953 if test "x$enable_dlopen" != xyes
; then
12954 enable_dlopen
=unknown
12955 enable_dlopen_self
=unknown
12956 enable_dlopen_self_static
=unknown
12963 lt_cv_dlopen
="load_add_on"
12965 lt_cv_dlopen_self
=yes
12968 mingw
* | pw32
* | cegcc
*)
12969 lt_cv_dlopen
="LoadLibrary"
12974 lt_cv_dlopen
="dlopen"
12979 # if libdl is installed we need to link against it
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12981 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12982 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12983 $as_echo_n "(cached) " >&6
12985 ac_check_lib_save_LIBS
=$LIBS
12987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
13005 if ac_fn_c_try_link
"$LINENO"; then :
13006 ac_cv_lib_dl_dlopen
=yes
13008 ac_cv_lib_dl_dlopen
=no
13010 rm -f core conftest.err conftest.
$ac_objext \
13011 conftest
$ac_exeext conftest.
$ac_ext
13012 LIBS
=$ac_check_lib_save_LIBS
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13015 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13016 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13017 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13020 lt_cv_dlopen
="dyld"
13022 lt_cv_dlopen_self
=yes
13029 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
13030 if test "x$ac_cv_func_shl_load" = xyes
; then :
13031 lt_cv_dlopen
="shl_load"
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13034 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13035 if ${ac_cv_lib_dld_shl_load+:} false
; then :
13036 $as_echo_n "(cached) " >&6
13038 ac_check_lib_save_LIBS
=$LIBS
13040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13043 /* Override any GCC internal prototype to avoid an error.
13044 Use char because int might match the return type of a GCC
13045 builtin and then its argument prototype would still apply. */
13053 return shl_load ();
13058 if ac_fn_c_try_link
"$LINENO"; then :
13059 ac_cv_lib_dld_shl_load
=yes
13061 ac_cv_lib_dld_shl_load
=no
13063 rm -f core conftest.err conftest.
$ac_objext \
13064 conftest
$ac_exeext conftest.
$ac_ext
13065 LIBS
=$ac_check_lib_save_LIBS
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13068 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13069 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
13070 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
13072 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13073 if test "x$ac_cv_func_dlopen" = xyes
; then :
13074 lt_cv_dlopen
="dlopen"
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13077 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13078 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13079 $as_echo_n "(cached) " >&6
13081 ac_check_lib_save_LIBS
=$LIBS
13083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13101 if ac_fn_c_try_link
"$LINENO"; then :
13102 ac_cv_lib_dl_dlopen
=yes
13104 ac_cv_lib_dl_dlopen
=no
13106 rm -f core conftest.err conftest.
$ac_objext \
13107 conftest
$ac_exeext conftest.
$ac_ext
13108 LIBS
=$ac_check_lib_save_LIBS
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13111 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13112 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13113 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13116 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13117 if ${ac_cv_lib_svld_dlopen+:} false
; then :
13118 $as_echo_n "(cached) " >&6
13120 ac_check_lib_save_LIBS
=$LIBS
13121 LIBS
="-lsvld $LIBS"
13122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13140 if ac_fn_c_try_link
"$LINENO"; then :
13141 ac_cv_lib_svld_dlopen
=yes
13143 ac_cv_lib_svld_dlopen
=no
13145 rm -f core conftest.err conftest.
$ac_objext \
13146 conftest
$ac_exeext conftest.
$ac_ext
13147 LIBS
=$ac_check_lib_save_LIBS
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13150 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13151 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
13152 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13155 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13156 if ${ac_cv_lib_dld_dld_link+:} false
; then :
13157 $as_echo_n "(cached) " >&6
13159 ac_check_lib_save_LIBS
=$LIBS
13161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13164 /* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13174 return dld_link ();
13179 if ac_fn_c_try_link
"$LINENO"; then :
13180 ac_cv_lib_dld_dld_link
=yes
13182 ac_cv_lib_dld_dld_link
=no
13184 rm -f core conftest.err conftest.
$ac_objext \
13185 conftest
$ac_exeext conftest.
$ac_ext
13186 LIBS
=$ac_check_lib_save_LIBS
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13189 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13190 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
13191 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
13212 if test "x$lt_cv_dlopen" != xno
; then
13218 case $lt_cv_dlopen in
13220 save_CPPFLAGS
="$CPPFLAGS"
13221 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13223 save_LDFLAGS
="$LDFLAGS"
13224 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13227 LIBS
="$lt_cv_dlopen_libs $LIBS"
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13230 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13231 if ${lt_cv_dlopen_self+:} false
; then :
13232 $as_echo_n "(cached) " >&6
13234 if test "$cross_compiling" = yes; then :
13235 lt_cv_dlopen_self
=cross
13237 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13238 lt_status
=$lt_dlunknown
13239 cat > conftest.
$ac_ext <<_LT_EOF
13240 #line $LINENO "configure"
13241 #include "confdefs.h"
13250 # define LT_DLGLOBAL RTLD_GLOBAL
13253 # define LT_DLGLOBAL DL_GLOBAL
13255 # define LT_DLGLOBAL 0
13259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13260 find out it does not work in some platform. */
13261 #ifndef LT_DLLAZY_OR_NOW
13263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13266 # define LT_DLLAZY_OR_NOW DL_LAZY
13269 # define LT_DLLAZY_OR_NOW RTLD_NOW
13272 # define LT_DLLAZY_OR_NOW DL_NOW
13274 # define LT_DLLAZY_OR_NOW 0
13281 /* When -fvisbility=hidden is used, assume the code has been annotated
13282 correspondingly for the symbols needed. */
13283 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13284 int fnord () __attribute__((visibility("default")));
13287 int fnord () { return 42; }
13290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13291 int status = $lt_dlunknown;
13295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13298 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13299 else puts (dlerror ());
13301 /* dlclose (self); */
13309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13310 (eval $ac_link) 2>&5
13312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13313 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13314 (.
/conftest
; exit; ) >&5 2>/dev
/null
13316 case x
$lt_status in
13317 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13318 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13319 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
13322 # compilation failed
13323 lt_cv_dlopen_self
=no
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13331 $as_echo "$lt_cv_dlopen_self" >&6; }
13333 if test "x$lt_cv_dlopen_self" = xyes
; then
13334 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13336 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13337 if ${lt_cv_dlopen_self_static+:} false
; then :
13338 $as_echo_n "(cached) " >&6
13340 if test "$cross_compiling" = yes; then :
13341 lt_cv_dlopen_self_static
=cross
13343 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13344 lt_status
=$lt_dlunknown
13345 cat > conftest.
$ac_ext <<_LT_EOF
13346 #line $LINENO "configure"
13347 #include "confdefs.h"
13356 # define LT_DLGLOBAL RTLD_GLOBAL
13359 # define LT_DLGLOBAL DL_GLOBAL
13361 # define LT_DLGLOBAL 0
13365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13366 find out it does not work in some platform. */
13367 #ifndef LT_DLLAZY_OR_NOW
13369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13372 # define LT_DLLAZY_OR_NOW DL_LAZY
13375 # define LT_DLLAZY_OR_NOW RTLD_NOW
13378 # define LT_DLLAZY_OR_NOW DL_NOW
13380 # define LT_DLLAZY_OR_NOW 0
13387 /* When -fvisbility=hidden is used, assume the code has been annotated
13388 correspondingly for the symbols needed. */
13389 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13390 int fnord () __attribute__((visibility("default")));
13393 int fnord () { return 42; }
13396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13397 int status = $lt_dlunknown;
13401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13404 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13405 else puts (dlerror ());
13407 /* dlclose (self); */
13415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13416 (eval $ac_link) 2>&5
13418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13419 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13420 (.
/conftest
; exit; ) >&5 2>/dev
/null
13422 case x
$lt_status in
13423 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13424 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13425 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
13428 # compilation failed
13429 lt_cv_dlopen_self_static
=no
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13437 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13440 CPPFLAGS
="$save_CPPFLAGS"
13441 LDFLAGS
="$save_LDFLAGS"
13446 case $lt_cv_dlopen_self in
13447 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13448 *) enable_dlopen_self
=unknown
;;
13451 case $lt_cv_dlopen_self_static in
13452 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13453 *) enable_dlopen_self_static
=unknown
;;
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13476 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13477 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
13478 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
13479 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13481 $as_echo "yes" >&6; }
13483 # FIXME - insert some real tests, host_os isn't really good enough
13486 if test -n "$STRIP" ; then
13487 striplib
="$STRIP -x"
13488 old_striplib
="$STRIP -S"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13490 $as_echo "yes" >&6; }
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 $as_echo "no" >&6; }
13514 # Report which library types will actually be built
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13516 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13518 $as_echo "$can_build_shared" >&6; }
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13521 $as_echo_n "checking whether to build shared libraries... " >&6; }
13522 test "$can_build_shared" = "no" && enable_shared
=no
13524 # On AIX, shared libraries and static libraries use the same namespace, and
13525 # are all built from PIC.
13528 test "$enable_shared" = yes && enable_static
=no
13529 if test -n "$RANLIB"; then
13530 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13531 postinstall_cmds
='$RANLIB $lib'
13536 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13537 test "$enable_shared" = yes && enable_static
=no
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13542 $as_echo "$enable_shared" >&6; }
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13545 $as_echo_n "checking whether to build static libraries... " >&6; }
13546 # Make sure either enable_shared or enable_static is yes.
13547 test "$enable_shared" = yes || enable_static
=yes
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13549 $as_echo "$enable_static" >&6; }
13556 ac_cpp
='$CPP $CPPFLAGS'
13557 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13558 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13559 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13577 ac_config_commands
="$ac_config_commands libtool"
13582 # Only expand once:
13585 if test -n "$ac_tool_prefix"; then
13586 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13587 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13589 $as_echo_n "checking for $ac_word... " >&6; }
13590 if ${ac_cv_prog_RC+:} false
; then :
13591 $as_echo_n "(cached) " >&6
13593 if test -n "$RC"; then
13594 ac_cv_prog_RC
="$RC" # Let the user override the test.
13596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13597 for as_dir
in $PATH
13600 test -z "$as_dir" && as_dir
=.
13601 for ac_exec_ext
in '' $ac_executable_extensions; do
13602 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13603 ac_cv_prog_RC
="${ac_tool_prefix}windres"
13604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13614 if test -n "$RC"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
13616 $as_echo "$RC" >&6; }
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619 $as_echo "no" >&6; }
13624 if test -z "$ac_cv_prog_RC"; then
13626 # Extract the first word of "windres", so it can be a program name with args.
13627 set dummy windres
; ac_word
=$2
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629 $as_echo_n "checking for $ac_word... " >&6; }
13630 if ${ac_cv_prog_ac_ct_RC+:} false
; then :
13631 $as_echo_n "(cached) " >&6
13633 if test -n "$ac_ct_RC"; then
13634 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
13636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13637 for as_dir
in $PATH
13640 test -z "$as_dir" && as_dir
=.
13641 for ac_exec_ext
in '' $ac_executable_extensions; do
13642 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13643 ac_cv_prog_ac_ct_RC
="windres"
13644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
13654 if test -n "$ac_ct_RC"; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
13656 $as_echo "$ac_ct_RC" >&6; }
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 $as_echo "no" >&6; }
13662 if test "x$ac_ct_RC" = x
; then
13665 case $cross_compiling:$ac_tool_warned in
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13669 ac_tool_warned
=yes ;;
13674 RC
="$ac_cv_prog_RC"
13680 # Source file extension for RC test sources.
13683 # Object file extension for compiled RC test sources.
13687 # Code to be used in simple compile tests
13688 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13690 # Code to be used in simple link tests
13691 lt_simple_link_test_code
="$lt_simple_compile_test_code"
13693 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13700 # If no C compiler was specified, use CC.
13703 # If no C compiler flags were specified, use CFLAGS.
13704 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13706 # Allow CC to be a program name with arguments.
13710 # save warnings/boilerplate of simple test code
13711 ac_outfile
=conftest.
$ac_objext
13712 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
13713 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13714 _lt_compiler_boilerplate
=`cat conftest.err`
13717 ac_outfile
=conftest.
$ac_objext
13718 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
13719 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13720 _lt_linker_boilerplate
=`cat conftest.err`
13724 # Allow CC to be a program name with arguments.
13726 lt_save_CFLAGS
=$CFLAGS
13733 for cc_temp
in $compiler""; do
13735 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13736 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13741 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13743 lt_cv_prog_compiler_c_o_RC
=yes
13745 if test -n "$compiler"; then
13754 ac_cpp
='$CPP $CPPFLAGS'
13755 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13756 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13757 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13760 CFLAGS
=$lt_save_CFLAGS
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13765 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13766 if ${ac_cv_c_const+:} false
; then :
13767 $as_echo_n "(cached) " >&6
13769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13776 #ifndef __cplusplus
13777 /* Ultrix mips cc rejects this sort of thing. */
13778 typedef int charset[2];
13779 const charset cs = { 0, 0 };
13780 /* SunOS 4.1.1 cc rejects this. */
13781 char const *const *pcpcc;
13783 /* NEC SVR4.0.2 mips cc rejects this. */
13784 struct point {int x, y;};
13785 static struct point const zero = {0,0};
13786 /* AIX XL C 1.02.0.0 rejects this.
13787 It does not let you subtract one const X* pointer from another in
13788 an arm of an if-expression whose if-part is not a constant
13790 const char *g = "string";
13791 pcpcc = &g + (g ? g-g : 0);
13792 /* HPUX 7.0 cc rejects these. */
13794 ppc = (char**) pcpcc;
13795 pcpcc = (char const *const *) ppc;
13796 { /* SCO 3.2v4 cc rejects this sort of thing. */
13799 char const *s = 0 ? (char *) 0 : (char const *) 0;
13804 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13805 int x[] = {25, 17};
13806 const int *foo = &x[0];
13809 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13810 typedef const int *iptr;
13814 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13815 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13816 struct s { int j; const int *ap[3]; } bx;
13817 struct s *b = &bx; b->j = 5;
13819 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13820 const int foo = 10;
13821 if (!foo) return 0;
13823 return !cs[0] && !zero.x;
13830 if ac_fn_c_try_compile
"$LINENO"; then :
13835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13838 $as_echo "$ac_cv_c_const" >&6; }
13839 if test $ac_cv_c_const = no
; then
13841 $as_echo "#define const /**/" >>confdefs.h
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13846 $as_echo_n "checking for inline... " >&6; }
13847 if ${ac_cv_c_inline+:} false
; then :
13848 $as_echo_n "(cached) " >&6
13851 for ac_kw
in inline __inline__ __inline
; do
13852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 #ifndef __cplusplus
13856 static $ac_kw foo_t static_foo () {return 0; }
13857 $ac_kw foo_t foo () {return 0; }
13861 if ac_fn_c_try_compile
"$LINENO"; then :
13862 ac_cv_c_inline
=$ac_kw
13864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13865 test "$ac_cv_c_inline" != no
&& break
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13870 $as_echo "$ac_cv_c_inline" >&6; }
13872 case $ac_cv_c_inline in
13875 case $ac_cv_c_inline in
13877 *) ac_val
=$ac_cv_c_inline;;
13879 cat >>confdefs.h
<<_ACEOF
13880 #ifndef __cplusplus
13881 #define inline $ac_val
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13888 $as_echo_n "checking for working volatile... " >&6; }
13889 if ${ac_cv_c_volatile+:} false
; then :
13890 $as_echo_n "(cached) " >&6
13892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13900 int * volatile y = (int *) 0;
13906 if ac_fn_c_try_compile
"$LINENO"; then :
13907 ac_cv_c_volatile
=yes
13909 ac_cv_c_volatile
=no
13911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13914 $as_echo "$ac_cv_c_volatile" >&6; }
13915 if test $ac_cv_c_volatile = no
; then
13917 $as_echo "#define volatile /**/" >>confdefs.h
13921 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13922 if test "x$ac_cv_type_off_t" = xyes
; then :
13926 cat >>confdefs.h
<<_ACEOF
13927 #define off_t long int
13932 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13933 if test "x$ac_cv_type_pid_t" = xyes
; then :
13937 cat >>confdefs.h
<<_ACEOF
13943 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13944 if test "x$ac_cv_type_size_t" = xyes
; then :
13948 cat >>confdefs.h
<<_ACEOF
13949 #define size_t unsigned int
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13955 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13956 if ${ac_cv_type_uid_t+:} false
; then :
13957 $as_echo_n "(cached) " >&6
13959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961 #include <sys/types.h>
13964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13965 $EGREP "uid_t" >/dev
/null
2>&1; then :
13966 ac_cv_type_uid_t
=yes
13968 ac_cv_type_uid_t
=no
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13974 $as_echo "$ac_cv_type_uid_t" >&6; }
13975 if test $ac_cv_type_uid_t = no
; then
13977 $as_echo "#define uid_t int" >>confdefs.h
13980 $as_echo "#define gid_t int" >>confdefs.h
13984 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
13985 case $ac_cv_c_int8_t in #(
13989 cat >>confdefs.h
<<_ACEOF
13990 #define int8_t $ac_cv_c_int8_t
13995 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
13996 case $ac_cv_c_int16_t in #(
14000 cat >>confdefs.h
<<_ACEOF
14001 #define int16_t $ac_cv_c_int16_t
14006 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
14007 case $ac_cv_c_int32_t in #(
14011 cat >>confdefs.h
<<_ACEOF
14012 #define int32_t $ac_cv_c_int32_t
14017 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
14018 case $ac_cv_c_int64_t in #(
14022 cat >>confdefs.h
<<_ACEOF
14023 #define int64_t $ac_cv_c_int64_t
14028 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
14029 case $ac_cv_c_uint8_t in #(
14033 $as_echo "#define _UINT8_T 1" >>confdefs.h
14036 cat >>confdefs.h
<<_ACEOF
14037 #define uint8_t $ac_cv_c_uint8_t
14042 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
14043 case $ac_cv_c_uint16_t in #(
14048 cat >>confdefs.h
<<_ACEOF
14049 #define uint16_t $ac_cv_c_uint16_t
14054 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
14055 case $ac_cv_c_uint32_t in #(
14059 $as_echo "#define _UINT32_T 1" >>confdefs.h
14062 cat >>confdefs.h
<<_ACEOF
14063 #define uint32_t $ac_cv_c_uint32_t
14068 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
14069 case $ac_cv_c_uint64_t in #(
14073 $as_echo "#define _UINT64_T 1" >>confdefs.h
14076 cat >>confdefs.h
<<_ACEOF
14077 #define uint64_t $ac_cv_c_uint64_t
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14083 $as_echo_n "checking return type of signal handlers... " >&6; }
14084 if ${ac_cv_type_signal+:} false
; then :
14085 $as_echo_n "(cached) " >&6
14087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 #include <sys/types.h>
14090 #include <signal.h>
14095 return *(signal (0, 0)) (0) == 1;
14100 if ac_fn_c_try_compile
"$LINENO"; then :
14101 ac_cv_type_signal
=int
14103 ac_cv_type_signal
=void
14105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14108 $as_echo "$ac_cv_type_signal" >&6; }
14110 cat >>confdefs.h
<<_ACEOF
14111 #define RETSIGTYPE $ac_cv_type_signal
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
14116 $as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
14117 if ${ax_cv_cpp_vararg_macro_iso+:} false
; then :
14118 $as_echo_n "(cached) " >&6
14120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14123 #define macro(a, ...) func(a, __VA_ARGS__)
14124 int func(int a, int b, int c);
14130 int i = macro(1, 2, 3);
14137 if ac_fn_c_try_compile
"$LINENO"; then :
14138 ax_cv_cpp_vararg_macro_iso
=yes
14140 ax_cv_cpp_vararg_macro_iso
=no
14143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
14147 $as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
14148 if test "x$ax_cv_cpp_vararg_macro_iso" = xyes
; then :
14150 $as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
14155 $as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
14156 if ${ax_cv_cpp_vararg_macro_gcc+:} false
; then :
14157 $as_echo_n "(cached) " >&6
14159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14162 #define macro(a, b...) func(a, b)
14163 int func(int a, int b, int c);
14169 int i = macro(1, 2, 3);
14176 if ac_fn_c_try_compile
"$LINENO"; then :
14177 ax_cv_cpp_vararg_macro_gcc
=yes
14179 ax_cv_cpp_vararg_macro_gcc
=no
14182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
14186 $as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
14187 if test "x$ax_cv_cpp_vararg_macro_gcc" = xyes
; then :
14189 $as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
14194 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14195 #include <sys/types.h>
14197 #include <ws2tcpip.h>
14199 #include <sys/socket.h>
14204 if test "x$ac_cv_type_socklen_t" = xyes
; then :
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14209 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14210 if ${ax_cv_socklen_t_equiv+:} false
; then :
14211 $as_echo_n "(cached) " >&6
14214 #AS_CASE is not supported on <autoconf-2.60
14216 *-mingw*) ax_cv_socklen_t_equiv
=int
;;
14218 # Systems have either "struct sockaddr *" or
14219 # "void *" as the second argument to getpeername
14220 for arg2
in "struct sockaddr" void
; do
14221 for t
in int size_t unsigned long
"unsigned long"; do
14222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14225 #include <sys/types.h>
14226 #include <sys/socket.h>
14227 int getpeername (int, $arg2 *, $t *);
14234 getpeername(0,0,&len);
14241 if ac_fn_c_try_compile
"$LINENO"; then :
14242 ax_cv_socklen_t_equiv
="$t"; break
14245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14247 test -n "$ax_cv_socklen_t_equiv" && break
14252 if ${ax_cv_socklen_t_equiv:+false} :; then :
14253 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
14256 cat >>confdefs.h
<<_ACEOF
14257 #define socklen_t $ax_cv_socklen_t_equiv
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
14265 $as_echo "$ax_cv_socklen_t_equiv" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
14272 $as_echo_n "checking for C compiler empty array size... " >&6; }
14273 if ${ax_cv_c_empty_array+:} false
; then :
14274 $as_echo_n "(cached) " >&6
14276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14283 struct { int foo; int bar[0]; } mystruct;
14290 if ac_fn_c_try_compile
"$LINENO"; then :
14291 ax_cv_c_empty_array
=0
14293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14300 struct { int foo; int bar[]; } mystruct;
14307 if ac_fn_c_try_compile
"$LINENO"; then :
14308 ax_cv_c_empty_array
=
14310 as_fn_error $?
"C compiler is unable to creaty empty arrays" "$LINENO" 5
14313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
14320 $as_echo "$ax_cv_c_empty_array" >&6; }
14321 cat >>confdefs.h
<<_ACEOF
14322 #define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
14325 # The cast to long int works around a bug in the HP C Compiler
14326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14328 # This bug is HP SR number 8606223364.
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14330 $as_echo_n "checking size of unsigned int... " >&6; }
14331 if ${ac_cv_sizeof_unsigned_int+:} false
; then :
14332 $as_echo_n "(cached) " >&6
14334 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14337 if test "$ac_cv_type_unsigned_int" = yes; then
14338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14340 as_fn_error
77 "cannot compute sizeof (unsigned int)
14341 See \`config.log' for more details" "$LINENO" 5; }
14343 ac_cv_sizeof_unsigned_int
=0
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14349 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14353 cat >>confdefs.h
<<_ACEOF
14354 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14358 # The cast to long int works around a bug in the HP C Compiler
14359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14361 # This bug is HP SR number 8606223364.
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14363 $as_echo_n "checking size of unsigned long... " >&6; }
14364 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
14365 $as_echo_n "(cached) " >&6
14367 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14370 if test "$ac_cv_type_unsigned_long" = yes; then
14371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14373 as_fn_error
77 "cannot compute sizeof (unsigned long)
14374 See \`config.log' for more details" "$LINENO" 5; }
14376 ac_cv_sizeof_unsigned_long
=0
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14382 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14386 cat >>confdefs.h
<<_ACEOF
14387 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14392 stdio.h stdarg.h stdbool.h limits.h \
14393 time.h errno.h fcntl.h io.h direct.h \
14394 ctype.h sys
/types.h sys
/socket.h \
14395 signal.h unistd.h dlfcn.h \
14396 netinet
/in.h netinet
/in_systm.h \
14397 netinet
/tcp.h arpa
/inet.h netdb.h \
14398 windows.h winsock2.h ws2tcpip.h \
14401 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14402 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14403 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14404 cat >>confdefs.h
<<_ACEOF
14405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14413 sys
/time.h sys
/ioctl.h sys
/stat.h \
14414 sys
/mman.h sys
/file.h sys
/wait.h \
14415 unistd.h signal.h libgen.h stropts.h \
14416 syslog.h
pwd.h grp.h \
14417 sys
/sockio.h sys
/uio.h linux
/sockios.h \
14418 linux
/types.h sys
/poll.h sys
/epoll.h err.h \
14421 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14422 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14423 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14424 cat >>confdefs.h
<<_ACEOF
14425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14434 #ifdef HAVE_STDLIB_H
14435 #include <stdlib.h>
14437 #ifdef HAVE_SYS_TYPES_H
14438 #include <sys/types.h>
14440 #ifdef HAVE_SYS_SOCKET_H
14441 #include <sys/socket.h>
14443 #ifdef HAVE_NETINET_IN_H
14444 #include <netinet/in.h>
14446 #ifdef HAVE_WINDOWS_H
14447 #include <windows.h>
14449 #ifdef HAVE_WINSOCK2_H
14450 #include <winsock2.h>
14452 #ifdef HAVE_WS2TCPIP_H
14453 #include <ws2tcpip.h>
14455 #ifdef HAVE_NETINET_IN_SYSTM_H
14456 #include <netinet/in_systm.h>
14458 #ifdef HAVE_NETINET_IP_H
14459 #include <netinet/ip.h>
14463 for ac_header
in net
/if.h netinet
/ip.h netinet
/if_ether.h resolv.h sys
/un.h net
/if_utun.h sys
/kern_control.h
14465 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14466 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
14469 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14470 cat >>confdefs.h
<<_ACEOF
14471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14479 ac_fn_c_check_type
"$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
14482 if test "x$ac_cv_type_in_addr_t" = xyes
; then :
14484 cat >>confdefs.h
<<_ACEOF
14485 #define HAVE_IN_ADDR_T 1
14491 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14495 ac_fn_c_check_type
"$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
14498 if test "x$ac_cv_type_struct_iphdr" = xyes
; then :
14500 $as_echo "#define HAVE_IPHDR 1" >>confdefs.h
14504 ac_fn_c_check_type
"$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES}
14507 if test "x$ac_cv_type_struct_sock_extended_err" = xyes
; then :
14509 $as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
14513 ac_fn_c_check_type
"$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
14516 if test "x$ac_cv_type_struct_msghdr" = xyes
; then :
14518 $as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
14522 ac_fn_c_check_type
"$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
14525 if test "x$ac_cv_type_struct_cmsghdr" = xyes
; then :
14527 $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
14531 ac_fn_c_check_type
"$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
14534 if test "x$ac_cv_type_struct_in_pktinfo" = xyes
; then :
14536 $as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
14540 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
14543 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
14546 as_fn_error $?
"struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
14549 ac_fn_c_check_decl
"$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
14552 if test "x$ac_cv_have_decl_SO_MARK" = xyes
; then :
14558 cat >>confdefs.h
<<_ACEOF
14559 #define HAVE_DECL_SO_MARK $ac_have_decl
14563 ac_fn_c_check_decl
"$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
14564 #ifdef HAVE_SIGNAL_H
14565 #include <signal.h>
14570 if test "x$ac_cv_have_decl_SIGHUP" = xyes
; then :
14576 cat >>confdefs.h
<<_ACEOF
14577 #define HAVE_DECL_SIGHUP $ac_have_decl
14579 if test $ac_have_decl = 1; then :
14583 $as_echo "#define SIGHUP 1" >>confdefs.h
14587 ac_fn_c_check_decl
"$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
14588 #ifdef HAVE_SIGNAL_H
14589 #include <signal.h>
14594 if test "x$ac_cv_have_decl_SIGINT" = xyes
; then :
14600 cat >>confdefs.h
<<_ACEOF
14601 #define HAVE_DECL_SIGINT $ac_have_decl
14603 if test $ac_have_decl = 1; then :
14607 $as_echo "#define SIGINT 2" >>confdefs.h
14611 ac_fn_c_check_decl
"$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
14612 #ifdef HAVE_SIGNAL_H
14613 #include <signal.h>
14618 if test "x$ac_cv_have_decl_SIGUSR1" = xyes
; then :
14624 cat >>confdefs.h
<<_ACEOF
14625 #define HAVE_DECL_SIGUSR1 $ac_have_decl
14627 if test $ac_have_decl = 1; then :
14631 $as_echo "#define SIGUSR1 10" >>confdefs.h
14635 ac_fn_c_check_decl
"$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
14636 #ifdef HAVE_SIGNAL_H
14637 #include <signal.h>
14642 if test "x$ac_cv_have_decl_SIGUSR2" = xyes
; then :
14648 cat >>confdefs.h
<<_ACEOF
14649 #define HAVE_DECL_SIGUSR2 $ac_have_decl
14651 if test $ac_have_decl = 1; then :
14655 $as_echo "#define SIGUSR2 12" >>confdefs.h
14659 ac_fn_c_check_decl
"$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
14660 #ifdef HAVE_SIGNAL_H
14661 #include <signal.h>
14666 if test "x$ac_cv_have_decl_SIGTERM" = xyes
; then :
14672 cat >>confdefs.h
<<_ACEOF
14673 #define HAVE_DECL_SIGTERM $ac_have_decl
14675 if test $ac_have_decl = 1; then :
14679 $as_echo "#define SIGTERM 15" >>confdefs.h
14684 for ac_header
in vfork.h
14686 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14687 if test "x$ac_cv_header_vfork_h" = xyes
; then :
14688 cat >>confdefs.h
<<_ACEOF
14689 #define HAVE_VFORK_H 1
14696 for ac_func
in fork vfork
14698 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14699 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14700 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14701 cat >>confdefs.h
<<_ACEOF
14702 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14708 if test "x$ac_cv_func_fork" = xyes
; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14710 $as_echo_n "checking for working fork... " >&6; }
14711 if ${ac_cv_func_fork_works+:} false
; then :
14712 $as_echo_n "(cached) " >&6
14714 if test "$cross_compiling" = yes; then :
14715 ac_cv_func_fork_works
=cross
14717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14719 $ac_includes_default
14724 /* By Ruediger Kuhlmann. */
14725 return fork () < 0;
14731 if ac_fn_c_try_run
"$LINENO"; then :
14732 ac_cv_func_fork_works
=yes
14734 ac_cv_func_fork_works
=no
14736 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14737 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14742 $as_echo "$ac_cv_func_fork_works" >&6; }
14745 ac_cv_func_fork_works
=$ac_cv_func_fork
14747 if test "x$ac_cv_func_fork_works" = xcross
; then
14749 *-*-amigaos* |
*-*-msdosdjgpp*)
14750 # Override, as these systems have only a dummy fork() stub
14751 ac_cv_func_fork_works
=no
14754 ac_cv_func_fork_works
=yes
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14758 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14760 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14761 if test "x$ac_cv_func_vfork" = xyes
; then
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14763 $as_echo_n "checking for working vfork... " >&6; }
14764 if ${ac_cv_func_vfork_works+:} false
; then :
14765 $as_echo_n "(cached) " >&6
14767 if test "$cross_compiling" = yes; then :
14768 ac_cv_func_vfork_works
=cross
14770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14772 /* Thanks to Paul Eggert for this test. */
14773 $ac_includes_default
14774 #include <sys/wait.h>
14775 #ifdef HAVE_VFORK_H
14776 # include <vfork.h>
14778 /* On some sparc systems, changes by the child to local and incoming
14779 argument registers are propagated back to the parent. The compiler
14780 is told about this with #include <vfork.h>, but some compilers
14781 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14782 static variable whose address is put into a register that is
14783 clobbered by the vfork. */
14786 sparc_address_test (int arg)
14788 sparc_address_test (arg) int arg;
14791 static pid_t child;
14809 pid_t parent = getpid ();
14812 sparc_address_test (0);
14817 /* Here is another test for sparc vfork register problems. This
14818 test uses lots of local variables, at least as many local
14819 variables as main has allocated so far including compiler
14820 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14821 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14822 reuse the register of parent for one of the local variables,
14823 since it will think that parent can't possibly be used any more
14824 in this routine. Assigning to the local variable will thus
14825 munge parent in the parent process. */
14827 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14828 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14829 /* Convince the compiler that p..p7 are live; otherwise, it might
14830 use the same hardware register for all 8 local variables. */
14831 if (p != p1 || p != p2 || p != p3 || p != p4
14832 || p != p5 || p != p6 || p != p7)
14835 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14836 from child file descriptors. If the child closes a descriptor
14837 before it execs or exits, this munges the parent's descriptor
14838 as well. Test for this by closing stdout in the child. */
14839 _exit(close(fileno(stdout)) != 0);
14844 while (wait(&status) != child)
14847 /* Was there some problem with vforking? */
14850 /* Did the child fail? (This shouldn't happen.) */
14853 /* Did the vfork/compiler bug occur? */
14854 || parent != getpid()
14856 /* Did the file descriptor bug occur? */
14857 || fstat(fileno(stdout), &st) != 0
14862 if ac_fn_c_try_run
"$LINENO"; then :
14863 ac_cv_func_vfork_works
=yes
14865 ac_cv_func_vfork_works
=no
14867 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14868 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14873 $as_echo "$ac_cv_func_vfork_works" >&6; }
14876 if test "x$ac_cv_func_fork_works" = xcross
; then
14877 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14879 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14882 if test "x$ac_cv_func_vfork_works" = xyes
; then
14884 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14888 $as_echo "#define vfork fork" >>confdefs.h
14891 if test "x$ac_cv_func_fork_works" = xyes
; then
14893 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14899 daemon chroot getpwnam setuid nice system getpid dup dup2 \
14900 getpass strerror syslog openlog mlockall getgrnam setgid \
14901 setgroups stat flock readv writev
time gettimeofday \
14902 ctime memset vsnprintf strdup \
14903 setsid chdir putenv getpeername unlink \
14904 chsize ftruncate execve getpeereid
umask basename dirname access \
14908 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14909 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14910 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14911 cat >>confdefs.h
<<_ACEOF
14912 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14920 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14921 if ${ac_cv_lib_dl_dlopen+:} false
; then :
14922 $as_echo_n "(cached) " >&6
14924 ac_check_lib_save_LIBS
=$LIBS
14926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14929 /* Override any GCC internal prototype to avoid an error.
14930 Use char because int might match the return type of a GCC
14931 builtin and then its argument prototype would still apply. */
14944 if ac_fn_c_try_link
"$LINENO"; then :
14945 ac_cv_lib_dl_dlopen
=yes
14947 ac_cv_lib_dl_dlopen
=no
14949 rm -f core conftest.err conftest.
$ac_objext \
14950 conftest
$ac_exeext conftest.
$ac_ext
14951 LIBS
=$ac_check_lib_save_LIBS
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14954 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14955 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
14963 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
14964 if ${ac_cv_lib_nsl_inet_ntoa+:} false
; then :
14965 $as_echo_n "(cached) " >&6
14967 ac_check_lib_save_LIBS
=$LIBS
14969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14972 /* Override any GCC internal prototype to avoid an error.
14973 Use char because int might match the return type of a GCC
14974 builtin and then its argument prototype would still apply. */
14982 return inet_ntoa ();
14987 if ac_fn_c_try_link
"$LINENO"; then :
14988 ac_cv_lib_nsl_inet_ntoa
=yes
14990 ac_cv_lib_nsl_inet_ntoa
=no
14992 rm -f core conftest.err conftest.
$ac_objext \
14993 conftest
$ac_exeext conftest.
$ac_ext
14994 LIBS
=$ac_check_lib_save_LIBS
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
14997 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
14998 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes
; then :
14999 SOCKETS_LIBS
="${SOCKETS_LIBS} -lnsl"
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15004 $as_echo_n "checking for socket in -lsocket... " >&6; }
15005 if ${ac_cv_lib_socket_socket+:} false
; then :
15006 $as_echo_n "(cached) " >&6
15008 ac_check_lib_save_LIBS
=$LIBS
15009 LIBS
="-lsocket $LIBS"
15010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15013 /* Override any GCC internal prototype to avoid an error.
15014 Use char because int might match the return type of a GCC
15015 builtin and then its argument prototype would still apply. */
15028 if ac_fn_c_try_link
"$LINENO"; then :
15029 ac_cv_lib_socket_socket
=yes
15031 ac_cv_lib_socket_socket
=no
15033 rm -f core conftest.err conftest.
$ac_objext \
15034 conftest
$ac_exeext conftest.
$ac_ext
15035 LIBS
=$ac_check_lib_save_LIBS
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15038 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15039 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
15040 SOCKETS_LIBS
="${SOCKETS_LIBS} -lsocket"
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
15045 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
15046 if ${ac_cv_lib_resolv_gethostbyname+:} false
; then :
15047 $as_echo_n "(cached) " >&6
15049 ac_check_lib_save_LIBS
=$LIBS
15050 LIBS
="-lresolv $LIBS"
15051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15052 /* end confdefs.h. */
15054 /* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
15060 char gethostbyname ();
15064 return gethostbyname ();
15069 if ac_fn_c_try_link
"$LINENO"; then :
15070 ac_cv_lib_resolv_gethostbyname
=yes
15072 ac_cv_lib_resolv_gethostbyname
=no
15074 rm -f core conftest.err conftest.
$ac_objext \
15075 conftest
$ac_exeext conftest.
$ac_ext
15076 LIBS
=$ac_check_lib_save_LIBS
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
15079 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
15080 if test "x$ac_cv_lib_resolv_gethostbyname" = xyes
; then :
15081 SOCKETS_LIBS
="${SOCKETS_LIBS} -lresolv"
15088 LIBS
="${LIBS} ${SOCKETS_LIBS}"
15089 for ac_func
in sendmsg recvmsg inet_ntop inet_pton
15091 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15092 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15093 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15094 cat >>confdefs.h
<<_ACEOF
15095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15101 for ac_func
in res_init
15103 ac_fn_c_check_func
"$LINENO" "res_init" "ac_cv_func_res_init"
15104 if test "x$ac_cv_func_res_init" = xyes
; then :
15105 cat >>confdefs.h
<<_ACEOF
15106 #define HAVE_RES_INIT 1
15112 # Windows use stdcall for winsock so we cannot auto detect these
15115 if test "${WIN32}" = "yes"; then
15118 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
15122 $as_echo "#define HAVE_RECV 1" >>confdefs.h
15126 $as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
15130 $as_echo "#define HAVE_SEND 1" >>confdefs.h
15134 $as_echo "#define HAVE_SENDTO 1" >>confdefs.h
15138 $as_echo "#define HAVE_LISTEN 1" >>confdefs.h
15142 $as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
15146 $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
15150 $as_echo "#define HAVE_BIND 1" >>confdefs.h
15154 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
15158 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
15162 $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
15166 $as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
15170 $as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
15174 $as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
15178 $as_echo "#define HAVE_POLL 1" >>confdefs.h
15182 for ac_func
in socket recv recvfrom send sendto listen accept connect
bind select gethostbyname inet_ntoa
15184 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15185 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15186 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15187 cat >>confdefs.h
<<_ACEOF
15188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15192 as_fn_error $?
"Required library function not found" "$LINENO" 5
15197 for ac_func
in setsockopt getsockopt getsockname poll
15199 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15200 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15201 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15202 cat >>confdefs.h
<<_ACEOF
15203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15213 old_CFLAGS
="${CFLAGS}"
15214 CFLAGS
="${CFLAGS} ${TAP_CFLAGS}"
15216 net
/if_tun.h net
/tun
/if_tun.h \
15221 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15222 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15223 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15224 cat >>confdefs.h
<<_ACEOF
15225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15227 have_tap_header
="yes"
15233 ac_fn_c_check_decl
"$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
15234 #ifdef HAVE_LINUX_IF_TUN_H
15235 #include <linux/if_tun.h>
15240 if test "x$ac_cv_have_decl_TUNSETPERSIST" = xyes
; then :
15246 cat >>confdefs.h
<<_ACEOF
15247 #define HAVE_DECL_TUNSETPERSIST $ac_have_decl
15249 if test $ac_have_decl = 1; then :
15251 $as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
15255 CFLAGS
="${old_CFLAGS}"
15256 test "${have_tap_header}" = "yes" || as_fn_error $?
"no tap header could be found" "$LINENO" 5
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
15259 $as_echo_n "checking for setcon in -lselinux... " >&6; }
15260 if ${ac_cv_lib_selinux_setcon+:} false
; then :
15261 $as_echo_n "(cached) " >&6
15263 ac_check_lib_save_LIBS
=$LIBS
15264 LIBS
="-lselinux $LIBS"
15265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15268 /* Override any GCC internal prototype to avoid an error.
15269 Use char because int might match the return type of a GCC
15270 builtin and then its argument prototype would still apply. */
15283 if ac_fn_c_try_link
"$LINENO"; then :
15284 ac_cv_lib_selinux_setcon
=yes
15286 ac_cv_lib_selinux_setcon
=no
15288 rm -f core conftest.err conftest.
$ac_objext \
15289 conftest
$ac_exeext conftest.
$ac_ext
15290 LIBS
=$ac_check_lib_save_LIBS
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
15293 $as_echo "$ac_cv_lib_selinux_setcon" >&6; }
15294 if test "x$ac_cv_lib_selinux_setcon" = xyes
; then :
15295 SELINUX_LIBS
="-lselinux"
15303 if test -z "${LIBPAM_LIBS}"; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
15305 $as_echo_n "checking for pam_start in -lpam... " >&6; }
15306 if ${ac_cv_lib_pam_pam_start+:} false
; then :
15307 $as_echo_n "(cached) " >&6
15309 ac_check_lib_save_LIBS
=$LIBS
15311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15324 return pam_start ();
15329 if ac_fn_c_try_link
"$LINENO"; then :
15330 ac_cv_lib_pam_pam_start
=yes
15332 ac_cv_lib_pam_pam_start
=no
15334 rm -f core conftest.err conftest.
$ac_objext \
15335 conftest
$ac_exeext conftest.
$ac_ext
15336 LIBS
=$ac_check_lib_save_LIBS
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
15339 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15340 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
15341 LIBPAM_LIBS
="-lpam"
15347 case "${with_mem_check}" in
15349 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
15350 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
; then :
15352 CFLAGS
="${CFLAGS} -g -fno-inline"
15354 $as_echo "#define USE_VALGRIND 1" >>confdefs.h
15358 as_fn_error $?
"valgrind headers not found." "$LINENO" 5
15365 ac_fn_c_check_header_mongrel
"$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
15366 if test "x$ac_cv_header_dmalloc_h" = xyes
; then :
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
15368 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
15369 if ${ac_cv_lib_dmalloc_malloc+:} false
; then :
15370 $as_echo_n "(cached) " >&6
15372 ac_check_lib_save_LIBS
=$LIBS
15373 LIBS
="-ldmalloc $LIBS"
15374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15377 /* Override any GCC internal prototype to avoid an error.
15378 Use char because int might match the return type of a GCC
15379 builtin and then its argument prototype would still apply. */
15392 if ac_fn_c_try_link
"$LINENO"; then :
15393 ac_cv_lib_dmalloc_malloc
=yes
15395 ac_cv_lib_dmalloc_malloc
=no
15397 rm -f core conftest.err conftest.
$ac_objext \
15398 conftest
$ac_exeext conftest.
$ac_ext
15399 LIBS
=$ac_check_lib_save_LIBS
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
15402 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
15403 if test "x$ac_cv_lib_dmalloc_malloc" = xyes
; then :
15405 LIBS
="${LIBS} -ldmalloc"
15407 $as_echo "#define DMALLOC 1" >>confdefs.h
15411 as_fn_error $?
"dmalloc library not found." "$LINENO" 5
15416 as_fn_error $?
"dmalloc headers not found." "$LINENO" 5
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
15424 $as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
15425 if ${ac_cv_lib_ssl_CRYPTO_mem_ctrl+:} false
; then :
15426 $as_echo_n "(cached) " >&6
15428 ac_check_lib_save_LIBS
=$LIBS
15430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15433 /* Override any GCC internal prototype to avoid an error.
15434 Use char because int might match the return type of a GCC
15435 builtin and then its argument prototype would still apply. */
15439 char CRYPTO_mem_ctrl ();
15443 return CRYPTO_mem_ctrl ();
15448 if ac_fn_c_try_link
"$LINENO"; then :
15449 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=yes
15451 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=no
15453 rm -f core conftest.err conftest.
$ac_objext \
15454 conftest
$ac_exeext conftest.
$ac_ext
15455 LIBS
=$ac_check_lib_save_LIBS
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
15458 $as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
15459 if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = xyes
; then :
15462 $as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
15465 $as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
15468 as_fn_error $?
"Memory Debugging function in OpenSSL library not found." "$LINENO" 5
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15478 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15480 if test -n "$PKCS11_HELPER_CFLAGS"; then
15481 pkg_cv_PKCS11_HELPER_CFLAGS
="$PKCS11_HELPER_CFLAGS"
15482 elif test -n "$PKG_CONFIG"; then
15483 if test -n "$PKG_CONFIG" && \
15484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
15485 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
15487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15488 test $ac_status = 0; }; then
15489 pkg_cv_PKCS11_HELPER_CFLAGS
=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
15490 test "x$?" != "x0" && pkg_failed
=yes
15497 if test -n "$PKCS11_HELPER_LIBS"; then
15498 pkg_cv_PKCS11_HELPER_LIBS
="$PKCS11_HELPER_LIBS"
15499 elif test -n "$PKG_CONFIG"; then
15500 if test -n "$PKG_CONFIG" && \
15501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
15502 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
15504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15505 test $ac_status = 0; }; then
15506 pkg_cv_PKCS11_HELPER_LIBS
=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
15507 test "x$?" != "x0" && pkg_failed
=yes
15517 if test $pkg_failed = yes; then
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15519 $as_echo "no" >&6; }
15521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15522 _pkg_short_errors_supported
=yes
15524 _pkg_short_errors_supported
=no
15526 if test $_pkg_short_errors_supported = yes; then
15527 PKCS11_HELPER_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
15529 PKCS11_HELPER_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
15531 # Put the nasty error message in config.log where it belongs
15532 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15536 elif test $pkg_failed = untried
; then
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15538 $as_echo "no" >&6; }
15542 PKCS11_HELPER_CFLAGS
=$pkg_cv_PKCS11_HELPER_CFLAGS
15543 PKCS11_HELPER_LIBS
=$pkg_cv_PKCS11_HELPER_LIBS
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15545 $as_echo "yes" >&6; }
15546 have_pkcs11_helper
="yes"
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5
15552 $as_echo_n "checking for OPENSSL_CRYPTO... " >&6; }
15554 if test -n "$OPENSSL_CRYPTO_CFLAGS"; then
15555 pkg_cv_OPENSSL_CRYPTO_CFLAGS
="$OPENSSL_CRYPTO_CFLAGS"
15556 elif test -n "$PKG_CONFIG"; then
15557 if test -n "$PKG_CONFIG" && \
15558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15559 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15562 test $ac_status = 0; }; then
15563 pkg_cv_OPENSSL_CRYPTO_CFLAGS
=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null`
15564 test "x$?" != "x0" && pkg_failed
=yes
15571 if test -n "$OPENSSL_CRYPTO_LIBS"; then
15572 pkg_cv_OPENSSL_CRYPTO_LIBS
="$OPENSSL_CRYPTO_LIBS"
15573 elif test -n "$PKG_CONFIG"; then
15574 if test -n "$PKG_CONFIG" && \
15575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15576 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15579 test $ac_status = 0; }; then
15580 pkg_cv_OPENSSL_CRYPTO_LIBS
=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null`
15581 test "x$?" != "x0" && pkg_failed
=yes
15591 if test $pkg_failed = yes; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593 $as_echo "no" >&6; }
15595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15596 _pkg_short_errors_supported
=yes
15598 _pkg_short_errors_supported
=no
15600 if test $_pkg_short_errors_supported = yes; then
15601 OPENSSL_CRYPTO_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15603 OPENSSL_CRYPTO_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15605 # Put the nasty error message in config.log where it belongs
15606 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15609 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15610 if ${ac_cv_lib_crypto_RSA_new+:} false
; then :
15611 $as_echo_n "(cached) " >&6
15613 ac_check_lib_save_LIBS
=$LIBS
15614 LIBS
="-lcrypto $LIBS"
15615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15618 /* Override any GCC internal prototype to avoid an error.
15619 Use char because int might match the return type of a GCC
15620 builtin and then its argument prototype would still apply. */
15633 if ac_fn_c_try_link
"$LINENO"; then :
15634 ac_cv_lib_crypto_RSA_new
=yes
15636 ac_cv_lib_crypto_RSA_new
=no
15638 rm -f core conftest.err conftest.
$ac_objext \
15639 conftest
$ac_exeext conftest.
$ac_ext
15640 LIBS
=$ac_check_lib_save_LIBS
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15643 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15644 if test "x$ac_cv_lib_crypto_RSA_new" = xyes
; then :
15646 have_openssl_crypto
="yes"
15647 OPENSSL_CRYPTO_LIBS
="-lcrypto"
15653 elif test $pkg_failed = untried
; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15655 $as_echo "no" >&6; }
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15657 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15658 if ${ac_cv_lib_crypto_RSA_new+:} false
; then :
15659 $as_echo_n "(cached) " >&6
15661 ac_check_lib_save_LIBS
=$LIBS
15662 LIBS
="-lcrypto $LIBS"
15663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15666 /* Override any GCC internal prototype to avoid an error.
15667 Use char because int might match the return type of a GCC
15668 builtin and then its argument prototype would still apply. */
15681 if ac_fn_c_try_link
"$LINENO"; then :
15682 ac_cv_lib_crypto_RSA_new
=yes
15684 ac_cv_lib_crypto_RSA_new
=no
15686 rm -f core conftest.err conftest.
$ac_objext \
15687 conftest
$ac_exeext conftest.
$ac_ext
15688 LIBS
=$ac_check_lib_save_LIBS
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15691 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15692 if test "x$ac_cv_lib_crypto_RSA_new" = xyes
; then :
15694 have_openssl_crypto
="yes"
15695 OPENSSL_CRYPTO_LIBS
="-lcrypto"
15702 OPENSSL_CRYPTO_CFLAGS
=$pkg_cv_OPENSSL_CRYPTO_CFLAGS
15703 OPENSSL_CRYPTO_LIBS
=$pkg_cv_OPENSSL_CRYPTO_LIBS
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15705 $as_echo "yes" >&6; }
15706 have_openssl_crypto
="yes"
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5
15712 $as_echo_n "checking for OPENSSL_SSL... " >&6; }
15714 if test -n "$OPENSSL_SSL_CFLAGS"; then
15715 pkg_cv_OPENSSL_SSL_CFLAGS
="$OPENSSL_SSL_CFLAGS"
15716 elif test -n "$PKG_CONFIG"; then
15717 if test -n "$PKG_CONFIG" && \
15718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15719 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15722 test $ac_status = 0; }; then
15723 pkg_cv_OPENSSL_SSL_CFLAGS
=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null`
15724 test "x$?" != "x0" && pkg_failed
=yes
15731 if test -n "$OPENSSL_SSL_LIBS"; then
15732 pkg_cv_OPENSSL_SSL_LIBS
="$OPENSSL_SSL_LIBS"
15733 elif test -n "$PKG_CONFIG"; then
15734 if test -n "$PKG_CONFIG" && \
15735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15736 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15739 test $ac_status = 0; }; then
15740 pkg_cv_OPENSSL_SSL_LIBS
=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null`
15741 test "x$?" != "x0" && pkg_failed
=yes
15751 if test $pkg_failed = yes; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15753 $as_echo "no" >&6; }
15755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15756 _pkg_short_errors_supported
=yes
15758 _pkg_short_errors_supported
=no
15760 if test $_pkg_short_errors_supported = yes; then
15761 OPENSSL_SSL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15763 OPENSSL_SSL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15765 # Put the nasty error message in config.log where it belongs
15766 echo "$OPENSSL_SSL_PKG_ERRORS" >&5
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15769 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15770 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false
; then :
15771 $as_echo_n "(cached) " >&6
15773 ac_check_lib_save_LIBS
=$LIBS
15774 LIBS
="-lssl -lcrypto
15776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15779 /* Override any GCC internal prototype to avoid an error.
15780 Use char because int might match the return type of a GCC
15781 builtin and then its argument prototype would still apply. */
15785 char SSL_CTX_new ();
15789 return SSL_CTX_new ();
15794 if ac_fn_c_try_link
"$LINENO"; then :
15795 ac_cv_lib_ssl_SSL_CTX_new
=yes
15797 ac_cv_lib_ssl_SSL_CTX_new
=no
15799 rm -f core conftest.err conftest.
$ac_objext \
15800 conftest
$ac_exeext conftest.
$ac_ext
15801 LIBS
=$ac_check_lib_save_LIBS
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
15804 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
15805 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
; then :
15807 have_openssl_ssl
="yes"
15808 OPENSSL_SSL_LIBS
="-lssl"
15813 elif test $pkg_failed = untried
; then
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15815 $as_echo "no" >&6; }
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15817 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15818 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false
; then :
15819 $as_echo_n "(cached) " >&6
15821 ac_check_lib_save_LIBS
=$LIBS
15822 LIBS
="-lssl -lcrypto
15824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15827 /* Override any GCC internal prototype to avoid an error.
15828 Use char because int might match the return type of a GCC
15829 builtin and then its argument prototype would still apply. */
15833 char SSL_CTX_new ();
15837 return SSL_CTX_new ();
15842 if ac_fn_c_try_link
"$LINENO"; then :
15843 ac_cv_lib_ssl_SSL_CTX_new
=yes
15845 ac_cv_lib_ssl_SSL_CTX_new
=no
15847 rm -f core conftest.err conftest.
$ac_objext \
15848 conftest
$ac_exeext conftest.
$ac_ext
15849 LIBS
=$ac_check_lib_save_LIBS
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
15852 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
15853 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
; then :
15855 have_openssl_ssl
="yes"
15856 OPENSSL_SSL_LIBS
="-lssl"
15862 OPENSSL_SSL_CFLAGS
=$pkg_cv_OPENSSL_SSL_CFLAGS
15863 OPENSSL_SSL_LIBS
=$pkg_cv_OPENSSL_SSL_LIBS
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15865 $as_echo "yes" >&6; }
15866 have_openssl_ssl
="yes"
15869 if test "${have_openssl_crypto}" = "yes"; then
15870 saved_CFLAGS
="${CFLAGS}"
15871 saved_LIBS
="${LIBS}"
15872 CFLAGS
="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
15873 LIBS
="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
15874 for ac_func
in EVP_CIPHER_CTX_set_key_length
15876 ac_fn_c_check_func
"$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
15877 if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = xyes
; then :
15878 cat >>confdefs.h
<<_ACEOF
15879 #define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
15885 have_openssl_engine
="yes"
15887 ENGINE_load_builtin_engines \
15888 ENGINE_register_all_complete \
15892 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15893 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15894 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15895 cat >>confdefs.h
<<_ACEOF
15896 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15900 have_openssl_engine
="no"; break
15906 CFLAGS
="${saved_CFLAGS}"
15907 LIBS
="${saved_LIBS}"
15912 have_polarssl_ssl
="yes"
15913 have_polarssl_crypto
="yes"
15914 if test -z "${POLARSSL_LIBS}"; then
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
15916 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
15917 if ${ac_cv_lib_polarssl_ssl_init+:} false
; then :
15918 $as_echo_n "(cached) " >&6
15920 ac_check_lib_save_LIBS
=$LIBS
15921 LIBS
="-lpolarssl ${PKCS11_HELPER_LIBS}
15923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15926 /* Override any GCC internal prototype to avoid an error.
15927 Use char because int might match the return type of a GCC
15928 builtin and then its argument prototype would still apply. */
15936 return ssl_init ();
15941 if ac_fn_c_try_link
"$LINENO"; then :
15942 ac_cv_lib_polarssl_ssl_init
=yes
15944 ac_cv_lib_polarssl_ssl_init
=no
15946 rm -f core conftest.err conftest.
$ac_objext \
15947 conftest
$ac_exeext conftest.
$ac_ext
15948 LIBS
=$ac_check_lib_save_LIBS
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
15951 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
15952 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes
; then :
15953 POLARSSL_LIBS
="-lpolarssl"
15956 have_polarssl_ssl
="no"
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5
15958 $as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; }
15959 if ${ac_cv_lib_polarssl_aes_crypt_cbc+:} false
; then :
15960 $as_echo_n "(cached) " >&6
15962 ac_check_lib_save_LIBS
=$LIBS
15963 LIBS
="-lpolarssl ${PKCS11_HELPER_LIBS}
15965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15966 /* end confdefs.h. */
15968 /* Override any GCC internal prototype to avoid an error.
15969 Use char because int might match the return type of a GCC
15970 builtin and then its argument prototype would still apply. */
15974 char aes_crypt_cbc ();
15978 return aes_crypt_cbc ();
15983 if ac_fn_c_try_link
"$LINENO"; then :
15984 ac_cv_lib_polarssl_aes_crypt_cbc
=yes
15986 ac_cv_lib_polarssl_aes_crypt_cbc
=no
15988 rm -f core conftest.err conftest.
$ac_objext \
15989 conftest
$ac_exeext conftest.
$ac_ext
15990 LIBS
=$ac_check_lib_save_LIBS
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5
15993 $as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; }
15994 if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = xyes
; then :
15995 cat >>confdefs.h
<<_ACEOF
15996 #define HAVE_LIBPOLARSSL 1
15999 LIBS
="-lpolarssl $LIBS"
16002 have_polarssl_crypto
="no"
16010 if test "${with_crypto_library}" = "polarssl" ; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5
16012 $as_echo_n "checking polarssl version... " >&6; }
16013 old_CFLAGS
="${CFLAGS}"
16014 CFLAGS
="${POLARSSL_CFLAGS} ${CFLAGS}"
16015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16018 #include <polarssl/version.h>
16024 #if POLARSSL_VERSION_NUMBER < 0x01020A00 || POLARSSL_VERSION_NUMBER >= 0x01030000
16025 #error invalid version
16033 if ac_fn_c_try_compile
"$LINENO"; then :
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16035 $as_echo "ok" >&6; }
16037 as_fn_error $?
"PolarSSL 1.2.x required and must be 1.2.10 or later" "$LINENO" 5
16040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16042 polarssl_with_pkcs11
="no"
16043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16046 #include <polarssl/config.h>
16052 #ifndef POLARSSL_PKCS11_C
16053 #error pkcs11 wrapper missing
16061 if ac_fn_c_try_compile
"$LINENO"; then :
16062 polarssl_with_pkcs11
="yes"
16064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16065 CFLAGS
="${old_CFLAGS}"
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl pkcs11 support" >&5
16068 $as_echo_n "checking polarssl pkcs11 support... " >&6; }
16069 if test "${enable_pkcs11}" = "yes"; then
16070 if test "${polarssl_with_pkcs11}" = "yes"; then
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16072 $as_echo "ok" >&6; }
16074 as_fn_error $?
"polarssl has no pkcs11 wrapper compiled in" "$LINENO" 5
16077 if test "${polarssl_with_pkcs11}" != "yes"; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16079 $as_echo "ok" >&6; }
16081 as_fn_error $?
"PolarSSL compiled with PKCS11, while OpenVPN is not" "$LINENO" 5
16090 if test -z "${LZO_LIBS}"; then
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
16092 $as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
16093 if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false
; then :
16094 $as_echo_n "(cached) " >&6
16096 ac_check_lib_save_LIBS
=$LIBS
16097 LIBS
="-llzo2 $LIBS"
16098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16101 /* Override any GCC internal prototype to avoid an error.
16102 Use char because int might match the return type of a GCC
16103 builtin and then its argument prototype would still apply. */
16107 char lzo1x_1_15_compress ();
16111 return lzo1x_1_15_compress ();
16116 if ac_fn_c_try_link
"$LINENO"; then :
16117 ac_cv_lib_lzo2_lzo1x_1_15_compress
=yes
16119 ac_cv_lib_lzo2_lzo1x_1_15_compress
=no
16121 rm -f core conftest.err conftest.
$ac_objext \
16122 conftest
$ac_exeext conftest.
$ac_ext
16123 LIBS
=$ac_check_lib_save_LIBS
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
16126 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
16127 if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes
; then :
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
16131 $as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
16132 if ${ac_cv_lib_lzo_lzo1x_1_15_compress+:} false
; then :
16133 $as_echo_n "(cached) " >&6
16135 ac_check_lib_save_LIBS
=$LIBS
16137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16140 /* Override any GCC internal prototype to avoid an error.
16141 Use char because int might match the return type of a GCC
16142 builtin and then its argument prototype would still apply. */
16146 char lzo1x_1_15_compress ();
16150 return lzo1x_1_15_compress ();
16155 if ac_fn_c_try_link
"$LINENO"; then :
16156 ac_cv_lib_lzo_lzo1x_1_15_compress
=yes
16158 ac_cv_lib_lzo_lzo1x_1_15_compress
=no
16160 rm -f core conftest.err conftest.
$ac_objext \
16161 conftest
$ac_exeext conftest.
$ac_ext
16162 LIBS
=$ac_check_lib_save_LIBS
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
16165 $as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
16166 if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = xyes
; then :
16177 if test "${have_lzo}" = "yes"; then
16178 saved_CFLAGS
="${CFLAGS}"
16179 CFLAGS
="${CFLAGS} ${LZO_CFLAGS}"
16180 for ac_header
in lzo
/lzoutil.h
16182 ac_fn_c_check_header_mongrel
"$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
16183 if test "x$ac_cv_header_lzo_lzoutil_h" = xyes
; then :
16184 cat >>confdefs.h
<<_ACEOF
16185 #define HAVE_LZO_LZOUTIL_H 1
16189 for ac_header
in lzoutil.h
16191 ac_fn_c_check_header_mongrel
"$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
16192 if test "x$ac_cv_header_lzoutil_h" = xyes
; then :
16193 cat >>confdefs.h
<<_ACEOF
16194 #define HAVE_LZOUTIL_H 1
16198 as_fn_error $?
"lzoutil.h is missing" "$LINENO" 5
16209 for ac_header
in lzo
/lzo1x.h
16211 ac_fn_c_check_header_mongrel
"$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
16212 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes
; then :
16213 cat >>confdefs.h
<<_ACEOF
16214 #define HAVE_LZO_LZO1X_H 1
16218 for ac_header
in lzo1x.h
16220 ac_fn_c_check_header_mongrel
"$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
16221 if test "x$ac_cv_header_lzo1x_h" = xyes
; then :
16222 cat >>confdefs.h
<<_ACEOF
16223 #define HAVE_LZO1X_H 1
16227 as_fn_error $?
"lzo1x.h is missing" "$LINENO" 5
16238 CFLAGS
="${saved_CFLAGS}"
16243 if test "$enable_systemd" = "yes" ; then
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16247 $as_echo_n "checking for libsystemd... " >&6; }
16249 if test -n "$libsystemd_CFLAGS"; then
16250 pkg_cv_libsystemd_CFLAGS
="$libsystemd_CFLAGS"
16251 elif test -n "$PKG_CONFIG"; then
16252 if test -n "$PKG_CONFIG" && \
16253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
16254 ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
16256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16257 test $ac_status = 0; }; then
16258 pkg_cv_libsystemd_CFLAGS
=`$PKG_CONFIG --cflags "systemd libsystemd" 2>/dev/null`
16259 test "x$?" != "x0" && pkg_failed
=yes
16266 if test -n "$libsystemd_LIBS"; then
16267 pkg_cv_libsystemd_LIBS
="$libsystemd_LIBS"
16268 elif test -n "$PKG_CONFIG"; then
16269 if test -n "$PKG_CONFIG" && \
16270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
16271 ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
16273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16274 test $ac_status = 0; }; then
16275 pkg_cv_libsystemd_LIBS
=`$PKG_CONFIG --libs "systemd libsystemd" 2>/dev/null`
16276 test "x$?" != "x0" && pkg_failed
=yes
16286 if test $pkg_failed = yes; then
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16288 $as_echo "no" >&6; }
16290 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16291 _pkg_short_errors_supported
=yes
16293 _pkg_short_errors_supported
=no
16295 if test $_pkg_short_errors_supported = yes; then
16296 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd libsystemd" 2>&1`
16298 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "systemd libsystemd" 2>&1`
16300 # Put the nasty error message in config.log where it belongs
16301 echo "$libsystemd_PKG_ERRORS" >&5
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16306 $as_echo_n "checking for libsystemd... " >&6; }
16308 if test -n "$libsystemd_CFLAGS"; then
16309 pkg_cv_libsystemd_CFLAGS
="$libsystemd_CFLAGS"
16310 elif test -n "$PKG_CONFIG"; then
16311 if test -n "$PKG_CONFIG" && \
16312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16313 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16316 test $ac_status = 0; }; then
16317 pkg_cv_libsystemd_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16318 test "x$?" != "x0" && pkg_failed
=yes
16325 if test -n "$libsystemd_LIBS"; then
16326 pkg_cv_libsystemd_LIBS
="$libsystemd_LIBS"
16327 elif test -n "$PKG_CONFIG"; then
16328 if test -n "$PKG_CONFIG" && \
16329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16330 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16333 test $ac_status = 0; }; then
16334 pkg_cv_libsystemd_LIBS
=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16335 test "x$?" != "x0" && pkg_failed
=yes
16345 if test $pkg_failed = yes; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16347 $as_echo "no" >&6; }
16349 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16350 _pkg_short_errors_supported
=yes
16352 _pkg_short_errors_supported
=no
16354 if test $_pkg_short_errors_supported = yes; then
16355 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16357 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16359 # Put the nasty error message in config.log where it belongs
16360 echo "$libsystemd_PKG_ERRORS" >&5
16362 as_fn_error $?
"Package requirements (libsystemd-daemon) were not met:
16364 $libsystemd_PKG_ERRORS
16366 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16367 installed software in a non-standard prefix.
16369 Alternatively, you may set the environment variables libsystemd_CFLAGS
16370 and libsystemd_LIBS to avoid the need to call pkg-config.
16371 See the pkg-config man page for more details." "$LINENO" 5
16372 elif test $pkg_failed = untried
; then
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16374 $as_echo "no" >&6; }
16375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16377 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
16378 is in your PATH or set the PKG_CONFIG environment variable to the full
16379 path to pkg-config.
16381 Alternatively, you may set the environment variables libsystemd_CFLAGS
16382 and libsystemd_LIBS to avoid the need to call pkg-config.
16383 See the pkg-config man page for more details.
16385 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16386 See \`config.log' for more details" "$LINENO" 5; }
16388 libsystemd_CFLAGS
=$pkg_cv_libsystemd_CFLAGS
16389 libsystemd_LIBS
=$pkg_cv_libsystemd_LIBS
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16391 $as_echo "yes" >&6; }
16395 elif test $pkg_failed = untried
; then
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16397 $as_echo "no" >&6; }
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
16401 $as_echo_n "checking for libsystemd... " >&6; }
16403 if test -n "$libsystemd_CFLAGS"; then
16404 pkg_cv_libsystemd_CFLAGS
="$libsystemd_CFLAGS"
16405 elif test -n "$PKG_CONFIG"; then
16406 if test -n "$PKG_CONFIG" && \
16407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16408 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16411 test $ac_status = 0; }; then
16412 pkg_cv_libsystemd_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16413 test "x$?" != "x0" && pkg_failed
=yes
16420 if test -n "$libsystemd_LIBS"; then
16421 pkg_cv_libsystemd_LIBS
="$libsystemd_LIBS"
16422 elif test -n "$PKG_CONFIG"; then
16423 if test -n "$PKG_CONFIG" && \
16424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16425 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16428 test $ac_status = 0; }; then
16429 pkg_cv_libsystemd_LIBS
=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16430 test "x$?" != "x0" && pkg_failed
=yes
16440 if test $pkg_failed = yes; then
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442 $as_echo "no" >&6; }
16444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16445 _pkg_short_errors_supported
=yes
16447 _pkg_short_errors_supported
=no
16449 if test $_pkg_short_errors_supported = yes; then
16450 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16452 libsystemd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16454 # Put the nasty error message in config.log where it belongs
16455 echo "$libsystemd_PKG_ERRORS" >&5
16457 as_fn_error $?
"Package requirements (libsystemd-daemon) were not met:
16459 $libsystemd_PKG_ERRORS
16461 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16462 installed software in a non-standard prefix.
16464 Alternatively, you may set the environment variables libsystemd_CFLAGS
16465 and libsystemd_LIBS to avoid the need to call pkg-config.
16466 See the pkg-config man page for more details." "$LINENO" 5
16467 elif test $pkg_failed = untried
; then
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16469 $as_echo "no" >&6; }
16470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16472 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
16473 is in your PATH or set the PKG_CONFIG environment variable to the full
16474 path to pkg-config.
16476 Alternatively, you may set the environment variables libsystemd_CFLAGS
16477 and libsystemd_LIBS to avoid the need to call pkg-config.
16478 See the pkg-config man page for more details.
16480 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16481 See \`config.log' for more details" "$LINENO" 5; }
16483 libsystemd_CFLAGS
=$pkg_cv_libsystemd_CFLAGS
16484 libsystemd_LIBS
=$pkg_cv_libsystemd_LIBS
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16486 $as_echo "yes" >&6; }
16491 libsystemd_CFLAGS
=$pkg_cv_libsystemd_CFLAGS
16492 libsystemd_LIBS
=$pkg_cv_libsystemd_LIBS
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16494 $as_echo "yes" >&6; }
16497 for ac_header
in systemd
/sd-daemon.h
16499 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
16500 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
16501 cat >>confdefs.h
<<_ACEOF
16502 #define HAVE_SYSTEMD_SD_DAEMON_H 1
16507 as_fn_error $?
"systemd development headers not found." "$LINENO" 5
16514 saved_LIBS
="${LIBS}"
16515 LIBS
="${LIBS} ${libsystemd_LIBS}"
16516 for ac_func
in sd_booted
16518 ac_fn_c_check_func
"$LINENO" "sd_booted" "ac_cv_func_sd_booted"
16519 if test "x$ac_cv_func_sd_booted" = xyes
; then :
16520 cat >>confdefs.h
<<_ACEOF
16521 #define HAVE_SD_BOOTED 1
16525 as_fn_error $?
"systemd library is missing sd_booted()" "$LINENO" 5
16529 OPTIONAL_SYSTEMD_LIBS
="${libsystemd_LIBS}"
16531 $as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
16533 LIBS
="${saved_LIBS}"
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
16538 $as_echo_n "checking git checkout... " >&6; }
16540 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
16542 $as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
16547 $as_echo "${GIT_CHECKOUT}" >&6; }
16549 if test -n "${SP_PLATFORM_WINDOWS}"; then
16551 cat >>confdefs.h
<<_ACEOF
16552 #define PATH_SEPARATOR '\\\\'
16556 cat >>confdefs.h
<<_ACEOF
16557 #define PATH_SEPARATOR_STR "\\\\"
16562 cat >>confdefs.h
<<_ACEOF
16563 #define PATH_SEPARATOR '/'
16567 cat >>confdefs.h
<<_ACEOF
16568 #define PATH_SEPARATOR_STR "/"
16573 if test "${enable_x509_alt_username}" = "yes"; then
16574 if test "${with_crypto_library}" = "polarssl" ; then
16575 as_fn_error $?
"PolarSSL does not support the --x509-username-field feature" "$LINENO" 5
16579 $as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
16583 test "${ac_cv_header_sys_uio_h}" = "yes" &&
16584 $as_echo "#define HAVE_IOVEC 1" >>confdefs.h
16586 test "${enable_multi}" = "yes" &&
16587 $as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
16589 test "${enable_server}" = "no" &&
16590 $as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
16592 test "${enable_management}" = "yes" &&
16593 $as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
16595 test "${enable_socks}" = "yes" &&
16596 $as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
16598 test "${enable_http_proxy}" = "yes" &&
16599 $as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
16601 test "${enable_multihome}" = "yes" &&
16602 $as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
16604 test "${enable_debug}" = "yes" &&
16605 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
16607 test "${enable_small}" = "yes" &&
16608 $as_echo "#define ENABLE_SMALL 1" >>confdefs.h
16610 test "${enable_fragment}" = "yes" &&
16611 $as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
16613 test "${enable_port_share}" = "yes" &&
16614 $as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
16616 test "${enable_def_auth}" = "yes" &&
16617 $as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
16619 test "${enable_pf}" = "yes" &&
16620 $as_echo "#define ENABLE_PF 1" >>confdefs.h
16622 test "${enable_strict_options}" = "yes" &&
16623 $as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
16625 test "${enable_password_save}" = "yes" &&
16626 $as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h
16629 case "${with_crypto_library}" in
16631 have_crypto_crypto
="${have_openssl_crypto}"
16632 have_crypto_ssl
="${have_openssl_ssl}"
16633 CRYPTO_CRYPTO_CFLAGS
="${OPENSSL_CRYPTO_CFLAGS}"
16634 CRYPTO_CRYPTO_LIBS
="${OPENSSL_CRYPTO_LIBS}"
16635 CRYPTO_SSL_CFLAGS
="${OPENSSL_SSL_CFLAGS}"
16636 CRYPTO_SSL_LIBS
="${OPENSSL_SSL_LIBS}"
16638 $as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
16640 test "${have_openssl_engine}" = "yes" &&
16641 $as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
16645 have_crypto_crypto
="${have_polarssl_crypto}"
16646 have_crypto_ssl
="${have_polarssl_ssl}"
16647 CRYPTO_CRYPTO_CFLAGS
="${POLARSSL_CFLAGS}"
16648 CRYPTO_CRYPTO_LIBS
="${POLARSSL_LIBS}"
16650 $as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h
16655 if test "${enable_ssl}" = "yes"; then
16656 test "${enable_crypto}" != "yes" && as_fn_error $?
"crypto must be enabled for ssl" "$LINENO" 5
16657 test "${have_crypto_ssl}" != "yes" && as_fn_error $?
"${with_ssl_library} ssl is required but missing" "$LINENO" 5
16658 OPTIONAL_CRYPTO_CFLAGS
="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
16659 OPTIONAL_CRYPTO_LIBS
="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
16661 $as_echo "#define ENABLE_SSL 1" >>confdefs.h
16665 if test "${enable_crypto}" = "yes"; then
16666 test "${have_crypto_crypto}" != "yes" && as_fn_error $?
"${with_crypto_library} crypto is required but missing" "$LINENO" 5
16667 test "${enable_crypto_ofb_cfb}" = "yes" &&
16668 $as_echo "#define ENABLE_OFB_CFB_MODE 1" >>confdefs.h
16670 OPTIONAL_CRYPTO_CFLAGS
="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
16671 OPTIONAL_CRYPTO_LIBS
="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
16673 $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
16677 if test "${enable_plugins}" = "yes"; then
16678 OPTIONAL_DL_LIBS
="${DL_LIBS}"
16680 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
16683 enable_plugin_auth_pam
="no"
16684 enable_plugin_down_root
="no"
16687 if test "${enable_iproute2}" = "yes"; then
16688 test -z "${IPROUTE}" && as_fn_error $?
"ip utility is required but missing" "$LINENO" 5
16690 $as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
16693 if test "${WIN32}" != "yes"; then
16694 test -z "${ROUTE}" && as_fn_error $?
"route utility is required but missing" "$LINENO" 5
16695 test -z "${IFCONFIG}" && as_fn_error $?
"ifconfig utility is required but missing" "$LINENO" 5
16699 if test "${enable_selinux}" = "yes"; then
16700 test -z "${SELINUX_LIBS}" && as_fn_error $?
"libselinux required but missing" "$LINENO" 5
16701 OPTIONAL_SELINUX_LIBS
="${SELINUX_LIBS}"
16703 $as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
16707 if test "${enable_lzo}" = "yes"; then
16708 test "${have_lzo}" != "yes" && as_fn_error $?
"lzo enabled but missing" "$LINENO" 5
16709 OPTIONAL_LZO_CFLAGS
="${LZO_CFLAGS}"
16710 OPTIONAL_LZO_LIBS
="${LZO_LIBS}"
16712 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16715 if test "${enable_lzo_stub}" = "yes"; then
16716 test "${enable_lzo}" = "yes" && as_fn_error $?
"Cannot have both lzo stub and lzo enabled" "$LINENO" 5
16718 $as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h
16721 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16725 if test "${enable_pkcs11}" = "yes"; then
16726 test "${have_pkcs11_helper}" != "yes" && as_fn_error $?
"PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
16727 test "${enable_ssl}" != "yes" && as_fn_error $?
"PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5
16728 OPTIONAL_PKCS11_HELPER_CFLAGS
="${PKCS11_HELPER_CFLAGS}"
16729 OPTIONAL_PKCS11_HELPER_LIBS
="${PKCS11_HELPER_LIBS}"
16731 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
16735 if test "${enable_pedantic}" = "yes"; then
16736 enable_strict
="yes"
16737 CFLAGS
="${CFLAGS} -pedantic"
16738 test "${WIN32}" != "yes" && CFLAGS
="${CFLAGS} -ansi"
16740 if test "${enable_strict}" = "yes"; then
16741 CFLAGS
="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
16744 if test "${WIN32}" = "yes"; then
16745 test -z "${MAN2HTML}" && as_fn_error $?
"man2html is required for win32" "$LINENO" 5
16748 if test "${enable_plugin_auth_pam}" = "yes"; then
16749 PLUGIN_AUTH_PAM_CFLAGS
="${LIBPAM_CFLAGS}"
16750 if test "${enable_pam_dlopen}" = "yes"; then
16752 $as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
16754 PLUGIN_AUTH_PAM_LIBS
="${DL_LIBS}"
16756 test -z "${LIBPAM_LIBS}" && as_fn_error $?
"libpam required but missing" "$LINENO" 5
16757 PLUGIN_AUTH_PAM_LIBS
="${LIBPAM_LIBS}"
16761 CONFIGURE_DEFINES
="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
16763 cat >>confdefs.h
<<_ACEOF
16764 #define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
16768 TAP_WIN_COMPONENT_ID
="tap0901"
16769 TAP_WIN_MIN_MAJOR
="9"
16770 TAP_WIN_MIN_MINOR
="9"
16772 cat >>confdefs.h
<<_ACEOF
16773 #define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
16777 cat >>confdefs.h
<<_ACEOF
16778 #define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
16782 cat >>confdefs.h
<<_ACEOF
16783 #define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
16803 if test "${WIN32}" = "yes"; then
16811 if test "${GIT_CHECKOUT}" = "yes"; then
16813 GIT_CHECKOUT_FALSE
='#'
16815 GIT_CHECKOUT_TRUE
='#'
16816 GIT_CHECKOUT_FALSE
=
16819 if test "${enable_plugin_auth_pam}" = "yes"; then
16820 ENABLE_PLUGIN_AUTH_PAM_TRUE
=
16821 ENABLE_PLUGIN_AUTH_PAM_FALSE
='#'
16823 ENABLE_PLUGIN_AUTH_PAM_TRUE
='#'
16824 ENABLE_PLUGIN_AUTH_PAM_FALSE
=
16827 if test "${enable_plugin_down_root}" = "yes"; then
16828 ENABLE_PLUGIN_DOWN_ROOT_TRUE
=
16829 ENABLE_PLUGIN_DOWN_ROOT_FALSE
='#'
16831 ENABLE_PLUGIN_DOWN_ROOT_TRUE
='#'
16832 ENABLE_PLUGIN_DOWN_ROOT_FALSE
=
16836 plugindir
="${with_plugindir}"
16837 sampledir
="\$(docdir)/sample"
16841 ac_config_files
="$ac_config_files version.sh Makefile build/Makefile build/msvc/Makefile build/msvc/msvc-generate/Makefile distro/Makefile distro/rpm/Makefile distro/rpm/openvpn.spec include/Makefile src/Makefile src/compat/Makefile src/openvpn/Makefile src/openvpnserv/Makefile src/plugins/Makefile src/plugins/auth-pam/Makefile src/plugins/down-root/Makefile tests/Makefile sample/Makefile doc/Makefile"
16843 ac_config_files
="$ac_config_files tests/t_client.sh"
16845 cat >confcache
<<\_ACEOF
16846 # This file is a shell script that caches the results of configure
16847 # tests run on this system so they can be shared between configure
16848 # scripts and configure runs, see configure's option --config-cache.
16849 # It is not useful on other systems. If it contains results you don't
16850 # want to keep, you may remove or edit it.
16852 # config.status only pays attention to the cache file if you give it
16853 # the --recheck option to rerun configure.
16855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16857 # following values.
16861 # The following way of writing the cache mishandles newlines in values,
16862 # but we know of no workaround that is simple, portable, and efficient.
16863 # So, we kill variables containing newlines.
16864 # Ultrix sh set writes to stderr and can't be redirected directly,
16865 # and sets the high bit in the cache file unless we assign to the vars.
16867 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16868 eval ac_val
=\$
$ac_var
16872 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16876 _ | IFS | as_nl
) ;; #(
16877 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16878 *) { eval $ac_var=; unset $ac_var;} ;;
16884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16885 *${as_nl}ac_space
=\
*)
16886 # `set' does not quote correctly, so add quotes: double-quote
16887 # substitution turns \\\\ into \\, and sed turns \\ into \.
16890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16893 # `set' quotes correctly as required by POSIX, so do not add quotes.
16894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16907 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16908 if test -w "$cache_file"; then
16909 if test "x$cache_file" != "x/dev/null"; then
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16911 $as_echo "$as_me: updating cache $cache_file" >&6;}
16912 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16913 cat confcache
>"$cache_file"
16915 case $cache_file in #(
16917 mv -f confcache
"$cache_file"$$
&&
16918 mv -f "$cache_file"$$
"$cache_file" ;; #(
16920 mv -f confcache
"$cache_file" ;;
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16926 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16931 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16932 # Let make expand exec_prefix.
16933 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16935 DEFS
=-DHAVE_CONFIG_H
16940 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16941 # 1. Remove the extension, and $U if already installed.
16942 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16943 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16944 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16945 # will be set to the directory where LIBOBJS objects are built.
16946 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16947 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16949 LIBOBJS
=$ac_libobjs
16951 LTLIBOBJS
=$ac_ltlibobjs
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16955 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16956 if test -n "$am_sleep_pid"; then
16957 # Hide warnings about reused PIDs.
16958 wait $am_sleep_pid 2>/dev
/null
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16961 $as_echo "done" >&6; }
16962 if test -n "$EXEEXT"; then
16964 am__EXEEXT_FALSE
='#'
16966 am__EXEEXT_TRUE
='#'
16970 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16971 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16975 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16978 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
16979 as_fn_error $?
"conditional \"WIN32\" was never defined.
16980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16982 if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
16983 as_fn_error $?
"conditional \"GIT_CHECKOUT\" was never defined.
16984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16986 if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
16987 as_fn_error $?
"conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
16988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16990 if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
16991 as_fn_error $?
"conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
16992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16995 : "${CONFIG_STATUS=./config.status}"
16997 ac_clean_files_save
=$ac_clean_files
16998 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17000 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17002 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17004 # Generated by $as_me.
17005 # Run this file to recreate the current configuration.
17006 # Compiler output produced by configure, useful for debugging
17007 # configure, is in config.log if it exists.
17010 ac_cs_recheck=false
17013 SHELL=\${CONFIG_SHELL-$SHELL}
17016 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17017 ## -------------------- ##
17018 ## M4sh Initialization. ##
17019 ## -------------------- ##
17021 # Be more Bourne compatible
17022 DUALCASE
=1; export DUALCASE
# for MKS sh
17023 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17027 # is contrary to our usage. Disable this feature.
17028 alias -g '${1+"$@"}'='"$@"'
17029 setopt NO_GLOB_SUBST
17031 case `(set -o) 2>/dev/null` in #(
17043 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17044 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17047 # Prefer a ksh shell builtin over an external printf program on Solaris,
17048 # but without wasting forks for bash or zsh.
17049 if test -z "$BASH_VERSION$ZSH_VERSION" \
17050 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17051 as_echo='print
-r --'
17052 as_echo_n='print
-rn --'
17053 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17054 as_echo='printf %s
\n'
17055 as_echo_n='printf %s
'
17057 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17058 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17059 as_echo_n='/usr
/ucb
/echo -n'
17061 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17062 as_echo_n_body='eval
17066 expr "X$arg" : "X\\(.*\\)$as_nl";
17067 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17069 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17071 export as_echo_n_body
17072 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17074 export as_echo_body
17075 as_echo='sh
-c $as_echo_body as_echo
'
17078 # The user is always right.
17079 if test "${PATH_SEPARATOR+set}" != set; then
17081 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17082 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17089 # We need space, tab and new line, in precisely that order. Quoting is
17090 # there to prevent editors from complaining about space-tab.
17091 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17092 # splitting by setting IFS to empty value.)
17095 # Find who we are. Look in the path if we contain no directory separator.
17098 *[\\/]* ) as_myself=$0 ;;
17099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17100 for as_dir in $PATH
17103 test -z "$as_dir" && as_dir=.
17104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17110 # We did not find ourselves, most probably we were run as `sh COMMAND'
17111 # in which case we are not to be found in the path.
17112 if test "x$as_myself" = x
; then
17115 if test ! -f "$as_myself"; then
17116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17120 # Unset variables that we do not need and which cause bugs (e.g. in
17121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17122 # suppresses any "Segmentation fault" message there. '((' could
17123 # trigger a bug in pdksh 5.2.14.
17124 for as_var
in BASH_ENV ENV MAIL MAILPATH
17125 do eval test x\
${$as_var+set} = xset \
17126 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17139 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17142 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17143 # ----------------------------------------
17144 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17145 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17146 # script with STATUS, using 1 if that was 0.
17149 as_status
=$1; test $as_status -eq 0 && as_status
=1
17151 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17152 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17154 $as_echo "$as_me: error: $2" >&2
17155 as_fn_exit
$as_status
17159 # as_fn_set_status STATUS
17160 # -----------------------
17161 # Set $? to STATUS, without forking.
17162 as_fn_set_status
()
17165 } # as_fn_set_status
17167 # as_fn_exit STATUS
17168 # -----------------
17169 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17173 as_fn_set_status
$1
17177 # as_fn_unset ax_cv_socklen_t_equiv
17178 # ---------------------------------
17179 # Portably unset VAR.
17182 { eval $1=; unset $1;}
17184 as_unset
=as_fn_unset
17185 # as_fn_append ax_cv_socklen_t_equiv VALUE
17186 # ----------------------------------------
17187 # Append the text in VALUE to the end of the definition contained in VAR. Take
17188 # advantage of any shell optimizations that allow amortized linear growth over
17189 # repeated appends, instead of the typical quadratic growth present in naive
17191 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17192 eval 'as_fn_append ()
17203 # as_fn_arith ARG...
17204 # ------------------
17205 # Perform arithmetic evaluation on the ARGs, and store the result in the
17206 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17207 # must be portable across $(()) and expr.
17208 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17209 eval 'as_fn_arith ()
17216 as_val
=`expr "$@" || test $? -eq 1`
17221 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17222 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17228 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17229 as_basename
=basename
17234 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17240 as_me
=`$as_basename -- "$0" ||
17241 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17242 X"$0" : 'X\(//\)$' \| \
17243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17245 sed '/^.*\/\([^/][^/]*\)\/*$/{
17259 # Avoid depending upon Character Ranges.
17260 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17261 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17262 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17263 as_cr_digits
='0123456789'
17264 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17266 ECHO_C
= ECHO_N
= ECHO_T
=
17267 case `echo -n x` in #(((((
17269 case `echo 'xy\c'` in
17270 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17272 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17279 rm -f conf$$ conf$$.exe conf$$.
file
17280 if test -d conf$$.dir
; then
17281 rm -f conf$$.dir
/conf$$.
file
17284 mkdir conf$$.dir
2>/dev
/null
17286 if (echo >conf$$.
file) 2>/dev
/null
; then
17287 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17289 # ... but there are two gotchas:
17290 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17291 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17292 # In both cases, we have to default to `cp -pR'.
17293 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17295 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17303 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17304 rmdir conf$$.dir
2>/dev
/null
17309 # Create "$as_dir" as a directory, including parents if necessary.
17314 -*) as_dir
=.
/$as_dir;;
17316 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17320 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17321 *) as_qdir
=$as_dir;;
17323 as_dirs
="'$as_qdir' $as_dirs"
17324 as_dir
=`$as_dirname -- "$as_dir" ||
17325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17326 X"$as_dir" : 'X\(//\)[^/]' \| \
17327 X"$as_dir" : 'X\(//\)$' \| \
17328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17329 $as_echo X"$as_dir" |
17330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17334 /^X\(\/\/\)[^/].*/{
17347 test -d "$as_dir" && break
17349 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17350 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17354 if mkdir
-p .
2>/dev
/null
; then
17355 as_mkdir_p
='mkdir -p "$as_dir"'
17357 test -d .
/-p && rmdir .
/-p
17362 # as_fn_executable_p FILE
17363 # -----------------------
17364 # Test if FILE is an executable regular file.
17365 as_fn_executable_p
()
17367 test -f "$1" && test -x "$1"
17368 } # as_fn_executable_p
17369 as_test_x
='test -x'
17370 as_executable_p
=as_fn_executable_p
17372 # Sed expression to map a string onto a valid CPP name.
17373 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17375 # Sed expression to map a string onto a valid variable name.
17376 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17380 ## ----------------------------------- ##
17381 ## Main body of $CONFIG_STATUS script. ##
17382 ## ----------------------------------- ##
17384 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17387 # Save the log message, to keep $0 and so on meaningful, and to
17388 # report actual input values of CONFIG_FILES etc. instead of their
17389 # values after options handling.
17391 This file was extended by OpenVPN $as_me 2.3.6, which was
17392 generated by GNU Autoconf 2.69. Invocation command line was
17394 CONFIG_FILES = $CONFIG_FILES
17395 CONFIG_HEADERS = $CONFIG_HEADERS
17396 CONFIG_LINKS = $CONFIG_LINKS
17397 CONFIG_COMMANDS = $CONFIG_COMMANDS
17400 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17405 case $ac_config_files in *"
17406 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17409 case $ac_config_headers in *"
17410 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17415 # Files that config.status was made for.
17416 config_files="$ac_config_files"
17417 config_headers="$ac_config_headers"
17418 config_commands="$ac_config_commands"
17422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17424 \`$as_me' instantiates files and other configuration actions
17425 from templates according to the current configuration. Unless the files
17426 and actions are specified as TAGs, all are instantiated by default.
17428 Usage: $0 [OPTION]... [TAG]...
17430 -h, --help print this help, then exit
17431 -V, --version print version number and configuration settings, then exit
17432 --config print configuration, then exit
17433 -q, --quiet, --silent
17434 do not print progress messages
17435 -d, --debug don't remove temporary files
17436 --recheck update $as_me by reconfiguring in the same conditions
17437 --file=FILE[:TEMPLATE]
17438 instantiate the configuration file FILE
17439 --header=FILE[:TEMPLATE]
17440 instantiate the configuration header FILE
17442 Configuration files:
17445 Configuration headers:
17448 Configuration commands:
17451 Report bugs to <openvpn-users@lists.sourceforge.net>."
17454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17455 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17457 OpenVPN config.status 2.3.6
17458 configured by $0, generated by GNU Autoconf 2.69,
17459 with options \\"\$ac_cs_config\\"
17461 Copyright (C) 2012 Free Software Foundation, Inc.
17462 This config.status script is free software; the Free Software Foundation
17463 gives unlimited permission to copy, distribute and modify it."
17470 test -n "\$AWK" || AWK=awk
17473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17474 # The default lists apply if the user does not specify any file.
17480 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17481 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17485 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17497 # Handling of the options.
17498 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17500 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17501 $as_echo "$ac_cs_version"; exit ;;
17502 --config |
--confi |
--conf |
--con |
--co |
--c )
17503 $as_echo "$ac_cs_config"; exit ;;
17504 --debug |
--debu |
--deb |
--de |
--d |
-d )
17506 --file |
--fil |
--fi |
--f )
17509 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17510 '') as_fn_error $?
"missing file argument" ;;
17512 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17513 ac_need_defaults
=false
;;
17514 --header |
--heade |
--head |
--hea )
17517 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17519 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17520 ac_need_defaults
=false
;;
17522 # Conflict between --help and --header
17523 as_fn_error $?
"ambiguous option: \`$1'
17524 Try \`$0 --help' for more information.";;
17525 --help |
--hel |
-h )
17526 $as_echo "$ac_cs_usage"; exit ;;
17527 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17528 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17531 # This is an error.
17532 -*) as_fn_error $?
"unrecognized option: \`$1'
17533 Try \`$0 --help' for more information." ;;
17535 *) as_fn_append ac_config_targets
" $1"
17536 ac_need_defaults
=false
;;
17542 ac_configure_extra_args
=
17544 if $ac_cs_silent; then
17546 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17551 if \$ac_cs_recheck; then
17552 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17555 CONFIG_SHELL='$SHELL'
17556 export CONFIG_SHELL
17561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17566 ## Running $as_me. ##
17572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17576 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17579 # The HP-UX ksh and POSIX shell print the target directory to stdout
17580 # if CDPATH is set.
17581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17583 sed_quote_subst='$sed_quote_subst'
17584 double_quote_subst='$double_quote_subst'
17585 delay_variable_subst='$delay_variable_subst'
17586 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17587 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17588 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17589 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17590 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17591 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17592 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17593 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17594 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17595 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17596 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17597 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17598 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17599 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17600 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17601 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17602 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17603 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17604 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17605 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17606 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17607 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17608 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17609 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17610 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17611 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17612 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17613 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17614 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17615 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17616 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17617 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17618 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17619 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17620 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17621 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17622 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17623 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17624 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17625 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17626 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17627 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17628 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17629 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17630 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17631 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17632 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17633 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17634 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17635 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17636 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17637 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17638 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17639 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17640 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17641 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17642 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17643 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17644 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17645 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17646 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17647 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17648 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17649 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17650 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17651 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17652 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17653 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17654 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17655 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17656 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17657 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17658 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17659 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17660 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17661 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17662 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17663 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17664 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17665 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17666 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17667 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17668 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17669 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17670 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17671 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17672 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17673 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17674 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17675 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17676 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17677 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17678 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17679 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17680 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17681 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17682 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17683 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17684 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17685 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17686 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17687 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17688 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17689 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17690 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17691 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17692 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17693 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17694 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17695 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17696 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17697 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17698 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17699 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17700 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17701 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17702 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17703 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17704 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17705 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17706 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17707 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17708 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17709 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17710 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17711 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17712 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17713 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17714 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17715 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17716 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17717 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17718 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17719 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17720 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17721 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17722 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17723 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17724 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17725 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17726 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17727 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17728 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17729 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17730 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17731 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17732 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17733 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17734 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17735 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17736 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17737 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17738 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17739 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17740 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17741 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17742 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17743 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17744 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17745 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17746 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17747 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17748 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17749 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17750 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17751 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17752 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17753 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17754 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17755 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17756 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17757 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17758 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17761 LTCFLAGS='$LTCFLAGS'
17762 compiler='$compiler_DEFAULT'
17764 # A function that is used when there is no print builtin or printf.
17765 func_fallback_echo ()
17767 eval 'cat <<_LTECHO_EOF
17772 # Quote evaled strings.
17789 deplibs_check_method \
17793 sharedlib_from_linklib_cmd \
17796 archiver_list_spec \
17802 lt_cv_sys_global_symbol_pipe \
17803 lt_cv_sys_global_symbol_to_cdecl \
17804 lt_cv_sys_global_symbol_to_c_name_address \
17805 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17806 nm_file_list_spec \
17807 lt_prog_compiler_no_builtin_flag \
17808 lt_prog_compiler_pic \
17809 lt_prog_compiler_wl \
17810 lt_prog_compiler_static \
17811 lt_cv_prog_compiler_c_o \
17820 export_dynamic_flag_spec \
17821 whole_archive_flag_spec \
17822 compiler_needs_object \
17824 allow_undefined_flag \
17825 no_undefined_flag \
17826 hardcode_libdir_flag_spec \
17827 hardcode_libdir_separator \
17831 variables_saved_for_relink \
17833 library_names_spec \
17835 install_override_mode \
17842 lt_prog_compiler_no_builtin_flag_RC \
17843 lt_prog_compiler_pic_RC \
17844 lt_prog_compiler_wl_RC \
17845 lt_prog_compiler_static_RC \
17846 lt_cv_prog_compiler_c_o_RC \
17847 export_dynamic_flag_spec_RC \
17848 whole_archive_flag_spec_RC \
17849 compiler_needs_object_RC \
17851 allow_undefined_flag_RC \
17852 no_undefined_flag_RC \
17853 hardcode_libdir_flag_spec_RC \
17854 hardcode_libdir_separator_RC \
17855 exclude_expsyms_RC \
17856 include_expsyms_RC \
17857 file_list_spec_RC; do
17858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17859 *[\\\\\\\`\\"\\\$]*)
17860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17868 # Double-quote double-evaled strings.
17869 for var in reload_cmds \
17870 old_postinstall_cmds \
17871 old_postuninstall_cmds \
17873 extract_expsyms_cmds \
17874 old_archive_from_new_cmds \
17875 old_archive_from_expsyms_cmds \
17877 archive_expsym_cmds \
17879 module_expsym_cmds \
17880 export_symbols_cmds \
17884 postuninstall_cmds \
17886 sys_lib_search_path_spec \
17887 sys_lib_dlsearch_path_spec \
17889 old_archive_cmds_RC \
17890 old_archive_from_new_cmds_RC \
17891 old_archive_from_expsyms_cmds_RC \
17893 archive_expsym_cmds_RC \
17895 module_expsym_cmds_RC \
17896 export_symbols_cmds_RC \
17898 postlink_cmds_RC; do
17899 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17900 *[\\\\\\\`\\"\\\$]*)
17901 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17904 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17909 ac_aux_dir='$ac_aux_dir'
17910 xsi_shell='$xsi_shell'
17911 lt_shell_append='$lt_shell_append'
17913 # See if we are running on zsh, and set the options which allow our
17914 # commands through without removal of \ escapes INIT.
17915 if test -n "\${ZSH_VERSION+set}" ; then
17916 setopt NO_GLOB_SUBST
17922 TIMESTAMP='$TIMESTAMP'
17933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17935 # Handling of arguments.
17936 for ac_config_target
in $ac_config_targets
17938 case $ac_config_target in
17939 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17940 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17941 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17942 "version.sh") CONFIG_FILES
="$CONFIG_FILES version.sh" ;;
17943 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17944 "build/Makefile") CONFIG_FILES
="$CONFIG_FILES build/Makefile" ;;
17945 "build/msvc/Makefile") CONFIG_FILES
="$CONFIG_FILES build/msvc/Makefile" ;;
17946 "build/msvc/msvc-generate/Makefile") CONFIG_FILES
="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
17947 "distro/Makefile") CONFIG_FILES
="$CONFIG_FILES distro/Makefile" ;;
17948 "distro/rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES distro/rpm/Makefile" ;;
17949 "distro/rpm/openvpn.spec") CONFIG_FILES
="$CONFIG_FILES distro/rpm/openvpn.spec" ;;
17950 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
17951 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
17952 "src/compat/Makefile") CONFIG_FILES
="$CONFIG_FILES src/compat/Makefile" ;;
17953 "src/openvpn/Makefile") CONFIG_FILES
="$CONFIG_FILES src/openvpn/Makefile" ;;
17954 "src/openvpnserv/Makefile") CONFIG_FILES
="$CONFIG_FILES src/openvpnserv/Makefile" ;;
17955 "src/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/Makefile" ;;
17956 "src/plugins/auth-pam/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
17957 "src/plugins/down-root/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
17958 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
17959 "sample/Makefile") CONFIG_FILES
="$CONFIG_FILES sample/Makefile" ;;
17960 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17961 "tests/t_client.sh") CONFIG_FILES
="$CONFIG_FILES tests/t_client.sh" ;;
17963 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17968 # If the user did not use the arguments to specify the items to instantiate,
17969 # then the envvar interface is used. Set only those that are not.
17970 # We use the long form for the default assignment because of an extremely
17971 # bizarre bug on SunOS 4.1.3.
17972 if $ac_need_defaults; then
17973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17978 # Have a temporary directory for convenience. Make it in the build tree
17979 # simply because there is no reason against having it here, and in addition,
17980 # creating and moving files from /tmp can sometimes cause problems.
17981 # Hook for its removal unless debugging.
17982 # Note that there is a small window in which the directory will not be cleaned:
17983 # after its creation but before its name has been assigned to `$tmp'.
17987 trap 'exit_status=$?
17988 : "${ac_tmp:=$tmp}"
17989 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17991 trap 'as_fn_exit 1' 1 2 13 15
17993 # Create a (secure) tmp directory for tmp files.
17996 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18000 tmp
=.
/conf$$
-$RANDOM
18001 (umask 077 && mkdir
"$tmp")
18002 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18005 # Set up the scripts for CONFIG_FILES section.
18006 # No need to generate them if there are no CONFIG_FILES.
18007 # This happens for instance with `./config.status config.h'.
18008 if test -n "$CONFIG_FILES"; then
18011 ac_cr
=`echo X | tr X '\015'`
18012 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18013 # But we know of no other shell where ac_cr would be empty at this
18014 # point, so we can use a bashism as a fallback.
18015 if test "x$ac_cr" = x
; then
18016 eval ac_cr
=\$
\'\\r
\'
18018 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18019 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18022 ac_cs_awk_cr
=$ac_cr
18025 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18030 echo "cat >conf$$subs.awk <<_ACEOF" &&
18031 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18033 } >conf$$subs.sh ||
18034 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18035 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18037 for ac_last_try in false false false false false :; do
18038 . ./conf$$subs.sh ||
18039 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18041 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18042 if test $ac_delim_n = $ac_delim_num; then
18044 elif $ac_last_try; then
18045 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18047 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18050 rm -f conf$$subs.sh
18052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18057 s/^/S["/; s
/!.
*/"]=/
18067 s/\(.\{148\}\)..*/\1/
18069 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18074 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18081 s/\(.\{148\}\)..*/\1/
18083 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18087 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18092 ' <conf$$subs.awk | sed '
18097 ' >>$CONFIG_STATUS || ac_write_fail=1
18098 rm -f conf$$subs.awk
18099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18101 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18102 for (key in S) S_is_set[key] = 1
18108 nfields = split(line, field, "@
")
18110 len = length(field[1])
18111 for (i = 2; i < nfields; i++) {
18113 keylen = length(key)
18114 if (S_is_set[key]) {
18116 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18117 len += length(value) + length(field[++i])
18128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18129 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18130 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18133 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18134 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18137 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18138 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18139 # trailing colons and then remove the whole line if VPATH becomes empty
18140 # (actually we leave an empty line to preserve line numbers).
18141 if test "x
$srcdir" = x.; then
18142 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18161 fi # test -n "$CONFIG_FILES"
18163 # Set up the scripts for CONFIG_HEADERS section.
18164 # No need to generate them if there are no CONFIG_HEADERS.
18165 # This happens for instance with `./config.status Makefile'.
18166 if test -n "$CONFIG_HEADERS"; then
18167 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18171 # Transform confdefs.h into an awk script `defines.awk', embedded as
18172 # here-document in config.status, that substitutes the proper values into
18173 # config.h.in to produce config.h.
18175 # Create a delimiter string that does not exist in confdefs.h, to ease
18176 # handling of long lines.
18178 for ac_last_try in false false :; do
18179 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18180 if test -z "$ac_tt"; then
18182 elif $ac_last_try; then
18183 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18185 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18189 # For the awk script, D is an array of macro values keyed by name,
18190 # likewise P contains macro parameters if any. Preserve backslash
18191 # newline sequences.
18193 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18195 s/.\{148\}/&'"$ac_delim"'/g
18198 s/^[ ]*#[ ]*define[ ][ ]*/ /
18205 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18207 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18211 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18212 D["\
1"]=" \
3\\\\\\n
"\\/p
18214 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18219 s/.\{148\}/&'"$ac_delim"'/g
18224 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18227 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18229 ' <confdefs.h | sed '
18230 s/'"$ac_delim"'/"\\\
18231 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18234 for (key in D) D_is_set[key] = 1
18237 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18239 split(line, arg, " ")
18240 if (arg[1] == "#") {
18244 defundef
= substr
(arg
[1], 2)
18247 split(mac1
, mac2
, "(") #)
18249 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18250 if (D_is_set
[macro
]) {
18251 # Preserve the white space surrounding the "#".
18252 print prefix
"define", macro P
[macro
] D
[macro
]
18255 # Replace #undef with comments. This is necessary, for example,
18256 # in the case of _POSIX_SOURCE, which is predefined and required
18257 # on some systems where configure will not decide to define it.
18258 if (defundef
== "undef") {
18259 print
"/*", prefix defundef
, macro
, "*/"
18267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18268 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18269 fi # test -n "$CONFIG_HEADERS"
18272 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18277 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18279 case $ac_mode$ac_tag in
18281 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18282 :[FH
]-) ac_tag
=-:-;;
18283 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18300 -) ac_f
="$ac_tmp/stdin";;
18301 *) # Look for the file first in the build tree, then in the source tree
18302 # (if the path is not absolute). The absolute path cannot be DOS-style,
18303 # because $ac_f cannot contain `:'.
18307 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18309 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18311 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18312 as_fn_append ac_file_inputs
" '$ac_f'"
18315 # Let's still pretend it is `configure' which instantiates (i.e., don't
18316 # use $as_me), people would be surprised to read:
18317 # /* config.h. Generated by config.status. */
18318 configure_input
='Generated from '`
18319 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18321 if test x
"$ac_file" != x-
; then
18322 configure_input
="$ac_file. $configure_input"
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18324 $as_echo "$as_me: creating $ac_file" >&6;}
18326 # Neutralize special characters interpreted by sed in replacement strings.
18327 case $configure_input in #(
18328 *\
&* |
*\|
* |
*\\* )
18329 ac_sed_conf_input
=`$as_echo "$configure_input" |
18330 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18331 *) ac_sed_conf_input
=$configure_input;;
18335 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18336 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18341 ac_dir
=`$as_dirname -- "$ac_file" ||
18342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18343 X"$ac_file" : 'X\(//\)[^/]' \| \
18344 X"$ac_file" : 'X\(//\)$' \| \
18345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18346 $as_echo X"$ac_file" |
18347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18351 /^X\(\/\/\)[^/].*/{
18364 as_dir
="$ac_dir"; as_fn_mkdir_p
18368 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18370 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18371 # A ".." for each directory in $ac_dir_suffix.
18372 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18373 case $ac_top_builddir_sub in
18374 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18375 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18378 ac_abs_top_builddir
=$ac_pwd
18379 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18380 # for backward compatibility:
18381 ac_top_builddir
=$ac_top_build_prefix
18384 .
) # We are building in place.
18386 ac_top_srcdir
=$ac_top_builddir_sub
18387 ac_abs_top_srcdir
=$ac_pwd ;;
18388 [\\/]* | ?
:[\\/]* ) # Absolute name.
18389 ac_srcdir
=$srcdir$ac_dir_suffix;
18390 ac_top_srcdir
=$srcdir
18391 ac_abs_top_srcdir
=$srcdir ;;
18392 *) # Relative name.
18393 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18394 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18395 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18397 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18407 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18408 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18410 ac_MKDIR_P
=$MKDIR_P
18412 [\\/$
]* | ?
:[\\/]* ) ;;
18413 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18418 # If the template does not know about datarootdir, expand it.
18419 # FIXME: This hack should be removed a few years after 2.60.
18420 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18431 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18432 *datarootdir
*) ac_datarootdir_seen
=yes;;
18433 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18435 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18438 ac_datarootdir_hack='
18439 s&@datadir@&$datadir&g
18440 s&@docdir@&$docdir&g
18441 s&@infodir@&$infodir&g
18442 s&@localedir@&$localedir&g
18443 s&@mandir@&$mandir&g
18444 s&\\\${datarootdir}&$datarootdir&g' ;;
18448 # Neutralize VPATH when `$srcdir' = `.'.
18449 # Shell code in configure.ac might set extrasub.
18450 # FIXME: do we really want to maintain this feature?
18451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18452 ac_sed_extra="$ac_vpsub
18455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18457 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18458 s|@configure_input@|
$ac_sed_conf_input|
;t t
18459 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18460 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18461 s
&@srcdir@
&$ac_srcdir&;t t
18462 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18463 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18464 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18465 s
&@builddir@
&$ac_builddir&;t t
18466 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18467 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18468 s
&@INSTALL@
&$ac_INSTALL&;t t
18469 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18470 $ac_datarootdir_hack
18472 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18473 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18475 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18476 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18477 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18478 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18480 which seems to be undefined. Please make sure it is defined" >&5
18481 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18482 which seems to be undefined. Please make sure it is defined" >&2;}
18484 rm -f "$ac_tmp/stdin"
18486 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18487 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18495 if test x"$ac_file" != x-; then
18497 $as_echo "/* $configure_input */" \
18498 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18499 } >"$ac_tmp/config.h" \
18500 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18501 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18503 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18506 mv "$ac_tmp/config.h" "$ac_file" \
18507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18510 $as_echo "/* $configure_input */" \
18511 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18512 || as_fn_error $? "could not create -" "$LINENO" 5
18514 # Compute "$ac_file"'s index
in $config_headers.
18517 for _am_header
in $config_headers :; do
18518 case $_am_header in
18519 $_am_arg |
$_am_arg:* )
18522 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18525 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18526 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18527 X"$_am_arg" : 'X\(//\)[^/]' \| \
18528 X"$_am_arg" : 'X\(//\)$' \| \
18529 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18530 $as_echo X"$_am_arg" |
18531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18535 /^X\(\/\/\)[^/].*/{
18547 s/.*/./; q'`/stamp-h
$_am_stamp_count
18550 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18551 $as_echo "$as_me: executing $ac_file commands" >&6;}
18556 case $ac_file$ac_mode in
18557 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18558 # Older Autoconf quotes --file arguments for eval, but not when files
18559 # are listed without --file. Let's play safe and only enable the eval
18560 # if we detect the quoting.
18561 case $CONFIG_FILES in
18562 *\'*) eval set x
"$CONFIG_FILES" ;;
18563 *) set x
$CONFIG_FILES ;;
18568 # Strip MF so we end up with the name of the file.
18569 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18570 # Check whether this is an Automake generated Makefile or not.
18571 # We used to match only the files named 'Makefile.in', but
18572 # some people rename them; so instead we look at the file content.
18573 # Grep'ing the first line is not enough: some people post-process
18574 # each Makefile.in and add a new line on top of each file to say so.
18575 # Grep'ing the whole file is not good either: AIX grep has a line
18576 # limit of 2048, but all sed's we know have understand at least 4000.
18577 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18578 dirpart
=`$as_dirname -- "$mf" ||
18579 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18580 X"$mf" : 'X\(//\)[^/]' \| \
18581 X"$mf" : 'X\(//\)$' \| \
18582 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18588 /^X\(\/\/\)[^/].*/{
18604 # Extract the definition of DEPDIR, am__include, and am__quote
18605 # from the Makefile without running 'make'.
18606 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18607 test -z "$DEPDIR" && continue
18608 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18609 test -z "$am__include" && continue
18610 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18611 # Find all dependency output files, they are included files with
18612 # $(DEPDIR) in their names. We invoke sed twice because it is the
18613 # simplest approach to changing $(DEPDIR) to its actual value in the
18615 for file in `sed -n "
18616 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18617 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18618 # Make sure the directory exists.
18619 test -f "$dirpart/$file" && continue
18620 fdir
=`$as_dirname -- "$file" ||
18621 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18622 X"$file" : 'X\(//\)[^/]' \| \
18623 X"$file" : 'X\(//\)$' \| \
18624 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18625 $as_echo X"$file" |
18626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18630 /^X\(\/\/\)[^/].*/{
18643 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18644 # echo "creating $dirpart/$file"
18645 echo '# dummy' > "$dirpart/$file"
18652 # See if we are running on zsh, and set the options which allow our
18653 # commands through without removal of \ escapes.
18654 if test -n "${ZSH_VERSION+set}" ; then
18655 setopt NO_GLOB_SUBST
18658 cfgfile
="${ofile}T"
18659 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18662 cat <<_LT_EOF >> "$cfgfile"
18665 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18666 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18670 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18671 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18673 # Written by Gordon Matzigkeit, 1996
18675 # This file is part of GNU Libtool.
18677 # GNU Libtool is free software; you can redistribute it and/or
18678 # modify it under the terms of the GNU General Public License as
18679 # published by the Free Software Foundation; either version 2 of
18680 # the License, or (at your option) any later version.
18682 # As a special exception to the GNU General Public License,
18683 # if you distribute this file as part of a program or library that
18684 # is built using GNU Libtool, you may include this file under the
18685 # same distribution terms that you use for the rest of that program.
18687 # GNU Libtool is distributed in the hope that it will be useful,
18688 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18689 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18690 # GNU General Public License for more details.
18692 # You should have received a copy of the GNU General Public License
18693 # along with GNU Libtool; see the file COPYING. If not, a copy
18694 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18695 # obtained by writing to the Free Software Foundation, Inc.,
18696 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18699 # The names of the tagged configurations supported by this script.
18700 available_tags="RC "
18702 # ### BEGIN LIBTOOL CONFIG
18704 # Which release of libtool.m4 was used?
18705 macro_version=$macro_version
18706 macro_revision=$macro_revision
18708 # Assembler program.
18711 # DLL creation program.
18712 DLLTOOL=$lt_DLLTOOL
18714 # Object dumper program.
18715 OBJDUMP=$lt_OBJDUMP
18717 # Whether or not to build shared libraries.
18718 build_libtool_libs=$enable_shared
18720 # Whether or not to build static libraries.
18721 build_old_libs=$enable_static
18723 # What type of objects to build.
18726 # Whether or not to optimize for fast installation.
18727 fast_install=$enable_fast_install
18729 # Shell to use when invoking shell scripts.
18732 # An echo program that protects backslashes.
18735 # The PATH separator for the build system.
18736 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18739 host_alias=$host_alias
18743 # The build system.
18744 build_alias=$build_alias
18748 # A sed program that does not truncate output.
18751 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18752 Xsed="\$SED -e 1s/^X//"
18754 # A grep program that handles long lines.
18760 # A literal string matcher.
18763 # A BSD- or MS-compatible name lister.
18766 # Whether we need soft or hard links.
18769 # What is the maximum length of a command?
18770 max_cmd_len=$max_cmd_len
18772 # Object file suffix (normally "o").
18775 # Executable file suffix (normally "").
18778 # whether the shell understands "unset".
18781 # turn spaces into newlines.
18784 # turn newlines into spaces.
18787 # convert \$build file names to \$host format.
18788 to_host_file_cmd=$lt_cv_to_host_file_cmd
18790 # convert \$build files to toolchain format.
18791 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18793 # Method to check whether dependent libraries are shared objects.
18794 deplibs_check_method=$lt_deplibs_check_method
18796 # Command to use when deplibs_check_method = "file_magic".
18797 file_magic_cmd=$lt_file_magic_cmd
18799 # How to find potential files when deplibs_check_method = "file_magic".
18800 file_magic_glob=$lt_file_magic_glob
18802 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18803 want_nocaseglob=$lt_want_nocaseglob
18805 # Command to associate shared and link libraries.
18806 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18811 # Flags to create an archive.
18812 AR_FLAGS=$lt_AR_FLAGS
18814 # How to feed a file listing to the archiver.
18815 archiver_list_spec=$lt_archiver_list_spec
18817 # A symbol stripping program.
18820 # Commands used to install an old-style archive.
18822 old_postinstall_cmds=$lt_old_postinstall_cmds
18823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18825 # Whether to use a lock for old archive extraction.
18826 lock_old_archive_extraction=$lock_old_archive_extraction
18831 # LTCC compiler flags.
18832 LTCFLAGS=$lt_CFLAGS
18834 # Take the output of nm and produce a listing of raw symbols and C names.
18835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18837 # Transform the output of nm in a proper C declaration.
18838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18840 # Transform the output of nm in a C name address pair.
18841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18843 # Transform the output of nm in a C name address pair when lib prefix is needed.
18844 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18846 # Specify filename containing input files for \$NM.
18847 nm_file_list_spec=$lt_nm_file_list_spec
18849 # The root where to search for dependent libraries,and in which our libraries should be installed.
18850 lt_sysroot=$lt_sysroot
18852 # The name of the directory that contains temporary libtool files.
18855 # Used to examine libraries when file_magic_cmd begins with "file".
18856 MAGIC_CMD=$MAGIC_CMD
18858 # Must we lock files when doing compilation?
18859 need_locks=$lt_need_locks
18862 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18864 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18865 DSYMUTIL=$lt_DSYMUTIL
18867 # Tool to change global to local symbols on Mac OS X.
18870 # Tool to manipulate fat objects and archives on Mac OS X.
18873 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18876 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18877 OTOOL64=$lt_OTOOL64
18879 # Old archive suffix (normally "a").
18882 # Shared library suffix (normally ".so").
18883 shrext_cmds=$lt_shrext_cmds
18885 # The commands to extract the exported symbol list from a shared archive.
18886 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18888 # Variables whose values should be saved in libtool wrapper scripts and
18889 # restored at link time.
18890 variables_saved_for_relink=$lt_variables_saved_for_relink
18892 # Do we need the "lib" prefix for modules?
18893 need_lib_prefix=$need_lib_prefix
18895 # Do we need a version for libraries?
18896 need_version=$need_version
18898 # Library versioning type.
18899 version_type=$version_type
18901 # Shared library runtime path variable.
18902 runpath_var=$runpath_var
18904 # Shared library path variable.
18905 shlibpath_var=$shlibpath_var
18907 # Is shlibpath searched before the hard-coded library search path?
18908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18910 # Format of library name prefix.
18911 libname_spec=$lt_libname_spec
18913 # List of archive names. First name is the real one, the rest are links.
18914 # The last name is the one that the linker finds with -lNAME
18915 library_names_spec=$lt_library_names_spec
18917 # The coded name of the library, if different from the real name.
18918 soname_spec=$lt_soname_spec
18920 # Permission mode override for installation of shared libraries.
18921 install_override_mode=$lt_install_override_mode
18923 # Command to use after installation of a shared archive.
18924 postinstall_cmds=$lt_postinstall_cmds
18926 # Command to use after uninstallation of a shared archive.
18927 postuninstall_cmds=$lt_postuninstall_cmds
18929 # Commands used to finish a libtool library installation in a directory.
18930 finish_cmds=$lt_finish_cmds
18932 # As "finish_cmds", except a single script fragment to be evaled but
18934 finish_eval=$lt_finish_eval
18936 # Whether we should hardcode library paths into libraries.
18937 hardcode_into_libs=$hardcode_into_libs
18939 # Compile-time system search path for libraries.
18940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18942 # Run-time system search path for libraries.
18943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18945 # Whether dlopen is supported.
18946 dlopen_support=$enable_dlopen
18948 # Whether dlopen of programs is supported.
18949 dlopen_self=$enable_dlopen_self
18951 # Whether dlopen of statically linked programs is supported.
18952 dlopen_self_static=$enable_dlopen_self_static
18954 # Commands to strip libraries.
18955 old_striplib=$lt_old_striplib
18956 striplib=$lt_striplib
18959 # The linker used to build libraries.
18962 # How to create reloadable object files.
18963 reload_flag=$lt_reload_flag
18964 reload_cmds=$lt_reload_cmds
18966 # Commands used to build an old-style archive.
18967 old_archive_cmds=$lt_old_archive_cmds
18969 # A language specific compiler.
18972 # Is the compiler the GNU compiler?
18975 # Compiler flag to turn off builtin functions.
18976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18978 # Additional compiler flags for building library objects.
18979 pic_flag=$lt_lt_prog_compiler_pic
18981 # How to pass a linker flag through the compiler.
18982 wl=$lt_lt_prog_compiler_wl
18984 # Compiler flag to prevent dynamic linking.
18985 link_static_flag=$lt_lt_prog_compiler_static
18987 # Does compiler simultaneously support -c and -o options?
18988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18990 # Whether or not to add -lc for building shared libraries.
18991 build_libtool_need_lc=$archive_cmds_need_lc
18993 # Whether or not to disallow shared libs when runtime libs are static.
18994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18996 # Compiler flag to allow reflexive dlopens.
18997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18999 # Compiler flag to generate shared objects directly from archives.
19000 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19002 # Whether the compiler copes with passing no objects directly.
19003 compiler_needs_object=$lt_compiler_needs_object
19005 # Create an old-style archive from a shared archive.
19006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19008 # Create a temporary old-style archive to link instead of a shared archive.
19009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19011 # Commands used to build a shared archive.
19012 archive_cmds=$lt_archive_cmds
19013 archive_expsym_cmds=$lt_archive_expsym_cmds
19015 # Commands used to build a loadable module if different from building
19016 # a shared archive.
19017 module_cmds=$lt_module_cmds
19018 module_expsym_cmds=$lt_module_expsym_cmds
19020 # Whether we are building with GNU ld or not.
19021 with_gnu_ld=$lt_with_gnu_ld
19023 # Flag that allows shared libraries with undefined symbols to be built.
19024 allow_undefined_flag=$lt_allow_undefined_flag
19026 # Flag that enforces no undefined symbols.
19027 no_undefined_flag=$lt_no_undefined_flag
19029 # Flag to hardcode \$libdir into a binary during linking.
19030 # This must work even if \$libdir does not exist
19031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19033 # Whether we need a single "-rpath" flag with a separated argument.
19034 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19036 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19037 # DIR into the resulting binary.
19038 hardcode_direct=$hardcode_direct
19040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19041 # DIR into the resulting binary and the resulting library dependency is
19042 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19043 # library is relocated.
19044 hardcode_direct_absolute=$hardcode_direct_absolute
19046 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19047 # into the resulting binary.
19048 hardcode_minus_L=$hardcode_minus_L
19050 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19051 # into the resulting binary.
19052 hardcode_shlibpath_var=$hardcode_shlibpath_var
19054 # Set to "yes" if building a shared library automatically hardcodes DIR
19055 # into the library and all subsequent libraries and executables linked
19057 hardcode_automatic=$hardcode_automatic
19059 # Set to yes if linker adds runtime paths of dependent libraries
19060 # to runtime path list.
19061 inherit_rpath=$inherit_rpath
19063 # Whether libtool must link a program against all its dependency libraries.
19064 link_all_deplibs=$link_all_deplibs
19066 # Set to "yes" if exported symbols are required.
19067 always_export_symbols=$always_export_symbols
19069 # The commands to list exported symbols.
19070 export_symbols_cmds=$lt_export_symbols_cmds
19072 # Symbols that should not be listed in the preloaded symbols.
19073 exclude_expsyms=$lt_exclude_expsyms
19075 # Symbols that must always be exported.
19076 include_expsyms=$lt_include_expsyms
19078 # Commands necessary for linking programs (against libraries) with templates.
19079 prelink_cmds=$lt_prelink_cmds
19081 # Commands necessary for finishing linking programs.
19082 postlink_cmds=$lt_postlink_cmds
19084 # Specify filename containing input files.
19085 file_list_spec=$lt_file_list_spec
19087 # How to hardcode a shared library path into an executable.
19088 hardcode_action=$hardcode_action
19090 # ### END LIBTOOL CONFIG
19096 cat <<\_LT_EOF
>> "$cfgfile"
19097 # AIX sometimes has problems with the GCC collect2 program. For some
19098 # reason, if we set the COLLECT_NAMES environment variable, the problems
19099 # vanish in a puff of smoke.
19100 if test "X${COLLECT_NAMES+set}" != Xset
; then
19102 export COLLECT_NAMES
19109 ltmain
="$ac_aux_dir/ltmain.sh"
19112 # We use sed instead of cat because bash on DJGPP gets confused if
19113 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19114 # text mode, it properly converts lines to CR/LF. This bash problem
19115 # is reportedly fixed, but why not run on old versions too?
19116 sed '$q' "$ltmain" >> "$cfgfile" \
19117 ||
(rm -f "$cfgfile"; exit 1)
19119 if test x
"$xsi_shell" = xyes
; then
19120 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19124 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19125 \ * ) func_dirname_result="${3}" ;;\
19127 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19128 && mv -f "$cfgfile.tmp" "$cfgfile" \
19129 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19130 test 0 -eq $? || _lt_function_replace_fail
=:
19133 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19136 \ func_basename_result="${1##*/}"\
19137 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19138 && mv -f "$cfgfile.tmp" "$cfgfile" \
19139 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19140 test 0 -eq $? || _lt_function_replace_fail
=:
19143 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19144 func_dirname_and_basename ()\
19147 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19148 \ * ) func_dirname_result="${3}" ;;\
19150 \ func_basename_result="${1##*/}"\
19151 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19152 && mv -f "$cfgfile.tmp" "$cfgfile" \
19153 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19154 test 0 -eq $? || _lt_function_replace_fail
=:
19157 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19160 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19161 \ # positional parameters, so assign one to ordinary parameter first.\
19162 \ func_stripname_result=${3}\
19163 \ func_stripname_result=${func_stripname_result#"${1}"}\
19164 \ func_stripname_result=${func_stripname_result%"${2}"}\
19165 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19166 && mv -f "$cfgfile.tmp" "$cfgfile" \
19167 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19168 test 0 -eq $? || _lt_function_replace_fail
=:
19171 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19172 func_split_long_opt ()\
19174 \ func_split_long_opt_name=${1%%=*}\
19175 \ func_split_long_opt_arg=${1#*=}\
19176 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19177 && mv -f "$cfgfile.tmp" "$cfgfile" \
19178 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19179 test 0 -eq $? || _lt_function_replace_fail
=:
19182 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19183 func_split_short_opt ()\
19185 \ func_split_short_opt_arg=${1#??}\
19186 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19187 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19188 && mv -f "$cfgfile.tmp" "$cfgfile" \
19189 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19190 test 0 -eq $? || _lt_function_replace_fail
=:
19193 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19197 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19198 \ *) func_lo2o_result=${1} ;;\
19200 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19201 && mv -f "$cfgfile.tmp" "$cfgfile" \
19202 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19203 test 0 -eq $? || _lt_function_replace_fail
=:
19206 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19209 func_xform_result=${1%.*}.lo\
19210 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19211 && mv -f "$cfgfile.tmp" "$cfgfile" \
19212 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19213 test 0 -eq $? || _lt_function_replace_fail
=:
19216 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19219 func_arith_result=$(( $* ))\
19220 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19221 && mv -f "$cfgfile.tmp" "$cfgfile" \
19222 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19223 test 0 -eq $? || _lt_function_replace_fail
=:
19226 sed -e '/^func_len ()$/,/^} # func_len /c\
19229 func_len_result=${#1}\
19230 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19231 && mv -f "$cfgfile.tmp" "$cfgfile" \
19232 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19233 test 0 -eq $? || _lt_function_replace_fail
=:
19237 if test x
"$lt_shell_append" = xyes
; then
19238 sed -e '/^func_append ()$/,/^} # func_append /c\
19241 eval "${1}+=\\${2}"\
19242 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19243 && mv -f "$cfgfile.tmp" "$cfgfile" \
19244 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19245 test 0 -eq $? || _lt_function_replace_fail
=:
19248 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19249 func_append_quoted ()\
19251 \ func_quote_for_eval "${2}"\
19252 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19253 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19254 && mv -f "$cfgfile.tmp" "$cfgfile" \
19255 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19256 test 0 -eq $? || _lt_function_replace_fail
=:
19259 # Save a `func_append' function call where possible by direct use of '+='
19260 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19261 && mv -f "$cfgfile.tmp" "$cfgfile" \
19262 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19263 test 0 -eq $? || _lt_function_replace_fail
=:
19265 # Save a `func_append' function call even when '+=' is not available
19266 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19267 && mv -f "$cfgfile.tmp" "$cfgfile" \
19268 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19269 test 0 -eq $? || _lt_function_replace_fail
=:
19272 if test x
"$_lt_function_replace_fail" = x
":"; then
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19274 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19278 mv -f "$cfgfile" "$ofile" ||
19279 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19283 cat <<_LT_EOF >> "$ofile"
19285 # ### BEGIN LIBTOOL TAG CONFIG: RC
19287 # The linker used to build libraries.
19290 # How to create reloadable object files.
19291 reload_flag=$lt_reload_flag_RC
19292 reload_cmds=$lt_reload_cmds_RC
19294 # Commands used to build an old-style archive.
19295 old_archive_cmds=$lt_old_archive_cmds_RC
19297 # A language specific compiler.
19300 # Is the compiler the GNU compiler?
19303 # Compiler flag to turn off builtin functions.
19304 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19306 # Additional compiler flags for building library objects.
19307 pic_flag=$lt_lt_prog_compiler_pic_RC
19309 # How to pass a linker flag through the compiler.
19310 wl=$lt_lt_prog_compiler_wl_RC
19312 # Compiler flag to prevent dynamic linking.
19313 link_static_flag=$lt_lt_prog_compiler_static_RC
19315 # Does compiler simultaneously support -c and -o options?
19316 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19318 # Whether or not to add -lc for building shared libraries.
19319 build_libtool_need_lc=$archive_cmds_need_lc_RC
19321 # Whether or not to disallow shared libs when runtime libs are static.
19322 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19324 # Compiler flag to allow reflexive dlopens.
19325 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19327 # Compiler flag to generate shared objects directly from archives.
19328 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19330 # Whether the compiler copes with passing no objects directly.
19331 compiler_needs_object=$lt_compiler_needs_object_RC
19333 # Create an old-style archive from a shared archive.
19334 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19336 # Create a temporary old-style archive to link instead of a shared archive.
19337 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19339 # Commands used to build a shared archive.
19340 archive_cmds=$lt_archive_cmds_RC
19341 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19343 # Commands used to build a loadable module if different from building
19344 # a shared archive.
19345 module_cmds=$lt_module_cmds_RC
19346 module_expsym_cmds=$lt_module_expsym_cmds_RC
19348 # Whether we are building with GNU ld or not.
19349 with_gnu_ld=$lt_with_gnu_ld_RC
19351 # Flag that allows shared libraries with undefined symbols to be built.
19352 allow_undefined_flag=$lt_allow_undefined_flag_RC
19354 # Flag that enforces no undefined symbols.
19355 no_undefined_flag=$lt_no_undefined_flag_RC
19357 # Flag to hardcode \$libdir into a binary during linking.
19358 # This must work even if \$libdir does not exist
19359 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19361 # Whether we need a single "-rpath" flag with a separated argument.
19362 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19364 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19365 # DIR into the resulting binary.
19366 hardcode_direct=$hardcode_direct_RC
19368 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19369 # DIR into the resulting binary and the resulting library dependency is
19370 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19371 # library is relocated.
19372 hardcode_direct_absolute=$hardcode_direct_absolute_RC
19374 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19375 # into the resulting binary.
19376 hardcode_minus_L=$hardcode_minus_L_RC
19378 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19379 # into the resulting binary.
19380 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19382 # Set to "yes" if building a shared library automatically hardcodes DIR
19383 # into the library and all subsequent libraries and executables linked
19385 hardcode_automatic=$hardcode_automatic_RC
19387 # Set to yes if linker adds runtime paths of dependent libraries
19388 # to runtime path list.
19389 inherit_rpath=$inherit_rpath_RC
19391 # Whether libtool must link a program against all its dependency libraries.
19392 link_all_deplibs=$link_all_deplibs_RC
19394 # Set to "yes" if exported symbols are required.
19395 always_export_symbols=$always_export_symbols_RC
19397 # The commands to list exported symbols.
19398 export_symbols_cmds=$lt_export_symbols_cmds_RC
19400 # Symbols that should not be listed in the preloaded symbols.
19401 exclude_expsyms=$lt_exclude_expsyms_RC
19403 # Symbols that must always be exported.
19404 include_expsyms=$lt_include_expsyms_RC
19406 # Commands necessary for linking programs (against libraries) with templates.
19407 prelink_cmds=$lt_prelink_cmds_RC
19409 # Commands necessary for finishing linking programs.
19410 postlink_cmds=$lt_postlink_cmds_RC
19412 # Specify filename containing input files.
19413 file_list_spec=$lt_file_list_spec_RC
19415 # How to hardcode a shared library path into an executable.
19416 hardcode_action=$hardcode_action_RC
19418 # ### END LIBTOOL TAG CONFIG: RC
19422 "tests/t_client.sh":F
) chmod +x
tests
/t_client.sh
;;
19430 ac_clean_files
=$ac_clean_files_save
19432 test $ac_write_fail = 0 ||
19433 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19436 # configure is writing to config.log, and then calls config.status.
19437 # config.status does its own redirection, appending to config.log.
19438 # Unfortunately, on DOS this fails, as config.log is still kept open
19439 # by configure, so config.status won't be able to write to it; its
19440 # output is simply discarded. So we exec the FD to /dev/null,
19441 # effectively closing config.log, so it can be properly (re)opened and
19442 # appended to by config.status. When coming back to configure, we
19443 # need to make the FD available again.
19444 if test "$no_create" != yes; then
19446 ac_config_status_args
=
19447 test "$silent" = yes &&
19448 ac_config_status_args
="$ac_config_status_args --quiet"
19450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19453 # would make configure fail if this is the last instruction.
19454 $ac_cs_success || as_fn_exit
1
19456 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19458 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}