2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for OpenVPN 2.3.0.
5 # Report bugs to <openvpn-users@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev
/null
; then :
191 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
196 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir
=.
203 for as_base
in sh bash ksh sh5
; do
204 # Try only shells that exist, to save several forks.
205 as_shell
=$as_dir/$as_base
206 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$as_shell as_have_required
=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
217 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
219 CONFIG_SHELL
=$SHELL as_have_required
=yes
224 if test "x$CONFIG_SHELL" != x
; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
234 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x
$as_have_required = xno
; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x
${ZSH_VERSION+set} = xset
; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and openvpn-users@lists.sourceforge.net
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE
= GREP_OPTIONS
=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir
=.
/$as_dir;;
304 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
308 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs
="'$as_qdir' $as_dirs"
312 as_dir
=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
338 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
373 as_val
=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status
=$1; test $as_status -eq 0 && as_status
=1
387 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit
$as_status
394 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
401 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
413 as_me
=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits
='0123456789'
437 as_cr_alnum
=$as_cr_Letters$as_cr_digits
440 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
441 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x
"$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C
= ECHO_N
= ECHO_T
=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
484 rm -f conf$$ conf$$.exe conf$$.
file
485 if test -d conf$$.dir
; then
486 rm -f conf$$.dir
/conf$$.
file
489 mkdir conf$$.dir
2>/dev
/null
491 if (echo >conf$$.
file) 2>/dev
/null
; then
492 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
500 elif ln conf$$.
file conf$$
2>/dev
/null
; then
508 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
509 rmdir conf$$.dir
2>/dev
/null
511 if mkdir
-p .
2>/dev
/null
; then
512 as_mkdir_p
='mkdir -p "$as_dir"'
514 test -d .
/-p && rmdir .
/-p
518 if test -x / >/dev
/null
2>&1; then
521 if ls -dL / >/dev
/null
2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p
=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL
=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix
=/usr
/local
563 ac_config_libobj_dir
=.
570 # Identity of this package.
571 PACKAGE_NAME
='OpenVPN'
572 PACKAGE_TARNAME
='openvpn'
573 PACKAGE_VERSION
='2.3.0'
574 PACKAGE_STRING
='OpenVPN 2.3.0'
575 PACKAGE_BUGREPORT
='openvpn-users@lists.sourceforge.net'
578 ac_unique_file
="src/openvpn/syshead.h"
579 # Factoring default headers for most tests.
580 ac_includes_default
="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars
='am__EXEEXT_FALSE
621 ENABLE_PLUGIN_DOWN_ROOT_FALSE
622 ENABLE_PLUGIN_DOWN_ROOT_TRUE
623 ENABLE_PLUGIN_AUTH_PAM_FALSE
624 ENABLE_PLUGIN_AUTH_PAM_TRUE
630 PLUGIN_AUTH_PAM_CFLAGS
631 OPTIONAL_PKCS11_HELPER_LIBS
632 OPTIONAL_PKCS11_HELPER_CFLAGS
636 OPTIONAL_CRYPTO_CFLAGS
637 OPTIONAL_SELINUX_LIBS
651 OPENSSL_CRYPTO_CFLAGS
722 INSTALL_STRIP_PROGRAM
764 program_transform_name
777 enable_option_checking
778 enable_dependency_tracking
783 enable_x509_alt_username
801 enable_plugin_auth_pam
802 enable_plugin_down_root
806 enable_strict_options
820 ac_precious_vars
='build_alias
841 OPENSSL_CRYPTO_CFLAGS
853 # Initialize some variables set by options.
855 ac_init_version
=false
856 ac_unrecognized_opts
=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
867 program_transform_name
=s
,x
,x
,
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir
='${exec_prefix}/bin'
882 sbindir
='${exec_prefix}/sbin'
883 libexecdir
='${exec_prefix}/libexec'
884 datarootdir
='${prefix}/share'
885 datadir
='${datarootdir}'
886 sysconfdir
='${prefix}/etc'
887 sharedstatedir
='${prefix}/com'
888 localstatedir
='${prefix}/var'
889 includedir
='${prefix}/include'
890 oldincludedir
='/usr/include'
891 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir
='${datarootdir}/info'
897 libdir
='${exec_prefix}/lib'
898 localedir
='${datarootdir}/locale'
899 mandir
='${datarootdir}/man'
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\
$ac_option
913 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
924 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
926 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
929 -build |
--build |
--buil |
--bui |
--bu)
930 ac_prev
=build_alias
;;
931 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
932 build_alias
=$ac_optarg ;;
934 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
935 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
936 ac_prev
=cache_file
;;
937 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
938 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
939 cache_file
=$ac_optarg ;;
942 cache_file
=config.cache
;;
944 -datadir |
--datadir |
--datadi |
--datad)
946 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
947 datadir
=$ac_optarg ;;
949 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
950 |
--dataroo |
--dataro |
--datar)
951 ac_prev
=datarootdir
;;
952 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
953 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
954 datarootdir
=$ac_optarg ;;
956 -disable-* |
--disable-*)
957 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
960 as_fn_error $?
"invalid feature name: $ac_useropt"
961 ac_useropt_orig
=$ac_useropt
962 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
967 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep
=', ';;
970 eval enable_
$ac_useropt=no
;;
972 -docdir |
--docdir |
--docdi |
--doc |
--do)
974 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
977 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
979 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
982 -enable-* |
--enable-*)
983 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
986 as_fn_error $?
"invalid feature name: $ac_useropt"
987 ac_useropt_orig
=$ac_useropt
988 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep
=', ';;
996 eval enable_
$ac_useropt=\
$ac_optarg ;;
998 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
999 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1000 |
--exec |
--exe |
--ex)
1001 ac_prev
=exec_prefix
;;
1002 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1003 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1004 |
--exec=* |
--exe=* |
--ex=*)
1005 exec_prefix
=$ac_optarg ;;
1007 -gas |
--gas |
--ga |
--g)
1008 # Obsolete; use --with-gas.
1011 -help |
--help |
--hel |
--he |
-h)
1012 ac_init_help
=long
;;
1013 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1014 ac_init_help
=recursive
;;
1015 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1016 ac_init_help
=short
;;
1018 -host |
--host |
--hos |
--ho)
1019 ac_prev
=host_alias
;;
1020 -host=* |
--host=* |
--hos=* |
--ho=*)
1021 host_alias
=$ac_optarg ;;
1023 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1025 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1027 htmldir
=$ac_optarg ;;
1029 -includedir |
--includedir |
--includedi |
--included |
--include \
1030 |
--includ |
--inclu |
--incl |
--inc)
1031 ac_prev
=includedir
;;
1032 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1033 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1034 includedir
=$ac_optarg ;;
1036 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1038 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1039 infodir
=$ac_optarg ;;
1041 -libdir |
--libdir |
--libdi |
--libd)
1043 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1044 libdir
=$ac_optarg ;;
1046 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1047 |
--libexe |
--libex |
--libe)
1048 ac_prev
=libexecdir
;;
1049 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1050 |
--libexe=* |
--libex=* |
--libe=*)
1051 libexecdir
=$ac_optarg ;;
1053 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1054 ac_prev
=localedir
;;
1055 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1056 localedir
=$ac_optarg ;;
1058 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1059 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1060 ac_prev
=localstatedir
;;
1061 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1062 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1063 localstatedir
=$ac_optarg ;;
1065 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1067 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1068 mandir
=$ac_optarg ;;
1070 -nfp |
--nfp |
--nf)
1071 # Obsolete; use --without-fp.
1074 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1075 |
--no-cr |
--no-c |
-n)
1078 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1079 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1082 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1083 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1084 |
--oldin |
--oldi |
--old |
--ol |
--o)
1085 ac_prev
=oldincludedir
;;
1086 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1087 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1088 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1089 oldincludedir
=$ac_optarg ;;
1091 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1093 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1094 prefix
=$ac_optarg ;;
1096 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1097 |
--program-pre |
--program-pr |
--program-p)
1098 ac_prev
=program_prefix
;;
1099 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1100 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1101 program_prefix
=$ac_optarg ;;
1103 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1104 |
--program-suf |
--program-su |
--program-s)
1105 ac_prev
=program_suffix
;;
1106 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1107 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1108 program_suffix
=$ac_optarg ;;
1110 -program-transform-name |
--program-transform-name \
1111 |
--program-transform-nam |
--program-transform-na \
1112 |
--program-transform-n |
--program-transform- \
1113 |
--program-transform |
--program-transfor \
1114 |
--program-transfo |
--program-transf \
1115 |
--program-trans |
--program-tran \
1116 |
--progr-tra |
--program-tr |
--program-t)
1117 ac_prev
=program_transform_name
;;
1118 -program-transform-name=* |
--program-transform-name=* \
1119 |
--program-transform-nam=* |
--program-transform-na=* \
1120 |
--program-transform-n=* |
--program-transform-=* \
1121 |
--program-transform=* |
--program-transfor=* \
1122 |
--program-transfo=* |
--program-transf=* \
1123 |
--program-trans=* |
--program-tran=* \
1124 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1125 program_transform_name
=$ac_optarg ;;
1127 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1129 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1130 pdfdir
=$ac_optarg ;;
1132 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1134 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1137 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1138 |
-silent |
--silent |
--silen |
--sile |
--sil)
1141 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1143 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1145 sbindir
=$ac_optarg ;;
1147 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1148 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1149 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1151 ac_prev
=sharedstatedir
;;
1152 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1153 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1154 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1156 sharedstatedir
=$ac_optarg ;;
1158 -site |
--site |
--sit)
1160 -site=* |
--site=* |
--sit=*)
1163 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1165 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1166 srcdir
=$ac_optarg ;;
1168 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1169 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1170 ac_prev
=sysconfdir
;;
1171 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1172 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1173 sysconfdir
=$ac_optarg ;;
1175 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1176 ac_prev
=target_alias
;;
1177 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1178 target_alias
=$ac_optarg ;;
1180 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1183 -version |
--version |
--versio |
--versi |
--vers |
-V)
1184 ac_init_version
=: ;;
1187 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1190 as_fn_error $?
"invalid package name: $ac_useropt"
1191 ac_useropt_orig
=$ac_useropt
1192 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1197 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep
=', ';;
1200 eval with_
$ac_useropt=\
$ac_optarg ;;
1202 -without-* |
--without-*)
1203 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1206 as_fn_error $?
"invalid package name: $ac_useropt"
1207 ac_useropt_orig
=$ac_useropt
1208 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1213 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep
=', ';;
1216 eval with_
$ac_useropt=no
;;
1219 # Obsolete; use --with-x.
1222 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1223 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1224 ac_prev
=x_includes
;;
1225 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1226 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1227 x_includes
=$ac_optarg ;;
1229 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1230 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1231 ac_prev
=x_libraries
;;
1232 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1233 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1234 x_libraries
=$ac_optarg ;;
1236 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1241 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1245 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1247 eval $ac_envvar=\
$ac_optarg
1248 export $ac_envvar ;;
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 if test -n "$ac_prev"; then
1262 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1263 as_fn_error $?
"missing argument to $ac_option"
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1269 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 # Check all directory arguments for consistency.
1275 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val
=\$
$ac_var
1281 # Remove trailing slashes.
1284 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\
$ac_val;;
1287 # Be sure to have absolute directory names.
1289 [\\/$
]* | ?
:[\\/]* ) continue;;
1290 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1292 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1300 target
=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x
; then
1304 if test "x$build_alias" = x
; then
1305 cross_compiling
=maybe
1306 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used" >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1314 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1316 test "$silent" = yes && exec 6>/dev
/null
1319 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di
=`ls -di .` &&
1321 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $?
"working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $?
"pwd does not report name of working directory"
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted
=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir
=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1359 ac_srcdir_defaulted
=no
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1363 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1365 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1377 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 for ac_var
in $ac_precious_vars; do
1380 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1382 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1393 \`configure' configures OpenVPN 2.3.0 to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1456 --build=BUILD configure
for building on BUILD
[guessed
]
1457 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive
) echo "Configuration of OpenVPN 2.3.0:";;
1468 --disable-option-checking ignore unrecognized
--enable/--with options
1469 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1470 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1471 --disable-dependency-tracking speeds up one-time build
1472 --enable-dependency-tracking do not reject slow dependency extractors
1473 --disable-lzo disable LZO compression support
[default
=yes]
1474 --enable-lzo-stub don
't compile LZO compression support but still
1475 allow limited interoperability with LZO-enabled
1477 --disable-crypto disable crypto support [default=yes]
1478 --disable-ssl disable SSL support for TLS-based key exchange
1480 --enable-x509-alt-username
1481 enable the --x509-username-field feature
1483 --disable-multi disable client/server support (--mode server +
1484 client mode) [default=yes]
1485 --disable-server disable server support only (but retain client
1486 support) [default=yes]
1487 --disable-plugins disable plug-in support [default=yes]
1488 --disable-eurephia disable support for the eurephia plug-in
1490 --disable-management disable management server support [default=yes]
1491 --enable-pkcs11 enable pkcs11 support [default=no]
1492 --disable-socks disable Socks support [default=yes]
1493 --disable-http-proxy disable HTTP proxy support [default=yes]
1494 --disable-fragment disable internal fragmentation support (--fragment)
1496 --disable-multihome disable multi-homed UDP server support (--multihome)
1498 --disable-port-share disable TCP server port-share support (--port-share)
1500 --disable-debug disable debugging support (disable gremlin and verb
1501 7+ messages) [default=yes]
1502 --enable-small enable smaller executable size (disable OCC, usage
1503 message, and verb 4 parm list) [default=yes]
1504 --enable-password-save allow --askpass and --auth-user-pass passwords to be
1505 read from a file [default=yes]
1506 --enable-iproute2 enable support for iproute2 [default=no]
1507 --disable-def-auth disable deferred authentication [default=yes]
1508 --disable-pf disable internal packet filter [default=yes]
1509 --disable-plugin-auth-pam
1510 disable auth-pam plugin [default=platform specific]
1511 --disable-plugin-down-root
1512 disable down-root plugin [default=platform specific]
1513 --enable-pam-dlopen dlopen libpam [default=no]
1514 --enable-strict enable strict compiler warnings (debugging option)
1516 --enable-pedantic enable pedantic compiler warnings, will not generate
1517 a working executable (debugging option) [default=no]
1518 --enable-strict-options enable strict options check between peers (debugging
1519 option) [default=no]
1520 --enable-selinux enable SELinux support [default=no]
1521 --enable-systemd enable systemd suppport [default=no]
1522 --enable-shared[=PKGS] build shared libraries [default=yes]
1523 --enable-static[=PKGS] build static libraries [default=yes]
1524 --enable-fast-install[=PKGS]
1525 optimize for fast installation [default=yes]
1526 --disable-libtool-lock avoid locking (might break parallel builds)
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-special-build=STRING
1532 specify special build string
1533 --with-mem-check=TYPE build with debug memory checking,
1534 TYPE=no|dmalloc|valgrind|ssl [default=no]
1535 --with-crypto-library=library
1536 build with the given crypto library,
1537 TYPE=openssl|polarssl [default=openssl]
1538 --with-plugindir plugin directory [default=LIBDIR/openvpn]
1539 --with-pic try to use only PIC/non-PIC objects [default=use
1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1543 Some influential environment variables:
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1547 nonstandard directory <lib dir>
1548 LIBS libraries to pass to the linker, e.g. -l<library>
1549 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1550 you have headers in a nonstandard directory <include dir>
1552 PKG_CONFIG path to pkg-config utility
1554 directories to add to pkg-config's search path
1556 path overriding pkg-config
's built-in search path
1557 IFCONFIG full path to ipconfig utility
1558 ROUTE full path to route utility
1559 IPROUTE full path to ip utility
1560 NETSTAT path to netstat utility
1561 MAN2HTML path to man2html utility
1562 GIT path to git utility
1563 TAP_CFLAGS C compiler flags for tap
1565 C compiler flags for libpam
1566 LIBPAM_LIBS linker flags for libpam
1567 OPENSSL_CRYPTO_CFLAGS
1568 C compiler flags for OPENSSL_CRYPTO, overriding pkg-config
1570 linker flags for OPENSSL_CRYPTO, overriding pkg-config
1572 C compiler flags for OPENSSL_SSL, overriding pkg-config
1574 linker flags for OPENSSL_SSL, overriding pkg-config
1576 C compiler flags for polarssl
1578 linker flags for polarssl
1579 LZO_CFLAGS C compiler flags for lzo
1580 LZO_LIBS linker flags for lzo
1581 PKCS11_HELPER_CFLAGS
1582 C compiler flags for PKCS11_HELPER, overriding pkg-config
1584 linker flags for PKCS11_HELPER, overriding pkg-config
1586 Use these variables to override the choices made by `configure' or to
help
1587 it to
find libraries and programs with nonstandard names
/locations.
1589 Report bugs to
<openvpn-users@lists.sourceforge.net
>.
1594 if test "$ac_init_help" = "recursive"; then
1595 # If there are subdirs, report their specific --help.
1596 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1597 test -d "$ac_dir" ||
1598 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1603 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1605 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1606 # A ".." for each directory in $ac_dir_suffix.
1607 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1608 case $ac_top_builddir_sub in
1609 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1610 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1613 ac_abs_top_builddir
=$ac_pwd
1614 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1615 # for backward compatibility:
1616 ac_top_builddir
=$ac_top_build_prefix
1619 .
) # We are building in place.
1621 ac_top_srcdir
=$ac_top_builddir_sub
1622 ac_abs_top_srcdir
=$ac_pwd ;;
1623 [\\/]* | ?
:[\\/]* ) # Absolute name.
1624 ac_srcdir
=$srcdir$ac_dir_suffix;
1625 ac_top_srcdir
=$srcdir
1626 ac_abs_top_srcdir
=$srcdir ;;
1628 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1629 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1630 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1632 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1634 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1635 # Check for guested configure.
1636 if test -f "$ac_srcdir/configure.gnu"; then
1638 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639 elif test -f "$ac_srcdir/configure"; then
1641 $SHELL "$ac_srcdir/configure" --help=recursive
1643 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1649 test -n "$ac_init_help" && exit $ac_status
1650 if $ac_init_version; then
1652 OpenVPN configure
2.3.0
1653 generated by GNU Autoconf
2.68
1655 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1656 This configure
script is free software
; the Free Software Foundation
1657 gives unlimited permission to copy
, distribute and modify it.
1662 ## ------------------------ ##
1663 ## Autoconf initialization. ##
1664 ## ------------------------ ##
1666 # ac_fn_c_try_compile LINENO
1667 # --------------------------
1668 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1669 ac_fn_c_try_compile
()
1671 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1672 rm -f conftest.
$ac_objext
1673 if { { ac_try
="$ac_compile"
1675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_compile") 2>conftest.err
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && {
1689 test -z "$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 } && test -s conftest.$ac_objext; then :
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1702 } # ac_fn_c_try_compile
1704 # ac_fn_c_try_cpp LINENO
1705 # ----------------------
1706 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_cpp conftest.$ac_ext"
1712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1713 *) ac_try_echo
=$ac_try;;
1715 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 if test -s conftest.err
; then
1720 grep -v '^ *+' conftest.err
>conftest.er1
1721 cat conftest.er1
>&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } > conftest.i
&& {
1726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.
$ac_ext >&5
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status
$ac_retval
1741 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1744 # the include files in INCLUDES and setting the cache variable VAR
1746 ac_fn_c_check_header_mongrel
()
1748 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1749 if eval \
${$3+:} false
; then :
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \
${$3+:} false
; then :
1753 $as_echo_n "(cached) " >&6
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1759 # Is the header compilable?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1761 $as_echo_n "checking $2 usability... " >&6; }
1762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1767 if ac_fn_c_try_compile
"$LINENO"; then :
1768 ac_header_compiler
=yes
1770 ac_header_compiler
=no
1772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1774 $as_echo "$ac_header_compiler" >&6; }
1776 # Is the header present?
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1778 $as_echo_n "checking $2 presence... " >&6; }
1779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1783 if ac_fn_c_try_cpp
"$LINENO"; then :
1784 ac_header_preproc
=yes
1786 ac_header_preproc
=no
1788 rm -f conftest.err conftest.i conftest.
$ac_ext
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1790 $as_echo "$ac_header_preproc" >&6; }
1792 # So? What about this header?
1793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1796 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1802 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1804 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1806 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1808 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1811 ( $as_echo "## -------------------------------------------------- ##
1812 ## Report this to openvpn-users@lists.sourceforge.net ##
1813 ## -------------------------------------------------- ##"
1814 ) |
sed "s/^/$as_me: WARNING: /" >&2
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \
${$3+:} false
; then :
1820 $as_echo_n "(cached) " >&6
1822 eval "$3=\$ac_header_compiler"
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 } # ac_fn_c_check_header_mongrel
1832 # ac_fn_c_try_run LINENO
1833 # ----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1835 # that executables *can* be run.
1838 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1839 if { { ac_try
="$ac_link"
1841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>&5
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1850 { { case "(($ac_try" in
1851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1852 *) ac_try_echo
=$ac_try;;
1854 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_try") 2>&5
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; }; }; then :
1862 $as_echo "$as_me: program exited with status $ac_status" >&5
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.
$ac_ext >&5
1866 ac_retval
=$ac_status
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status
$ac_retval
1874 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1875 # -------------------------------------------------------
1876 # Tests whether HEADER exists and can be compiled using the include files in
1877 # INCLUDES, setting the cache variable VAR accordingly.
1878 ac_fn_c_check_header_compile
()
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \
${$3+:} false
; then :
1884 $as_echo_n "(cached) " >&6
1886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1891 if ac_fn_c_try_compile
"$LINENO"; then :
1896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 } # ac_fn_c_check_header_compile
1905 # ac_fn_c_try_link LINENO
1906 # -----------------------
1907 # Try to link conftest.$ac_ext, and return whether this succeeded.
1910 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1911 rm -f conftest.
$ac_objext conftest
$ac_exeext
1912 if { { ac_try
="$ac_link"
1914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_link") 2>conftest.err
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && {
1928 test -z "$ac_c_werror_flag" ||
1929 test ! -s conftest.err
1930 } && test -s conftest$ac_exeext && {
1931 test "$cross_compiling" = yes ||
1932 $as_test_x conftest$ac_exeext
1936 $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1941 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1942 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1943 # interfere with the next link command; also delete a directory that is
1944 # left behind by Apple's compiler. We do this before executing the actions.
1945 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 as_fn_set_status $ac_retval
1949 } # ac_fn_c_try_link
1951 # ac_fn_c_check_func LINENO FUNC VAR
1952 # ----------------------------------
1953 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1954 ac_fn_c_check_func ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1966 #define $2 innocuous_$2
1968 /* System header to define __stub macros and hopefully few prototypes,
1969 which can conflict with char $2 (); below.
1970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1971 <limits.h> exists even on freestanding compilers. */
1974 # include <limits.h>
1976 # include <assert.h>
1981 /* Override any GCC internal prototype to avoid an error.
1982 Use char because int might match the return type of a GCC
1983 builtin and then its argument prototype would still apply. */
1988 /* The GNU C library defines this for functions which it implements
1989 to always fail with ENOSYS. Some functions are actually named
1990 something starting with __ and the normal name is an alias. */
1991 #if defined __stub_$2 || defined __stub___$2
2003 if ac_fn_c_try_link "$LINENO"; then :
2008 rm -f core conftest.err conftest.$ac_objext \
2009 conftest$ac_exeext conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 } # ac_fn_c_check_func
2018 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2019 # -------------------------------------------
2020 # Tests whether TYPE exists after having included INCLUDES, setting cache
2021 # variable VAR accordingly.
2022 ac_fn_c_check_type ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2056 if ac_fn_c_try_compile "$LINENO"; then :
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070 } # ac_fn_c_check_type
2072 # ac_fn_c_find_intX_t LINENO BITS VAR
2073 # -----------------------------------
2074 # Finds a signed integer type with width BITS, setting cache variable VAR
2076 ac_fn_c_find_intX_t ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2080 $as_echo_n "checking for int$2_t... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2085 # Order is important - never check a type that is potentially smaller
2086 # than half of the expected target width.
2087 for ac_type in int$2_t 'int' 'long int' \
2088 'long long int' 'short int' 'signed char'; do
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 $ac_includes_default
2092 enum { N = $2 / 2 - 1 };
2096 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 $ac_includes_default
2107 enum { N = $2 / 2 - 1 };
2111 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2112 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2119 if ac_fn_c_try_compile "$LINENO"; then :
2126 eval "$3=\$ac_type" ;;
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 if eval test \"x\$"$3"\" = x"no"; then :
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 $as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 } # ac_fn_c_find_intX_t
2146 # ac_fn_c_find_uintX_t LINENO BITS VAR
2147 # ------------------------------------
2148 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2150 ac_fn_c_find_uintX_t ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2154 $as_echo_n "checking for uint$2_t... " >&6; }
2155 if eval \${$3+:} false; then :
2156 $as_echo_n "(cached) " >&6
2159 # Order is important - never check a type that is potentially smaller
2160 # than half of the expected target width.
2161 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2162 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 $ac_includes_default
2169 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2176 if ac_fn_c_try_compile "$LINENO"; then :
2181 eval "$3=\$ac_type" ;;
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 if eval test \"x\$"$3"\" = x"no"; then :
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 } # ac_fn_c_find_uintX_t
2199 # ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2200 # --------------------------------------------------------------
2201 # Tries to find the compile-time value of EXPR in a program that includes
2202 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2204 ac_fn_c_compute_int ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if test "$cross_compiling" = yes; then
2208 # Depending upon the size, compute the lo and hi bounds.
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2215 static int test_array [1 - 2 * !(($2) >= 0)];
2222 if ac_fn_c_try_compile "$LINENO"; then :
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2231 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_hi=$ac_mid; break
2241 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2242 if test $ac_lo -le $ac_mid; then
2246 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 static int test_array [1 - 2 * !(($2) < 0)];
2264 if ac_fn_c_try_compile "$LINENO"; then :
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2273 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 ac_lo=$ac_mid; break
2283 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2284 if test $ac_mid -le $ac_hi; then
2288 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 # Binary search between lo and hi bounds.
2299 while test "x$ac_lo" != "x$ac_hi"; do
2300 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2307 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2314 if ac_fn_c_try_compile "$LINENO"; then :
2317 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2329 static long int longval () { return $2; }
2330 static unsigned long int ulongval () { return $2; }
2337 FILE *f = fopen ("conftest.val", "w");
2342 long int i = longval ();
2345 fprintf (f, "%ld", i);
2349 unsigned long int i = ulongval ();
2352 fprintf (f, "%lu", i);
2354 /* Do not output a trailing newline, as this causes \r\n confusion
2355 on some platforms. */
2356 return ferror (f) || fclose (f) != 0;
2362 if ac_fn_c_try_run "$LINENO"; then :
2363 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2368 conftest.$ac_objext conftest.beam conftest.$ac_ext
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373 as_fn_set_status $ac_retval
2375 } # ac_fn_c_compute_int
2377 # ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2378 # ---------------------------------------------------------------
2379 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2381 ac_fn_c_check_decl ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2385 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2387 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2388 if eval \${$3+:} false; then :
2389 $as_echo_n "(cached) " >&6
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2397 #ifndef $as_decl_name
2399 (void) $as_decl_use;
2401 (void) $as_decl_name;
2409 if ac_fn_c_try_compile "$LINENO"; then :
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 } # ac_fn_c_check_decl
2422 cat >config.log <<_ACEOF
2423 This file contains any messages produced by compilers while
2424 running configure, to aid debugging if configure makes a mistake.
2426 It was created by OpenVPN $as_me 2.3.0, which was
2427 generated by GNU Autoconf 2.68. Invocation command line was
2439 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2440 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2441 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2442 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2443 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2445 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2446 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2448 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2449 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2450 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2451 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2452 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2453 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2454 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir=.
2463 $as_echo "PATH: $as_dir"
2479 # Keep a trace of the command line.
2480 # Strip out --no-create and --no-recursion so they do not pile up.
2481 # Strip out --silent because we don't want to record it for future runs.
2482 # Also quote any args containing shell meta-characters.
2483 # Make two passes to allow for proper duplicate-argument suppression.
2487 ac_must_keep_next=false
2493 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2495 | -silent | --silent | --silen | --sile | --sil)
2498 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2501 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2503 as_fn_append ac_configure_args1 " '$ac_arg'"
2504 if test $ac_must_keep_next = true; then
2505 ac_must_keep_next=false # Got value, back to normal.
2508 *=* | --config-cache | -C | -disable-* | --disable-* \
2509 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2510 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2511 | -with-* | --with-* | -without-* | --without-* | --x)
2512 case "$ac_configure_args0 " in
2513 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2516 -* ) ac_must_keep_next=true ;;
2519 as_fn_append ac_configure_args " '$ac_arg'"
2524 { ac_configure_args0=; unset ac_configure_args0;}
2525 { ac_configure_args1=; unset ac_configure_args1;}
2527 # When interrupted or exit'd, cleanup temporary files, and complete
2528 # config.log. We remove comments because anyway the quotes in there
2529 # would cause problems or look ugly.
2530 # WARNING: Use '\'' to represent an apostrophe within the trap.
2531 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2532 trap 'exit_status=$?
2533 # Save into config.log some information that might help in debugging.
2537 $as_echo "## ---------------- ##
2538 ## Cache variables. ##
2539 ## ---------------- ##"
2541 # The following way of writing the cache mishandles newlines in values,
2543 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2544 eval ac_val=\$$ac_var
2548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2552 _ | IFS | as_nl) ;; #(
2553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2554 *) { eval $ac_var=; unset $ac_var;} ;;
2559 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2560 *${as_nl}ac_space=\ *)
2562 "s/'\''/'\''\\\\'\'''\''/g;
2563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2573 $as_echo "## ----------------- ##
2574 ## Output variables. ##
2575 ## ----------------- ##"
2577 for ac_var in $ac_subst_vars
2579 eval ac_val=\$$ac_var
2581 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583 $as_echo "$ac_var='\''$ac_val'\''"
2587 if test -n "$ac_subst_files"; then
2588 $as_echo "## ------------------- ##
2589 ## File substitutions. ##
2590 ## ------------------- ##"
2592 for ac_var in $ac_subst_files
2594 eval ac_val=\$$ac_var
2596 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2598 $as_echo "$ac_var='\''$ac_val'\''"
2603 if test -s confdefs.h; then
2604 $as_echo "## ----------- ##
2611 test "$ac_signal" != 0 &&
2612 $as_echo "$as_me: caught signal $ac_signal"
2613 $as_echo "$as_me: exit $exit_status"
2615 rm -f core *.core core.conftest.* &&
2616 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2619 for ac_signal in 1 2 13 15; do
2620 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2625 rm -f -r conftest* confdefs.h
2627 $as_echo "/* confdefs.h */" > confdefs.h
2629 # Predefined preprocessor variables.
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_NAME "$PACKAGE_NAME"
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_STRING "$PACKAGE_STRING"
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_URL "$PACKAGE_URL"
2656 # Let the site file select an alternate cache file if it wants to.
2657 # Prefer an explicitly selected file to automatically selected ones.
2660 if test -n "$CONFIG_SITE"; then
2661 # We do not want a PATH search for config.site.
2662 case $CONFIG_SITE in #((
2663 -*) ac_site_file1=./$CONFIG_SITE;;
2664 */*) ac_site_file1=$CONFIG_SITE;;
2665 *) ac_site_file1=./$CONFIG_SITE;;
2667 elif test "x$prefix" != xNONE; then
2668 ac_site_file1=$prefix/share/config.site
2669 ac_site_file2=$prefix/etc/config.site
2671 ac_site_file1=$ac_default_prefix/share/config.site
2672 ac_site_file2=$ac_default_prefix/etc/config.site
2674 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2676 test "x$ac_site_file" = xNONE && continue
2677 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2679 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2680 sed 's/^/| /' "$ac_site_file" >&5
2682 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684 as_fn_error $? "failed to load site
script $ac_site_file
2685 See \
`config.log' for more details" "$LINENO" 5; }
2689 if test -r "$cache_file"; then
2690 # Some versions of bash will fail to source /dev/null (special files
2691 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2692 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2694 $as_echo "$as_me: loading cache $cache_file" >&6;}
2696 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2697 *) . "./$cache_file";;
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2702 $as_echo "$as_me: creating cache $cache_file" >&6;}
2706 # Check that the precious variables saved in the cache have kept the same
2708 ac_cache_corrupted=false
2709 for ac_var in $ac_precious_vars; do
2710 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2711 eval ac_new_set=\$ac_env_${ac_var}_set
2712 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2713 eval ac_new_val=\$ac_env_${ac_var}_value
2714 case $ac_old_set,$ac_new_set in
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2717 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2718 ac_cache_corrupted=: ;;
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2721 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2722 ac_cache_corrupted=: ;;
2725 if test "x$ac_old_val" != "x$ac_new_val"; then
2726 # differences in whitespace do not lead to failure.
2727 ac_old_val_w=`echo x
$ac_old_val`
2728 ac_new_val_w=`echo x
$ac_new_val`
2729 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2731 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2732 ac_cache_corrupted=:
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2735 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2736 eval $ac_var=\$ac_old_val
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2739 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2741 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2744 # Pass precious variables to config.status.
2745 if test "$ac_new_set" = set; then
2747 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2748 *) ac_arg=$ac_var=$ac_new_val ;;
2750 case " $ac_configure_args " in
2751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2752 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2756 if $ac_cache_corrupted; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2760 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2761 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2763 ## -------------------- ##
2764 ## Main body of script. ##
2765 ## -------------------- ##
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 if test -z "${docdir}"; then
2781 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
2784 if test -z "${htmldir}"; then
2785 htmldir="\$(docdir)"
2790 $as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,0,0" >>confdefs.h
2794 for ac_dir in . "$srcdir"/.; do
2795 if test -f "$ac_dir/install-sh"; then
2797 ac_install_sh="$ac_aux_dir/install-sh -c"
2799 elif test -f "$ac_dir/install.sh"; then
2801 ac_install_sh="$ac_aux_dir/install.sh -c"
2803 elif test -f "$ac_dir/shtool"; then
2805 ac_install_sh="$ac_aux_dir/shtool install -c"
2809 if test -z "$ac_aux_dir"; then
2810 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2813 # These three variables are undocumented and unsupported,
2814 # and are intended to be withdrawn in a future Autoconf release.
2815 # They can cause serious problems if a builder's source tree is in a directory
2816 # whose full name contains unusual characters.
2817 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2818 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2819 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2822 ac_config_headers="$ac_config_headers config.h"
2826 am__api_version='1.11'
2828 # Find a good install program. We prefer a C program (faster),
2829 # so one script is as good as another. But avoid the broken or
2830 # incompatible versions:
2831 # SysV /etc/install, /usr/sbin/install
2832 # SunOS /usr/etc/install
2833 # IRIX /sbin/install
2835 # AmigaOS /C/install, which installs bootblocks on floppy discs
2836 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2837 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2838 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2839 # OS/2's system install, which has a completely different semantic
2840 # ./install, which can be erroneously created by make from ./install.sh.
2841 # Reject install programs that cannot install multiple files.
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2843 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2844 if test -z "$INSTALL"; then
2845 if ${ac_cv_path_install+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 # Account for people who put trailing slashes in PATH elements.
2854 case $as_dir/ in #((
2855 ./ | .// | /[cC]/* | \
2856 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2857 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2860 # OSF1 and SCO ODT 3.0 have their own names for install.
2861 # Don't use installbsd from OSF since it installs stuff as root
2863 for ac_prog in ginstall scoinst install; do
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2866 if test $ac_prog = install &&
2867 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868 # AIX install. It has an incompatible calling convention.
2870 elif test $ac_prog = install &&
2871 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872 # program-specific install script used by HP pwplus--don't use.
2875 rm -rf conftest.one conftest.two conftest.dir
2876 echo one > conftest.one
2877 echo two > conftest.two
2879 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2880 test -s conftest.one && test -s conftest.two &&
2881 test -s conftest.dir/conftest.one &&
2882 test -s conftest.dir/conftest.two
2884 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2897 rm -rf conftest.one conftest.two conftest.dir
2900 if test "${ac_cv_path_install+set}" = set; then
2901 INSTALL=$ac_cv_path_install
2903 # As a last resort, use the slow shell script. Don't cache a
2904 # value for INSTALL within a source directory, because that will
2905 # break other packages using the cache if that directory is
2906 # removed, or if the value is a relative name.
2907 INSTALL=$ac_install_sh
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2911 $as_echo "$INSTALL" >&6; }
2913 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2914 # It thinks the first close brace ends the variable substitution.
2915 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2917 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2919 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2922 $as_echo_n "checking whether build environment is sane... " >&6; }
2925 echo timestamp > conftest.file
2926 # Reject unsafe characters in $srcdir or the absolute working directory
2927 # name. Accept space and tab only in the latter.
2931 *[\\\"\#\$\&\'\`$am_lf]*)
2932 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2935 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2936 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2939 # Do `set' in a subshell so we don't clobber the current shell's
2940 # arguments. Must try -L first in case configure is actually a
2941 # symlink; some systems play weird games with the mod time of symlinks
2942 # (eg FreeBSD returns the mod time of the symlink's containing
2945 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2946 if test "$*" = "X"; then
2948 set X
`ls -t "$srcdir/configure" conftest.file`
2951 if test "$*" != "X $srcdir/configure conftest.file" \
2952 && test "$*" != "X conftest.file $srcdir/configure"; then
2954 # If neither matched, then we have a broken ls. This can happen
2955 # if, for instance, CONFIG_SHELL is bash and it inherits a
2956 # broken ls alias from the environment. This has actually
2957 # happened. Such a system could not be considered "sane".
2958 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2959 alias in your environment" "$LINENO" 5
2962 test "$2" = conftest.
file
2968 as_fn_error $?
"newly created file is older than distributed files!
2969 Check your system clock" "$LINENO" 5
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2973 test "$program_prefix" != NONE
&&
2974 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2975 # Use a double $ so make ignores it.
2976 test "$program_suffix" != NONE
&&
2977 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2978 # Double any \ or $.
2979 # By default was `s,x,x', remove it if useless.
2980 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2981 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2983 # expand $ac_aux_dir to an absolute path
2984 am_aux_dir
=`cd $ac_aux_dir && pwd`
2986 if test x
"${MISSING+set}" != xset
; then
2989 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2991 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2994 # Use eval to expand $SHELL
2995 if eval "$MISSING --run true"; then
2996 am_missing_run
="$MISSING --run "
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3000 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3003 if test x
"${install_sh}" != xset
; then
3006 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3008 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3012 # Installed binaries are usually stripped using `strip' when the user
3013 # run `make install-strip'. However `strip' might not be the right
3014 # tool to use in cross-compilation environments, therefore Automake
3015 # will honor the `STRIP' environment variable to overrule this program.
3016 if test "$cross_compiling" != no
; then
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3019 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_STRIP+:} false
; then :
3023 $as_echo_n "(cached) " >&6
3025 if test -n "$STRIP"; then
3026 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir
=.
3033 for ac_exec_ext
in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 STRIP
=$ac_cv_prog_STRIP
3046 if test -n "$STRIP"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3048 $as_echo "$STRIP" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3056 if test -z "$ac_cv_prog_STRIP"; then
3058 # Extract the first word of "strip", so it can be a program name with args.
3059 set dummy strip
; ac_word
=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3063 $as_echo_n "(cached) " >&6
3065 if test -n "$ac_ct_STRIP"; then
3066 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir
=.
3073 for ac_exec_ext
in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_STRIP
="strip"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3086 if test -n "$ac_ct_STRIP"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3088 $as_echo "$ac_ct_STRIP" >&6; }
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3094 if test "x$ac_ct_STRIP" = x
; then
3097 case $cross_compiling:$ac_tool_warned in
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101 ac_tool_warned
=yes ;;
3106 STRIP
="$ac_cv_prog_STRIP"
3110 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3113 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3114 if test -z "$MKDIR_P"; then
3115 if ${ac_cv_path_mkdir+:} false
; then :
3116 $as_echo_n "(cached) " >&6
3118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3119 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3122 test -z "$as_dir" && as_dir
=.
3123 for ac_prog
in mkdir gmkdir
; do
3124 for ac_exec_ext
in '' $ac_executable_extensions; do
3125 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3126 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3127 'mkdir (GNU coreutils) '* | \
3128 'mkdir (coreutils) '* | \
3129 'mkdir (fileutils) '4.1*)
3130 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3140 test -d .
/--version && rmdir .
/--version
3141 if test "${ac_cv_path_mkdir+set}" = set; then
3142 MKDIR_P
="$ac_cv_path_mkdir -p"
3144 # As a last resort, use the slow shell script. Don't cache a
3145 # value for MKDIR_P within a source directory, because that will
3146 # break other packages using the cache if that directory is
3147 # removed, or if the value is a relative name.
3148 MKDIR_P
="$ac_install_sh -d"
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3152 $as_echo "$MKDIR_P" >&6; }
3156 [\\/$
]* | ?
:[\\/]*) ;;
3157 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3160 for ac_prog
in gawk mawk nawk
awk
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy
$ac_prog; ac_word
=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_AWK+:} false
; then :
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$AWK"; then
3170 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir
=.
3177 for ac_exec_ext
in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_AWK
="$ac_prog"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 if test -n "$AWK"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3192 $as_echo "$AWK" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3199 test -n "$AWK" && break
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3203 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3205 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3206 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3207 $as_echo_n "(cached) " >&6
3209 cat >conftest.
make <<\_ACEOF
3212 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3214 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3215 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3217 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3219 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3223 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225 $as_echo "yes" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 SET_MAKE
="MAKE=${MAKE-make}"
3233 rm -rf .tst
2>/dev
/null
3234 mkdir .tst
2>/dev
/null
3235 if test -d .tst
; then
3240 rmdir .tst
2>/dev
/null
3242 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3243 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3244 # is not polluted with repeated "-I."
3245 am__isrc
=' -I$(srcdir)'
3246 # test to see if srcdir already configured
3247 if test -f $srcdir/config.status
; then
3248 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3252 # test whether we have cygpath
3253 if test -z "$CYGPATH_W"; then
3254 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3255 CYGPATH_W
='cygpath -w'
3262 # Define the identity of the package.
3267 cat >>confdefs.h
<<_ACEOF
3268 #define PACKAGE "$PACKAGE"
3272 cat >>confdefs.h
<<_ACEOF
3273 #define VERSION "$VERSION"
3276 # Some tools Automake needs.
3278 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3281 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3284 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3287 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3290 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3292 # We need awk for the "check" target. The system "awk" is bad on
3294 # Always define AMTAR for backward compatibility. Yes, it's still used
3295 # in the wild :-( We should find a proper way to deprecate it ...
3298 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3304 # Make sure we can run config.sub.
3305 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3306 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3309 $as_echo_n "checking build system type... " >&6; }
3310 if ${ac_cv_build+:} false
; then :
3311 $as_echo_n "(cached) " >&6
3313 ac_build_alias
=$build_alias
3314 test "x$ac_build_alias" = x
&&
3315 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3316 test "x$ac_build_alias" = x
&&
3317 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3318 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3319 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3323 $as_echo "$ac_cv_build" >&6; }
3324 case $ac_cv_build in
3326 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3329 ac_save_IFS
=$IFS; IFS
='-'
3335 # Remember, the first character of IFS is used to create $*,
3336 # except with old shells:
3339 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3343 $as_echo_n "checking host system type... " >&6; }
3344 if ${ac_cv_host+:} false
; then :
3345 $as_echo_n "(cached) " >&6
3347 if test "x$host_alias" = x
; then
3348 ac_cv_host
=$ac_cv_build
3350 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3351 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3356 $as_echo "$ac_cv_host" >&6; }
3359 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3362 ac_save_IFS
=$IFS; IFS
='-'
3368 # Remember, the first character of IFS is used to create $*,
3369 # except with old shells:
3372 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3375 DEPDIR
="${am__leading_dot}deps"
3377 ac_config_commands
="$ac_config_commands depfiles"
3380 am_make
=${MAKE-make}
3381 cat > confinc
<< 'END'
3383 @
echo this is the am__doit target
3386 # If we don't find an include directive, just comment out the code.
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3388 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3392 # First try GNU make style include.
3393 echo "include confinc" > confmf
3394 # Ignore all kinds of additional output from `make'.
3395 case `$am_make -s -f confmf 2> /dev/null` in #(
3396 *the\ am__doit\ target
*)
3402 # Now try BSD make style include.
3403 if test "$am__include" = "#"; then
3404 echo '.include "confinc"' > confmf
3405 case `$am_make -s -f confmf 2> /dev/null` in #(
3406 *the\ am__doit\ target
*)
3407 am__include
=.include
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3416 $as_echo "$_am_result" >&6; }
3417 rm -f confinc confmf
3419 # Check whether --enable-dependency-tracking was given.
3420 if test "${enable_dependency_tracking+set}" = set; then :
3421 enableval
=$enable_dependency_tracking;
3424 if test "x$enable_dependency_tracking" != xno
; then
3425 am_depcomp
="$ac_aux_dir/depcomp"
3429 if test "x$enable_dependency_tracking" != xno; then
3439 ac_cpp
='$CPP $CPPFLAGS'
3440 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3443 if test -n "$ac_tool_prefix"; then
3444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3445 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_CC+:} false
; then :
3449 $as_echo_n "(cached) " >&6
3451 if test -n "$CC"; then
3452 ac_cv_prog_CC
="$CC" # Let the user override the test.
3454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3458 test -z "$as_dir" && as_dir
=.
3459 for ac_exec_ext
in '' $ac_executable_extensions; do
3460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 if test -n "$CC"; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3474 $as_echo "$CC" >&6; }
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3482 if test -z "$ac_cv_prog_CC"; then
3484 # Extract the first word of "gcc", so it can be a program name with args.
3485 set dummy gcc
; ac_word
=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3489 $as_echo_n "(cached) " >&6
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir
=.
3499 for ac_exec_ext
in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_ac_ct_CC
="gcc"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3514 $as_echo "$ac_ct_CC" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3520 if test "x$ac_ct_CC" = x
; then
3523 case $cross_compiling:$ac_tool_warned in
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3527 ac_tool_warned
=yes ;;
3535 if test -z "$CC"; then
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3538 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_CC+:} false
; then :
3542 $as_echo_n "(cached) " >&6
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC
="$CC" # Let the user override the test.
3547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir
=.
3552 for ac_exec_ext
in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3576 if test -z "$CC"; then
3577 # Extract the first word of "cc", so it can be a program name with args.
3578 set dummy cc
; ac_word
=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if ${ac_cv_prog_CC+:} false
; then :
3582 $as_echo_n "(cached) " >&6
3584 if test -n "$CC"; then
3585 ac_cv_prog_CC
="$CC" # Let the user override the test.
3588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir
=.
3593 for ac_exec_ext
in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3596 ac_prog_rejected
=yes
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 if test $ac_prog_rejected = yes; then
3608 # We found a bogon in the path, so make sure we never use it.
3609 set dummy
$ac_cv_prog_CC
3611 if test $# != 0; then
3612 # We chose a different compiler from the bogus one.
3613 # However, it has the same basename, so the bogon will be chosen
3614 # first if we set CC to just the basename; use the full file name.
3616 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3622 if test -n "$CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3624 $as_echo "$CC" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3632 if test -z "$CC"; then
3633 if test -n "$ac_tool_prefix"; then
3634 for ac_prog
in cl.exe
3636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3637 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if ${ac_cv_prog_CC+:} false
; then :
3641 $as_echo_n "(cached) " >&6
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC
="$CC" # Let the user override the test.
3646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3650 test -z "$as_dir" && as_dir
=.
3651 for ac_exec_ext
in '' $ac_executable_extensions; do
3652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3653 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 if test -n "$CC"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666 $as_echo "$CC" >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3673 test -n "$CC" && break
3676 if test -z "$CC"; then
3678 for ac_prog
in cl.exe
3680 # Extract the first word of "$ac_prog", so it can be a program name with args.
3681 set dummy
$ac_prog; ac_word
=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3685 $as_echo_n "(cached) " >&6
3687 if test -n "$ac_ct_CC"; then
3688 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir
=.
3695 for ac_exec_ext
in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_ac_ct_CC
="$ac_prog"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3708 if test -n "$ac_ct_CC"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3710 $as_echo "$ac_ct_CC" >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3717 test -n "$ac_ct_CC" && break
3720 if test "x$ac_ct_CC" = x
; then
3723 case $cross_compiling:$ac_tool_warned in
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727 ac_tool_warned
=yes ;;
3736 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 as_fn_error $?
"no acceptable C compiler found in \$PATH
3739 See \`config.log' for more details" "$LINENO" 5; }
3741 # Provide some information about the compiler.
3742 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3745 for ac_option
in --version -v -V -qversion; do
3746 { { ac_try
="$ac_compiler $ac_option >&5"
3748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3755 if test -s conftest.err; then
3757 ... rest of stderr output deleted ...
3758 10q' conftest.err >conftest.er1
3759 cat conftest.er1 >&5
3761 rm -f conftest.er1 conftest.err
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3777 ac_clean_files_save=$ac_clean_files
3778 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3779 # Try to create an executable without -o first, disregard a.out.
3780 # It will help us diagnose broken compilers, and finding out an intuition
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3783 $as_echo_n "checking whether the C compiler works... " >&6; }
3784 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3786 # The possible output files:
3787 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3790 for ac_file in $ac_files
3793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3794 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3799 if { { ac_try="$ac_link_default"
3801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3802 *) ac_try_echo
=$ac_try;;
3804 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_link_default") 2>&5
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }; then :
3810 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3811 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3812 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3813 # so that the user can short-circuit this test for compilers unknown to
3815 for ac_file
in $ac_files ''
3817 test -f "$ac_file" ||
continue
3819 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3822 # We found the default executable, but exeext='' is most
3826 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3828 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3830 # We set ac_cv_exeext here because the later test for it is not
3831 # safe: cross compilers may not add the suffix if given an `-o'
3832 # argument, so we may need to know it at that point already.
3833 # Even if this section looks crufty: it has the advantage of
3840 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3845 if test -z "$ac_file"; then :
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 $as_echo "no" >&6; }
3848 $as_echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.
$ac_ext >&5
3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error
77 "C compiler cannot create executables
3854 See \`config.log' for more details" "$LINENO" 5; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3857 $as_echo "yes" >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3860 $as_echo_n "checking for C compiler default output file name... " >&6; }
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3862 $as_echo "$ac_file" >&6; }
3863 ac_exeext
=$ac_cv_exeext
3865 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3866 ac_clean_files
=$ac_clean_files_save
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3868 $as_echo_n "checking for suffix of executables... " >&6; }
3869 if { { ac_try
="$ac_link"
3871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_link") 2>&5
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; then :
3880 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3881 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3882 # work properly (i.e., refer to `conftest.exe'), while it won't with
3884 for ac_file
in conftest.exe conftest conftest.
*; do
3885 test -f "$ac_file" ||
continue
3887 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3888 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3897 See \`config.log' for more details" "$LINENO" 5; }
3899 rm -f conftest conftest
$ac_cv_exeext
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3901 $as_echo "$ac_cv_exeext" >&6; }
3903 rm -f conftest.
$ac_ext
3904 EXEEXT
=$ac_cv_exeext
3906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3912 FILE *f = fopen ("conftest.out", "w");
3913 return ferror (f) || fclose (f) != 0;
3919 ac_clean_files
="$ac_clean_files conftest.out"
3920 # Check that the compiler produces executables we can run. If not, either
3921 # the compiler is broken, or we cross compile.
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3923 $as_echo_n "checking whether we are cross compiling... " >&6; }
3924 if test "$cross_compiling" != yes; then
3925 { { ac_try
="$ac_link"
3927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_link") 2>&5
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936 if { ac_try='./conftest$ac_cv_exeext'
3937 { { case "(($ac_try" in
3938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3939 *) ac_try_echo
=$ac_try;;
3941 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_try") 2>&5
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; }; then
3949 if test "$cross_compiling" = maybe
; then
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error $?
"cannot run C compiled programs.
3955 If you meant to cross compile, use \`--host'.
3956 See \`config.log' for more details" "$LINENO" 5; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3961 $as_echo "$cross_compiling" >&6; }
3963 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3964 ac_clean_files
=$ac_clean_files_save
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3966 $as_echo_n "checking for suffix of object files... " >&6; }
3967 if ${ac_cv_objext+:} false
; then :
3968 $as_echo_n "(cached) " >&6
3970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3981 rm -f conftest.o conftest.obj
3982 if { { ac_try
="$ac_compile"
3984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3988 $as_echo "$ac_try_echo"; } >&5
3989 (eval "$ac_compile") 2>&5
3991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992 test $ac_status = 0; }; then :
3993 for ac_file in conftest.o conftest.obj conftest.*; do
3994 test -f "$ac_file" || continue;
3996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3997 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4002 $as_echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4008 See \
`config.log' for more details" "$LINENO" 5; }
4010 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4013 $as_echo "$ac_cv_objext" >&6; }
4014 OBJEXT=$ac_cv_objext
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4017 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4018 if ${ac_cv_c_compiler_gnu+:} false; then :
4019 $as_echo_n "(cached) " >&6
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4035 if ac_fn_c_try_compile "$LINENO"; then :
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4045 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4046 if test $ac_compiler_gnu = yes; then
4051 ac_test_CFLAGS=${CFLAGS+set}
4052 ac_save_CFLAGS=$CFLAGS
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4054 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4055 if ${ac_cv_prog_cc_g+:} false; then :
4056 $as_echo_n "(cached) " >&6
4058 ac_save_c_werror_flag=$ac_c_werror_flag
4059 ac_c_werror_flag=yes
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 if ac_fn_c_try_compile "$LINENO"; then :
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4091 ac_c_werror_flag=$ac_save_c_werror_flag
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4104 if ac_fn_c_try_compile "$LINENO"; then :
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_c_werror_flag=$ac_save_c_werror_flag
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4115 $as_echo "$ac_cv_prog_cc_g" >&6; }
4116 if test "$ac_test_CFLAGS" = set; then
4117 CFLAGS=$ac_save_CFLAGS
4118 elif test $ac_cv_prog_cc_g = yes; then
4119 if test "$GCC" = yes; then
4125 if test "$GCC" = yes; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4132 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4133 if ${ac_cv_prog_cc_c89+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 ac_cv_prog_cc_c89=no
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4142 #include <sys/types.h>
4143 #include <sys/stat.h>
4144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4145 struct buf { int x; };
4146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4147 static char *e (p, i)
4153 static char *f (char * (*g) (char **, int), char **p, ...)
4158 s = g (p, va_arg (v,int));
4163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4164 function prototypes and stuff, but not '\xHH' hex character constants.
4165 These don't provoke an error unfortunately, instead are silently treated
4166 as 'x'. The following induces an error, until -std is added to get
4167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4168 array size at least. It's necessary to write '\x00'==0 to get something
4169 that's true only with -std. */
4170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4172 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4173 inside strings and character constants. */
4175 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4177 int test (int i, double x);
4178 struct s1 {int (*f) (int a);};
4179 struct s2 {int (*f) (double a);};
4180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4191 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4194 CC="$ac_save_CC $ac_arg"
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_cv_prog_cc_c89=$ac_arg
4198 rm -f core conftest.err conftest.$ac_objext
4199 test "x$ac_cv_prog_cc_c89" != "xno" && break
4201 rm -f conftest.$ac_ext
4206 case "x$ac_cv_prog_cc_c89" in
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4209 $as_echo "none needed" >&6; } ;;
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4212 $as_echo "unsupported" >&6; } ;;
4214 CC="$CC $ac_cv_prog_cc_c89"
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4216 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4218 if test "x$ac_cv_prog_cc_c89" != xno; then :
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 depcc="$CC" am_compiler_list=
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4231 $as_echo_n "checking dependency style of $depcc... " >&6; }
4232 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4233 $as_echo_n "(cached) " >&6
4235 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4236 # We make a subdir and do the tests there. Otherwise we can end up
4237 # making bogus files that we don't know about and never remove. For
4238 # instance it was reported that on HP-UX the gcc test will end up
4239 # making a dummy file named `D
' -- because `-MD' means
`put the output
4243 # Copy depcomp to subdir because otherwise we won't find it if we're
4244 # using a relative directory.
4245 cp "$am_depcomp" conftest.dir
4247 # We will build objects and dependencies in a subdirectory because
4248 # it helps to detect inapplicable dependency modes. For instance
4249 # both Tru64's cc and ICC support -MD to output dependencies as a
4250 # side effect of compilation, but ICC will put the dependencies in
4251 # the current directory while Tru64 will put them in the object
4255 am_cv_CC_dependencies_compiler_type=none
4256 if test "$am_compiler_list" = ""; then
4257 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4260 case " $depcc " in #(
4261 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4264 for depmode in $am_compiler_list; do
4265 # Setup a source with many dependencies, because some compilers
4266 # like to wrap large dependency lists on column 80 (with \), and
4267 # we should not choose a depcomp mode which is confused by this.
4269 # We need to recreate these files for each test, as the compiler may
4270 # overwrite some of them when testing with obscure command lines.
4271 # This happens at least with the AIX C compiler.
4273 for i in 1 2 3 4 5 6; do
4274 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4275 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
4276 # Solaris 8's
{/usr
,}/bin
/sh.
4277 touch sub
/conftst
$i.h
4279 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4282 # mode. It turns out that the SunPro C++ compiler does not properly
4283 # handle `-M -o', and we need to detect this. Also, some Intel
4284 # versions had trouble with output in subdirs
4285 am__obj
=sub
/conftest.
${OBJEXT-o}
4286 am__minus_obj
="-o $am__obj"
4289 # This depmode causes a compiler race in universal mode.
4290 test "$am__universal" = false ||
continue
4293 # after this tag, mechanisms are not by side-effect, so they'll
4294 # only be used when explicitly requested
4295 if test "x$enable_dependency_tracking" = xyes
; then
4301 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4302 # This compiler won't grok `-c -o', but also, the minuso test has
4303 # not run yet. These depmodes are late enough in the game, and
4304 # so weak that their functioning should not be impacted.
4305 am__obj
=conftest.
${OBJEXT-o}
4310 if depmode
=$depmode \
4311 source=sub
/conftest.c object
=$am__obj \
4312 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4313 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4314 >/dev
/null
2>conftest.err
&&
4315 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4316 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4317 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4318 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4319 # icc doesn't choke on unknown options, it will just issue warnings
4320 # or remarks (even with -Werror). So we grep stderr for any message
4321 # that says an option was ignored or not supported.
4322 # When given -MP, icc 7.0 and 7.1 complain thusly:
4323 # icc: Command line warning: ignoring option '-M'; no argument required
4324 # The diagnosis changed in icc 8.0:
4325 # icc: Command line remark: option '-MP' not supported
4326 if (grep 'ignoring option' conftest.err ||
4327 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4328 am_cv_CC_dependencies_compiler_type
=$depmode
4337 am_cv_CC_dependencies_compiler_type
=none
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4342 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4343 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4346 test "x$enable_dependency_tracking" != xno \
4347 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4349 am__fastdepCC_FALSE
='#'
4351 am__fastdepCC_TRUE
='#'
4352 am__fastdepCC_FALSE
=
4358 ac_cpp
='$CPP $CPPFLAGS'
4359 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4363 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4364 # On Suns, sometimes $CPP names a directory.
4365 if test -n "$CPP" && test -d "$CPP"; then
4368 if test -z "$CPP"; then
4369 if ${ac_cv_prog_CPP+:} false
; then :
4370 $as_echo_n "(cached) " >&6
4372 # Double quotes because CPP needs to be expanded
4373 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4376 for ac_c_preproc_warn_flag
in '' yes
4378 # Use a header file that comes with gcc, so configuring glibc
4379 # with a fresh cross-compiler works.
4380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381 # <limits.h> exists even on freestanding compilers.
4382 # On the NeXT, cc -E runs the code through the compiler's parser,
4383 # not just through cpp. "Syntax error" is here to catch this case.
4384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4387 # include <limits.h>
4389 # include <assert.h>
4393 if ac_fn_c_try_cpp
"$LINENO"; then :
4396 # Broken: fails on valid input.
4399 rm -f conftest.err conftest.i conftest.
$ac_ext
4401 # OK, works on sane cases. Now check whether nonexistent headers
4402 # can be detected and how.
4403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <ac_nonexistent.h>
4407 if ac_fn_c_try_cpp
"$LINENO"; then :
4408 # Broken: success on invalid input.
4411 # Passes both tests.
4415 rm -f conftest.err conftest.i conftest.
$ac_ext
4418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419 rm -f conftest.i conftest.err conftest.
$ac_ext
4420 if $ac_preproc_ok; then :
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4433 $as_echo "$CPP" >&6; }
4435 for ac_c_preproc_warn_flag
in '' yes
4437 # Use a header file that comes with gcc, so configuring glibc
4438 # with a fresh cross-compiler works.
4439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4440 # <limits.h> exists even on freestanding compilers.
4441 # On the NeXT, cc -E runs the code through the compiler's parser,
4442 # not just through cpp. "Syntax error" is here to catch this case.
4443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4446 # include <limits.h>
4448 # include <assert.h>
4452 if ac_fn_c_try_cpp
"$LINENO"; then :
4455 # Broken: fails on valid input.
4458 rm -f conftest.err conftest.i conftest.
$ac_ext
4460 # OK, works on sane cases. Now check whether nonexistent headers
4461 # can be detected and how.
4462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464 #include <ac_nonexistent.h>
4466 if ac_fn_c_try_cpp
"$LINENO"; then :
4467 # Broken: success on invalid input.
4470 # Passes both tests.
4474 rm -f conftest.err conftest.i conftest.
$ac_ext
4477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478 rm -f conftest.i conftest.err conftest.
$ac_ext
4479 if $ac_preproc_ok; then :
4482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4485 See \`config.log' for more details" "$LINENO" 5; }
4489 ac_cpp
='$CPP $CPPFLAGS'
4490 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4496 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4497 if ${ac_cv_path_GREP+:} false
; then :
4498 $as_echo_n "(cached) " >&6
4500 if test -z "$GREP"; then
4501 ac_path_GREP_found
=false
4502 # Loop through the user's path and test for each of PROGNAME-LIST
4503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4504 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4507 test -z "$as_dir" && as_dir
=.
4508 for ac_prog
in grep ggrep
; do
4509 for ac_exec_ext
in '' $ac_executable_extensions; do
4510 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4511 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4512 # Check for GNU ac_path_GREP and select it if it is found.
4513 # Check for GNU $ac_path_GREP
4514 case `"$ac_path_GREP" --version 2>&1` in
4516 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4519 $as_echo_n 0123456789 >"conftest.in"
4522 cat "conftest.in" "conftest.in" >"conftest.tmp"
4523 mv "conftest.tmp" "conftest.in"
4524 cp "conftest.in" "conftest.nl"
4525 $as_echo 'GREP' >> "conftest.nl"
4526 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4527 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4528 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4529 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530 # Best one so far, save it but keep looking for a better one
4531 ac_cv_path_GREP
="$ac_path_GREP"
4532 ac_path_GREP_max
=$ac_count
4534 # 10*(2^10) chars as input seems more than enough
4535 test $ac_count -gt 10 && break
4537 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4540 $ac_path_GREP_found && break 3
4545 if test -z "$ac_cv_path_GREP"; then
4546 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549 ac_cv_path_GREP
=$GREP
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4554 $as_echo "$ac_cv_path_GREP" >&6; }
4555 GREP
="$ac_cv_path_GREP"
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4559 $as_echo_n "checking for egrep... " >&6; }
4560 if ${ac_cv_path_EGREP+:} false
; then :
4561 $as_echo_n "(cached) " >&6
4563 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4564 then ac_cv_path_EGREP
="$GREP -E"
4566 if test -z "$EGREP"; then
4567 ac_path_EGREP_found
=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4570 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4573 test -z "$as_dir" && as_dir
=.
4574 for ac_prog
in egrep; do
4575 for ac_exec_ext
in '' $ac_executable_extensions; do
4576 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4577 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4578 # Check for GNU ac_path_EGREP and select it if it is found.
4579 # Check for GNU $ac_path_EGREP
4580 case `"$ac_path_EGREP" --version 2>&1` in
4582 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4585 $as_echo_n 0123456789 >"conftest.in"
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo 'EGREP' >> "conftest.nl"
4592 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4593 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4594 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4595 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_EGREP
="$ac_path_EGREP"
4598 ac_path_EGREP_max
=$ac_count
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4603 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4606 $ac_path_EGREP_found && break 3
4611 if test -z "$ac_cv_path_EGREP"; then
4612 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615 ac_cv_path_EGREP
=$EGREP
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4621 $as_echo "$ac_cv_path_EGREP" >&6; }
4622 EGREP
="$ac_cv_path_EGREP"
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4626 $as_echo_n "checking for ANSI C header files... " >&6; }
4627 if ${ac_cv_header_stdc+:} false
; then :
4628 $as_echo_n "(cached) " >&6
4630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4645 if ac_fn_c_try_compile
"$LINENO"; then :
4646 ac_cv_header_stdc
=yes
4648 ac_cv_header_stdc
=no
4650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4652 if test $ac_cv_header_stdc = yes; then
4653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660 $EGREP "memchr" >/dev
/null
2>&1; then :
4663 ac_cv_header_stdc
=no
4669 if test $ac_cv_header_stdc = yes; then
4670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4677 $EGREP "free" >/dev
/null
2>&1; then :
4680 ac_cv_header_stdc
=no
4686 if test $ac_cv_header_stdc = yes; then
4687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4688 if test "$cross_compiling" = yes; then :
4691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4695 #if ((' ' & 0x0FF) == 0x020)
4696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4699 # define ISLOWER(c) \
4700 (('a' <= (c) && (c) <= 'i') \
4701 || ('j' <= (c) && (c) <= 'r') \
4702 || ('s' <= (c) && (c) <= 'z'))
4703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4711 for (i = 0; i < 256; i++)
4712 if (XOR (islower (i), ISLOWER (i))
4713 || toupper (i) != TOUPPER (i))
4718 if ac_fn_c_try_run
"$LINENO"; then :
4721 ac_cv_header_stdc
=no
4723 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4724 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4730 $as_echo "$ac_cv_header_stdc" >&6; }
4731 if test $ac_cv_header_stdc = yes; then
4733 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4737 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4738 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4739 inttypes.h stdint.h unistd.h
4741 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4742 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4744 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4745 cat >>confdefs.h
<<_ACEOF
4746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4755 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4756 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4763 if test "$MINIX" = yes; then
4765 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4768 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4771 $as_echo "#define _MINIX 1" >>confdefs.h
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4777 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4778 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4779 $as_echo_n "(cached) " >&6
4781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4784 # define __EXTENSIONS__ 1
4785 $ac_includes_default
4794 if ac_fn_c_try_compile
"$LINENO"; then :
4795 ac_cv_safe_to_define___extensions__
=yes
4797 ac_cv_safe_to_define___extensions__
=no
4799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4802 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4803 test $ac_cv_safe_to_define___extensions__ = yes &&
4804 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4806 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4808 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4810 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4812 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4816 # Check whether --enable-lzo was given.
4817 if test "${enable_lzo+set}" = set; then :
4818 enableval
=$enable_lzo;
4825 # Check whether --enable-lzo-stub was given.
4826 if test "${enable_lzo_stub+set}" = set; then :
4827 enableval
=$enable_lzo_stub;
4829 enable_lzo_stub
="no"
4834 # Check whether --enable-crypto was given.
4835 if test "${enable_crypto+set}" = set; then :
4836 enableval
=$enable_crypto;
4843 # Check whether --enable-ssl was given.
4844 if test "${enable_ssl+set}" = set; then :
4845 enableval
=$enable_ssl;
4852 # Check whether --enable-x509-alt-username was given.
4853 if test "${enable_x509_alt_username+set}" = set; then :
4854 enableval
=$enable_x509_alt_username;
4856 enable_x509_alt_username
="no"
4861 # Check whether --enable-multi was given.
4862 if test "${enable_multi+set}" = set; then :
4863 enableval
=$enable_multi;
4870 # Check whether --enable-server was given.
4871 if test "${enable_server+set}" = set; then :
4872 enableval
=$enable_server;
4879 # Check whether --enable-plugins was given.
4880 if test "${enable_plugins+set}" = set; then :
4881 enableval
=$enable_plugins;
4883 enable_plugins
="yes"
4888 # Check whether --enable-eurephia was given.
4889 if test "${enable_eurephia+set}" = set; then :
4890 enableval
=$enable_eurephia;
4892 enable_eurephia
="yes"
4897 # Check whether --enable-management was given.
4898 if test "${enable_management+set}" = set; then :
4899 enableval
=$enable_management;
4901 enable_management
="yes"
4906 # Check whether --enable-pkcs11 was given.
4907 if test "${enable_pkcs11+set}" = set; then :
4908 enableval
=$enable_pkcs11;
4915 # Check whether --enable-socks was given.
4916 if test "${enable_socks+set}" = set; then :
4917 enableval
=$enable_socks;
4924 # Check whether --enable-http-proxy was given.
4925 if test "${enable_http_proxy+set}" = set; then :
4926 enableval
=$enable_http_proxy;
4928 enable_http_proxy
="yes"
4933 # Check whether --enable-fragment was given.
4934 if test "${enable_fragment+set}" = set; then :
4935 enableval
=$enable_fragment;
4937 enable_fragment
="yes"
4942 # Check whether --enable-multihome was given.
4943 if test "${enable_multihome+set}" = set; then :
4944 enableval
=$enable_multihome;
4946 enable_multihome
="yes"
4951 # Check whether --enable-port-share was given.
4952 if test "${enable_port_share+set}" = set; then :
4953 enableval
=$enable_port_share;
4955 enable_port_share
="yes"
4960 # Check whether --enable-debug was given.
4961 if test "${enable_debug+set}" = set; then :
4962 enableval
=$enable_debug;
4969 # Check whether --enable-small was given.
4970 if test "${enable_small+set}" = set; then :
4971 enableval
=$enable_small;
4978 # Check whether --enable-password-save was given.
4979 if test "${enable_password_save+set}" = set; then :
4980 enableval
=$enable_password_save;
4982 enable_password_save
="no"
4987 # Check whether --enable-iproute2 was given.
4988 if test "${enable_iproute2+set}" = set; then :
4989 enableval
=$enable_iproute2;
4991 enable_iproute2
="no"
4996 # Check whether --enable-def-auth was given.
4997 if test "${enable_def_auth+set}" = set; then :
4998 enableval
=$enable_def_auth;
5000 enable_def_auth
="yes"
5005 # Check whether --enable-pf was given.
5006 if test "${enable_pf+set}" = set; then :
5007 enableval
=$enable_pf;
5014 # Check whether --enable-plugin-auth-pam was given.
5015 if test "${enable_plugin_auth_pam+set}" = set; then :
5016 enableval
=$enable_plugin_auth_pam;
5020 *-*-openbsd*) enable_plugin_auth_pam
="no";;
5021 *-mingw*) enable_plugin_auth_pam
="no";;
5022 *) enable_plugin_auth_pam
="yes";;
5029 # Check whether --enable-plugin-down-root was given.
5030 if test "${enable_plugin_down_root+set}" = set; then :
5031 enableval
=$enable_plugin_down_root;
5035 *-mingw*) enable_plugin_down_root
="no";;
5036 *) enable_plugin_down_root
="yes";;
5043 # Check whether --enable-pam-dlopen was given.
5044 if test "${enable_pam_dlopen+set}" = set; then :
5045 enableval
=$enable_pam_dlopen;
5047 enable_pam_dlopen
="no"
5052 # Check whether --enable-strict was given.
5053 if test "${enable_strict+set}" = set; then :
5054 enableval
=$enable_strict;
5061 # Check whether --enable-pedantic was given.
5062 if test "${enable_pedantic+set}" = set; then :
5063 enableval
=$enable_pedantic;
5065 enable_pedantic
="no"
5070 # Check whether --enable-strict-options was given.
5071 if test "${enable_strict_options+set}" = set; then :
5072 enableval
=$enable_strict_options;
5074 enable_strict_options
="no"
5079 # Check whether --enable-selinux was given.
5080 if test "${enable_selinux+set}" = set; then :
5081 enableval
=$enable_selinux;
5088 # Check whether --enable-systemd was given.
5089 if test "${enable_systemd+set}" = set; then :
5090 enableval
=$enable_systemd;
5098 # Check whether --with-special-build was given.
5099 if test "${with_special_build+set}" = set; then :
5100 withval
=$with_special_build; test -n "${withval}" &&
5101 cat >>confdefs.h
<<_ACEOF
5102 #define CONFIGURE_SPECIAL_BUILD "${withval}"
5110 # Check whether --with-mem-check was given.
5111 if test "${with_mem_check+set}" = set; then :
5112 withval
=$with_mem_check;
5113 case "${withval}" in
5114 dmalloc|valgrind|ssl|no
) ;;
5115 *) as_fn_error $?
"bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5125 # Check whether --with-crypto-library was given.
5126 if test "${with_crypto_library+set}" = set; then :
5127 withval
=$with_crypto_library;
5128 case "${withval}" in
5129 openssl|polarssl
) ;;
5130 *) as_fn_error $?
"bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5134 with_crypto_library
="openssl"
5140 # Check whether --with-plugindir was given.
5141 if test "${with_plugindir+set}" = set; then :
5142 withval
=$with_plugindir;
5144 with_plugindir
="\$(libdir)/openvpn/plugins"
5151 cat >>confdefs.h
<<_ACEOF
5152 #define TARGET_ALIAS "${host}"
5158 $as_echo "#define TARGET_LINUX 1" >>confdefs.h
5161 cat >>confdefs.h
<<_ACEOF
5162 #define TARGET_PREFIX "L"
5168 $as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5171 cat >>confdefs.h
<<_ACEOF
5172 #define TARGET_PREFIX "S"
5178 $as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5181 cat >>confdefs.h
<<_ACEOF
5182 #define TARGET_PREFIX "O"
5188 $as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5191 cat >>confdefs.h
<<_ACEOF
5192 #define TARGET_PREFIX "F"
5198 $as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5201 cat >>confdefs.h
<<_ACEOF
5202 #define TARGET_PREFIX "N"
5208 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5211 cat >>confdefs.h
<<_ACEOF
5212 #define TARGET_PREFIX "M"
5215 have_tap_header
="yes"
5216 CPPFLAGS
="$CPPFLAGS -no-cpp-precomp"
5220 $as_echo "#define TARGET_WIN32 1" >>confdefs.h
5223 cat >>confdefs.h
<<_ACEOF
5224 #define TARGET_PREFIX "W"
5227 CPPFLAGS
="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5228 CPPFLAGS
="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
5233 $as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5236 cat >>confdefs.h
<<_ACEOF
5237 #define TARGET_PREFIX "D"
5243 cat >>confdefs.h
<<_ACEOF
5244 #define TARGET_PREFIX "X"
5247 have_tap_header
="yes"
5258 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5259 if test -n "$ac_tool_prefix"; then
5260 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5261 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5265 $as_echo_n "(cached) " >&6
5269 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5276 test -z "$as_dir" && as_dir
=.
5277 for ac_exec_ext
in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5291 if test -n "$PKG_CONFIG"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5293 $as_echo "$PKG_CONFIG" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5301 if test -z "$ac_cv_path_PKG_CONFIG"; then
5302 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5303 # Extract the first word of "pkg-config", so it can be a program name with args.
5304 set dummy pkg-config
; ac_word
=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5308 $as_echo_n "(cached) " >&6
5310 case $ac_pt_PKG_CONFIG in
5312 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir
=.
5320 for ac_exec_ext
in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5334 if test -n "$ac_pt_PKG_CONFIG"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5336 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5342 if test "x$ac_pt_PKG_CONFIG" = x
; then
5345 case $cross_compiling:$ac_tool_warned in
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5349 ac_tool_warned
=yes ;;
5351 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5354 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5358 if test -n "$PKG_CONFIG"; then
5359 _pkg_min_version
=0.9.0
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5361 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5362 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364 $as_echo "yes" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5372 ac_cpp
='$CPP $CPPFLAGS'
5373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5377 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5378 # On Suns, sometimes $CPP names a directory.
5379 if test -n "$CPP" && test -d "$CPP"; then
5382 if test -z "$CPP"; then
5383 if ${ac_cv_prog_CPP+:} false
; then :
5384 $as_echo_n "(cached) " >&6
5386 # Double quotes because CPP needs to be expanded
5387 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5390 for ac_c_preproc_warn_flag
in '' yes
5392 # Use a header file that comes with gcc, so configuring glibc
5393 # with a fresh cross-compiler works.
5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395 # <limits.h> exists even on freestanding compilers.
5396 # On the NeXT, cc -E runs the code through the compiler's parser,
5397 # not just through cpp. "Syntax error" is here to catch this case.
5398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5401 # include <limits.h>
5403 # include <assert.h>
5407 if ac_fn_c_try_cpp
"$LINENO"; then :
5410 # Broken: fails on valid input.
5413 rm -f conftest.err conftest.i conftest.
$ac_ext
5415 # OK, works on sane cases. Now check whether nonexistent headers
5416 # can be detected and how.
5417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #include <ac_nonexistent.h>
5421 if ac_fn_c_try_cpp
"$LINENO"; then :
5422 # Broken: success on invalid input.
5425 # Passes both tests.
5429 rm -f conftest.err conftest.i conftest.
$ac_ext
5432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5433 rm -f conftest.i conftest.err conftest.
$ac_ext
5434 if $ac_preproc_ok; then :
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5447 $as_echo "$CPP" >&6; }
5449 for ac_c_preproc_warn_flag
in '' yes
5451 # Use a header file that comes with gcc, so configuring glibc
5452 # with a fresh cross-compiler works.
5453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5454 # <limits.h> exists even on freestanding compilers.
5455 # On the NeXT, cc -E runs the code through the compiler's parser,
5456 # not just through cpp. "Syntax error" is here to catch this case.
5457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5460 # include <limits.h>
5462 # include <assert.h>
5466 if ac_fn_c_try_cpp
"$LINENO"; then :
5469 # Broken: fails on valid input.
5472 rm -f conftest.err conftest.i conftest.
$ac_ext
5474 # OK, works on sane cases. Now check whether nonexistent headers
5475 # can be detected and how.
5476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478 #include <ac_nonexistent.h>
5480 if ac_fn_c_try_cpp
"$LINENO"; then :
5481 # Broken: success on invalid input.
5484 # Passes both tests.
5488 rm -f conftest.err conftest.i conftest.
$ac_ext
5491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5492 rm -f conftest.i conftest.err conftest.
$ac_ext
5493 if $ac_preproc_ok; then :
5496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5498 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5499 See \`config.log' for more details" "$LINENO" 5; }
5503 ac_cpp
='$CPP $CPPFLAGS'
5504 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5510 $as_echo_n "checking whether ln -s works... " >&6; }
5512 if test "$LN_S" = "ln -s"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5517 $as_echo "no, using $LN_S" >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5521 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5522 if ${ac_cv_path_SED+:} false
; then :
5523 $as_echo_n "(cached) " >&6
5525 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
5526 for ac_i
in 1 2 3 4 5 6 7; do
5527 ac_script
="$ac_script$as_nl$ac_script"
5529 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
5530 { ac_script
=; unset ac_script
;}
5531 if test -z "$SED"; then
5532 ac_path_SED_found
=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir
=.
5539 for ac_prog
in sed gsed
; do
5540 for ac_exec_ext
in '' $ac_executable_extensions; do
5541 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5542 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
5543 # Check for GNU ac_path_SED and select it if it is found.
5544 # Check for GNU $ac_path_SED
5545 case `"$ac_path_SED" --version 2>&1` in
5547 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5550 $as_echo_n 0123456789 >"conftest.in"
5553 cat "conftest.in" "conftest.in" >"conftest.tmp"
5554 mv "conftest.tmp" "conftest.in"
5555 cp "conftest.in" "conftest.nl"
5556 $as_echo '' >> "conftest.nl"
5557 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5558 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5559 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5560 if test $ac_count -gt ${ac_path_SED_max-0}; then
5561 # Best one so far, save it but keep looking for a better one
5562 ac_cv_path_SED
="$ac_path_SED"
5563 ac_path_SED_max
=$ac_count
5565 # 10*(2^10) chars as input seems more than enough
5566 test $ac_count -gt 10 && break
5568 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5571 $ac_path_SED_found && break 3
5576 if test -z "$ac_cv_path_SED"; then
5577 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5585 $as_echo "$ac_cv_path_SED" >&6; }
5586 SED
="$ac_cv_path_SED"
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5590 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5592 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5593 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5594 $as_echo_n "(cached) " >&6
5596 cat >conftest.
make <<\_ACEOF
5599 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5601 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5602 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5604 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5606 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5610 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5612 $as_echo "yes" >&6; }
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 SET_MAKE
="MAKE=${MAKE-make}"
5627 for ac_prog
in ifconfig
5629 # Extract the first word of "$ac_prog", so it can be a program name with args.
5630 set dummy
$ac_prog; ac_word
=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_path_IFCONFIG+:} false
; then :
5634 $as_echo_n "(cached) " >&6
5638 ac_cv_path_IFCONFIG
="$IFCONFIG" # Let the user override the test with a path.
5641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5642 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5643 for as_dir
in $as_dummy
5646 test -z "$as_dir" && as_dir
=.
5647 for ac_exec_ext
in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_path_IFCONFIG
="$as_dir/$ac_word$ac_exec_ext"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 IFCONFIG
=$ac_cv_path_IFCONFIG
5661 if test -n "$IFCONFIG"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
5663 $as_echo "$IFCONFIG" >&6; }
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5670 test -n "$IFCONFIG" && break
5673 for ac_prog
in route
5675 # Extract the first word of "$ac_prog", so it can be a program name with args.
5676 set dummy
$ac_prog; ac_word
=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_path_ROUTE+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5684 ac_cv_path_ROUTE
="$ROUTE" # Let the user override the test with a path.
5687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5688 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5689 for as_dir
in $as_dummy
5692 test -z "$as_dir" && as_dir
=.
5693 for ac_exec_ext
in '' $ac_executable_extensions; do
5694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695 ac_cv_path_ROUTE
="$as_dir/$ac_word$ac_exec_ext"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 ROUTE
=$ac_cv_path_ROUTE
5707 if test -n "$ROUTE"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
5709 $as_echo "$ROUTE" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5716 test -n "$ROUTE" && break
5721 # Extract the first word of "$ac_prog", so it can be a program name with args.
5722 set dummy
$ac_prog; ac_word
=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_path_IPROUTE+:} false
; then :
5726 $as_echo_n "(cached) " >&6
5730 ac_cv_path_IPROUTE
="$IPROUTE" # Let the user override the test with a path.
5733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5734 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5735 for as_dir
in $as_dummy
5738 test -z "$as_dir" && as_dir
=.
5739 for ac_exec_ext
in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_path_IPROUTE
="$as_dir/$ac_word$ac_exec_ext"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 IPROUTE
=$ac_cv_path_IPROUTE
5753 if test -n "$IPROUTE"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
5755 $as_echo "$IPROUTE" >&6; }
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5762 test -n "$IPROUTE" && break
5765 for ac_prog
in netstat
5767 # Extract the first word of "$ac_prog", so it can be a program name with args.
5768 set dummy
$ac_prog; ac_word
=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if ${ac_cv_prog_NETSTAT+:} false
; then :
5772 $as_echo_n "(cached) " >&6
5774 if test -n "$NETSTAT"; then
5775 ac_cv_prog_NETSTAT
="$NETSTAT" # Let the user override the test.
5777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5778 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
5779 for as_dir
in $as_dummy
5782 test -z "$as_dir" && as_dir
=.
5783 for ac_exec_ext
in '' $ac_executable_extensions; do
5784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785 ac_cv_prog_NETSTAT
="$ac_prog"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 NETSTAT
=$ac_cv_prog_NETSTAT
5796 if test -n "$NETSTAT"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
5798 $as_echo "$NETSTAT" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5805 test -n "$NETSTAT" && break
5807 test -n "$NETSTAT" || NETSTAT
="netstat"
5809 for ac_prog
in man2html
5811 # Extract the first word of "$ac_prog", so it can be a program name with args.
5812 set dummy
$ac_prog; ac_word
=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if ${ac_cv_prog_MAN2HTML+:} false
; then :
5816 $as_echo_n "(cached) " >&6
5818 if test -n "$MAN2HTML"; then
5819 ac_cv_prog_MAN2HTML
="$MAN2HTML" # Let the user override the test.
5821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5825 test -z "$as_dir" && as_dir
=.
5826 for ac_exec_ext
in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_MAN2HTML
="$ac_prog"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 MAN2HTML
=$ac_cv_prog_MAN2HTML
5839 if test -n "$MAN2HTML"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
5841 $as_echo "$MAN2HTML" >&6; }
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5848 test -n "$MAN2HTML" && break
5853 # Extract the first word of "$ac_prog", so it can be a program name with args.
5854 set dummy
$ac_prog; ac_word
=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_prog_GIT+:} false
; then :
5858 $as_echo_n "(cached) " >&6
5860 if test -n "$GIT"; then
5861 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
5863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir
=.
5868 for ac_exec_ext
in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_GIT
="$ac_prog"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 if test -n "$GIT"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5883 $as_echo "$GIT" >&6; }
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5890 test -n "$GIT" && break
5894 cat >>confdefs.h
<<_ACEOF
5895 #define IFCONFIG_PATH "$IFCONFIG"
5899 cat >>confdefs.h
<<_ACEOF
5900 #define IPROUTE_PATH "$IPROUTE"
5904 cat >>confdefs.h
<<_ACEOF
5905 #define ROUTE_PATH "$ROUTE"
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5916 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5921 macro_version
='2.2.10'
5922 macro_revision
='1.3175'
5936 ltmain
="$ac_aux_dir/ltmain.sh"
5938 # Backslashify metacharacters that are still active within
5939 # double-quoted strings.
5940 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5942 # Same as above, but do not quote variable references.
5943 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5945 # Sed substitution to delay expansion of an escaped shell variable in a
5946 # double_quote_subst'ed string.
5947 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5949 # Sed substitution to delay expansion of an escaped single quote.
5950 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5952 # Sed substitution to avoid accidental globbing in evaled expressions
5953 no_glob_subst
='s/\*/\\\*/g'
5955 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5960 $as_echo_n "checking how to print strings... " >&6; }
5961 # Test print first, because it will be a builtin if present.
5962 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5963 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5965 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5968 # Use this function as a fallback that always works.
5969 func_fallback_echo ()
5971 eval 'cat <<_LTECHO_EOF
5975 ECHO='func_fallback_echo
'
5978 # func_echo_all arg...
5979 # Invoke $ECHO with all args, space-separated.
5986 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5987 $as_echo "printf" >&6; } ;;
5988 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5989 $as_echo "print -r" >&6; } ;;
5990 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5991 $as_echo "cat" >&6; } ;;
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6008 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6009 if ${ac_cv_path_SED+:} false; then :
6010 $as_echo_n "(cached) " >&6
6012 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6013 for ac_i in 1 2 3 4 5 6 7; do
6014 ac_script="$ac_script$as_nl$ac_script"
6016 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6017 { ac_script=; unset ac_script;}
6018 if test -z "$SED"; then
6019 ac_path_SED_found=false
6020 # Loop through the user's path and
test for each of PROGNAME-LIST
6021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir
=.
6026 for ac_prog
in sed gsed
; do
6027 for ac_exec_ext
in '' $ac_executable_extensions; do
6028 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6029 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6030 # Check for GNU ac_path_SED and select it if it is found.
6031 # Check for GNU $ac_path_SED
6032 case `"$ac_path_SED" --version 2>&1` in
6034 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6037 $as_echo_n 0123456789 >"conftest.in"
6040 cat "conftest.in" "conftest.in" >"conftest.tmp"
6041 mv "conftest.tmp" "conftest.in"
6042 cp "conftest.in" "conftest.nl"
6043 $as_echo '' >> "conftest.nl"
6044 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6045 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6046 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6047 if test $ac_count -gt ${ac_path_SED_max-0}; then
6048 # Best one so far, save it but keep looking for a better one
6049 ac_cv_path_SED
="$ac_path_SED"
6050 ac_path_SED_max
=$ac_count
6052 # 10*(2^10) chars as input seems more than enough
6053 test $ac_count -gt 10 && break
6055 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6058 $ac_path_SED_found && break 3
6063 if test -z "$ac_cv_path_SED"; then
6064 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6072 $as_echo "$ac_cv_path_SED" >&6; }
6073 SED
="$ac_cv_path_SED"
6076 test -z "$SED" && SED
=sed
6077 Xsed
="$SED -e 1s/^X//"
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6090 $as_echo_n "checking for fgrep... " >&6; }
6091 if ${ac_cv_path_FGREP+:} false
; then :
6092 $as_echo_n "(cached) " >&6
6094 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6095 then ac_cv_path_FGREP
="$GREP -F"
6097 if test -z "$FGREP"; then
6098 ac_path_FGREP_found
=false
6099 # Loop through the user's path and test for each of PROGNAME-LIST
6100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6101 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6104 test -z "$as_dir" && as_dir
=.
6105 for ac_prog
in fgrep
; do
6106 for ac_exec_ext
in '' $ac_executable_extensions; do
6107 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6108 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
6109 # Check for GNU ac_path_FGREP and select it if it is found.
6110 # Check for GNU $ac_path_FGREP
6111 case `"$ac_path_FGREP" --version 2>&1` in
6113 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6116 $as_echo_n 0123456789 >"conftest.in"
6119 cat "conftest.in" "conftest.in" >"conftest.tmp"
6120 mv "conftest.tmp" "conftest.in"
6121 cp "conftest.in" "conftest.nl"
6122 $as_echo 'FGREP' >> "conftest.nl"
6123 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6124 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6125 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6126 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6127 # Best one so far, save it but keep looking for a better one
6128 ac_cv_path_FGREP
="$ac_path_FGREP"
6129 ac_path_FGREP_max
=$ac_count
6131 # 10*(2^10) chars as input seems more than enough
6132 test $ac_count -gt 10 && break
6134 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6137 $ac_path_FGREP_found && break 3
6142 if test -z "$ac_cv_path_FGREP"; then
6143 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6146 ac_cv_path_FGREP
=$FGREP
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6152 $as_echo "$ac_cv_path_FGREP" >&6; }
6153 FGREP
="$ac_cv_path_FGREP"
6156 test -z "$GREP" && GREP
=grep
6176 # Check whether --with-gnu-ld was given.
6177 if test "${with_gnu_ld+set}" = set; then :
6178 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6184 if test "$GCC" = yes; then
6185 # Check if gcc -print-prog-name=ld gives a path.
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6187 $as_echo_n "checking for ld used by $CC... " >&6; }
6190 # gcc leaves a trailing carriage return which upsets mingw
6191 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6193 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6196 # Accept absolute paths.
6198 re_direlt
='/[^/][^/]*/\.\./'
6199 # Canonicalize the pathname of ld
6200 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6201 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6202 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6204 test -z "$LD" && LD
="$ac_prog"
6207 # If it fails, then pretend we aren't using GCC.
6211 # If it is relative, then search for the first ld in PATH.
6215 elif test "$with_gnu_ld" = yes; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6217 $as_echo_n "checking for GNU ld... " >&6; }
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6220 $as_echo_n "checking for non-GNU ld... " >&6; }
6222 if ${lt_cv_path_LD+:} false
; then :
6223 $as_echo_n "(cached) " >&6
6225 if test -z "$LD"; then
6226 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6227 for ac_dir
in $PATH; do
6229 test -z "$ac_dir" && ac_dir
=.
6230 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6231 lt_cv_path_LD
="$ac_dir/$ac_prog"
6232 # Check to see if the program is GNU ld. I'd rather use --version,
6233 # but apparently some variants of GNU ld only accept -v.
6234 # Break only if it was the GNU/non-GNU ld that we prefer.
6235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6236 *GNU
* |
*'with BFD'*)
6237 test "$with_gnu_ld" != no
&& break
6240 test "$with_gnu_ld" != yes && break
6247 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6252 if test -n "$LD"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6254 $as_echo "$LD" >&6; }
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6259 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6261 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6262 if ${lt_cv_prog_gnu_ld+:} false
; then :
6263 $as_echo_n "(cached) " >&6
6265 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6266 case `$LD -v 2>&1 </dev/null` in
6267 *GNU
* |
*'with BFD'*)
6268 lt_cv_prog_gnu_ld
=yes
6271 lt_cv_prog_gnu_ld
=no
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6276 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6277 with_gnu_ld
=$lt_cv_prog_gnu_ld
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6288 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6289 if ${lt_cv_path_NM+:} false
; then :
6290 $as_echo_n "(cached) " >&6
6292 if test -n "$NM"; then
6293 # Let the user override the test.
6296 lt_nm_to_check
="${ac_tool_prefix}nm"
6297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6298 lt_nm_to_check
="$lt_nm_to_check nm"
6300 for lt_tmp_nm
in $lt_nm_to_check; do
6301 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6302 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6304 test -z "$ac_dir" && ac_dir
=.
6305 tmp_nm
="$ac_dir/$lt_tmp_nm"
6306 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6307 # Check to see if the nm accepts a BSD-compat flag.
6308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6309 # nm: unknown option "B" ignored
6310 # Tru64's nm complains that /dev/null is an invalid object file
6311 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6312 */dev
/null
* |
*'Invalid file or object type'*)
6313 lt_cv_path_NM
="$tmp_nm -B"
6317 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6319 lt_cv_path_NM
="$tmp_nm -p"
6323 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6324 continue # so that we can try to find one that supports BSD flags
6333 : ${lt_cv_path_NM=no}
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6337 $as_echo "$lt_cv_path_NM" >&6; }
6338 if test "$lt_cv_path_NM" != "no"; then
6341 # Didn't find any BSD compatible name lister, look for dumpbin.
6342 if test -n "$DUMPBIN"; then :
6343 # Let the user override the test.
6345 if test -n "$ac_tool_prefix"; then
6346 for ac_prog
in dumpbin
"link -dump"
6348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6349 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6353 $as_echo_n "(cached) " >&6
6355 if test -n "$DUMPBIN"; then
6356 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir
=.
6363 for ac_exec_ext
in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 DUMPBIN
=$ac_cv_prog_DUMPBIN
6376 if test -n "$DUMPBIN"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6378 $as_echo "$DUMPBIN" >&6; }
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6385 test -n "$DUMPBIN" && break
6388 if test -z "$DUMPBIN"; then
6389 ac_ct_DUMPBIN
=$DUMPBIN
6390 for ac_prog
in dumpbin
"link -dump"
6392 # Extract the first word of "$ac_prog", so it can be a program name with args.
6393 set dummy
$ac_prog; ac_word
=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6397 $as_echo_n "(cached) " >&6
6399 if test -n "$ac_ct_DUMPBIN"; then
6400 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6406 test -z "$as_dir" && as_dir
=.
6407 for ac_exec_ext
in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6420 if test -n "$ac_ct_DUMPBIN"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6422 $as_echo "$ac_ct_DUMPBIN" >&6; }
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6429 test -n "$ac_ct_DUMPBIN" && break
6432 if test "x$ac_ct_DUMPBIN" = x
; then
6435 case $cross_compiling:$ac_tool_warned in
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439 ac_tool_warned
=yes ;;
6441 DUMPBIN
=$ac_ct_DUMPBIN
6445 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6447 DUMPBIN
="$DUMPBIN -symbols"
6455 if test "$DUMPBIN" != ":"; then
6459 test -z "$NM" && NM
=nm
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6467 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6468 if ${lt_cv_nm_interface+:} false
; then :
6469 $as_echo_n "(cached) " >&6
6471 lt_cv_nm_interface
="BSD nm"
6472 echo "int some_variable = 0;" > conftest.
$ac_ext
6473 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6474 (eval "$ac_compile" 2>conftest.err
)
6475 cat conftest.err
>&5
6476 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6477 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6478 cat conftest.err
>&5
6479 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6480 cat conftest.out
>&5
6481 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6482 lt_cv_nm_interface
="MS dumpbin"
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6487 $as_echo "$lt_cv_nm_interface" >&6; }
6489 # find the maximum length of command line arguments
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6491 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6492 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6493 $as_echo_n "(cached) " >&6
6500 # On DJGPP, this test can blow up pretty badly due to problems in libc
6501 # (any single argument exceeding 2000 bytes causes a buffer overrun
6502 # during glob expansion). Even if it were fixed, the result of this
6503 # check would be larger than it should be.
6504 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6508 # Under GNU Hurd, this test is not required because there is
6509 # no limit to the length of command line arguments.
6510 # Libtool will interpret -1 as no limit whatsoever
6511 lt_cv_sys_max_cmd_len
=-1;
6514 cygwin
* | mingw
* | cegcc
*)
6515 # On Win9x/ME, this test blows up -- it succeeds, but takes
6516 # about 5 minutes as the teststring grows exponentially.
6517 # Worse, since 9x/ME are not pre-emptively multitasking,
6518 # you end up with a "frozen" computer, even though with patience
6519 # the test eventually succeeds (with a max line length of 256k).
6520 # Instead, let's just punt: use the minimum linelength reported by
6521 # all of the supported platforms: 8192 (on NT/2K/XP).
6522 lt_cv_sys_max_cmd_len
=8192;
6526 # On MiNT this can take a long time and run out of memory.
6527 lt_cv_sys_max_cmd_len
=8192;
6531 # On AmigaOS with pdksh, this test takes hours, literally.
6532 # So we just punt and use a minimum line length of 8192.
6533 lt_cv_sys_max_cmd_len
=8192;
6536 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6537 # This has been around since 386BSD, at least. Likely further.
6538 if test -x /sbin
/sysctl
; then
6539 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6540 elif test -x /usr
/sbin
/sysctl
; then
6541 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6543 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6545 # And add a safety zone
6546 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6547 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6551 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6552 lt_cv_sys_max_cmd_len
=196608
6556 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6557 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6558 # nice to cause kernel panics so lets avoid the loop below.
6559 # First set a reasonable default.
6560 lt_cv_sys_max_cmd_len
=16384
6562 if test -x /sbin
/sysconfig
; then
6563 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6564 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6569 lt_cv_sys_max_cmd_len
=102400
6571 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6572 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6573 if test -n "$kargmax"; then
6574 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6576 lt_cv_sys_max_cmd_len
=32768
6580 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6581 if test -n "$lt_cv_sys_max_cmd_len"; then
6582 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6583 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6585 # Make teststring a little bigger before we do anything with it.
6586 # a 1K string should be a reasonable start.
6587 for i
in 1 2 3 4 5 6 7 8 ; do
6588 teststring
=$teststring$teststring
6590 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6591 # If test is not a shell built-in, we'll probably end up computing a
6592 # maximum length that is only half of the actual maximum length, but
6594 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6595 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6596 test $i != 17 # 1/2 MB should be enough
6599 teststring
=$teststring$teststring
6601 # Only check the string length outside the loop.
6602 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6604 # Add a significant safety factor because C++ compilers can tack on
6605 # massive amounts of additional arguments before passing them to the
6606 # linker. It appears as though 1/2 is a usable value.
6607 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6614 if test -n $lt_cv_sys_max_cmd_len ; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6616 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6619 $as_echo "none" >&6; }
6621 max_cmd_len
=$lt_cv_sys_max_cmd_len
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6633 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6634 # Try some XSI features
6637 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6639 && eval 'test $(( 1 + 1 )) -eq 2 \
6640 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6643 $as_echo "$xsi_shell" >&6; }
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6647 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6649 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6651 && lt_shell_append=yes
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6653 $as_echo "$lt_shell_append" >&6; }
6656 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6666 # test EBCDIC or ASCII
6667 case `echo X|tr X '\101'` in
6668 A) # ASCII based system
6669 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6670 lt_SP2NL='tr \040 \012'
6671 lt_NL2SP='tr \015\012 \040\040'
6673 *) # EBCDIC based system
6674 lt_SP2NL='tr \100 \n'
6675 lt_NL2SP='tr \r\n \100\100'
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6688 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6689 if ${lt_cv_ld_reload_flag+:} false; then :
6690 $as_echo_n "(cached
) " >&6
6692 lt_cv_ld_reload_flag='-r'
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6695 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6696 reload_flag=$lt_cv_ld_reload_flag
6697 case $reload_flag in
6699 *) reload_flag=" $reload_flag" ;;
6701 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6704 if test "$GCC" = yes; then
6705 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6724 $as_echo_n "checking
for $ac_word...
" >&6; }
6725 if ${ac_cv_prog_OBJDUMP+:} false; then :
6726 $as_echo_n "(cached
) " >&6
6728 if test -n "$OBJDUMP"; then
6729 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6748 OBJDUMP=$ac_cv_prog_OBJDUMP
6749 if test -n "$OBJDUMP"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6751 $as_echo "$OBJDUMP" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6754 $as_echo "no
" >&6; }
6759 if test -z "$ac_cv_prog_OBJDUMP"; then
6760 ac_ct_OBJDUMP=$OBJDUMP
6761 # Extract the first word of "objdump
", so it can be a program name with args.
6762 set dummy objdump; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6764 $as_echo_n "checking
for $ac_word...
" >&6; }
6765 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6766 $as_echo_n "(cached
) " >&6
6768 if test -n "$ac_ct_OBJDUMP"; then
6769 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6788 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6789 if test -n "$ac_ct_OBJDUMP"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6791 $as_echo "$ac_ct_OBJDUMP" >&6; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6794 $as_echo "no
" >&6; }
6797 if test "x
$ac_ct_OBJDUMP" = x; then
6800 case $cross_compiling:$ac_tool_warned in
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6803 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6804 ac_tool_warned=yes ;;
6806 OBJDUMP=$ac_ct_OBJDUMP
6809 OBJDUMP="$ac_cv_prog_OBJDUMP"
6812 test -z "$OBJDUMP" && OBJDUMP=objdump
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6820 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6821 if ${lt_cv_deplibs_check_method+:} false; then :
6822 $as_echo_n "(cached
) " >&6
6824 lt_cv_file_magic_cmd='$MAGIC_CMD'
6825 lt_cv_file_magic_test_file=
6826 lt_cv_deplibs_check_method='unknown'
6827 # Need to set the preceding variable on all platforms that support
6828 # interlibrary dependencies.
6829 # 'none' -- dependencies not supported.
6830 # `unknown' -- same as none, but documents that we really don't know.
6831 # 'pass_all' -- all dependencies passed with no checks.
6832 # 'test_compile' -- check by making test program.
6833 # 'file_magic [[regex]]' -- check by looking for files in library path
6834 # which responds to the $file_magic_cmd with a given extended regex.
6835 # If you have `file' or equivalent on your system and you're not sure
6836 # whether `pass_all' will *always* work, you probably want this one.
6840 lt_cv_deplibs_check_method=pass_all
6844 lt_cv_deplibs_check_method=pass_all
6848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6849 lt_cv_file_magic_cmd='/usr/bin/file -L'
6850 lt_cv_file_magic_test_file=/shlib/libc.so
6854 # func_win32_libid is a shell function defined in ltmain.sh
6855 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6856 lt_cv_file_magic_cmd='func_win32_libid'
6860 # Base MSYS/MinGW do not provide the 'file' command needed by
6861 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6862 # unless we find 'file', for example because we are cross-compiling.
6863 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6864 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6865 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6866 lt_cv_file_magic_cmd='func_win32_libid'
6868 # Keep this pattern in sync with the one in func_win32_libid.
6869 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6870 lt_cv_file_magic_cmd='$OBJDUMP -f'
6875 # use the weaker test based on 'objdump'. See mingw*.
6876 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6877 lt_cv_file_magic_cmd='$OBJDUMP -f'
6880 darwin* | rhapsody*)
6881 lt_cv_deplibs_check_method=pass_all
6884 freebsd* | dragonfly*)
6885 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6888 # Not sure whether the presence of OpenBSD here was a mistake.
6889 # Let's accept both of them until this is cleared up.
6890 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6891 lt_cv_file_magic_cmd=/usr/bin/file
6892 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6896 lt_cv_deplibs_check_method=pass_all
6901 lt_cv_deplibs_check_method=pass_all
6905 lt_cv_deplibs_check_method=pass_all
6908 hpux10.20* | hpux11*)
6909 lt_cv_file_magic_cmd=/usr/bin/file
6912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6913 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6916 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]'
6917 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6920 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6921 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6927 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6931 irix5* | irix6* | nonstopux*)
6933 *-32|*"-32 ") libmagic=32-bit;;
6934 *-n32|*"-n32 ") libmagic=N32;;
6935 *-64|*"-64 ") libmagic=64-bit;;
6936 *) libmagic=never-match;;
6938 lt_cv_deplibs_check_method=pass_all
6941 # This must be Linux ELF.
6942 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6943 lt_cv_deplibs_check_method=pass_all
6947 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6956 lt_cv_file_magic_cmd=/usr/bin/file
6957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6961 lt_cv_deplibs_check_method=pass_all
6965 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6972 osf3* | osf4* | osf5*)
6973 lt_cv_deplibs_check_method=pass_all
6977 lt_cv_deplibs_check_method=pass_all
6981 lt_cv_deplibs_check_method=pass_all
6984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6985 lt_cv_deplibs_check_method=pass_all
6989 case $host_vendor in
6991 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]'
6992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6995 lt_cv_deplibs_check_method=pass_all
6998 lt_cv_file_magic_cmd='/bin/file'
6999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7002 lt_cv_file_magic_cmd='/bin/file'
7003 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
7004 lt_cv_file_magic_test_file=/lib/libc.so
7007 lt_cv_deplibs_check_method=pass_all
7010 lt_cv_deplibs_check_method=pass_all
7016 lt_cv_deplibs_check_method=pass_all
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
7022 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7023 file_magic_cmd=$lt_cv_file_magic_cmd
7024 deplibs_check_method=$lt_cv_deplibs_check_method
7025 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7038 if test -n "$ac_tool_prefix"; then
7039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}ar; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7042 $as_echo_n "checking
for $ac_word...
" >&6; }
7043 if ${ac_cv_prog_AR+:} false; then :
7044 $as_echo_n "(cached
) " >&6
7046 if test -n "$AR"; then
7047 ac_cv_prog_AR="$AR" # Let the user override the test.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_prog_AR="${ac_tool_prefix}ar"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7067 if test -n "$AR"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
7069 $as_echo "$AR" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7072 $as_echo "no
" >&6; }
7077 if test -z "$ac_cv_prog_AR"; then
7079 # Extract the first word of "ar", so it can be a program name with args.
7080 set dummy ar; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7082 $as_echo_n "checking
for $ac_word...
" >&6; }
7083 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7084 $as_echo_n "(cached
) " >&6
7086 if test -n "$ac_ct_AR"; then
7087 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_prog_ac_ct_AR="ar"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7106 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7107 if test -n "$ac_ct_AR"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
7109 $as_echo "$ac_ct_AR" >&6; }
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7112 $as_echo "no
" >&6; }
7115 if test "x
$ac_ct_AR" = x; then
7118 case $cross_compiling:$ac_tool_warned in
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7121 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7122 ac_tool_warned=yes ;;
7130 test -z "$AR" && AR=ar
7131 test -z "$AR_FLAGS" && AR_FLAGS=cru
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}strip; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7147 $as_echo_n "checking
for $ac_word...
" >&6; }
7148 if ${ac_cv_prog_STRIP+:} false; then :
7149 $as_echo_n "(cached
) " >&6
7151 if test -n "$STRIP"; then
7152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7171 STRIP=$ac_cv_prog_STRIP
7172 if test -n "$STRIP"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7174 $as_echo "$STRIP" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7177 $as_echo "no
" >&6; }
7182 if test -z "$ac_cv_prog_STRIP"; then
7184 # Extract the first word of "strip
", so it can be a program name with args.
7185 set dummy strip; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7187 $as_echo_n "checking
for $ac_word...
" >&6; }
7188 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7189 $as_echo_n "(cached
) " >&6
7191 if test -n "$ac_ct_STRIP"; then
7192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_prog_ac_ct_STRIP="strip
"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7211 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7212 if test -n "$ac_ct_STRIP"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7214 $as_echo "$ac_ct_STRIP" >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7217 $as_echo "no
" >&6; }
7220 if test "x
$ac_ct_STRIP" = x; then
7223 case $cross_compiling:$ac_tool_warned in
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7226 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7227 ac_tool_warned=yes ;;
7232 STRIP="$ac_cv_prog_STRIP"
7235 test -z "$STRIP" && STRIP=:
7242 if test -n "$ac_tool_prefix"; then
7243 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7246 $as_echo_n "checking
for $ac_word...
" >&6; }
7247 if ${ac_cv_prog_RANLIB+:} false; then :
7248 $as_echo_n "(cached
) " >&6
7250 if test -n "$RANLIB"; then
7251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7270 RANLIB=$ac_cv_prog_RANLIB
7271 if test -n "$RANLIB"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7273 $as_echo "$RANLIB" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7276 $as_echo "no
" >&6; }
7281 if test -z "$ac_cv_prog_RANLIB"; then
7282 ac_ct_RANLIB=$RANLIB
7283 # Extract the first word of "ranlib
", so it can be a program name with args.
7284 set dummy ranlib; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7286 $as_echo_n "checking
for $ac_word...
" >&6; }
7287 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7288 $as_echo_n "(cached
) " >&6
7290 if test -n "$ac_ct_RANLIB"; then
7291 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7310 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7311 if test -n "$ac_ct_RANLIB"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7313 $as_echo "$ac_ct_RANLIB" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7316 $as_echo "no
" >&6; }
7319 if test "x
$ac_ct_RANLIB" = x; then
7322 case $cross_compiling:$ac_tool_warned in
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7325 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7326 ac_tool_warned=yes ;;
7328 RANLIB=$ac_ct_RANLIB
7331 RANLIB="$ac_cv_prog_RANLIB"
7334 test -z "$RANLIB" && RANLIB=:
7341 # Determine commands to create old-style static archives.
7342 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7343 old_postinstall_cmds='chmod 644 $oldlib'
7344 old_postuninstall_cmds=
7346 if test -n "$RANLIB"; then
7349 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7352 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7355 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7360 lock_old_archive_extraction=yes ;;
7362 lock_old_archive_extraction=no ;;
7403 # If no C compiler was specified, use CC.
7406 # If no C compiler flags were specified, use CFLAGS.
7407 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7409 # Allow CC to be a program name with arguments.
7413 # Check for command to grab the raw symbol name followed by C symbol from nm.
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7415 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7416 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7417 $as_echo_n "(cached
) " >&6
7420 # These are sane defaults that work on at least a few old systems.
7421 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7423 # Character class describing NM global symbol codes.
7424 symcode='[BCDEGRST]'
7426 # Regexp to match symbols that can be accessed directly from C.
7427 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7429 # Define system-specific variables.
7434 cygwin* | mingw* | pw32* | cegcc*)
7435 symcode='[ABCDGISTW]'
7438 if test "$host_cpu" = ia64; then
7439 symcode='[ABCDEGRST]'
7443 symcode='[BCDEGRST]'
7446 symcode='[BCDEGQRST]'
7457 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7465 # If we're using GNU nm, then use its standard symbol codes.
7466 case `$NM -V 2>&1` in
7467 *GNU* | *'with BFD'*)
7468 symcode='[ABCDGIRSTW]' ;;
7471 # Transform an extracted symbol line into a proper C declaration.
7472 # Some systems (esp. on ia64) link data and code symbols differently,
7473 # so use this general approach.
7474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7476 # Transform an extracted symbol line into symbol name and symbol address
7477 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7478 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'"
7480 # Handle CRLF in mingw tool chain
7484 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7488 # Try without a prefix underscore, then with it.
7489 for ac_symprfx in "" "_
"; do
7491 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7492 symxfrm="\\1 $ac_symprfx\\2 \\2"
7494 # Write the raw and C identifiers.
7495 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7496 # Fake it for dumpbin and say T for any non-static function
7497 # and D for any global variable.
7498 # Also find C++ and __fastcall symbols from MSVC++,
7499 # which start with @ or ?.
7500 lt_cv_sys_global_symbol_pipe="$AWK '"\
7501 " {last_section=section; section=\$ 3};"\
7502 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7503 " \$ 0!~/External *\|/{next};"\
7504 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7505 " {if(hide[section]) next};"\
7506 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7507 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7508 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7509 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7510 " ' prfx
=^
$ac_symprfx"
7512 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7515 # Check to see that the pipe works correctly.
7519 cat > conftest.$ac_ext <<_LT_EOF
7524 void nm_test_func(void);
7525 void nm_test_func(void){}
7529 int main(){nm_test_var='a';nm_test_func();return(0);}
7532 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7533 (eval $ac_compile) 2>&5
7535 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7536 test $ac_status = 0; }; then
7537 # Now try to grab the symbols.
7539 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7540 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7542 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7543 test $ac_status = 0; } && test -s "$nlist"; then
7544 # Try sorting and uniquifying the output.
7545 if sort "$nlist" | uniq > "$nlist"T; then
7546 mv -f "$nlist"T "$nlist"
7551 # Make sure that we snagged all the symbols we need.
7552 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7553 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7554 cat <<_LT_EOF > conftest.$ac_ext
7560 # Now generate the symbol file.
7561 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7563 cat <<_LT_EOF >> conftest.$ac_ext
7565 /* The mapping between symbol names and symbols. */
7570 lt__PROGRAM__LTX_preloaded_symbols[] =
7572 { "@PROGRAM@
", (void *) 0 },
7574 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7575 cat <<\_LT_EOF >> conftest.$ac_ext
7579 /* This works around a problem in FreeBSD linker */
7580 #ifdef FREEBSD_WORKAROUND
7581 static const void *lt_preloaded_setup() {
7582 return lt__PROGRAM__LTX_preloaded_symbols;
7590 # Now try linking the two files.
7591 mv conftest.$ac_objext conftstm.$ac_objext
7592 lt_save_LIBS="$LIBS"
7593 lt_save_CFLAGS="$CFLAGS"
7594 LIBS="conftstm.
$ac_objext"
7595 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7596 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7597 (eval $ac_link) 2>&5
7599 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7600 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7603 LIBS="$lt_save_LIBS"
7604 CFLAGS="$lt_save_CFLAGS"
7606 echo "cannot
find nm_test_func
in $nlist" >&5
7609 echo "cannot
find nm_test_var
in $nlist" >&5
7612 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7615 echo "$progname: failed program was
:" >&5
7616 cat conftest.$ac_ext >&5
7618 rm -rf conftest* conftst*
7620 # Do not use the global_symbol_pipe unless it works.
7621 if test "$pipe_works" = yes; then
7624 lt_cv_sys_global_symbol_pipe=
7630 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7631 lt_cv_sys_global_symbol_to_cdecl=
7633 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7635 $as_echo "failed
" >&6; }
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7638 $as_echo "ok
" >&6; }
7662 # Check whether --enable-libtool-lock was given.
7663 if test "${enable_libtool_lock+set}" = set; then :
7664 enableval=$enable_libtool_lock;
7667 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7669 # Some flags need to be propagated to the compiler or linker for good
7673 # Find out which ABI we are using.
7674 echo 'int i;' > conftest.$ac_ext
7675 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7676 (eval $ac_compile) 2>&5
7678 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7679 test $ac_status = 0; }; then
7680 case `/usr/bin/file conftest.$ac_objext` in
7692 # Find out which ABI we are using.
7693 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7694 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7695 (eval $ac_compile) 2>&5
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7698 test $ac_status = 0; }; then
7699 if test "$lt_cv_prog_gnu_ld" = yes; then
7700 case `/usr/bin/file conftest.$ac_objext` in
7702 LD="${LD-ld} -melf32bsmip"
7705 LD="${LD-ld} -melf32bmipn32"
7708 LD="${LD-ld} -melf64bmip"
7712 case `/usr/bin/file conftest.$ac_objext` in
7728 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7729 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7730 # Find out which ABI we are using.
7731 echo 'int i;' > conftest.$ac_ext
7732 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7733 (eval $ac_compile) 2>&5
7735 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7736 test $ac_status = 0; }; then
7737 case `/usr/bin/file conftest.o` in
7740 x86_64-*kfreebsd*-gnu)
7741 LD="${LD-ld} -m elf_i386_fbsd
"
7744 LD="${LD-ld} -m elf_i386
"
7746 ppc64-*linux*|powerpc64-*linux*)
7747 LD="${LD-ld} -m elf32ppclinux
"
7750 LD="${LD-ld} -m elf_s390
"
7753 LD="${LD-ld} -m elf32_sparc
"
7759 x86_64-*kfreebsd*-gnu)
7760 LD="${LD-ld} -m elf_x86_64_fbsd
"
7763 LD="${LD-ld} -m elf_x86_64
"
7765 ppc*-*linux*|powerpc*-*linux*)
7766 LD="${LD-ld} -m elf64ppc
"
7768 s390*-*linux*|s390*-*tpf*)
7769 LD="${LD-ld} -m elf64_s390
"
7772 LD="${LD-ld} -m elf64_sparc
"
7782 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7783 SAVE_CFLAGS="$CFLAGS"
7784 CFLAGS="$CFLAGS -belf"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7786 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7787 if ${lt_cv_cc_needs_belf+:} false; then :
7788 $as_echo_n "(cached
) " >&6
7791 ac_cpp='$CPP $CPPFLAGS'
7792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7807 if ac_fn_c_try_link "$LINENO"; then :
7808 lt_cv_cc_needs_belf=yes
7810 lt_cv_cc_needs_belf=no
7812 rm -f core conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7822 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7823 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7824 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7825 CFLAGS="$SAVE_CFLAGS"
7829 # Find out which ABI we are using.
7830 echo 'int i;' > conftest.$ac_ext
7831 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7832 (eval $ac_compile) 2>&5
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7835 test $ac_status = 0; }; then
7836 case `/usr/bin/file conftest.o` in
7838 case $lt_cv_prog_gnu_ld in
7839 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7841 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7853 need_locks="$enable_libtool_lock"
7857 rhapsody* | darwin*)
7858 if test -n "$ac_tool_prefix"; then
7859 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7860 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7862 $as_echo_n "checking
for $ac_word...
" >&6; }
7863 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7864 $as_echo_n "(cached
) " >&6
7866 if test -n "$DSYMUTIL"; then
7867 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7886 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7887 if test -n "$DSYMUTIL"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7889 $as_echo "$DSYMUTIL" >&6; }
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7892 $as_echo "no
" >&6; }
7897 if test -z "$ac_cv_prog_DSYMUTIL"; then
7898 ac_ct_DSYMUTIL=$DSYMUTIL
7899 # Extract the first word of "dsymutil
", so it can be a program name with args.
7900 set dummy dsymutil; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7902 $as_echo_n "checking
for $ac_word...
" >&6; }
7903 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7904 $as_echo_n "(cached
) " >&6
7906 if test -n "$ac_ct_DSYMUTIL"; then
7907 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7926 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7927 if test -n "$ac_ct_DSYMUTIL"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7929 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7932 $as_echo "no
" >&6; }
7935 if test "x
$ac_ct_DSYMUTIL" = x; then
7938 case $cross_compiling:$ac_tool_warned in
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7941 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7942 ac_tool_warned=yes ;;
7944 DSYMUTIL=$ac_ct_DSYMUTIL
7947 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7950 if test -n "$ac_tool_prefix"; then
7951 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7952 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7954 $as_echo_n "checking
for $ac_word...
" >&6; }
7955 if ${ac_cv_prog_NMEDIT+:} false; then :
7956 $as_echo_n "(cached
) " >&6
7958 if test -n "$NMEDIT"; then
7959 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7968 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7978 NMEDIT=$ac_cv_prog_NMEDIT
7979 if test -n "$NMEDIT"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7981 $as_echo "$NMEDIT" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7984 $as_echo "no
" >&6; }
7989 if test -z "$ac_cv_prog_NMEDIT"; then
7990 ac_ct_NMEDIT=$NMEDIT
7991 # Extract the first word of "nmedit
", so it can be a program name with args.
7992 set dummy nmedit; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7994 $as_echo_n "checking
for $ac_word...
" >&6; }
7995 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7996 $as_echo_n "(cached
) " >&6
7998 if test -n "$ac_ct_NMEDIT"; then
7999 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8018 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8019 if test -n "$ac_ct_NMEDIT"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
8021 $as_echo "$ac_ct_NMEDIT" >&6; }
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8024 $as_echo "no
" >&6; }
8027 if test "x
$ac_ct_NMEDIT" = x; then
8030 case $cross_compiling:$ac_tool_warned in
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8033 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8034 ac_tool_warned=yes ;;
8036 NMEDIT=$ac_ct_NMEDIT
8039 NMEDIT="$ac_cv_prog_NMEDIT"
8042 if test -n "$ac_tool_prefix"; then
8043 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
8044 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8046 $as_echo_n "checking
for $ac_word...
" >&6; }
8047 if ${ac_cv_prog_LIPO+:} false; then :
8048 $as_echo_n "(cached
) " >&6
8050 if test -n "$LIPO"; then
8051 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8060 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
8061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8070 LIPO=$ac_cv_prog_LIPO
8071 if test -n "$LIPO"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8073 $as_echo "$LIPO" >&6; }
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8076 $as_echo "no
" >&6; }
8081 if test -z "$ac_cv_prog_LIPO"; then
8083 # Extract the first word of "lipo
", so it can be a program name with args.
8084 set dummy lipo; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8086 $as_echo_n "checking
for $ac_word...
" >&6; }
8087 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8088 $as_echo_n "(cached
) " >&6
8090 if test -n "$ac_ct_LIPO"; then
8091 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100 ac_cv_prog_ac_ct_LIPO="lipo
"
8101 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8110 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8111 if test -n "$ac_ct_LIPO"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8113 $as_echo "$ac_ct_LIPO" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8116 $as_echo "no
" >&6; }
8119 if test "x
$ac_ct_LIPO" = x; then
8122 case $cross_compiling:$ac_tool_warned in
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8125 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8126 ac_tool_warned=yes ;;
8131 LIPO="$ac_cv_prog_LIPO"
8134 if test -n "$ac_tool_prefix"; then
8135 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8136 set dummy ${ac_tool_prefix}otool; ac_word=$2
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8138 $as_echo_n "checking
for $ac_word...
" >&6; }
8139 if ${ac_cv_prog_OTOOL+:} false; then :
8140 $as_echo_n "(cached
) " >&6
8142 if test -n "$OTOOL"; then
8143 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8152 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8162 OTOOL=$ac_cv_prog_OTOOL
8163 if test -n "$OTOOL"; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8165 $as_echo "$OTOOL" >&6; }
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8168 $as_echo "no
" >&6; }
8173 if test -z "$ac_cv_prog_OTOOL"; then
8175 # Extract the first word of "otool
", so it can be a program name with args.
8176 set dummy otool; ac_word=$2
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8178 $as_echo_n "checking
for $ac_word...
" >&6; }
8179 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8180 $as_echo_n "(cached
) " >&6
8182 if test -n "$ac_ct_OTOOL"; then
8183 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8192 ac_cv_prog_ac_ct_OTOOL="otool
"
8193 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8202 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8203 if test -n "$ac_ct_OTOOL"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8205 $as_echo "$ac_ct_OTOOL" >&6; }
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8208 $as_echo "no
" >&6; }
8211 if test "x
$ac_ct_OTOOL" = x; then
8214 case $cross_compiling:$ac_tool_warned in
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8217 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8218 ac_tool_warned=yes ;;
8223 OTOOL="$ac_cv_prog_OTOOL"
8226 if test -n "$ac_tool_prefix"; then
8227 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8228 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8230 $as_echo_n "checking
for $ac_word...
" >&6; }
8231 if ${ac_cv_prog_OTOOL64+:} false; then :
8232 $as_echo_n "(cached
) " >&6
8234 if test -n "$OTOOL64"; then
8235 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8244 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8254 OTOOL64=$ac_cv_prog_OTOOL64
8255 if test -n "$OTOOL64"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8257 $as_echo "$OTOOL64" >&6; }
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8260 $as_echo "no
" >&6; }
8265 if test -z "$ac_cv_prog_OTOOL64"; then
8266 ac_ct_OTOOL64=$OTOOL64
8267 # Extract the first word of "otool64
", so it can be a program name with args.
8268 set dummy otool64; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8270 $as_echo_n "checking
for $ac_word...
" >&6; }
8271 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8272 $as_echo_n "(cached
) " >&6
8274 if test -n "$ac_ct_OTOOL64"; then
8275 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8294 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8295 if test -n "$ac_ct_OTOOL64"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8297 $as_echo "$ac_ct_OTOOL64" >&6; }
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8300 $as_echo "no
" >&6; }
8303 if test "x
$ac_ct_OTOOL64" = x; then
8306 case $cross_compiling:$ac_tool_warned in
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8309 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8310 ac_tool_warned=yes ;;
8312 OTOOL64=$ac_ct_OTOOL64
8315 OTOOL64="$ac_cv_prog_OTOOL64"
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8345 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8346 if ${lt_cv_apple_cc_single_mod+:} false; then :
8347 $as_echo_n "(cached
) " >&6
8349 lt_cv_apple_cc_single_mod=no
8350 if test -z "${LT_MULTI_MODULE}"; then
8351 # By default we will add the -single_module flag. You can override
8352 # by either setting the environment variable LT_MULTI_MODULE
8353 # non-empty at configure time, or by adding -multi_module to the
8355 rm -rf libconftest.dylib*
8356 echo "int foo
(void
){return 1;}" > conftest.c
8357 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8358 -dynamiclib -Wl,-single_module conftest.c
" >&5
8359 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8360 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8362 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8363 lt_cv_apple_cc_single_mod=yes
8365 cat conftest.err >&5
8367 rm -rf libconftest.dylib*
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8372 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8374 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8375 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8376 $as_echo_n "(cached
) " >&6
8378 lt_cv_ld_exported_symbols_list=no
8379 save_LDFLAGS=$LDFLAGS
8380 echo "_main
" > conftest.sym
8381 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8393 if ac_fn_c_try_link "$LINENO"; then :
8394 lt_cv_ld_exported_symbols_list=yes
8396 lt_cv_ld_exported_symbols_list=no
8398 rm -f core conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8400 LDFLAGS="$save_LDFLAGS"
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8404 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8406 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8407 if ${lt_cv_ld_force_load+:} false; then :
8408 $as_echo_n "(cached
) " >&6
8410 lt_cv_ld_force_load=no
8411 cat > conftest.c << _LT_EOF
8412 int forced_loaded() { return 2;}
8414 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8415 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8416 echo "$AR cru libconftest.a conftest.o
" >&5
8417 $AR cru libconftest.a conftest.o 2>&5
8418 echo "$RANLIB libconftest.a
" >&5
8419 $RANLIB libconftest.a 2>&5
8420 cat > conftest.c << _LT_EOF
8421 int main() { return 0;}
8423 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8424 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8426 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8427 lt_cv_ld_force_load=yes
8429 cat conftest.err >&5
8431 rm -f conftest.err libconftest.a conftest conftest.c
8432 rm -rf conftest.dSYM
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8436 $as_echo "$lt_cv_ld_force_load" >&6; }
8438 rhapsody* | darwin1.[012])
8439 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8441 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8442 darwin*) # darwin 5.x on
8443 # if running on 10.5 or later, the deployment target defaults
8444 # to the OS version, if on x86, and 10.4, the deployment
8445 # target defaults to 10.4. Don't you love it?
8446 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8447 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8448 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8450 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8452 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8456 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8457 _lt_dar_single_mod='$single_module'
8459 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8460 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8462 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8464 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8465 _lt_dsymutil='~$DSYMUTIL $lib || :'
8472 for ac_header in dlfcn.h
8474 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8476 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8477 cat >>confdefs.h <<_ACEOF
8478 #define HAVE_DLFCN_H 1
8490 enable_win32_dll=yes
8493 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8494 if test -n "$ac_tool_prefix"; then
8495 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
8496 set dummy ${ac_tool_prefix}as; ac_word=$2
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8498 $as_echo_n "checking
for $ac_word...
" >&6; }
8499 if ${ac_cv_prog_AS+:} false; then :
8500 $as_echo_n "(cached
) " >&6
8502 if test -n "$AS"; then
8503 ac_cv_prog_AS="$AS" # Let the user override the test.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_prog_AS="${ac_tool_prefix}as
"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8523 if test -n "$AS"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8525 $as_echo "$AS" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8528 $as_echo "no
" >&6; }
8533 if test -z "$ac_cv_prog_AS"; then
8535 # Extract the first word of "as
", so it can be a program name with args.
8536 set dummy as; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8538 $as_echo_n "checking
for $ac_word...
" >&6; }
8539 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8540 $as_echo_n "(cached
) " >&6
8542 if test -n "$ac_ct_AS"; then
8543 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552 ac_cv_prog_ac_ct_AS="as
"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8562 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8563 if test -n "$ac_ct_AS"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AS" >&5
8565 $as_echo "$ac_ct_AS" >&6; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8568 $as_echo "no
" >&6; }
8571 if test "x
$ac_ct_AS" = x; then
8574 case $cross_compiling:$ac_tool_warned in
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8577 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8578 ac_tool_warned=yes ;;
8586 if test -n "$ac_tool_prefix"; then
8587 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
8588 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8590 $as_echo_n "checking
for $ac_word...
" >&6; }
8591 if ${ac_cv_prog_DLLTOOL+:} false; then :
8592 $as_echo_n "(cached
) " >&6
8594 if test -n "$DLLTOOL"; then
8595 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8604 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
8605 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8614 DLLTOOL=$ac_cv_prog_DLLTOOL
8615 if test -n "$DLLTOOL"; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8617 $as_echo "$DLLTOOL" >&6; }
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8620 $as_echo "no
" >&6; }
8625 if test -z "$ac_cv_prog_DLLTOOL"; then
8626 ac_ct_DLLTOOL=$DLLTOOL
8627 # Extract the first word of "dlltool
", so it can be a program name with args.
8628 set dummy dlltool; ac_word=$2
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8630 $as_echo_n "checking
for $ac_word...
" >&6; }
8631 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8632 $as_echo_n "(cached
) " >&6
8634 if test -n "$ac_ct_DLLTOOL"; then
8635 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 test -z "$as_dir" && as_dir=.
8642 for ac_exec_ext in '' $ac_executable_extensions; do
8643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8644 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
8645 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8654 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8655 if test -n "$ac_ct_DLLTOOL"; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
8657 $as_echo "$ac_ct_DLLTOOL" >&6; }
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8660 $as_echo "no
" >&6; }
8663 if test "x
$ac_ct_DLLTOOL" = x; then
8666 case $cross_compiling:$ac_tool_warned in
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8669 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8670 ac_tool_warned=yes ;;
8672 DLLTOOL=$ac_ct_DLLTOOL
8675 DLLTOOL="$ac_cv_prog_DLLTOOL"
8678 if test -n "$ac_tool_prefix"; then
8679 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
8680 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8682 $as_echo_n "checking
for $ac_word...
" >&6; }
8683 if ${ac_cv_prog_OBJDUMP+:} false; then :
8684 $as_echo_n "(cached
) " >&6
8686 if test -n "$OBJDUMP"; then
8687 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
8697 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8706 OBJDUMP=$ac_cv_prog_OBJDUMP
8707 if test -n "$OBJDUMP"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
8709 $as_echo "$OBJDUMP" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8712 $as_echo "no
" >&6; }
8717 if test -z "$ac_cv_prog_OBJDUMP"; then
8718 ac_ct_OBJDUMP=$OBJDUMP
8719 # Extract the first word of "objdump
", so it can be a program name with args.
8720 set dummy objdump; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8722 $as_echo_n "checking
for $ac_word...
" >&6; }
8723 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8724 $as_echo_n "(cached
) " >&6
8726 if test -n "$ac_ct_OBJDUMP"; then
8727 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8736 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8746 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8747 if test -n "$ac_ct_OBJDUMP"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
8749 $as_echo "$ac_ct_OBJDUMP" >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8752 $as_echo "no
" >&6; }
8755 if test "x
$ac_ct_OBJDUMP" = x; then
8758 case $cross_compiling:$ac_tool_warned in
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8761 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8762 ac_tool_warned=yes ;;
8764 OBJDUMP=$ac_ct_OBJDUMP
8767 OBJDUMP="$ac_cv_prog_OBJDUMP"
8773 test -z "$AS" && AS=as
8779 test -z "$DLLTOOL" && DLLTOOL=dlltool
8785 test -z "$OBJDUMP" && OBJDUMP=objdump
8797 # Check whether --enable-shared was given.
8798 if test "${enable_shared+set}" = set; then :
8799 enableval=$enable_shared; p=${PACKAGE-default}
8801 yes) enable_shared=yes ;;
8802 no) enable_shared=no ;;
8805 # Look at the argument we got. We use all the common list separators.
8806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8807 for pkg in $enableval; do
8809 if test "X
$pkg" = "X
$p"; then
8828 # Check whether --enable-static was given.
8829 if test "${enable_static+set}" = set; then :
8830 enableval=$enable_static; p=${PACKAGE-default}
8832 yes) enable_static=yes ;;
8833 no) enable_static=no ;;
8836 # Look at the argument we got. We use all the common list separators.
8837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8838 for pkg in $enableval; do
8840 if test "X
$pkg" = "X
$p"; then
8860 # Check whether --with-pic was given.
8861 if test "${with_pic+set}" = set; then :
8862 withval=$with_pic; pic_mode="$withval"
8868 test -z "$pic_mode" && pic_mode=default
8876 # Check whether --enable-fast-install was given.
8877 if test "${enable_fast_install+set}" = set; then :
8878 enableval=$enable_fast_install; p=${PACKAGE-default}
8880 yes) enable_fast_install=yes ;;
8881 no) enable_fast_install=no ;;
8883 enable_fast_install=no
8884 # Look at the argument we got. We use all the common list separators.
8885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8886 for pkg in $enableval; do
8888 if test "X
$pkg" = "X
$p"; then
8889 enable_fast_install=yes
8896 enable_fast_install=yes
8909 # This can be used to rebuild libtool when needed
8910 LIBTOOL_DEPS="$ltmain"
8912 # Always use our own libtool.
8913 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8940 test -z "$LN_S" && LN_S="ln -s"
8955 if test -n "${ZSH_VERSION+set}" ; then
8956 setopt NO_GLOB_SUBST
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8960 $as_echo_n "checking
for objdir...
" >&6; }
8961 if ${lt_cv_objdir+:} false; then :
8962 $as_echo_n "(cached
) " >&6
8964 rm -f .libs 2>/dev/null
8965 mkdir .libs 2>/dev/null
8966 if test -d .libs; then
8969 # MS-DOS does not allow filenames that begin with a dot.
8972 rmdir .libs 2>/dev/null
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8975 $as_echo "$lt_cv_objdir" >&6; }
8976 objdir=$lt_cv_objdir
8982 cat >>confdefs.h <<_ACEOF
8983 #define LT_OBJDIR "$lt_cv_objdir/"
8991 # AIX sometimes has problems with the GCC collect2 program. For some
8992 # reason, if we set the COLLECT_NAMES environment variable, the problems
8993 # vanish in a puff of smoke.
8994 if test "X
${COLLECT_NAMES+set}" != Xset; then
8996 export COLLECT_NAMES
9003 can_build_shared=yes
9005 # All known linkers require a `.a' archive for static linking (except MSVC,
9006 # which needs '.lib').
9009 with_gnu_ld="$lt_cv_prog_gnu_ld"
9012 old_CFLAGS="$CFLAGS"
9014 # Set sane defaults for various variables
9015 test -z "$CC" && CC=cc
9016 test -z "$LTCC" && LTCC=$CC
9017 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9018 test -z "$LD" && LD=ld
9019 test -z "$ac_objext" && ac_objext=o
9021 for cc_temp in $compiler""; do
9023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9029 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
9032 # Only perform the check for file, if the check method requires it
9033 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9034 case $deplibs_check_method in
9036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
9038 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
9039 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9040 $as_echo_n "(cached
) " >&6
9044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9047 lt_save_MAGIC_CMD="$MAGIC_CMD"
9048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9049 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9050 for ac_dir in $ac_dummy; do
9052 test -z "$ac_dir" && ac_dir=.
9053 if test -f $ac_dir/${ac_tool_prefix}file; then
9054 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9055 if test -n "$file_magic_test_file"; then
9056 case $deplibs_check_method in
9058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9061 $EGREP "$file_magic_regex" > /dev/null; then
9066 *** Warning: the command libtool uses to detect shared libraries,
9067 *** $file_magic_cmd, produces output that libtool cannot recognize.
9068 *** The result is that libtool may fail to recognize shared libraries
9069 *** as such. This will affect the creation of libtool libraries that
9070 *** depend on shared libraries, but programs linked with such libtool
9071 *** libraries will work regardless of this problem. Nevertheless, you
9072 *** may want to report the problem to your system manager and/or to
9073 *** bug-libtool@gnu.org
9083 MAGIC_CMD="$lt_save_MAGIC_CMD"
9088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9089 if test -n "$MAGIC_CMD"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9091 $as_echo "$MAGIC_CMD" >&6; }
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9094 $as_echo "no
" >&6; }
9101 if test -z "$lt_cv_path_MAGIC_CMD"; then
9102 if test -n "$ac_tool_prefix"; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
9104 $as_echo_n "checking
for file...
" >&6; }
9105 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9106 $as_echo_n "(cached
) " >&6
9110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9113 lt_save_MAGIC_CMD="$MAGIC_CMD"
9114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9115 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9116 for ac_dir in $ac_dummy; do
9118 test -z "$ac_dir" && ac_dir=.
9119 if test -f $ac_dir/file; then
9120 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9121 if test -n "$file_magic_test_file"; then
9122 case $deplibs_check_method in
9124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9127 $EGREP "$file_magic_regex" > /dev/null; then
9132 *** Warning: the command libtool uses to detect shared libraries,
9133 *** $file_magic_cmd, produces output that libtool cannot recognize.
9134 *** The result is that libtool may fail to recognize shared libraries
9135 *** as such. This will affect the creation of libtool libraries that
9136 *** depend on shared libraries, but programs linked with such libtool
9137 *** libraries will work regardless of this problem. Nevertheless, you
9138 *** may want to report the problem to your system manager and/or to
9139 *** bug-libtool@gnu.org
9149 MAGIC_CMD="$lt_save_MAGIC_CMD"
9154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9155 if test -n "$MAGIC_CMD"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9157 $as_echo "$MAGIC_CMD" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9160 $as_echo "no
" >&6; }
9173 # Use C for the default configuration in the libtool script
9177 ac_cpp='$CPP $CPPFLAGS'
9178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9183 # Source file extension for C test sources.
9186 # Object file extension for compiled C test sources.
9190 # Code to be used in simple compile tests
9191 lt_simple_compile_test_code="int some_variable
= 0;"
9193 # Code to be used in simple link tests
9194 lt_simple_link_test_code='int main(){return(0);}'
9202 # If no C compiler was specified, use CC.
9205 # If no C compiler flags were specified, use CFLAGS.
9206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9208 # Allow CC to be a program name with arguments.
9211 # Save the default compiler, since it gets overwritten when the other
9212 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9213 compiler_DEFAULT=$CC
9215 # save warnings/boilerplate of simple test code
9216 ac_outfile=conftest.$ac_objext
9217 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9218 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9219 _lt_compiler_boilerplate=`cat conftest.err`
9222 ac_outfile=conftest.$ac_objext
9223 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9224 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9225 _lt_linker_boilerplate=`cat conftest.err`
9230 ## There is no encapsulation within the following macros, do not change
9231 ## the running order or otherwise move them around unless you know exactly
9232 ## what you are doing...
9233 if test -n "$compiler"; then
9235 lt_prog_compiler_no_builtin_flag=
9237 if test "$GCC" = yes; then
9238 case $cc_basename in
9240 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9242 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
9246 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
9247 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9248 $as_echo_n "(cached
) " >&6
9250 lt_cv_prog_compiler_rtti_exceptions=no
9251 ac_outfile=conftest.$ac_objext
9252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9253 lt_compiler_flag="-fno-rtti -fno-exceptions"
9254 # Insert the option either (1) after the last *FLAGS variable, or
9255 # (2) before a word containing "conftest.
", or (3) at the end.
9256 # Note that $ac_compile itself does not contain backslashes and begins
9257 # with a dollar sign (not a hyphen), so the echo should work correctly.
9258 # The option is referenced via a variable to avoid confusing sed.
9259 lt_compile=`echo "$ac_compile" | $SED \
9260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9262 -e 's:$: $lt_compiler_flag:'`
9263 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9264 (eval "$lt_compile" 2>conftest.err)
9266 cat conftest.err >&5
9267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9268 if (exit $ac_status) && test -s "$ac_outfile"; then
9269 # The compiler can only warn and ignore the option if not recognized
9270 # So say no if there are warnings other than the usual output.
9271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9274 lt_cv_prog_compiler_rtti_exceptions=yes
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
9281 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9283 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9284 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9296 lt_prog_compiler_wl=
9297 lt_prog_compiler_pic=
9298 lt_prog_compiler_static=
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
9301 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
9303 if test "$GCC" = yes; then
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_static='-static'
9309 # All AIX code is PIC.
9310 if test "$host_cpu" = ia64; then
9311 # AIX 5 now supports IA64 processor
9312 lt_prog_compiler_static='-Bstatic'
9319 # see comment about AmigaOS4 .so support
9320 lt_prog_compiler_pic='-fPIC'
9323 # FIXME: we need at least 68020 code to build shared libraries, but
9324 # adding the `-m68020' flag to GCC prevents building anything better,
9326 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9331 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9332 # PIC is the default for these OSes.
9335 mingw* | cygwin* | pw32* | os2* | cegcc*)
9336 # This hack is so that the source file can tell whether it is being
9337 # built for inclusion in a dll (and should export symbols for example).
9338 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9339 # (--disable-auto-import) libraries
9340 lt_prog_compiler_pic='-DDLL_EXPORT'
9343 darwin* | rhapsody*)
9344 # PIC is the default on this platform
9345 # Common symbols not allowed in MH_DYLIB files
9346 lt_prog_compiler_pic='-fno-common'
9350 # PIC is the default for Haiku.
9351 # The "-static" flag exists, but is broken.
9352 lt_prog_compiler_static=
9356 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9357 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9358 # sets the default TLS model and affects inlining.
9364 lt_prog_compiler_pic='-fPIC'
9370 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9371 # Instead, we relocate shared libraries at runtime.
9375 # Just because we use GCC doesn't mean we suddenly get shared libraries
9376 # on systems that don't support them.
9377 lt_prog_compiler_can_build_shared=no
9382 # QNX uses GNU C++, but need to define -shared option too, otherwise
9384 lt_prog_compiler_pic='-fPIC -shared'
9388 if test -d /usr/nec; then
9389 lt_prog_compiler_pic=-Kconform_pic
9394 lt_prog_compiler_pic='-fPIC'
9398 case $cc_basename in
9399 nvcc*) # Cuda Compiler Driver 2.2
9400 lt_prog_compiler_wl='-Xlinker '
9401 lt_prog_compiler_pic='-Xcompiler -fPIC'
9405 # PORTME Check for flag to pass linker flags through the system compiler.
9408 lt_prog_compiler_wl='-Wl,'
9409 if test "$host_cpu" = ia64; then
9410 # AIX 5 now supports IA64 processor
9411 lt_prog_compiler_static='-Bstatic'
9413 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9417 mingw* | cygwin* | pw32* | os2* | cegcc*)
9418 # This hack is so that the source file can tell whether it is being
9419 # built for inclusion in a dll (and should export symbols for example).
9420 lt_prog_compiler_pic='-DDLL_EXPORT'
9423 hpux9* | hpux10* | hpux11*)
9424 lt_prog_compiler_wl='-Wl,'
9425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9432 lt_prog_compiler_pic='+Z'
9435 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9436 lt_prog_compiler_static='${wl}-a ${wl}archive'
9439 irix5* | irix6* | nonstopux*)
9440 lt_prog_compiler_wl='-Wl,'
9441 # PIC (with -KPIC) is the default.
9442 lt_prog_compiler_static='-non_shared'
9445 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9446 case $cc_basename in
9447 # old Intel for x86_64 which still supported -KPIC.
9449 lt_prog_compiler_wl='-Wl,'
9450 lt_prog_compiler_pic='-KPIC'
9451 lt_prog_compiler_static='-static'
9453 # icc used to be incompatible with GCC.
9454 # ICC 10 doesn't accept -KPIC any more.
9456 lt_prog_compiler_wl='-Wl,'
9457 lt_prog_compiler_pic='-fPIC'
9458 lt_prog_compiler_static='-static'
9460 # Lahey Fortran 8.1.
9462 lt_prog_compiler_wl='-Wl,'
9463 lt_prog_compiler_pic='--shared'
9464 lt_prog_compiler_static='--static'
9466 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9467 # Portland Group compilers (*not* the Pentium gcc compiler,
9468 # which looks to be a dead project)
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_pic='-fpic'
9471 lt_prog_compiler_static='-Bstatic'
9474 lt_prog_compiler_wl='-Wl,'
9475 # All Alpha code is PIC.
9476 lt_prog_compiler_static='-non_shared'
9478 xl* | bgxl* | bgf* | mpixl*)
9479 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9480 lt_prog_compiler_wl='-Wl,'
9481 lt_prog_compiler_pic='-qpic'
9482 lt_prog_compiler_static='-qstaticlink'
9485 case `$CC -V 2>&1 | sed 5q` in
9486 *Sun\ F* | *Sun*Fortran*)
9487 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9488 lt_prog_compiler_pic='-KPIC'
9489 lt_prog_compiler_static='-Bstatic'
9490 lt_prog_compiler_wl=''
9494 lt_prog_compiler_pic='-KPIC'
9495 lt_prog_compiler_static='-Bstatic'
9496 lt_prog_compiler_wl='-Wl,'
9504 lt_prog_compiler_pic='-KPIC'
9505 lt_prog_compiler_static='-Bstatic'
9509 # QNX uses GNU C++, but need to define -shared option too, otherwise
9511 lt_prog_compiler_pic='-fPIC -shared'
9514 osf3* | osf4* | osf5*)
9515 lt_prog_compiler_wl='-Wl,'
9516 # All OSF/1 code is PIC.
9517 lt_prog_compiler_static='-non_shared'
9521 lt_prog_compiler_static='-non_shared'
9525 lt_prog_compiler_pic='-KPIC'
9526 lt_prog_compiler_static='-Bstatic'
9527 case $cc_basename in
9528 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9529 lt_prog_compiler_wl='-Qoption ld ';;
9531 lt_prog_compiler_wl='-Wl,';;
9536 lt_prog_compiler_wl='-Qoption ld '
9537 lt_prog_compiler_pic='-PIC'
9538 lt_prog_compiler_static='-Bstatic'
9541 sysv4 | sysv4.2uw2* | sysv4.3*)
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_pic='-KPIC'
9544 lt_prog_compiler_static='-Bstatic'
9548 if test -d /usr/nec ;then
9549 lt_prog_compiler_pic='-Kconform_pic'
9550 lt_prog_compiler_static='-Bstatic'
9554 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9555 lt_prog_compiler_wl='-Wl,'
9556 lt_prog_compiler_pic='-KPIC'
9557 lt_prog_compiler_static='-Bstatic'
9561 lt_prog_compiler_wl='-Wl,'
9562 lt_prog_compiler_can_build_shared=no
9566 lt_prog_compiler_pic='-pic'
9567 lt_prog_compiler_static='-Bstatic'
9571 lt_prog_compiler_can_build_shared=no
9577 # For platforms which do not support PIC, -DPIC is meaningless:
9579 lt_prog_compiler_pic=
9582 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9586 $as_echo "$lt_prog_compiler_pic" >&6; }
9594 # Check to make sure the PIC flag actually works.
9596 if test -n "$lt_prog_compiler_pic"; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9598 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9599 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9600 $as_echo_n "(cached
) " >&6
9602 lt_cv_prog_compiler_pic_works=no
9603 ac_outfile=conftest.$ac_objext
9604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9605 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9606 # Insert the option either (1) after the last *FLAGS variable, or
9607 # (2) before a word containing "conftest.
", or (3) at the end.
9608 # Note that $ac_compile itself does not contain backslashes and begins
9609 # with a dollar sign (not a hyphen), so the echo should work correctly.
9610 # The option is referenced via a variable to avoid confusing sed.
9611 lt_compile=`echo "$ac_compile" | $SED \
9612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9614 -e 's:$: $lt_compiler_flag:'`
9615 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9616 (eval "$lt_compile" 2>conftest.err)
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9620 if (exit $ac_status) && test -s "$ac_outfile"; then
9621 # The compiler can only warn and ignore the option if not recognized
9622 # So say no if there are warnings other than the usual output.
9623 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9625 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9626 lt_cv_prog_compiler_pic_works=yes
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9633 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9635 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9636 case $lt_prog_compiler_pic in
9638 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9641 lt_prog_compiler_pic=
9642 lt_prog_compiler_can_build_shared=no
9653 # Check to make sure the static flag actually works.
9655 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9657 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9658 if ${lt_cv_prog_compiler_static_works+:} false; then :
9659 $as_echo_n "(cached
) " >&6
9661 lt_cv_prog_compiler_static_works=no
9662 save_LDFLAGS="$LDFLAGS"
9663 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9664 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9665 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9666 # The linker can only warn and ignore the option if not recognized
9667 # So say no if there are warnings
9668 if test -s conftest.err; then
9669 # Append any errors to the config.log.
9670 cat conftest.err 1>&5
9671 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9673 if diff conftest.exp conftest.er2 >/dev/null; then
9674 lt_cv_prog_compiler_static_works=yes
9677 lt_cv_prog_compiler_static_works=yes
9681 LDFLAGS="$save_LDFLAGS"
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9685 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9687 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9690 lt_prog_compiler_static=
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9700 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9701 if ${lt_cv_prog_compiler_c_o+:} false; then :
9702 $as_echo_n "(cached
) " >&6
9704 lt_cv_prog_compiler_c_o=no
9705 $RM -r conftest 2>/dev/null
9709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9711 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9712 # Insert the option either (1) after the last *FLAGS variable, or
9713 # (2) before a word containing "conftest.
", or (3) at the end.
9714 # Note that $ac_compile itself does not contain backslashes and begins
9715 # with a dollar sign (not a hyphen), so the echo should work correctly.
9716 lt_compile=`echo "$ac_compile" | $SED \
9717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9719 -e 's:$: $lt_compiler_flag:'`
9720 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9721 (eval "$lt_compile" 2>out/conftest.err)
9723 cat out/conftest.err >&5
9724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9725 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9727 # The compiler can only warn and ignore the option if not recognized
9728 # So say no if there are warnings
9729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9730 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9731 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9732 lt_cv_prog_compiler_c_o=yes
9737 # SGI C++ compiler will create directory out/ii_files/ for
9738 # template instantiation
9739 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9740 $RM out/* && rmdir out
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9747 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9755 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9756 if ${lt_cv_prog_compiler_c_o+:} false; then :
9757 $as_echo_n "(cached
) " >&6
9759 lt_cv_prog_compiler_c_o=no
9760 $RM -r conftest 2>/dev/null
9764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9767 # Insert the option either (1) after the last *FLAGS variable, or
9768 # (2) before a word containing "conftest.
", or (3) at the end.
9769 # Note that $ac_compile itself does not contain backslashes and begins
9770 # with a dollar sign (not a hyphen), so the echo should work correctly.
9771 lt_compile=`echo "$ac_compile" | $SED \
9772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9774 -e 's:$: $lt_compiler_flag:'`
9775 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9776 (eval "$lt_compile" 2>out/conftest.err)
9778 cat out/conftest.err >&5
9779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9782 # The compiler can only warn and ignore the option if not recognized
9783 # So say no if there are warnings
9784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9787 lt_cv_prog_compiler_c_o=yes
9792 # SGI C++ compiler will create directory out/ii_files/ for
9793 # template instantiation
9794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9795 $RM out/* && rmdir out
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9802 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9807 hard_links="nottested
"
9808 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9809 # do not overwrite the value of need_locks provided by the user
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9811 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9816 ln conftest.a conftest.b 2>&5 || hard_links=no
9817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9819 $as_echo "$hard_links" >&6; }
9820 if test "$hard_links" = no; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9822 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9835 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9838 allow_undefined_flag=
9839 always_export_symbols=no
9841 archive_expsym_cmds=
9842 compiler_needs_object=no
9843 enable_shared_with_static_runtimes=no
9844 export_dynamic_flag_spec=
9845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9846 hardcode_automatic=no
9848 hardcode_direct_absolute=no
9849 hardcode_libdir_flag_spec=
9850 hardcode_libdir_flag_spec_ld=
9851 hardcode_libdir_separator=
9853 hardcode_shlibpath_var=unsupported
9855 link_all_deplibs=unknown
9858 old_archive_from_new_cmds=
9859 old_archive_from_expsyms_cmds=
9860 thread_safe_flag_spec=
9861 whole_archive_flag_spec=
9862 # include_expsyms should be a list of space-separated symbols to be *always*
9863 # included in the symbol list
9865 # exclude_expsyms can be an extended regexp of symbols to exclude
9866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9868 # as well as any symbol that contains `d'.
9869 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9871 # platforms (ab)use it in PIC code, but their linkers get confused if
9872 # the symbol is explicitly referenced. Since portable code cannot
9873 # rely on this symbol name, it's probably fine to never include it in
9874 # preloaded symbol tables.
9875 # Exclude shared library initialization/finalization symbols.
9876 extract_expsyms_cmds=
9879 cygwin* | mingw* | pw32* | cegcc*)
9880 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9881 # When not using gcc, we currently assume that we are using
9882 # Microsoft Visual C++.
9883 if test "$GCC" != yes; then
9888 # we just hope/assume this is gcc and not c89 (= MSVC++)
9898 # On some targets, GNU ld is compatible enough with the native linker
9899 # that we're better off using the native interface for both.
9900 lt_use_gnu_ld_interface=no
9901 if test "$with_gnu_ld" = yes; then
9904 # The AIX port of GNU ld has always aspired to compatibility
9905 # with the native linker. However, as the warning in the GNU ld
9906 # block says, versions before 2.19.5* couldn't really create working
9907 # shared libraries, regardless of the interface used.
9908 case `$LD -v 2>&1` in
9909 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9910 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9911 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9913 lt_use_gnu_ld_interface=yes
9918 lt_use_gnu_ld_interface=yes
9923 if test "$lt_use_gnu_ld_interface" = yes; then
9924 # If archive_cmds runs LD, not CC, wlarc should be empty
9927 # Set some defaults for GNU ld with shared library support. These
9928 # are reset later if shared libraries are not supported. Putting them
9929 # here allows them to be overridden if necessary.
9930 runpath_var=LD_RUN_PATH
9931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9932 export_dynamic_flag_spec='${wl}--export-dynamic'
9933 # ancient GNU ld didn't support --whole-archive et. al.
9934 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9935 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9937 whole_archive_flag_spec=
9939 supports_anon_versioning=no
9940 case `$LD -v 2>&1` in
9941 *GNU\ gold*) supports_anon_versioning=yes ;;
9942 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9943 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9944 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9945 *\ 2.11.*) ;; # other 2.11 versions
9946 *) supports_anon_versioning=yes ;;
9949 # See if GNU ld supports shared libraries.
9952 # On AIX/PPC, the GNU linker is very broken
9953 if test "$host_cpu" != ia64; then
9957 *** Warning: the GNU linker, at least up to release 2.19, is reported
9958 *** to be unable to reliably create shared libraries on AIX.
9959 *** Therefore, libtool is disabling shared libraries support. If you
9960 *** really care for shared libraries, you may want to install binutils
9961 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9962 *** You will then need to restart the configuration process.
9971 # see comment about AmigaOS4 .so support
9972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9973 archive_expsym_cmds=''
9976 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)'
9977 hardcode_libdir_flag_spec
='-L$libdir'
9978 hardcode_minus_L
=yes
9984 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9985 allow_undefined_flag
=unsupported
9986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9987 # support --undefined. This deserves some investigation. FIXME
9988 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9994 cygwin
* | mingw
* | pw32
* | cegcc
*)
9995 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9996 # as there is no search path for DLLs.
9997 hardcode_libdir_flag_spec
='-L$libdir'
9998 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9999 allow_undefined_flag
=unsupported
10000 always_export_symbols
=no
10001 enable_shared_with_static_runtimes
=yes
10002 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10004 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
10005 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10006 # If the export-symbols file already is a .def file (1st line
10007 # is EXPORTS), use it as is; otherwise, prepend...
10008 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10009 cp $export_symbols $output_objdir/$soname.def;
10011 echo EXPORTS > $output_objdir/$soname.def;
10012 cat $export_symbols >> $output_objdir/$soname.def;
10014 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10021 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10022 link_all_deplibs
=yes
10027 hardcode_shlibpath_var
=no
10028 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10029 export_dynamic_flag_spec
='${wl}-E'
10030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10031 # Instead, shared libraries are loaded at an image base (0x10000000 by
10032 # default) and relocated if they conflict, which is a slow very memory
10033 # consuming and fragmenting process. To avoid this, we pick a random,
10034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10036 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10037 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'
10040 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10042 if test "$host_os" = linux-dietlibc
; then
10043 case $cc_basename in
10044 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
10047 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
10048 && test "$tmp_diet" = no
10051 tmp_sharedflag
='-shared'
10052 case $cc_basename,$host_cpu in
10053 pgcc
*) # Portland Group C compiler
10054 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'
10055 tmp_addflag
=' $pic_flag'
10057 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10058 # Portland Group f77 and f90 compilers
10059 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'
10060 tmp_addflag
=' $pic_flag -Mnomain' ;;
10061 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
10062 tmp_addflag
=' -i_dynamic' ;;
10063 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
10064 tmp_addflag
=' -i_dynamic -nofor_main' ;;
10065 ifc
* | ifort
*) # Intel Fortran compiler
10066 tmp_addflag
=' -nofor_main' ;;
10067 lf95
*) # Lahey Fortran 8.1
10068 whole_archive_flag_spec
=
10069 tmp_sharedflag
='--shared' ;;
10070 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10071 tmp_sharedflag
='-qmkshrobj'
10073 nvcc
*) # Cuda Compiler Driver 2.2
10074 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'
10075 compiler_needs_object
=yes
10078 case `$CC -V 2>&1 | sed 5q` in
10079 *Sun\ C
*) # Sun C 5.9
10080 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'
10081 compiler_needs_object
=yes
10082 tmp_sharedflag
='-G' ;;
10083 *Sun\ F
*) # Sun Fortran 8.3
10084 tmp_sharedflag
='-G' ;;
10086 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10088 if test "x$supports_anon_versioning" = xyes
; then
10089 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10091 echo "local: *; };" >> $output_objdir/$libname.ver~
10092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10095 case $cc_basename in
10096 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
10097 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10098 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
10099 hardcode_libdir_flag_spec
=
10100 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
10101 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10102 if test "x$supports_anon_versioning" = xyes
; then
10103 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10105 echo "local: *; };" >> $output_objdir/$libname.ver~
10106 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10116 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10117 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10120 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10126 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10130 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10131 *** create shared libraries on Solaris systems. Therefore, libtool
10132 *** is disabling shared libraries support. We urge you to upgrade GNU
10133 *** binutils to release 2.9.1 or newer. Another option is to modify
10134 *** your PATH or compiler configuration so that the native linker is
10135 *** used, and then restart.
10138 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10139 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10146 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10147 case `$LD -v 2>&1` in
10148 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10152 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10153 *** reliably create shared libraries on SCO systems. Therefore, libtool
10154 *** is disabling shared libraries support. We urge you to upgrade GNU
10155 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10156 *** your PATH or compiler configuration so that the native linker is
10157 *** used, and then restart.
10162 # For security reasons, it is highly recommended that you always
10163 # use absolute paths for naming shared libraries, and exclude the
10164 # DT_RUNPATH tag from executables and libraries. But doing so
10165 # requires that you compile everything twice, which is a pain.
10166 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10167 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10168 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10169 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10178 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_direct
=yes
10181 hardcode_shlibpath_var
=no
10185 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10186 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10187 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10194 if test "$ld_shlibs" = no
; then
10196 hardcode_libdir_flag_spec
=
10197 export_dynamic_flag_spec
=
10198 whole_archive_flag_spec
=
10201 # PORTME fill in a description of your system's linker (not GNU ld)
10204 allow_undefined_flag
=unsupported
10205 always_export_symbols
=yes
10206 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'
10207 # Note: this linker hardcodes the directories in LIBPATH if there
10208 # are no directories specified by -L.
10209 hardcode_minus_L
=yes
10210 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10211 # Neither direct hardcoding nor static linking is supported with a
10213 hardcode_direct
=unsupported
10218 if test "$host_cpu" = ia64
; then
10219 # On IA64, the linker does run time linking by default, so we don't
10220 # have to do anything special.
10221 aix_use_runtimelinking
=no
10222 exp_sym_flag
='-Bexport'
10225 # If we're using GNU nm, then we don't want the "-C" option.
10226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10227 # Also, AIX nm treats weak defined symbols like other global
10228 # defined symbols, whereas GNU nm marks them as "W".
10229 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10230 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'
10232 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'
10234 aix_use_runtimelinking
=no
10236 # Test if we are trying to use run time linking or normal
10237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10238 # need to do runtime linking.
10239 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10240 for ld_flag
in $LDFLAGS; do
10241 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10242 aix_use_runtimelinking
=yes
10249 exp_sym_flag
='-bexport'
10250 no_entry_flag
='-bnoentry'
10253 # When large executables or shared objects are built, AIX ld can
10254 # have problems creating the table of contents. If linking a library
10255 # or program results in "error TOC overflow" add -mminimal-toc to
10256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10260 hardcode_direct
=yes
10261 hardcode_direct_absolute
=yes
10262 hardcode_libdir_separator
=':'
10263 link_all_deplibs
=yes
10264 file_list_spec
='${wl}-f,'
10266 if test "$GCC" = yes; then
10267 case $host_os in aix4.
[012]|aix4.
[012].
*)
10268 # We only want to do this on AIX 4.2 and lower, the check
10269 # below for broken collect2 doesn't work under 4.3+
10270 collect2name
=`${CC} -print-prog-name=collect2`
10271 if test -f "$collect2name" &&
10272 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10274 # We have reworked collect2
10277 # We have old collect2
10278 hardcode_direct
=unsupported
10279 # It fails to find uninstalled libraries when the uninstalled
10280 # path is not listed in the libpath. Setting hardcode_minus_L
10281 # to unsupported forces relinking
10282 hardcode_minus_L
=yes
10283 hardcode_libdir_flag_spec
='-L$libdir'
10284 hardcode_libdir_separator
=
10288 shared_flag
='-shared'
10289 if test "$aix_use_runtimelinking" = yes; then
10290 shared_flag
="$shared_flag "'${wl}-G'
10294 if test "$host_cpu" = ia64
; then
10295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10296 # chokes on -Wl,-G. The following line is correct:
10299 if test "$aix_use_runtimelinking" = yes; then
10300 shared_flag
='${wl}-G'
10302 shared_flag
='${wl}-bM:SRE'
10307 export_dynamic_flag_spec
='${wl}-bexpall'
10308 # It seems that -bexpall does not export symbols beginning with
10309 # underscore (_), so it is better to generate a list of symbols to export.
10310 always_export_symbols
=yes
10311 if test "$aix_use_runtimelinking" = yes; then
10312 # Warning - without using the other runtime loading flags (-brtl),
10313 # -berok will link without error, but may produce a broken library.
10314 allow_undefined_flag
='-berok'
10315 # Determine the default libpath from the value encoded in an
10316 # empty executable.
10317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h. */
10328 if ac_fn_c_try_link
"$LINENO"; then :
10330 lt_aix_libpath_sed
='
10331 /Import File Strings/,/^$/ {
10337 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10338 # Check for a 64-bit object if we didn't find anything.
10339 if test -z "$aix_libpath"; then
10340 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10343 rm -f core conftest.err conftest.
$ac_objext \
10344 conftest
$ac_exeext conftest.
$ac_ext
10345 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10347 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10348 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"
10350 if test "$host_cpu" = ia64
; then
10351 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10352 allow_undefined_flag
="-z nodefs"
10353 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"
10355 # Determine the default libpath from the value encoded in an
10356 # empty executable.
10357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10368 if ac_fn_c_try_link
"$LINENO"; then :
10370 lt_aix_libpath_sed
='
10371 /Import File Strings/,/^$/ {
10377 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10378 # Check for a 64-bit object if we didn't find anything.
10379 if test -z "$aix_libpath"; then
10380 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383 rm -f core conftest.err conftest.
$ac_objext \
10384 conftest
$ac_exeext conftest.
$ac_ext
10385 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10387 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10388 # Warning - without using the other run time loading flags,
10389 # -berok will link without error, but may produce a broken library.
10390 no_undefined_flag
=' ${wl}-bernotok'
10391 allow_undefined_flag
=' ${wl}-berok'
10392 if test "$with_gnu_ld" = yes; then
10393 # We only use this code for GNU lds that support --whole-archive.
10394 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10396 # Exported symbols can be pulled into shared objects from archives
10397 whole_archive_flag_spec
='$convenience'
10399 archive_cmds_need_lc
=yes
10400 # This is similar to how AIX traditionally builds its shared libraries.
10401 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'
10409 # see comment about AmigaOS4 .so support
10410 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10411 archive_expsym_cmds
=''
10414 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)'
10415 hardcode_libdir_flag_spec
='-L$libdir'
10416 hardcode_minus_L
=yes
10422 export_dynamic_flag_spec
=-rdynamic
10425 cygwin
* | mingw
* | pw32
* | cegcc
*)
10426 # When not using gcc, we currently assume that we are using
10427 # Microsoft Visual C++.
10428 # hardcode_libdir_flag_spec is actually meaningless, as there is
10429 # no search path for DLLs.
10430 hardcode_libdir_flag_spec
=' '
10431 allow_undefined_flag
=unsupported
10432 # Tell ltmain to make .lib files, not .a files.
10434 # Tell ltmain to make .dll files, not .so files.
10436 # FIXME: Setting linknames here is a bad hack.
10437 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10438 # The linker will automatically build a .lib file if we build a DLL.
10439 old_archive_from_new_cmds
='true'
10440 # FIXME: Should let the user specify the lib program.
10441 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10442 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10443 enable_shared_with_static_runtimes
=yes
10446 darwin
* | rhapsody
*)
10449 archive_cmds_need_lc
=no
10451 hardcode_automatic
=yes
10452 hardcode_shlibpath_var
=unsupported
10453 if test "$lt_cv_ld_force_load" = "yes"; then
10454 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\"`'
10456 whole_archive_flag_spec
=''
10458 link_all_deplibs
=yes
10459 allow_undefined_flag
="$_lt_dar_allow_undefined"
10460 case $cc_basename in
10461 ifort
*) _lt_dar_can_shared
=yes ;;
10462 *) _lt_dar_can_shared
=$GCC ;;
10464 if test "$_lt_dar_can_shared" = "yes"; then
10465 output_verbose_link_cmd
=func_echo_all
10466 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10467 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10468 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}"
10469 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}"
10478 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10479 hardcode_libdir_flag_spec
='-L$libdir'
10480 hardcode_shlibpath_var
=no
10487 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10488 # support. Future versions do this automatically, but an explicit c++rt0.o
10489 # does not break anything, and helps significantly (at the cost of a little
10492 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10493 hardcode_libdir_flag_spec
='-R$libdir'
10494 hardcode_direct
=yes
10495 hardcode_shlibpath_var
=no
10498 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10500 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10501 hardcode_direct
=yes
10502 hardcode_minus_L
=yes
10503 hardcode_shlibpath_var
=no
10506 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10507 freebsd
* | dragonfly
*)
10508 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10509 hardcode_libdir_flag_spec
='-R$libdir'
10510 hardcode_direct
=yes
10511 hardcode_shlibpath_var
=no
10515 if test "$GCC" = yes; then
10516 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10518 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'
10520 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10521 hardcode_libdir_separator
=:
10522 hardcode_direct
=yes
10524 # hardcode_minus_L: Not really in the search PATH,
10525 # but as the default location of the library.
10526 hardcode_minus_L
=yes
10527 export_dynamic_flag_spec
='${wl}-E'
10531 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10532 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10534 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10536 if test "$with_gnu_ld" = no
; then
10537 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10538 hardcode_libdir_flag_spec_ld
='+b $libdir'
10539 hardcode_libdir_separator
=:
10540 hardcode_direct
=yes
10541 hardcode_direct_absolute
=yes
10542 export_dynamic_flag_spec
='${wl}-E'
10543 # hardcode_minus_L: Not really in the search PATH,
10544 # but as the default location of the library.
10545 hardcode_minus_L
=yes
10550 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10553 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10556 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10559 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10565 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10568 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10572 # Older versions of the 11.00 compiler do not understand -b yet
10573 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10575 $as_echo_n "checking if $CC understands -b... " >&6; }
10576 if ${lt_cv_prog_compiler__b+:} false
; then :
10577 $as_echo_n "(cached) " >&6
10579 lt_cv_prog_compiler__b
=no
10580 save_LDFLAGS
="$LDFLAGS"
10581 LDFLAGS
="$LDFLAGS -b"
10582 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10583 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10584 # The linker can only warn and ignore the option if not recognized
10585 # So say no if there are warnings
10586 if test -s conftest.err
; then
10587 # Append any errors to the config.log.
10588 cat conftest.err
1>&5
10589 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10590 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10591 if diff conftest.exp conftest.er2
>/dev
/null
; then
10592 lt_cv_prog_compiler__b
=yes
10595 lt_cv_prog_compiler__b
=yes
10599 LDFLAGS
="$save_LDFLAGS"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10603 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10605 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10606 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10614 if test "$with_gnu_ld" = no
; then
10615 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10616 hardcode_libdir_separator
=:
10621 hardcode_shlibpath_var
=no
10624 hardcode_direct
=yes
10625 hardcode_direct_absolute
=yes
10626 export_dynamic_flag_spec
='${wl}-E'
10628 # hardcode_minus_L: Not really in the search PATH,
10629 # but as the default location of the library.
10630 hardcode_minus_L
=yes
10636 irix5
* | irix6
* | nonstopux
*)
10637 if test "$GCC" = yes; then
10638 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10639 # Try to use the -exported_symbol ld option, if it does not
10640 # work, assume that -exports_file does not work either and
10641 # implicitly export all symbols.
10642 save_LDFLAGS
="$LDFLAGS"
10643 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10648 if ac_fn_c_try_link
"$LINENO"; then :
10649 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10652 rm -f core conftest.err conftest.
$ac_objext \
10653 conftest
$ac_exeext conftest.
$ac_ext
10654 LDFLAGS
="$save_LDFLAGS"
10656 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'
10657 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'
10659 archive_cmds_need_lc
='no'
10660 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10661 hardcode_libdir_separator
=:
10663 link_all_deplibs
=yes
10667 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10668 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10670 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10672 hardcode_libdir_flag_spec
='-R$libdir'
10673 hardcode_direct
=yes
10674 hardcode_shlibpath_var
=no
10678 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679 hardcode_direct
=yes
10680 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10681 hardcode_libdir_separator
=:
10682 hardcode_shlibpath_var
=no
10689 if test -f /usr
/libexec
/ld.so
; then
10690 hardcode_direct
=yes
10691 hardcode_shlibpath_var
=no
10692 hardcode_direct_absolute
=yes
10693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10694 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10695 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10696 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10697 export_dynamic_flag_spec
='${wl}-E'
10700 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10701 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10702 hardcode_libdir_flag_spec
='-R$libdir'
10705 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10706 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10716 hardcode_libdir_flag_spec
='-L$libdir'
10717 hardcode_minus_L
=yes
10718 allow_undefined_flag
=unsupported
10719 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'
10720 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10724 if test "$GCC" = yes; then
10725 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10726 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'
10728 allow_undefined_flag
=' -expect_unresolved \*'
10729 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'
10731 archive_cmds_need_lc
='no'
10732 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10733 hardcode_libdir_separator
=:
10736 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10737 if test "$GCC" = yes; then
10738 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10739 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10740 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10742 allow_undefined_flag
=' -expect_unresolved \*'
10743 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'
10744 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~
10745 $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'
10747 # Both c and cxx compiler support -rpath directly
10748 hardcode_libdir_flag_spec
='-rpath $libdir'
10750 archive_cmds_need_lc
='no'
10751 hardcode_libdir_separator
=:
10755 no_undefined_flag
=' -z defs'
10756 if test "$GCC" = yes; then
10758 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10760 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10762 case `$CC -V 2>&1` in
10765 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10767 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10771 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10773 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10777 hardcode_libdir_flag_spec
='-R$libdir'
10778 hardcode_shlibpath_var
=no
10780 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10782 # The compiler driver will combine and reorder linker options,
10783 # but understands `-z linker_flag'. GCC discards it without `$wl',
10784 # but is careful enough not to reorder.
10785 # Supported since Solaris 2.6 (maybe 2.5.1?)
10786 if test "$GCC" = yes; then
10787 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10789 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10793 link_all_deplibs
=yes
10797 if test "x$host_vendor" = xsequent
; then
10798 # Use $CC to link under sequent, because it throws in some extra .o
10799 # files that make .init and .fini sections work.
10800 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10802 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10804 hardcode_libdir_flag_spec
='-L$libdir'
10805 hardcode_direct
=yes
10806 hardcode_minus_L
=yes
10807 hardcode_shlibpath_var
=no
10811 case $host_vendor in
10813 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10814 hardcode_direct
=yes # is this really true???
10817 ## LD is ld it makes a PLAMLIB
10818 ## CC just makes a GrossModule.
10819 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10820 reload_cmds
='$CC -r -o $output$reload_objs'
10824 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10825 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10828 runpath_var
='LD_RUN_PATH'
10829 hardcode_shlibpath_var
=no
10833 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10834 hardcode_shlibpath_var
=no
10835 export_dynamic_flag_spec
='-Bexport'
10839 if test -d /usr
/nec
; then
10840 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10841 hardcode_shlibpath_var
=no
10842 runpath_var
=LD_RUN_PATH
10843 hardcode_runpath_var
=yes
10848 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10849 no_undefined_flag
='${wl}-z,text'
10850 archive_cmds_need_lc
=no
10851 hardcode_shlibpath_var
=no
10852 runpath_var
='LD_RUN_PATH'
10854 if test "$GCC" = yes; then
10855 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10856 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10858 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10863 sysv5
* | sco3.2v5
* | sco5v6
*)
10864 # Note: We can NOT use -z defs as we might desire, because we do not
10865 # link with -lc, and that would cause any symbols used from libc to
10866 # always be unresolved, which means just about no library would
10867 # ever link correctly. If we're not using GNU ld we use -z text
10868 # though, which does catch some bad symbols but isn't as heavy-handed
10870 no_undefined_flag
='${wl}-z,text'
10871 allow_undefined_flag
='${wl}-z,nodefs'
10872 archive_cmds_need_lc
=no
10873 hardcode_shlibpath_var
=no
10874 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10875 hardcode_libdir_separator
=':'
10876 link_all_deplibs
=yes
10877 export_dynamic_flag_spec
='${wl}-Bexport'
10878 runpath_var
='LD_RUN_PATH'
10880 if test "$GCC" = yes; then
10881 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10882 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10884 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10885 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10890 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10891 hardcode_libdir_flag_spec
='-L$libdir'
10892 hardcode_shlibpath_var
=no
10900 if test x
$host_vendor = xsni
; then
10902 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10903 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10910 $as_echo "$ld_shlibs" >&6; }
10911 test "$ld_shlibs" = no
&& can_build_shared
=no
10913 with_gnu_ld
=$with_gnu_ld
10930 # Do we need to explicitly link libc?
10932 case "x$archive_cmds_need_lc" in
10934 # Assume -lc should be added
10935 archive_cmds_need_lc
=yes
10937 if test "$enable_shared" = yes && test "$GCC" = yes; then
10938 case $archive_cmds in
10940 # FIXME: we may have to deal with multi-command sequences.
10943 # Test whether the compiler implicitly links with -lc since on some
10944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10945 # to ld, don't add -lc before -lgcc.
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10947 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10948 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10949 $as_echo_n "(cached) " >&6
10952 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10955 (eval $ac_compile) 2>&5
10957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10958 test $ac_status = 0; } 2>conftest.err
; then
10961 libobjs
=conftest.
$ac_objext
10963 wl
=$lt_prog_compiler_wl
10964 pic_flag
=$lt_prog_compiler_pic
10970 lt_save_allow_undefined_flag
=$allow_undefined_flag
10971 allow_undefined_flag
=
10972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10973 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10976 test $ac_status = 0; }
10978 lt_cv_archive_cmds_need_lc
=no
10980 lt_cv_archive_cmds_need_lc
=yes
10982 allow_undefined_flag
=$lt_save_allow_undefined_flag
10984 cat conftest.err
1>&5
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10990 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10991 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11155 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11157 if test "$GCC" = yes; then
11159 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11160 *) lt_awk_arg
="/^libraries:/" ;;
11163 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11164 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11166 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11167 case $lt_search_path_spec in
11169 # if the path contains ";" then we assume it to be the separator
11170 # otherwise default to the standard path separator (i.e. ":") - it is
11171 # assumed that no part of a normal pathname contains ";" but that should
11172 # okay in the real world where ";" in dirpaths is itself problematic.
11173 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11176 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11179 # Ok, now we have the path, separated by spaces, we can step through it
11180 # and add multilib dir if necessary.
11181 lt_tmp_lt_search_path_spec
=
11182 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11183 for lt_sys_path
in $lt_search_path_spec; do
11184 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11185 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11187 test -d "$lt_sys_path" && \
11188 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11191 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11192 BEGIN {RS=" "; FS="/|\n";} {
11195 for (lt_i = NF; lt_i > 0; lt_i--) {
11196 if ($lt_i != "" && $lt_i != ".") {
11197 if ($lt_i == "..") {
11200 if (lt_count == 0) {
11201 lt_foo="/" $lt_i lt_foo;
11208 if (lt_foo != "") { lt_freq[lt_foo]++; }
11209 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11211 # AWK program above erroneously prepends '/' to C:/dos/paths
11214 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11215 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11217 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11219 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11221 library_names_spec
=
11222 libname_spec
='lib$name'
11226 postuninstall_cmds
=
11230 shlibpath_overrides_runpath
=unknown
11232 dynamic_linker
="$host_os ld.so"
11233 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11234 need_lib_prefix
=unknown
11235 hardcode_into_libs
=no
11237 # when you set need_version to no, make sure it does not cause -set_version
11238 # flags to be left without arguments
11239 need_version
=unknown
11244 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11245 shlibpath_var
=LIBPATH
11247 # AIX 3 has no versioning support, so we append a major version to the name.
11248 soname_spec
='${libname}${release}${shared_ext}$major'
11255 hardcode_into_libs
=yes
11256 if test "$host_cpu" = ia64
; then
11257 # AIX 5 supports IA64
11258 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11259 shlibpath_var
=LD_LIBRARY_PATH
11261 # With GCC up to 2.95.x, collect2 would create an import file
11262 # for dependence libraries. The import file would start with
11263 # the line `#! .'. This would cause the generated library to
11264 # depend on `.', always an invalid library. This was fixed in
11265 # development snapshots of GCC prior to 3.0.
11267 aix4 | aix4.
[01] | aix4.
[01].
*)
11268 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11270 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
11273 can_build_shared
=no
11277 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11278 # soname into executable. Probably we can add versioning support to
11279 # collect2, so additional links can be useful in future.
11280 if test "$aix_use_runtimelinking" = yes; then
11281 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11282 # instead of lib<name>.a to let people know that these are not
11283 # typical AIX shared libraries.
11284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11286 # We preserve .a as extension for shared libraries through AIX4.2
11287 # and later when we are not doing run time linking.
11288 library_names_spec
='${libname}${release}.a $libname.a'
11289 soname_spec
='${libname}${release}${shared_ext}$major'
11291 shlibpath_var
=LIBPATH
11298 # Since July 2007 AmigaOS4 officially supports .so libraries.
11299 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 library_names_spec
='$libname.ixlibrary $libname.a'
11304 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11305 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'
11311 library_names_spec
='${libname}${shared_ext}'
11312 dynamic_linker
="$host_os ld.so"
11313 shlibpath_var
=LIBRARY_PATH
11319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320 soname_spec
='${libname}${release}${shared_ext}$major'
11321 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11322 shlibpath_var
=LD_LIBRARY_PATH
11323 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11324 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11325 # the default ld.so.conf also contains /usr/contrib/lib and
11326 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11327 # libtool to hard-code these into programs
11330 cygwin
* | mingw
* | pw32
* | cegcc
*)
11331 version_type
=windows
11336 case $GCC,$host_os in
11337 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11338 library_names_spec
='$libname.dll.a'
11339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11340 postinstall_cmds
='base_file=`basename \${file}`~
11341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11342 dldir=$destdir/`dirname \$dlpath`~
11343 test -d \$dldir || mkdir -p \$dldir~
11344 $install_prog $dir/$dlname \$dldir/$dlname~
11345 chmod a+x \$dldir/$dlname~
11346 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11347 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11349 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11350 dlpath=$dir/\$dldll~
11352 shlibpath_overrides_runpath
=yes
11356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11357 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11359 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11362 # MinGW DLLs use traditional 'lib' prefix
11363 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11366 # pw32 DLLs use 'pw' prefix rather than 'lib'
11367 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11373 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11376 dynamic_linker
='Win32 ld.exe'
11377 # FIXME: first we should search . and the directory the executable is in
11381 darwin
* | rhapsody
*)
11382 dynamic_linker
="$host_os dyld"
11383 version_type
=darwin
11386 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11387 soname_spec
='${libname}${release}${major}$shared_ext'
11388 shlibpath_overrides_runpath
=yes
11389 shlibpath_var
=DYLD_LIBRARY_PATH
11390 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11392 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11393 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11401 soname_spec
='${libname}${release}${shared_ext}$major'
11402 shlibpath_var
=LD_LIBRARY_PATH
11409 freebsd
* | dragonfly
*)
11410 # DragonFly does not have aout. When/if they implement a new
11411 # versioning mechanism, adjust this.
11412 if test -x /usr
/bin
/objformat
; then
11413 objformat
=`/usr/bin/objformat`
11416 freebsd
[123]*) objformat
=aout
;;
11417 *) objformat
=elf
;;
11420 version_type
=freebsd-
$objformat
11421 case $version_type in
11423 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11428 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11432 shlibpath_var
=LD_LIBRARY_PATH
11435 shlibpath_overrides_runpath
=yes
11437 freebsd3.
[01]* | freebsdelf3.
[01]*)
11438 shlibpath_overrides_runpath
=yes
11439 hardcode_into_libs
=yes
11441 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11442 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11443 shlibpath_overrides_runpath
=no
11444 hardcode_into_libs
=yes
11446 *) # from 4.6 on, and DragonFly
11447 shlibpath_overrides_runpath
=yes
11448 hardcode_into_libs
=yes
11457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11458 soname_spec
='${libname}${release}${shared_ext}$major'
11459 shlibpath_var
=LD_LIBRARY_PATH
11460 hardcode_into_libs
=yes
11467 dynamic_linker
="$host_os runtime_loader"
11468 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11469 soname_spec
='${libname}${release}${shared_ext}$major'
11470 shlibpath_var
=LIBRARY_PATH
11471 shlibpath_overrides_runpath
=yes
11472 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11473 hardcode_into_libs
=yes
11476 hpux9
* | hpux10
* | hpux11
*)
11477 # Give a soname corresponding to the major version so that dld.sl refuses to
11478 # link against other versions.
11485 hardcode_into_libs
=yes
11486 dynamic_linker
="$host_os dld.so"
11487 shlibpath_var
=LD_LIBRARY_PATH
11488 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 soname_spec
='${libname}${release}${shared_ext}$major'
11491 if test "X$HPUX_IA64_MODE" = X32
; then
11492 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11494 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11496 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11500 hardcode_into_libs
=yes
11501 dynamic_linker
="$host_os dld.sl"
11502 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11503 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505 soname_spec
='${libname}${release}${shared_ext}$major'
11506 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11507 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11511 dynamic_linker
="$host_os dld.sl"
11512 shlibpath_var
=SHLIB_PATH
11513 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 soname_spec
='${libname}${release}${shared_ext}$major'
11518 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11519 postinstall_cmds
='chmod 555 $lib'
11520 # or fails outright, so override atomically:
11521 install_override_mode
=555
11528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11529 soname_spec
='${libname}${release}${shared_ext}$major'
11530 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11531 shlibpath_var
=LD_LIBRARY_PATH
11532 shlibpath_overrides_runpath
=no
11533 hardcode_into_libs
=yes
11536 irix5
* | irix6
* | nonstopux
*)
11538 nonstopux
*) version_type
=nonstopux
;;
11540 if test "$lt_cv_prog_gnu_ld" = yes; then
11548 soname_spec
='${libname}${release}${shared_ext}$major'
11549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11551 irix5
* | nonstopux
*)
11552 libsuff
= shlibsuff
=
11555 case $LD in # libtool.m4 will add one of these switches to LD
11556 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11557 libsuff
= shlibsuff
= libmagic
=32-bit;;
11558 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11559 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11560 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11561 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11562 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11566 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11567 shlibpath_overrides_runpath
=no
11568 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11569 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11570 hardcode_into_libs
=yes
11573 # No shared lib support for Linux oldld, aout, or coff.
11574 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11578 # This must be Linux ELF.
11579 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11583 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584 soname_spec
='${libname}${release}${shared_ext}$major'
11585 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11586 shlibpath_var
=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath
=no
11589 # Some binutils ld are patched to set DT_RUNPATH
11590 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11591 $as_echo_n "(cached) " >&6
11593 lt_cv_shlibpath_overrides_runpath
=no
11594 save_LDFLAGS
=$LDFLAGS
11595 save_libdir
=$libdir
11596 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11597 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11609 if ac_fn_c_try_link
"$LINENO"; then :
11610 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11611 lt_cv_shlibpath_overrides_runpath
=yes
11614 rm -f core conftest.err conftest.
$ac_objext \
11615 conftest
$ac_exeext conftest.
$ac_ext
11616 LDFLAGS
=$save_LDFLAGS
11617 libdir
=$save_libdir
11621 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11623 # This implies no fast_install, which is unacceptable.
11624 # Some rework will be needed to allow for fast_install
11625 # before this can be enabled.
11626 hardcode_into_libs
=yes
11628 # Add ABI-specific directories to the system library path.
11629 sys_lib_dlsearch_path_spec
="/lib64 /usr/lib64 /lib /usr/lib"
11631 # Append ld.so.conf contents to the search path
11632 if test -f /etc
/ld.so.conf
; then
11633 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' ' '`
11634 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11638 # We used to test for /lib/ld.so.1 and disable shared libraries on
11639 # powerpc, because MkLinux only supported shared libraries with the
11640 # GNU dynamic linker. Since this was broken with cross compilers,
11641 # most powerpc-linux boxes support dynamic linking these days and
11642 # people can always --disable-shared, the test was removed, and we
11643 # assume the GNU/Linux dynamic linker is in use.
11644 dynamic_linker
='GNU/Linux ld.so'
11651 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11652 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11653 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11654 dynamic_linker
='NetBSD (a.out) ld.so'
11656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11657 soname_spec
='${libname}${release}${shared_ext}$major'
11658 dynamic_linker
='NetBSD ld.elf_so'
11660 shlibpath_var
=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath
=yes
11662 hardcode_into_libs
=yes
11667 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11668 shlibpath_var
=LD_LIBRARY_PATH
11669 shlibpath_overrides_runpath
=yes
11676 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677 soname_spec
='${libname}${release}${shared_ext}$major'
11678 shlibpath_var
=LD_LIBRARY_PATH
11679 shlibpath_overrides_runpath
=no
11680 hardcode_into_libs
=yes
11681 dynamic_linker
='ldqnx.so'
11686 sys_lib_dlsearch_path_spec
="/usr/lib"
11688 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11690 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11691 *) need_version
=no
;;
11693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11694 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11695 shlibpath_var
=LD_LIBRARY_PATH
11696 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11698 openbsd2.
[89] | openbsd2.
[89].
*)
11699 shlibpath_overrides_runpath
=no
11702 shlibpath_overrides_runpath
=yes
11706 shlibpath_overrides_runpath
=yes
11711 libname_spec
='$name'
11714 library_names_spec
='$libname${shared_ext} $libname.a'
11715 dynamic_linker
='OS/2 ld.exe'
11716 shlibpath_var
=LIBPATH
11719 osf3
* | osf4
* | osf5
*)
11723 soname_spec
='${libname}${release}${shared_ext}$major'
11724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 shlibpath_var
=LD_LIBRARY_PATH
11726 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11727 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 soname_spec
='${libname}${release}${shared_ext}$major'
11740 shlibpath_var
=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath
=yes
11742 hardcode_into_libs
=yes
11743 # ldd complains unless libraries are executable
11744 postinstall_cmds
='chmod +x $lib'
11749 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11750 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11751 shlibpath_var
=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath
=yes
11753 if test "$with_gnu_ld" = yes; then
11761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762 soname_spec
='${libname}${release}${shared_ext}$major'
11763 shlibpath_var
=LD_LIBRARY_PATH
11764 case $host_vendor in
11766 shlibpath_overrides_runpath
=no
11768 runpath_var
=LD_RUN_PATH
11776 shlibpath_overrides_runpath
=no
11777 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11783 if test -d /usr
/nec
;then
11785 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11786 soname_spec
='$libname${shared_ext}.$major'
11787 shlibpath_var
=LD_LIBRARY_PATH
11791 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11792 version_type
=freebsd-elf
11795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11796 soname_spec
='${libname}${release}${shared_ext}$major'
11797 shlibpath_var
=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath
=yes
11799 hardcode_into_libs
=yes
11800 if test "$with_gnu_ld" = yes; then
11801 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11803 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11806 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11810 sys_lib_dlsearch_path_spec
='/usr/lib'
11814 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 shlibpath_var
=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath
=no
11821 hardcode_into_libs
=yes
11826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827 soname_spec
='${libname}${release}${shared_ext}$major'
11828 shlibpath_var
=LD_LIBRARY_PATH
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11836 $as_echo "$dynamic_linker" >&6; }
11837 test "$dynamic_linker" = no
&& can_build_shared
=no
11839 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11840 if test "$GCC" = yes; then
11841 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11844 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11845 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11847 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11848 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11943 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11945 if test -n "$hardcode_libdir_flag_spec" ||
11946 test -n "$runpath_var" ||
11947 test "X$hardcode_automatic" = "Xyes" ; then
11949 # We can hardcode non-existent directories.
11950 if test "$hardcode_direct" != no
&&
11951 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11952 # have to relink, otherwise we might link with an installed library
11953 # when we should be linking with a yet-to-be-installed one
11954 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11955 test "$hardcode_minus_L" != no
; then
11956 # Linking always hardcodes the temporary library directory.
11957 hardcode_action
=relink
11959 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11960 hardcode_action
=immediate
11963 # We cannot hardcode anything, or else we can only hardcode existing
11965 hardcode_action
=unsupported
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11968 $as_echo "$hardcode_action" >&6; }
11970 if test "$hardcode_action" = relink ||
11971 test "$inherit_rpath" = yes; then
11972 # Fast installation is not supported
11973 enable_fast_install
=no
11974 elif test "$shlibpath_overrides_runpath" = yes ||
11975 test "$enable_shared" = no
; then
11976 # Fast installation is not necessary
11977 enable_fast_install
=needless
11985 if test "x$enable_dlopen" != xyes
; then
11986 enable_dlopen
=unknown
11987 enable_dlopen_self
=unknown
11988 enable_dlopen_self_static
=unknown
11995 lt_cv_dlopen
="load_add_on"
11997 lt_cv_dlopen_self
=yes
12000 mingw
* | pw32
* | cegcc
*)
12001 lt_cv_dlopen
="LoadLibrary"
12006 lt_cv_dlopen
="dlopen"
12011 # if libdl is installed we need to link against it
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12013 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12014 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12015 $as_echo_n "(cached) " >&6
12017 ac_check_lib_save_LIBS
=$LIBS
12019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12037 if ac_fn_c_try_link
"$LINENO"; then :
12038 ac_cv_lib_dl_dlopen
=yes
12040 ac_cv_lib_dl_dlopen
=no
12042 rm -f core conftest.err conftest.
$ac_objext \
12043 conftest
$ac_exeext conftest.
$ac_ext
12044 LIBS
=$ac_check_lib_save_LIBS
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12047 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12048 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12049 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12052 lt_cv_dlopen
="dyld"
12054 lt_cv_dlopen_self
=yes
12061 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12062 if test "x$ac_cv_func_shl_load" = xyes
; then :
12063 lt_cv_dlopen
="shl_load"
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12066 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12067 if ${ac_cv_lib_dld_shl_load+:} false
; then :
12068 $as_echo_n "(cached) " >&6
12070 ac_check_lib_save_LIBS
=$LIBS
12072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12085 return shl_load ();
12090 if ac_fn_c_try_link
"$LINENO"; then :
12091 ac_cv_lib_dld_shl_load
=yes
12093 ac_cv_lib_dld_shl_load
=no
12095 rm -f core conftest.err conftest.
$ac_objext \
12096 conftest
$ac_exeext conftest.
$ac_ext
12097 LIBS
=$ac_check_lib_save_LIBS
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12100 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12101 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
12102 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
12104 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12105 if test "x$ac_cv_func_dlopen" = xyes
; then :
12106 lt_cv_dlopen
="dlopen"
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12109 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12110 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12111 $as_echo_n "(cached) " >&6
12113 ac_check_lib_save_LIBS
=$LIBS
12115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12133 if ac_fn_c_try_link
"$LINENO"; then :
12134 ac_cv_lib_dl_dlopen
=yes
12136 ac_cv_lib_dl_dlopen
=no
12138 rm -f core conftest.err conftest.
$ac_objext \
12139 conftest
$ac_exeext conftest.
$ac_ext
12140 LIBS
=$ac_check_lib_save_LIBS
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12143 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12144 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12145 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12148 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12149 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12150 $as_echo_n "(cached) " >&6
12152 ac_check_lib_save_LIBS
=$LIBS
12153 LIBS
="-lsvld $LIBS"
12154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12172 if ac_fn_c_try_link
"$LINENO"; then :
12173 ac_cv_lib_svld_dlopen
=yes
12175 ac_cv_lib_svld_dlopen
=no
12177 rm -f core conftest.err conftest.
$ac_objext \
12178 conftest
$ac_exeext conftest.
$ac_ext
12179 LIBS
=$ac_check_lib_save_LIBS
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12182 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12183 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12184 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12187 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12188 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12189 $as_echo_n "(cached) " >&6
12191 ac_check_lib_save_LIBS
=$LIBS
12193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12196 /* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12206 return dld_link ();
12211 if ac_fn_c_try_link
"$LINENO"; then :
12212 ac_cv_lib_dld_dld_link
=yes
12214 ac_cv_lib_dld_dld_link
=no
12216 rm -f core conftest.err conftest.
$ac_objext \
12217 conftest
$ac_exeext conftest.
$ac_ext
12218 LIBS
=$ac_check_lib_save_LIBS
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12221 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12222 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12223 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12244 if test "x$lt_cv_dlopen" != xno
; then
12250 case $lt_cv_dlopen in
12252 save_CPPFLAGS
="$CPPFLAGS"
12253 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12255 save_LDFLAGS
="$LDFLAGS"
12256 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12259 LIBS
="$lt_cv_dlopen_libs $LIBS"
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12262 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12263 if ${lt_cv_dlopen_self+:} false
; then :
12264 $as_echo_n "(cached) " >&6
12266 if test "$cross_compiling" = yes; then :
12267 lt_cv_dlopen_self
=cross
12269 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12270 lt_status
=$lt_dlunknown
12271 cat > conftest.
$ac_ext <<_LT_EOF
12272 #line $LINENO "configure"
12273 #include "confdefs.h"
12282 # define LT_DLGLOBAL RTLD_GLOBAL
12285 # define LT_DLGLOBAL DL_GLOBAL
12287 # define LT_DLGLOBAL 0
12291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12292 find out it does not work in some platform. */
12293 #ifndef LT_DLLAZY_OR_NOW
12295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12298 # define LT_DLLAZY_OR_NOW DL_LAZY
12301 # define LT_DLLAZY_OR_NOW RTLD_NOW
12304 # define LT_DLLAZY_OR_NOW DL_NOW
12306 # define LT_DLLAZY_OR_NOW 0
12313 /* When -fvisbility=hidden is used, assume the code has been annotated
12314 correspondingly for the symbols needed. */
12315 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12316 void fnord () __attribute__((visibility("default")));
12319 void fnord () { int i=42; }
12322 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12323 int status = $lt_dlunknown;
12327 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12330 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12331 else puts (dlerror ());
12333 /* dlclose (self); */
12341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12342 (eval $ac_link) 2>&5
12344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12345 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12346 (.
/conftest
; exit; ) >&5 2>/dev
/null
12348 case x
$lt_status in
12349 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12350 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12351 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12354 # compilation failed
12355 lt_cv_dlopen_self
=no
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12363 $as_echo "$lt_cv_dlopen_self" >&6; }
12365 if test "x$lt_cv_dlopen_self" = xyes
; then
12366 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12368 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12369 if ${lt_cv_dlopen_self_static+:} false
; then :
12370 $as_echo_n "(cached) " >&6
12372 if test "$cross_compiling" = yes; then :
12373 lt_cv_dlopen_self_static
=cross
12375 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12376 lt_status
=$lt_dlunknown
12377 cat > conftest.
$ac_ext <<_LT_EOF
12378 #line $LINENO "configure"
12379 #include "confdefs.h"
12388 # define LT_DLGLOBAL RTLD_GLOBAL
12391 # define LT_DLGLOBAL DL_GLOBAL
12393 # define LT_DLGLOBAL 0
12397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12398 find out it does not work in some platform. */
12399 #ifndef LT_DLLAZY_OR_NOW
12401 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12404 # define LT_DLLAZY_OR_NOW DL_LAZY
12407 # define LT_DLLAZY_OR_NOW RTLD_NOW
12410 # define LT_DLLAZY_OR_NOW DL_NOW
12412 # define LT_DLLAZY_OR_NOW 0
12419 /* When -fvisbility=hidden is used, assume the code has been annotated
12420 correspondingly for the symbols needed. */
12421 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12422 void fnord () __attribute__((visibility("default")));
12425 void fnord () { int i=42; }
12428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12429 int status = $lt_dlunknown;
12433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12436 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12437 else puts (dlerror ());
12439 /* dlclose (self); */
12447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12448 (eval $ac_link) 2>&5
12450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12451 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12452 (.
/conftest
; exit; ) >&5 2>/dev
/null
12454 case x
$lt_status in
12455 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12456 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12457 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12460 # compilation failed
12461 lt_cv_dlopen_self_static
=no
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12469 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12472 CPPFLAGS
="$save_CPPFLAGS"
12473 LDFLAGS
="$save_LDFLAGS"
12478 case $lt_cv_dlopen_self in
12479 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12480 *) enable_dlopen_self
=unknown
;;
12483 case $lt_cv_dlopen_self_static in
12484 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12485 *) enable_dlopen_self_static
=unknown
;;
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12508 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12509 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12510 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12511 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12513 $as_echo "yes" >&6; }
12515 # FIXME - insert some real tests, host_os isn't really good enough
12518 if test -n "$STRIP" ; then
12519 striplib
="$STRIP -x"
12520 old_striplib
="$STRIP -S"
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12522 $as_echo "yes" >&6; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530 $as_echo "no" >&6; }
12546 # Report which library types will actually be built
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12548 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12550 $as_echo "$can_build_shared" >&6; }
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12553 $as_echo_n "checking whether to build shared libraries... " >&6; }
12554 test "$can_build_shared" = "no" && enable_shared
=no
12556 # On AIX, shared libraries and static libraries use the same namespace, and
12557 # are all built from PIC.
12560 test "$enable_shared" = yes && enable_static
=no
12561 if test -n "$RANLIB"; then
12562 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12563 postinstall_cmds
='$RANLIB $lib'
12568 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12569 test "$enable_shared" = yes && enable_static
=no
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12574 $as_echo "$enable_shared" >&6; }
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12577 $as_echo_n "checking whether to build static libraries... " >&6; }
12578 # Make sure either enable_shared or enable_static is yes.
12579 test "$enable_shared" = yes || enable_static
=yes
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12581 $as_echo "$enable_static" >&6; }
12588 ac_cpp
='$CPP $CPPFLAGS'
12589 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12607 ac_config_commands
="$ac_config_commands libtool"
12612 # Only expand once:
12615 if test -n "$ac_tool_prefix"; then
12616 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12617 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_prog_RC+:} false
; then :
12621 $as_echo_n "(cached) " >&6
12623 if test -n "$RC"; then
12624 ac_cv_prog_RC
="$RC" # Let the user override the test.
12626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12627 for as_dir
in $PATH
12630 test -z "$as_dir" && as_dir
=.
12631 for ac_exec_ext
in '' $ac_executable_extensions; do
12632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12633 ac_cv_prog_RC
="${ac_tool_prefix}windres"
12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 if test -n "$RC"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12646 $as_echo "$RC" >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12654 if test -z "$ac_cv_prog_RC"; then
12656 # Extract the first word of "windres", so it can be a program name with args.
12657 set dummy windres
; ac_word
=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if ${ac_cv_prog_ac_ct_RC+:} false
; then :
12661 $as_echo_n "(cached) " >&6
12663 if test -n "$ac_ct_RC"; then
12664 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
12666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12667 for as_dir
in $PATH
12670 test -z "$as_dir" && as_dir
=.
12671 for ac_exec_ext
in '' $ac_executable_extensions; do
12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12673 ac_cv_prog_ac_ct_RC
="windres"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
12684 if test -n "$ac_ct_RC"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12686 $as_echo "$ac_ct_RC" >&6; }
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12692 if test "x$ac_ct_RC" = x
; then
12695 case $cross_compiling:$ac_tool_warned in
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12699 ac_tool_warned
=yes ;;
12704 RC
="$ac_cv_prog_RC"
12710 # Source file extension for RC test sources.
12713 # Object file extension for compiled RC test sources.
12717 # Code to be used in simple compile tests
12718 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12720 # Code to be used in simple link tests
12721 lt_simple_link_test_code
="$lt_simple_compile_test_code"
12723 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12730 # If no C compiler was specified, use CC.
12733 # If no C compiler flags were specified, use CFLAGS.
12734 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12736 # Allow CC to be a program name with arguments.
12740 # save warnings/boilerplate of simple test code
12741 ac_outfile
=conftest.
$ac_objext
12742 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12743 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12744 _lt_compiler_boilerplate
=`cat conftest.err`
12747 ac_outfile
=conftest.
$ac_objext
12748 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12749 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12750 _lt_linker_boilerplate
=`cat conftest.err`
12754 # Allow CC to be a program name with arguments.
12761 for cc_temp
in $compiler""; do
12763 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12764 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12769 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12771 lt_cv_prog_compiler_c_o_RC
=yes
12773 if test -n "$compiler"; then
12782 ac_cpp
='$CPP $CPPFLAGS'
12783 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12784 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12785 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12792 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12793 if ${ac_cv_c_const+:} false
; then :
12794 $as_echo_n "(cached) " >&6
12796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12802 /* FIXME: Include the comments suggested by Paul. */
12803 #ifndef __cplusplus
12804 /* Ultrix mips cc rejects this. */
12805 typedef int charset[2];
12807 /* SunOS 4.1.1 cc rejects this. */
12808 char const *const *pcpcc;
12810 /* NEC SVR4.0.2 mips cc rejects this. */
12811 struct point {int x, y;};
12812 static struct point const zero = {0,0};
12813 /* AIX XL C 1.02.0.0 rejects this.
12814 It does not let you subtract one const X* pointer from another in
12815 an arm of an if-expression whose if-part is not a constant
12817 const char *g = "string";
12818 pcpcc = &g + (g ? g-g : 0);
12819 /* HPUX 7.0 cc rejects these. */
12821 ppc = (char**) pcpcc;
12822 pcpcc = (char const *const *) ppc;
12823 { /* SCO 3.2v4 cc rejects this. */
12825 char const *s = 0 ? (char *) 0 : (char const *) 0;
12830 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12831 int x[] = {25, 17};
12832 const int *foo = &x[0];
12835 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12836 typedef const int *iptr;
12840 { /* AIX XL C 1.02.0.0 rejects this saying
12841 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12842 struct s { int j; const int *ap[3]; };
12843 struct s *b; b->j = 5;
12845 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12846 const int foo = 10;
12847 if (!foo) return 0;
12849 return !cs[0] && !zero.x;
12856 if ac_fn_c_try_compile
"$LINENO"; then :
12861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12864 $as_echo "$ac_cv_c_const" >&6; }
12865 if test $ac_cv_c_const = no
; then
12867 $as_echo "#define const /**/" >>confdefs.h
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12872 $as_echo_n "checking for inline... " >&6; }
12873 if ${ac_cv_c_inline+:} false
; then :
12874 $as_echo_n "(cached) " >&6
12877 for ac_kw
in inline __inline__ __inline
; do
12878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 #ifndef __cplusplus
12882 static $ac_kw foo_t static_foo () {return 0; }
12883 $ac_kw foo_t foo () {return 0; }
12887 if ac_fn_c_try_compile
"$LINENO"; then :
12888 ac_cv_c_inline
=$ac_kw
12890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12891 test "$ac_cv_c_inline" != no
&& break
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12896 $as_echo "$ac_cv_c_inline" >&6; }
12898 case $ac_cv_c_inline in
12901 case $ac_cv_c_inline in
12903 *) ac_val
=$ac_cv_c_inline;;
12905 cat >>confdefs.h
<<_ACEOF
12906 #ifndef __cplusplus
12907 #define inline $ac_val
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12914 $as_echo_n "checking for working volatile... " >&6; }
12915 if ${ac_cv_c_volatile+:} false
; then :
12916 $as_echo_n "(cached) " >&6
12918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h. */
12926 int * volatile y = (int *) 0;
12932 if ac_fn_c_try_compile
"$LINENO"; then :
12933 ac_cv_c_volatile
=yes
12935 ac_cv_c_volatile
=no
12937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
12940 $as_echo "$ac_cv_c_volatile" >&6; }
12941 if test $ac_cv_c_volatile = no
; then
12943 $as_echo "#define volatile /**/" >>confdefs.h
12947 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12948 if test "x$ac_cv_type_off_t" = xyes
; then :
12952 cat >>confdefs.h
<<_ACEOF
12953 #define off_t long int
12958 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12959 if test "x$ac_cv_type_pid_t" = xyes
; then :
12963 cat >>confdefs.h
<<_ACEOF
12969 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12970 if test "x$ac_cv_type_size_t" = xyes
; then :
12974 cat >>confdefs.h
<<_ACEOF
12975 #define size_t unsigned int
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12981 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12982 if ${ac_cv_type_uid_t+:} false
; then :
12983 $as_echo_n "(cached) " >&6
12985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987 #include <sys/types.h>
12990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12991 $EGREP "uid_t" >/dev
/null
2>&1; then :
12992 ac_cv_type_uid_t
=yes
12994 ac_cv_type_uid_t
=no
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13000 $as_echo "$ac_cv_type_uid_t" >&6; }
13001 if test $ac_cv_type_uid_t = no
; then
13003 $as_echo "#define uid_t int" >>confdefs.h
13006 $as_echo "#define gid_t int" >>confdefs.h
13010 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
13011 case $ac_cv_c_int8_t in #(
13015 cat >>confdefs.h
<<_ACEOF
13016 #define int8_t $ac_cv_c_int8_t
13021 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
13022 case $ac_cv_c_int16_t in #(
13026 cat >>confdefs.h
<<_ACEOF
13027 #define int16_t $ac_cv_c_int16_t
13032 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
13033 case $ac_cv_c_int32_t in #(
13037 cat >>confdefs.h
<<_ACEOF
13038 #define int32_t $ac_cv_c_int32_t
13043 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
13044 case $ac_cv_c_int64_t in #(
13048 cat >>confdefs.h
<<_ACEOF
13049 #define int64_t $ac_cv_c_int64_t
13054 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
13055 case $ac_cv_c_uint8_t in #(
13059 $as_echo "#define _UINT8_T 1" >>confdefs.h
13062 cat >>confdefs.h
<<_ACEOF
13063 #define uint8_t $ac_cv_c_uint8_t
13068 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
13069 case $ac_cv_c_uint16_t in #(
13074 cat >>confdefs.h
<<_ACEOF
13075 #define uint16_t $ac_cv_c_uint16_t
13080 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
13081 case $ac_cv_c_uint32_t in #(
13085 $as_echo "#define _UINT32_T 1" >>confdefs.h
13088 cat >>confdefs.h
<<_ACEOF
13089 #define uint32_t $ac_cv_c_uint32_t
13094 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
13095 case $ac_cv_c_uint64_t in #(
13099 $as_echo "#define _UINT64_T 1" >>confdefs.h
13102 cat >>confdefs.h
<<_ACEOF
13103 #define uint64_t $ac_cv_c_uint64_t
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13109 $as_echo_n "checking return type of signal handlers... " >&6; }
13110 if ${ac_cv_type_signal+:} false
; then :
13111 $as_echo_n "(cached) " >&6
13113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115 #include <sys/types.h>
13116 #include <signal.h>
13121 return *(signal (0, 0)) (0) == 1;
13126 if ac_fn_c_try_compile
"$LINENO"; then :
13127 ac_cv_type_signal
=int
13129 ac_cv_type_signal
=void
13131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13134 $as_echo "$ac_cv_type_signal" >&6; }
13136 cat >>confdefs.h
<<_ACEOF
13137 #define RETSIGTYPE $ac_cv_type_signal
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
13142 $as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
13143 if ${ax_cv_cpp_vararg_macro_iso+:} false
; then :
13144 $as_echo_n "(cached) " >&6
13146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13149 #define macro(a, ...) func(a, __VA_ARGS__)
13150 int func(int a, int b, int c);
13156 int i = macro(1, 2, 3);
13163 if ac_fn_c_try_compile
"$LINENO"; then :
13164 ax_cv_cpp_vararg_macro_iso
=yes
13166 ax_cv_cpp_vararg_macro_iso
=no
13169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
13173 $as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
13174 if test "x$ax_cv_cpp_vararg_macro_iso" = xyes
; then :
13176 $as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
13181 $as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
13182 if ${ax_cv_cpp_vararg_macro_gcc+:} false
; then :
13183 $as_echo_n "(cached) " >&6
13185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13188 #define macro(a, b...) func(a, b)
13189 int func(int a, int b, int c);
13195 int i = macro(1, 2, 3);
13202 if ac_fn_c_try_compile
"$LINENO"; then :
13203 ax_cv_cpp_vararg_macro_gcc
=yes
13205 ax_cv_cpp_vararg_macro_gcc
=no
13208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
13212 $as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
13213 if test "x$ax_cv_cpp_vararg_macro_gcc" = xyes
; then :
13215 $as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
13220 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13221 #include <sys/types.h>
13223 #include <ws2tcpip.h>
13225 #include <sys/socket.h>
13230 if test "x$ac_cv_type_socklen_t" = xyes
; then :
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13235 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13236 if ${ax_cv_socklen_t_equiv+:} false
; then :
13237 $as_echo_n "(cached) " >&6
13240 #AS_CASE is not supported on <autoconf-2.60
13242 *-mingw*) ax_cv_socklen_t_equiv
=int
;;
13244 # Systems have either "struct sockaddr *" or
13245 # "void *" as the second argument to getpeername
13246 for arg2
in "struct sockaddr" void
; do
13247 for t
in int size_t unsigned long
"unsigned long"; do
13248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13251 #include <sys/types.h>
13252 #include <sys/socket.h>
13253 int getpeername (int, $arg2 *, $t *);
13260 getpeername(0,0,&len);
13267 if ac_fn_c_try_compile
"$LINENO"; then :
13268 ax_cv_socklen_t_equiv
="$t"; break
13271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13273 test -n "$ax_cv_socklen_t_equiv" && break
13278 if ${ax_cv_socklen_t_equiv:+false} :; then :
13279 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
13282 cat >>confdefs.h
<<_ACEOF
13283 #define socklen_t $ax_cv_socklen_t_equiv
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
13291 $as_echo "$ax_cv_socklen_t_equiv" >&6; }
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
13298 $as_echo_n "checking for C compiler empty array size... " >&6; }
13299 if ${ax_cv_c_empty_array+:} false
; then :
13300 $as_echo_n "(cached) " >&6
13302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13309 struct { int foo; int bar[0]; } mystruct;
13316 if ac_fn_c_try_compile
"$LINENO"; then :
13317 ax_cv_c_empty_array
=0
13319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13326 struct { int foo; int bar[]; } mystruct;
13333 if ac_fn_c_try_compile
"$LINENO"; then :
13334 ax_cv_c_empty_array
=
13336 as_fn_error $?
"C compiler is unable to creaty empty arrays" "$LINENO" 5
13339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
13346 $as_echo "$ax_cv_c_empty_array" >&6; }
13347 cat >>confdefs.h
<<_ACEOF
13348 #define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
13351 # The cast to long int works around a bug in the HP C Compiler
13352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13354 # This bug is HP SR number 8606223364.
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
13356 $as_echo_n "checking size of unsigned int... " >&6; }
13357 if ${ac_cv_sizeof_unsigned_int+:} false
; then :
13358 $as_echo_n "(cached) " >&6
13360 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
13363 if test "$ac_cv_type_unsigned_int" = yes; then
13364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13366 as_fn_error
77 "cannot compute sizeof (unsigned int)
13367 See \`config.log' for more details" "$LINENO" 5; }
13369 ac_cv_sizeof_unsigned_int
=0
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
13375 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
13379 cat >>confdefs.h
<<_ACEOF
13380 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
13384 # The cast to long int works around a bug in the HP C Compiler
13385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13387 # This bug is HP SR number 8606223364.
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13389 $as_echo_n "checking size of unsigned long... " >&6; }
13390 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
13391 $as_echo_n "(cached) " >&6
13393 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
13396 if test "$ac_cv_type_unsigned_long" = yes; then
13397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13399 as_fn_error
77 "cannot compute sizeof (unsigned long)
13400 See \`config.log' for more details" "$LINENO" 5; }
13402 ac_cv_sizeof_unsigned_long
=0
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13408 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13412 cat >>confdefs.h
<<_ACEOF
13413 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13418 stdio.h stdarg.h stdbool.h limits.h \
13419 time.h errno.h fcntl.h io.h direct.h \
13420 ctype.h sys
/types.h sys
/socket.h \
13421 signal.h unistd.h dlfcn.h \
13422 netinet
/in.h netinet
/in_systm.h \
13423 netinet
/tcp.h arpa
/inet.h netdb.h \
13424 windows.h winsock2.h ws2tcpip.h \
13427 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13428 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13429 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13430 cat >>confdefs.h
<<_ACEOF
13431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13439 sys
/time.h sys
/ioctl.h sys
/stat.h \
13440 sys
/mman.h sys
/file.h sys
/wait.h \
13441 unistd.h signal.h libgen.h stropts.h \
13442 syslog.h
pwd.h grp.h \
13443 sys
/sockio.h sys
/uio.h linux
/sockios.h \
13444 linux
/types.h sys
/poll.h sys
/epoll.h err.h \
13447 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13448 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13449 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13450 cat >>confdefs.h
<<_ACEOF
13451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13460 #ifdef HAVE_STDLIB_H
13461 #include <stdlib.h>
13463 #ifdef HAVE_SYS_TYPES_H
13464 #include <sys/types.h>
13466 #ifdef HAVE_SYS_SOCKET_H
13467 #include <sys/socket.h>
13469 #ifdef HAVE_NETINET_IN_H
13470 #include <netinet/in.h>
13472 #ifdef HAVE_WINDOWS_H
13473 #include <windows.h>
13475 #ifdef HAVE_WINSOCK2_H
13476 #include <winsock2.h>
13478 #ifdef HAVE_WS2TCPIP_H
13479 #include <ws2tcpip.h>
13481 #ifdef HAVE_NETINET_IN_SYSTM_H
13482 #include <netinet/in_systm.h>
13484 #ifdef HAVE_NETINET_IP_H
13485 #include <netinet/ip.h>
13489 for ac_header
in net
/if.h netinet
/ip.h netinet
/if_ether.h resolv.h sys
/un.h
13491 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13492 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
13495 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13496 cat >>confdefs.h
<<_ACEOF
13497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13505 ac_fn_c_check_type
"$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
13508 if test "x$ac_cv_type_in_addr_t" = xyes
; then :
13510 cat >>confdefs.h
<<_ACEOF
13511 #define HAVE_IN_ADDR_T 1
13517 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13521 ac_fn_c_check_type
"$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
13524 if test "x$ac_cv_type_struct_iphdr" = xyes
; then :
13526 $as_echo "#define HAVE_IPHDR 1" >>confdefs.h
13530 ac_fn_c_check_type
"$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES}
13533 if test "x$ac_cv_type_struct_sock_extended_err" = xyes
; then :
13535 $as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
13539 ac_fn_c_check_type
"$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
13542 if test "x$ac_cv_type_struct_msghdr" = xyes
; then :
13544 $as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
13548 ac_fn_c_check_type
"$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
13551 if test "x$ac_cv_type_struct_cmsghdr" = xyes
; then :
13553 $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
13557 ac_fn_c_check_type
"$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
13560 if test "x$ac_cv_type_struct_in_pktinfo" = xyes
; then :
13562 $as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
13566 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
13569 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
13572 as_fn_error $?
"struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
13575 ac_fn_c_check_decl
"$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
13578 if test "x$ac_cv_have_decl_SO_MARK" = xyes
; then :
13584 cat >>confdefs.h
<<_ACEOF
13585 #define HAVE_DECL_SO_MARK $ac_have_decl
13589 ac_fn_c_check_decl
"$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
13590 #ifdef HAVE_SIGNAL_H
13591 #include <signal.h>
13596 if test "x$ac_cv_have_decl_SIGHUP" = xyes
; then :
13602 cat >>confdefs.h
<<_ACEOF
13603 #define HAVE_DECL_SIGHUP $ac_have_decl
13605 if test $ac_have_decl = 1; then :
13609 $as_echo "#define SIGHUP 1" >>confdefs.h
13613 ac_fn_c_check_decl
"$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
13614 #ifdef HAVE_SIGNAL_H
13615 #include <signal.h>
13620 if test "x$ac_cv_have_decl_SIGINT" = xyes
; then :
13626 cat >>confdefs.h
<<_ACEOF
13627 #define HAVE_DECL_SIGINT $ac_have_decl
13629 if test $ac_have_decl = 1; then :
13633 $as_echo "#define SIGINT 2" >>confdefs.h
13637 ac_fn_c_check_decl
"$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
13638 #ifdef HAVE_SIGNAL_H
13639 #include <signal.h>
13644 if test "x$ac_cv_have_decl_SIGUSR1" = xyes
; then :
13650 cat >>confdefs.h
<<_ACEOF
13651 #define HAVE_DECL_SIGUSR1 $ac_have_decl
13653 if test $ac_have_decl = 1; then :
13657 $as_echo "#define SIGUSR1 10" >>confdefs.h
13661 ac_fn_c_check_decl
"$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
13662 #ifdef HAVE_SIGNAL_H
13663 #include <signal.h>
13668 if test "x$ac_cv_have_decl_SIGUSR2" = xyes
; then :
13674 cat >>confdefs.h
<<_ACEOF
13675 #define HAVE_DECL_SIGUSR2 $ac_have_decl
13677 if test $ac_have_decl = 1; then :
13681 $as_echo "#define SIGUSR2 12" >>confdefs.h
13685 ac_fn_c_check_decl
"$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
13686 #ifdef HAVE_SIGNAL_H
13687 #include <signal.h>
13692 if test "x$ac_cv_have_decl_SIGTERM" = xyes
; then :
13698 cat >>confdefs.h
<<_ACEOF
13699 #define HAVE_DECL_SIGTERM $ac_have_decl
13701 if test $ac_have_decl = 1; then :
13705 $as_echo "#define SIGTERM 15" >>confdefs.h
13710 for ac_header
in vfork.h
13712 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13713 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13714 cat >>confdefs.h
<<_ACEOF
13715 #define HAVE_VFORK_H 1
13722 for ac_func
in fork vfork
13724 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13725 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13726 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13727 cat >>confdefs.h
<<_ACEOF
13728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13734 if test "x$ac_cv_func_fork" = xyes
; then
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13736 $as_echo_n "checking for working fork... " >&6; }
13737 if ${ac_cv_func_fork_works+:} false
; then :
13738 $as_echo_n "(cached) " >&6
13740 if test "$cross_compiling" = yes; then :
13741 ac_cv_func_fork_works
=cross
13743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745 $ac_includes_default
13750 /* By Ruediger Kuhlmann. */
13751 return fork () < 0;
13757 if ac_fn_c_try_run
"$LINENO"; then :
13758 ac_cv_func_fork_works
=yes
13760 ac_cv_func_fork_works
=no
13762 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13763 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13768 $as_echo "$ac_cv_func_fork_works" >&6; }
13771 ac_cv_func_fork_works
=$ac_cv_func_fork
13773 if test "x$ac_cv_func_fork_works" = xcross
; then
13775 *-*-amigaos* |
*-*-msdosdjgpp*)
13776 # Override, as these systems have only a dummy fork() stub
13777 ac_cv_func_fork_works
=no
13780 ac_cv_func_fork_works
=yes
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13784 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13786 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13787 if test "x$ac_cv_func_vfork" = xyes
; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13789 $as_echo_n "checking for working vfork... " >&6; }
13790 if ${ac_cv_func_vfork_works+:} false
; then :
13791 $as_echo_n "(cached) " >&6
13793 if test "$cross_compiling" = yes; then :
13794 ac_cv_func_vfork_works
=cross
13796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13798 /* Thanks to Paul Eggert for this test. */
13799 $ac_includes_default
13800 #include <sys/wait.h>
13801 #ifdef HAVE_VFORK_H
13802 # include <vfork.h>
13804 /* On some sparc systems, changes by the child to local and incoming
13805 argument registers are propagated back to the parent. The compiler
13806 is told about this with #include <vfork.h>, but some compilers
13807 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13808 static variable whose address is put into a register that is
13809 clobbered by the vfork. */
13812 sparc_address_test (int arg)
13814 sparc_address_test (arg) int arg;
13817 static pid_t child;
13835 pid_t parent = getpid ();
13838 sparc_address_test (0);
13843 /* Here is another test for sparc vfork register problems. This
13844 test uses lots of local variables, at least as many local
13845 variables as main has allocated so far including compiler
13846 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13847 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13848 reuse the register of parent for one of the local variables,
13849 since it will think that parent can't possibly be used any more
13850 in this routine. Assigning to the local variable will thus
13851 munge parent in the parent process. */
13853 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13854 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13855 /* Convince the compiler that p..p7 are live; otherwise, it might
13856 use the same hardware register for all 8 local variables. */
13857 if (p != p1 || p != p2 || p != p3 || p != p4
13858 || p != p5 || p != p6 || p != p7)
13861 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13862 from child file descriptors. If the child closes a descriptor
13863 before it execs or exits, this munges the parent's descriptor
13864 as well. Test for this by closing stdout in the child. */
13865 _exit(close(fileno(stdout)) != 0);
13870 while (wait(&status) != child)
13873 /* Was there some problem with vforking? */
13876 /* Did the child fail? (This shouldn't happen.) */
13879 /* Did the vfork/compiler bug occur? */
13880 || parent != getpid()
13882 /* Did the file descriptor bug occur? */
13883 || fstat(fileno(stdout), &st) != 0
13888 if ac_fn_c_try_run
"$LINENO"; then :
13889 ac_cv_func_vfork_works
=yes
13891 ac_cv_func_vfork_works
=no
13893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13899 $as_echo "$ac_cv_func_vfork_works" >&6; }
13902 if test "x$ac_cv_func_fork_works" = xcross
; then
13903 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13905 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13908 if test "x$ac_cv_func_vfork_works" = xyes
; then
13910 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13914 $as_echo "#define vfork fork" >>confdefs.h
13917 if test "x$ac_cv_func_fork_works" = xyes
; then
13919 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13925 daemon chroot getpwnam setuid nice system getpid dup dup2 \
13926 getpass strerror syslog openlog mlockall getgrnam setgid \
13927 setgroups stat flock readv writev
time gettimeofday \
13928 ctime memset vsnprintf strdup \
13929 setsid chdir putenv getpeername unlink \
13930 chsize ftruncate execve getpeereid
umask basename dirname access \
13934 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13935 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13936 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13937 cat >>confdefs.h
<<_ACEOF
13938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13946 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13947 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13948 $as_echo_n "(cached) " >&6
13950 ac_check_lib_save_LIBS
=$LIBS
13952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13955 /* Override any GCC internal prototype to avoid an error.
13956 Use char because int might match the return type of a GCC
13957 builtin and then its argument prototype would still apply. */
13970 if ac_fn_c_try_link
"$LINENO"; then :
13971 ac_cv_lib_dl_dlopen
=yes
13973 ac_cv_lib_dl_dlopen
=no
13975 rm -f core conftest.err conftest.
$ac_objext \
13976 conftest
$ac_exeext conftest.
$ac_ext
13977 LIBS
=$ac_check_lib_save_LIBS
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13980 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13981 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
13989 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
13990 if ${ac_cv_lib_nsl_inet_ntoa+:} false
; then :
13991 $as_echo_n "(cached) " >&6
13993 ac_check_lib_save_LIBS
=$LIBS
13995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13998 /* Override any GCC internal prototype to avoid an error.
13999 Use char because int might match the return type of a GCC
14000 builtin and then its argument prototype would still apply. */
14008 return inet_ntoa ();
14013 if ac_fn_c_try_link
"$LINENO"; then :
14014 ac_cv_lib_nsl_inet_ntoa
=yes
14016 ac_cv_lib_nsl_inet_ntoa
=no
14018 rm -f core conftest.err conftest.
$ac_objext \
14019 conftest
$ac_exeext conftest.
$ac_ext
14020 LIBS
=$ac_check_lib_save_LIBS
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
14023 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
14024 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes
; then :
14025 SOCKETS_LIBS
="${SOCKETS_LIBS} -lnsl"
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14030 $as_echo_n "checking for socket in -lsocket... " >&6; }
14031 if ${ac_cv_lib_socket_socket+:} false
; then :
14032 $as_echo_n "(cached) " >&6
14034 ac_check_lib_save_LIBS
=$LIBS
14035 LIBS
="-lsocket $LIBS"
14036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14039 /* Override any GCC internal prototype to avoid an error.
14040 Use char because int might match the return type of a GCC
14041 builtin and then its argument prototype would still apply. */
14054 if ac_fn_c_try_link
"$LINENO"; then :
14055 ac_cv_lib_socket_socket
=yes
14057 ac_cv_lib_socket_socket
=no
14059 rm -f core conftest.err conftest.
$ac_objext \
14060 conftest
$ac_exeext conftest.
$ac_ext
14061 LIBS
=$ac_check_lib_save_LIBS
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14064 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14065 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
14066 SOCKETS_LIBS
="${SOCKETS_LIBS} -lsocket"
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
14071 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
14072 if ${ac_cv_lib_resolv_gethostbyname+:} false
; then :
14073 $as_echo_n "(cached) " >&6
14075 ac_check_lib_save_LIBS
=$LIBS
14076 LIBS
="-lresolv $LIBS"
14077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h. */
14080 /* Override any GCC internal prototype to avoid an error.
14081 Use char because int might match the return type of a GCC
14082 builtin and then its argument prototype would still apply. */
14086 char gethostbyname ();
14090 return gethostbyname ();
14095 if ac_fn_c_try_link
"$LINENO"; then :
14096 ac_cv_lib_resolv_gethostbyname
=yes
14098 ac_cv_lib_resolv_gethostbyname
=no
14100 rm -f core conftest.err conftest.
$ac_objext \
14101 conftest
$ac_exeext conftest.
$ac_ext
14102 LIBS
=$ac_check_lib_save_LIBS
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
14105 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
14106 if test "x$ac_cv_lib_resolv_gethostbyname" = xyes
; then :
14107 SOCKETS_LIBS
="${SOCKETS_LIBS} -lresolv"
14114 LIBS
="${LIBS} ${SOCKETS_LIBS}"
14115 for ac_func
in sendmsg recvmsg inet_ntop inet_pton
14117 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14118 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14119 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14120 cat >>confdefs.h
<<_ACEOF
14121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14127 for ac_func
in res_init
14129 ac_fn_c_check_func
"$LINENO" "res_init" "ac_cv_func_res_init"
14130 if test "x$ac_cv_func_res_init" = xyes
; then :
14131 cat >>confdefs.h
<<_ACEOF
14132 #define HAVE_RES_INIT 1
14138 # Windows use stdcall for winsock so we cannot auto detect these
14141 if test "${WIN32}" = "yes"; then
14144 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
14148 $as_echo "#define HAVE_RECV 1" >>confdefs.h
14152 $as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
14156 $as_echo "#define HAVE_SEND 1" >>confdefs.h
14160 $as_echo "#define HAVE_SENDTO 1" >>confdefs.h
14164 $as_echo "#define HAVE_LISTEN 1" >>confdefs.h
14168 $as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
14172 $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
14176 $as_echo "#define HAVE_BIND 1" >>confdefs.h
14180 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
14184 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
14188 $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
14192 $as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
14196 $as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
14200 $as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
14204 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14208 for ac_func
in socket recv recvfrom send sendto listen accept connect
bind select gethostbyname inet_ntoa
14210 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14211 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14212 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14213 cat >>confdefs.h
<<_ACEOF
14214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14218 as_fn_error $?
"Required library function not found" "$LINENO" 5
14223 for ac_func
in setsockopt getsockopt getsockname poll
14225 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14226 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14227 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14228 cat >>confdefs.h
<<_ACEOF
14229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14239 old_CFLAGS
="${CFLAGS}"
14240 CFLAGS
="${CFLAGS} ${TAP_CFLAGS}"
14242 net
/if_tun.h net
/tun
/if_tun.h \
14247 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14248 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14249 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14250 cat >>confdefs.h
<<_ACEOF
14251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14253 have_tap_header
="yes"
14259 ac_fn_c_check_decl
"$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
14260 #ifdef HAVE_LINUX_IF_TUN_H
14261 #include <linux/if_tun.h>
14266 if test "x$ac_cv_have_decl_TUNSETPERSIST" = xyes
; then :
14272 cat >>confdefs.h
<<_ACEOF
14273 #define HAVE_DECL_TUNSETPERSIST $ac_have_decl
14275 if test $ac_have_decl = 1; then :
14277 $as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
14281 CFLAGS
="${old_CFLAGS}"
14282 test "${have_tap_header}" = "yes" || as_fn_error $?
"no tap header could be found" "$LINENO" 5
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
14285 $as_echo_n "checking for setcon in -lselinux... " >&6; }
14286 if ${ac_cv_lib_selinux_setcon+:} false
; then :
14287 $as_echo_n "(cached) " >&6
14289 ac_check_lib_save_LIBS
=$LIBS
14290 LIBS
="-lselinux $LIBS"
14291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14294 /* Override any GCC internal prototype to avoid an error.
14295 Use char because int might match the return type of a GCC
14296 builtin and then its argument prototype would still apply. */
14309 if ac_fn_c_try_link
"$LINENO"; then :
14310 ac_cv_lib_selinux_setcon
=yes
14312 ac_cv_lib_selinux_setcon
=no
14314 rm -f core conftest.err conftest.
$ac_objext \
14315 conftest
$ac_exeext conftest.
$ac_ext
14316 LIBS
=$ac_check_lib_save_LIBS
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
14319 $as_echo "$ac_cv_lib_selinux_setcon" >&6; }
14320 if test "x$ac_cv_lib_selinux_setcon" = xyes
; then :
14321 SELINUX_LIBS
="-lselinux"
14329 if test -z "${LIBPAM_LIBS}"; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
14331 $as_echo_n "checking for pam_start in -lpam... " >&6; }
14332 if ${ac_cv_lib_pam_pam_start+:} false
; then :
14333 $as_echo_n "(cached) " >&6
14335 ac_check_lib_save_LIBS
=$LIBS
14337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14340 /* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
14342 builtin and then its argument prototype would still apply. */
14350 return pam_start ();
14355 if ac_fn_c_try_link
"$LINENO"; then :
14356 ac_cv_lib_pam_pam_start
=yes
14358 ac_cv_lib_pam_pam_start
=no
14360 rm -f core conftest.err conftest.
$ac_objext \
14361 conftest
$ac_exeext conftest.
$ac_ext
14362 LIBS
=$ac_check_lib_save_LIBS
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
14365 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
14366 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
14367 LIBPAM_LIBS
="-lpam"
14373 case "${with_mem_check}" in
14375 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
14376 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
; then :
14378 CFLAGS
="${CFLAGS} -g -fno-inline"
14380 $as_echo "#define USE_VALGRIND 1" >>confdefs.h
14384 as_fn_error $?
"valgrind headers not found." "$LINENO" 5
14391 ac_fn_c_check_header_mongrel
"$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
14392 if test "x$ac_cv_header_dmalloc_h" = xyes
; then :
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
14394 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
14395 if ${ac_cv_lib_dmalloc_malloc+:} false
; then :
14396 $as_echo_n "(cached) " >&6
14398 ac_check_lib_save_LIBS
=$LIBS
14399 LIBS
="-ldmalloc $LIBS"
14400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14403 /* Override any GCC internal prototype to avoid an error.
14404 Use char because int might match the return type of a GCC
14405 builtin and then its argument prototype would still apply. */
14418 if ac_fn_c_try_link
"$LINENO"; then :
14419 ac_cv_lib_dmalloc_malloc
=yes
14421 ac_cv_lib_dmalloc_malloc
=no
14423 rm -f core conftest.err conftest.
$ac_objext \
14424 conftest
$ac_exeext conftest.
$ac_ext
14425 LIBS
=$ac_check_lib_save_LIBS
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
14428 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
14429 if test "x$ac_cv_lib_dmalloc_malloc" = xyes
; then :
14431 LIBS
="${LIBS} -ldmalloc"
14433 $as_echo "#define DMALLOC 1" >>confdefs.h
14437 as_fn_error $?
"dmalloc library not found." "$LINENO" 5
14442 as_fn_error $?
"dmalloc headers not found." "$LINENO" 5
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
14450 $as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
14451 if ${ac_cv_lib_ssl_CRYPTO_mem_ctrl+:} false
; then :
14452 $as_echo_n "(cached) " >&6
14454 ac_check_lib_save_LIBS
=$LIBS
14456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14459 /* Override any GCC internal prototype to avoid an error.
14460 Use char because int might match the return type of a GCC
14461 builtin and then its argument prototype would still apply. */
14465 char CRYPTO_mem_ctrl ();
14469 return CRYPTO_mem_ctrl ();
14474 if ac_fn_c_try_link
"$LINENO"; then :
14475 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=yes
14477 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=no
14479 rm -f core conftest.err conftest.
$ac_objext \
14480 conftest
$ac_exeext conftest.
$ac_ext
14481 LIBS
=$ac_check_lib_save_LIBS
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
14484 $as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
14485 if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = xyes
; then :
14488 $as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
14491 $as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
14494 as_fn_error $?
"Memory Debugging function in OpenSSL library not found." "$LINENO" 5
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5
14504 $as_echo_n "checking for OPENSSL_CRYPTO... " >&6; }
14506 if test -n "$OPENSSL_CRYPTO_CFLAGS"; then
14507 pkg_cv_OPENSSL_CRYPTO_CFLAGS
="$OPENSSL_CRYPTO_CFLAGS"
14508 elif test -n "$PKG_CONFIG"; then
14509 if test -n "$PKG_CONFIG" && \
14510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
14511 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
14513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14514 test $ac_status = 0; }; then
14515 pkg_cv_OPENSSL_CRYPTO_CFLAGS
=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null`
14516 test "x$?" != "x0" && pkg_failed
=yes
14523 if test -n "$OPENSSL_CRYPTO_LIBS"; then
14524 pkg_cv_OPENSSL_CRYPTO_LIBS
="$OPENSSL_CRYPTO_LIBS"
14525 elif test -n "$PKG_CONFIG"; then
14526 if test -n "$PKG_CONFIG" && \
14527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
14528 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
14530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14531 test $ac_status = 0; }; then
14532 pkg_cv_OPENSSL_CRYPTO_LIBS
=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null`
14533 test "x$?" != "x0" && pkg_failed
=yes
14543 if test $pkg_failed = yes; then
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14545 $as_echo "no" >&6; }
14547 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14548 _pkg_short_errors_supported
=yes
14550 _pkg_short_errors_supported
=no
14552 if test $_pkg_short_errors_supported = yes; then
14553 OPENSSL_CRYPTO_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
14555 OPENSSL_CRYPTO_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
14557 # Put the nasty error message in config.log where it belongs
14558 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
14561 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
14562 if ${ac_cv_lib_crypto_RSA_new+:} false
; then :
14563 $as_echo_n "(cached) " >&6
14565 ac_check_lib_save_LIBS
=$LIBS
14566 LIBS
="-lcrypto $LIBS"
14567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14570 /* Override any GCC internal prototype to avoid an error.
14571 Use char because int might match the return type of a GCC
14572 builtin and then its argument prototype would still apply. */
14585 if ac_fn_c_try_link
"$LINENO"; then :
14586 ac_cv_lib_crypto_RSA_new
=yes
14588 ac_cv_lib_crypto_RSA_new
=no
14590 rm -f core conftest.err conftest.
$ac_objext \
14591 conftest
$ac_exeext conftest.
$ac_ext
14592 LIBS
=$ac_check_lib_save_LIBS
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
14595 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
14596 if test "x$ac_cv_lib_crypto_RSA_new" = xyes
; then :
14598 have_openssl_crypto
="yes"
14599 OPENSSL_CRYPTO_LIBS
="-lcrypto"
14605 elif test $pkg_failed = untried
; then
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14607 $as_echo "no" >&6; }
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
14609 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
14610 if ${ac_cv_lib_crypto_RSA_new+:} false
; then :
14611 $as_echo_n "(cached) " >&6
14613 ac_check_lib_save_LIBS
=$LIBS
14614 LIBS
="-lcrypto $LIBS"
14615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14618 /* Override any GCC internal prototype to avoid an error.
14619 Use char because int might match the return type of a GCC
14620 builtin and then its argument prototype would still apply. */
14633 if ac_fn_c_try_link
"$LINENO"; then :
14634 ac_cv_lib_crypto_RSA_new
=yes
14636 ac_cv_lib_crypto_RSA_new
=no
14638 rm -f core conftest.err conftest.
$ac_objext \
14639 conftest
$ac_exeext conftest.
$ac_ext
14640 LIBS
=$ac_check_lib_save_LIBS
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
14643 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
14644 if test "x$ac_cv_lib_crypto_RSA_new" = xyes
; then :
14646 have_openssl_crypto
="yes"
14647 OPENSSL_CRYPTO_LIBS
="-lcrypto"
14654 OPENSSL_CRYPTO_CFLAGS
=$pkg_cv_OPENSSL_CRYPTO_CFLAGS
14655 OPENSSL_CRYPTO_LIBS
=$pkg_cv_OPENSSL_CRYPTO_LIBS
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14657 $as_echo "yes" >&6; }
14658 have_openssl_crypto
="yes"
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5
14664 $as_echo_n "checking for OPENSSL_SSL... " >&6; }
14666 if test -n "$OPENSSL_SSL_CFLAGS"; then
14667 pkg_cv_OPENSSL_SSL_CFLAGS
="$OPENSSL_SSL_CFLAGS"
14668 elif test -n "$PKG_CONFIG"; then
14669 if test -n "$PKG_CONFIG" && \
14670 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
14671 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
14673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14674 test $ac_status = 0; }; then
14675 pkg_cv_OPENSSL_SSL_CFLAGS
=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null`
14676 test "x$?" != "x0" && pkg_failed
=yes
14683 if test -n "$OPENSSL_SSL_LIBS"; then
14684 pkg_cv_OPENSSL_SSL_LIBS
="$OPENSSL_SSL_LIBS"
14685 elif test -n "$PKG_CONFIG"; then
14686 if test -n "$PKG_CONFIG" && \
14687 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
14688 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
14690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14691 test $ac_status = 0; }; then
14692 pkg_cv_OPENSSL_SSL_LIBS
=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null`
14693 test "x$?" != "x0" && pkg_failed
=yes
14703 if test $pkg_failed = yes; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14705 $as_echo "no" >&6; }
14707 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14708 _pkg_short_errors_supported
=yes
14710 _pkg_short_errors_supported
=no
14712 if test $_pkg_short_errors_supported = yes; then
14713 OPENSSL_SSL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
14715 OPENSSL_SSL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
14717 # Put the nasty error message in config.log where it belongs
14718 echo "$OPENSSL_SSL_PKG_ERRORS" >&5
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
14721 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
14722 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false
; then :
14723 $as_echo_n "(cached) " >&6
14725 ac_check_lib_save_LIBS
=$LIBS
14727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14730 /* Override any GCC internal prototype to avoid an error.
14731 Use char because int might match the return type of a GCC
14732 builtin and then its argument prototype would still apply. */
14736 char SSL_CTX_new ();
14740 return SSL_CTX_new ();
14745 if ac_fn_c_try_link
"$LINENO"; then :
14746 ac_cv_lib_ssl_SSL_CTX_new
=yes
14748 ac_cv_lib_ssl_SSL_CTX_new
=no
14750 rm -f core conftest.err conftest.
$ac_objext \
14751 conftest
$ac_exeext conftest.
$ac_ext
14752 LIBS
=$ac_check_lib_save_LIBS
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
14755 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
14756 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
; then :
14758 have_openssl_ssl
="yes"
14759 OPENSSL_SSL_LIBS
="-lssl"
14765 elif test $pkg_failed = untried
; then
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14767 $as_echo "no" >&6; }
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
14769 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
14770 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false
; then :
14771 $as_echo_n "(cached) " >&6
14773 ac_check_lib_save_LIBS
=$LIBS
14775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14778 /* Override any GCC internal prototype to avoid an error.
14779 Use char because int might match the return type of a GCC
14780 builtin and then its argument prototype would still apply. */
14784 char SSL_CTX_new ();
14788 return SSL_CTX_new ();
14793 if ac_fn_c_try_link
"$LINENO"; then :
14794 ac_cv_lib_ssl_SSL_CTX_new
=yes
14796 ac_cv_lib_ssl_SSL_CTX_new
=no
14798 rm -f core conftest.err conftest.
$ac_objext \
14799 conftest
$ac_exeext conftest.
$ac_ext
14800 LIBS
=$ac_check_lib_save_LIBS
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
14803 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
14804 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
; then :
14806 have_openssl_ssl
="yes"
14807 OPENSSL_SSL_LIBS
="-lssl"
14814 OPENSSL_SSL_CFLAGS
=$pkg_cv_OPENSSL_SSL_CFLAGS
14815 OPENSSL_SSL_LIBS
=$pkg_cv_OPENSSL_SSL_LIBS
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14817 $as_echo "yes" >&6; }
14818 have_openssl_ssl
="yes"
14821 if test "${have_openssl_crypto}" = "yes"; then
14822 saved_CFLAGS
="${CFLAGS}"
14823 saved_LIBS
="${LIBS}"
14824 CFLAGS
="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
14825 LIBS
="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
14826 for ac_func
in EVP_CIPHER_CTX_set_key_length
14828 ac_fn_c_check_func
"$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
14829 if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = xyes
; then :
14830 cat >>confdefs.h
<<_ACEOF
14831 #define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
14837 have_openssl_engine
="yes"
14839 ENGINE_load_builtin_engines \
14840 ENGINE_register_all_complete \
14844 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14845 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14846 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14847 cat >>confdefs.h
<<_ACEOF
14848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14852 have_openssl_engine
="no"; break
14858 CFLAGS
="${saved_CFLAGS}"
14859 LIBS
="${saved_LIBS}"
14864 have_polarssl_ssl
="yes"
14865 have_polarssl_crypto
="yes"
14866 if test -z "${POLARSSL_LIBS}"; then
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
14868 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
14869 if ${ac_cv_lib_polarssl_ssl_init+:} false
; then :
14870 $as_echo_n "(cached) " >&6
14872 ac_check_lib_save_LIBS
=$LIBS
14873 LIBS
="-lpolarssl $LIBS"
14874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14877 /* Override any GCC internal prototype to avoid an error.
14878 Use char because int might match the return type of a GCC
14879 builtin and then its argument prototype would still apply. */
14887 return ssl_init ();
14892 if ac_fn_c_try_link
"$LINENO"; then :
14893 ac_cv_lib_polarssl_ssl_init
=yes
14895 ac_cv_lib_polarssl_ssl_init
=no
14897 rm -f core conftest.err conftest.
$ac_objext \
14898 conftest
$ac_exeext conftest.
$ac_ext
14899 LIBS
=$ac_check_lib_save_LIBS
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
14902 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
14903 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes
; then :
14904 POLARSSL_LIBS
="-lpolarssl"
14907 have_polarssl_ssl
="no"
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5
14909 $as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; }
14910 if ${ac_cv_lib_polarssl_aes_crypt_cbc+:} false
; then :
14911 $as_echo_n "(cached) " >&6
14913 ac_check_lib_save_LIBS
=$LIBS
14914 LIBS
="-lpolarssl $LIBS"
14915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14918 /* Override any GCC internal prototype to avoid an error.
14919 Use char because int might match the return type of a GCC
14920 builtin and then its argument prototype would still apply. */
14924 char aes_crypt_cbc ();
14928 return aes_crypt_cbc ();
14933 if ac_fn_c_try_link
"$LINENO"; then :
14934 ac_cv_lib_polarssl_aes_crypt_cbc
=yes
14936 ac_cv_lib_polarssl_aes_crypt_cbc
=no
14938 rm -f core conftest.err conftest.
$ac_objext \
14939 conftest
$ac_exeext conftest.
$ac_ext
14940 LIBS
=$ac_check_lib_save_LIBS
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5
14943 $as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; }
14944 if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = xyes
; then :
14945 cat >>confdefs.h
<<_ACEOF
14946 #define HAVE_LIBPOLARSSL 1
14949 LIBS
="-lpolarssl $LIBS"
14952 have_polarssl_crypto
="no"
14962 if test "${with_crypto_library}" = "polarssl" ; then
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5
14964 $as_echo_n "checking polarssl version... " >&6; }
14965 old_CFLAGS
="${CFLAGS}"
14966 CFLAGS
="${POLARSSL_CFLAGS} ${CFLAGS}"
14967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14970 #include <polarssl/version.h>
14976 #if POLARSSL_VERSION_NUMBER < 0x01010000
14977 #error invalid version
14985 if ac_fn_c_try_compile
"$LINENO"; then :
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14987 $as_echo "ok" >&6; }
14989 as_fn_error $?
"invalid polarssl version" "$LINENO" 5
14992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14993 CFLAGS
="${old_CFLAGS}"
14999 if test -z "${LZO_LIBS}"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
15001 $as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
15002 if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false
; then :
15003 $as_echo_n "(cached) " >&6
15005 ac_check_lib_save_LIBS
=$LIBS
15006 LIBS
="-llzo2 $LIBS"
15007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15010 /* Override any GCC internal prototype to avoid an error.
15011 Use char because int might match the return type of a GCC
15012 builtin and then its argument prototype would still apply. */
15016 char lzo1x_1_15_compress ();
15020 return lzo1x_1_15_compress ();
15025 if ac_fn_c_try_link
"$LINENO"; then :
15026 ac_cv_lib_lzo2_lzo1x_1_15_compress
=yes
15028 ac_cv_lib_lzo2_lzo1x_1_15_compress
=no
15030 rm -f core conftest.err conftest.
$ac_objext \
15031 conftest
$ac_exeext conftest.
$ac_ext
15032 LIBS
=$ac_check_lib_save_LIBS
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
15035 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
15036 if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes
; then :
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
15040 $as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
15041 if ${ac_cv_lib_lzo_lzo1x_1_15_compress+:} false
; then :
15042 $as_echo_n "(cached) " >&6
15044 ac_check_lib_save_LIBS
=$LIBS
15046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15049 /* Override any GCC internal prototype to avoid an error.
15050 Use char because int might match the return type of a GCC
15051 builtin and then its argument prototype would still apply. */
15055 char lzo1x_1_15_compress ();
15059 return lzo1x_1_15_compress ();
15064 if ac_fn_c_try_link
"$LINENO"; then :
15065 ac_cv_lib_lzo_lzo1x_1_15_compress
=yes
15067 ac_cv_lib_lzo_lzo1x_1_15_compress
=no
15069 rm -f core conftest.err conftest.
$ac_objext \
15070 conftest
$ac_exeext conftest.
$ac_ext
15071 LIBS
=$ac_check_lib_save_LIBS
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
15074 $as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
15075 if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = xyes
; then :
15086 if test "${have_lzo}" = "yes"; then
15087 saved_CFLAGS
="${CFLAGS}"
15088 CFLAGS
="${CFLAGS} ${LZO_CFLAGS}"
15089 for ac_header
in lzo
/lzoutil.h
15091 ac_fn_c_check_header_mongrel
"$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
15092 if test "x$ac_cv_header_lzo_lzoutil_h" = xyes
; then :
15093 cat >>confdefs.h
<<_ACEOF
15094 #define HAVE_LZO_LZOUTIL_H 1
15098 for ac_header
in lzoutil.h
15100 ac_fn_c_check_header_mongrel
"$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
15101 if test "x$ac_cv_header_lzoutil_h" = xyes
; then :
15102 cat >>confdefs.h
<<_ACEOF
15103 #define HAVE_LZOUTIL_H 1
15107 as_fn_error $?
"lzoutil.h is missing" "$LINENO" 5
15118 for ac_header
in lzo
/lzo1x.h
15120 ac_fn_c_check_header_mongrel
"$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
15121 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes
; then :
15122 cat >>confdefs.h
<<_ACEOF
15123 #define HAVE_LZO_LZO1X_H 1
15127 for ac_header
in lzo1x.h
15129 ac_fn_c_check_header_mongrel
"$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
15130 if test "x$ac_cv_header_lzo1x_h" = xyes
; then :
15131 cat >>confdefs.h
<<_ACEOF
15132 #define HAVE_LZO1X_H 1
15136 as_fn_error $?
"lzo1x.h is missing" "$LINENO" 5
15147 CFLAGS
="${saved_CFLAGS}"
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15153 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15155 if test -n "$PKCS11_HELPER_CFLAGS"; then
15156 pkg_cv_PKCS11_HELPER_CFLAGS
="$PKCS11_HELPER_CFLAGS"
15157 elif test -n "$PKG_CONFIG"; then
15158 if test -n "$PKG_CONFIG" && \
15159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.02\""; } >&5
15160 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.02") 2>&5
15162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15163 test $ac_status = 0; }; then
15164 pkg_cv_PKCS11_HELPER_CFLAGS
=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.02" 2>/dev/null`
15165 test "x$?" != "x0" && pkg_failed
=yes
15172 if test -n "$PKCS11_HELPER_LIBS"; then
15173 pkg_cv_PKCS11_HELPER_LIBS
="$PKCS11_HELPER_LIBS"
15174 elif test -n "$PKG_CONFIG"; then
15175 if test -n "$PKG_CONFIG" && \
15176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.02\""; } >&5
15177 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.02") 2>&5
15179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15180 test $ac_status = 0; }; then
15181 pkg_cv_PKCS11_HELPER_LIBS
=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.02" 2>/dev/null`
15182 test "x$?" != "x0" && pkg_failed
=yes
15192 if test $pkg_failed = yes; then
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15194 $as_echo "no" >&6; }
15196 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15197 _pkg_short_errors_supported
=yes
15199 _pkg_short_errors_supported
=no
15201 if test $_pkg_short_errors_supported = yes; then
15202 PKCS11_HELPER_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.02" 2>&1`
15204 PKCS11_HELPER_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.02" 2>&1`
15206 # Put the nasty error message in config.log where it belongs
15207 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15211 elif test $pkg_failed = untried
; then
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15213 $as_echo "no" >&6; }
15217 PKCS11_HELPER_CFLAGS
=$pkg_cv_PKCS11_HELPER_CFLAGS
15218 PKCS11_HELPER_LIBS
=$pkg_cv_PKCS11_HELPER_LIBS
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15220 $as_echo "yes" >&6; }
15221 have_pkcs11_helper
="yes"
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
15225 $as_echo_n "checking git checkout... " >&6; }
15227 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
15229 $as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
15234 $as_echo "${GIT_CHECKOUT}" >&6; }
15236 if test -n "${SP_PLATFORM_WINDOWS}"; then
15238 cat >>confdefs.h
<<_ACEOF
15239 #define PATH_SEPARATOR '\\\\'
15243 cat >>confdefs.h
<<_ACEOF
15244 #define PATH_SEPARATOR_STR "\\\\"
15249 cat >>confdefs.h
<<_ACEOF
15250 #define PATH_SEPARATOR '/'
15254 cat >>confdefs.h
<<_ACEOF
15255 #define PATH_SEPARATOR_STR "/"
15260 if test "${enable_x509_alt_username}" = "yes"; then
15261 if test "${with_crypto_library}" = "polarssl" ; then
15262 as_fn_error $?
"PolarSSL does not support the --x509-username-field feature" "$LINENO" 5
15266 $as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
15270 test "${ac_cv_header_sys_uio_h}" = "yes" &&
15271 $as_echo "#define HAVE_IOVEC 1" >>confdefs.h
15273 test "${enable_multi}" = "yes" &&
15274 $as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
15276 test "${enable_server}" = "no" &&
15277 $as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
15279 test "${enable_management}" = "yes" &&
15280 $as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
15282 test "${enable_socks}" = "yes" &&
15283 $as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
15285 test "${enable_http_proxy}" = "yes" &&
15286 $as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
15288 test "${enable_multihome}" = "yes" &&
15289 $as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
15291 test "${enable_debug}" = "yes" &&
15292 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
15294 test "${enable_small}" = "yes" &&
15295 $as_echo "#define ENABLE_SMALL 1" >>confdefs.h
15297 test "${enable_fragment}" = "yes" &&
15298 $as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
15300 test "${enable_port_share}" = "yes" &&
15301 $as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
15303 test "${enable_def_auth}" = "yes" &&
15304 $as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
15306 test "${enable_pf}" = "yes" &&
15307 $as_echo "#define ENABLE_PF 1" >>confdefs.h
15309 test "${enable_strict_options}" = "yes" &&
15310 $as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
15312 test "${enable_password_save}" = "yes" &&
15313 $as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h
15315 test "${enable_systemd}" = "yes" &&
15316 $as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
15319 case "${with_crypto_library}" in
15321 have_crypto_crypto
="${have_openssl_crypto}"
15322 have_crypto_ssl
="${have_openssl_ssl}"
15323 CRYPTO_CRYPTO_CFLAGS
="${OPENSSL_CRYPTO_CFLAGS}"
15324 CRYPTO_CRYPTO_LIBS
="${OPENSSL_CRYPTO_LIBS}"
15325 CRYPTO_SSL_CFLAGS
="${OPENSSL_SSL_CFLAGS}"
15326 CRYPTO_SSL_LIBS
="${OPENSSL_SSL_LIBS}"
15328 $as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
15330 test "${have_openssl_engine}" = "yes" &&
15331 $as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
15335 have_crypto_crypto
="${have_polarssl_crypto}"
15336 have_crypto_ssl
="${have_polarssl_ssl}"
15337 CRYPTO_CRYPTO_CFLAGS
="${POLARSSL_CFLAGS}"
15338 CRYPTO_CRYPTO_LIBS
="${POLARSSL_LIBS}"
15340 $as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h
15345 if test "${enable_ssl}" = "yes"; then
15346 test "${enable_crypto}" != "yes" && as_fn_error $?
"crypto must be enabled for ssl" "$LINENO" 5
15347 test "${have_crypto_ssl}" != "yes" && as_fn_error $?
"${with_ssl_library} ssl is required but missing" "$LINENO" 5
15348 OPTIONAL_CRYPTO_CFLAGS
="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
15349 OPTIONAL_CRYPTO_LIBS
="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
15351 $as_echo "#define ENABLE_SSL 1" >>confdefs.h
15355 if test "${enable_crypto}" = "yes"; then
15356 test "${have_crypto_crypto}" != "yes" && as_fn_error $?
"${with_crypto_library} crypto is required but missing" "$LINENO" 5
15357 OPTIONAL_CRYPTO_CFLAGS
="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
15358 OPTIONAL_CRYPTO_LIBS
="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
15360 $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
15364 if test "${enable_plugins}" = "yes"; then
15365 OPTIONAL_DL_LIBS
="${DL_LIBS}"
15367 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
15369 test "${enable_eurephia}" = "yes" &&
15370 $as_echo "#define ENABLE_EUREPHIA 1" >>confdefs.h
15373 enable_plugin_auth_pam
="no"
15374 enable_plugin_down_root
="no"
15377 if test "${enable_iproute2}" = "yes"; then
15378 test -z "${IPROUTE}" && as_fn_error $?
"ip utility is required but missing" "$LINENO" 5
15380 $as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
15383 if test "${WIN32}" != "yes"; then
15384 test -z "${ROUTE}" && as_fn_error $?
"route utility is required but missing" "$LINENO" 5
15385 test -z "${IFCONFIG}" && as_fn_error $?
"ifconfig utility is required but missing" "$LINENO" 5
15389 if test "${enable_selinux}" = "yes"; then
15390 test -z "${SELINUX_LIBS}" && as_fn_error $?
"libselinux required but missing" "$LINENO" 5
15391 OPTIONAL_SELINUX_LIBS
="${SELINUX_LIBS}"
15393 $as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
15397 if test "${enable_lzo}" = "yes"; then
15398 test "${have_lzo}" != "yes" && as_fn_error $?
"lzo enabled but missing" "$LINENO" 5
15399 OPTIONAL_LZO_CFLAGS
="${LZO_CFLAGS}"
15400 OPTIONAL_LZO_LIBS
="${LZO_LIBS}"
15402 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
15405 if test "${enable_lzo_stub}" = "yes"; then
15406 test "${enable_lzo}" = "yes" && as_fn_error $?
"Cannot have both lzo stub and lzo enabled" "$LINENO" 5
15408 $as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h
15411 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
15415 if test "${enable_pkcs11}" = "yes"; then
15416 test "${have_pkcs11_helper}" != "yes" && as_fn_error $?
"PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
15417 test "${enable_ssl}" != "yes" && as_fn_error $?
"PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5
15418 OPTIONAL_PKCS11_HELPER_CFLAGS
="${PKCS11_HELPER_CFLAGS}"
15419 OPTIONAL_PKCS11_HELPER_LIBS
="${PKCS11_HELPER_LIBS}"
15421 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
15425 if test "${enable_pedantic}" = "yes"; then
15426 enable_strict
="yes"
15427 CFLAGS
="${CFLAGS} -pedantic"
15428 test "${WIN32}" != "yes" && CFLAGS
="${CFLAGS} -ansi"
15430 if test "${enable_strict}" = "yes"; then
15431 CFLAGS
="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
15434 if test "${WIN32}" = "yes"; then
15435 test -z "${MAN2HTML}" && as_fn_error $?
"man2html is required for win32" "$LINENO" 5
15438 if test "${enable_plugin_auth_pam}" = "yes"; then
15439 PLUGIN_AUTH_PAM_CFLAGS
="${LIBPAM_CFLAGS}"
15440 if test "${enable_pam_dlopen}" = "yes"; then
15442 $as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
15444 PLUGIN_AUTH_PAM_LIBS
="${DL_LIBS}"
15446 test -z "${LIBPAM_LIBS}" && as_fn_error $?
"libpam required but missing" "$LINENO" 5
15447 PLUGIN_AUTH_PAM_LIBS
="${LIBPAM_LIBS}"
15451 CONFIGURE_DEFINES
="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
15453 cat >>confdefs.h
<<_ACEOF
15454 #define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
15458 TAP_WIN_COMPONENT_ID
="tap0901"
15459 TAP_WIN_MIN_MAJOR
="9"
15460 TAP_WIN_MIN_MINOR
="9"
15462 cat >>confdefs.h
<<_ACEOF
15463 #define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
15467 cat >>confdefs.h
<<_ACEOF
15468 #define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
15472 cat >>confdefs.h
<<_ACEOF
15473 #define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
15492 if test "${WIN32}" = "yes"; then
15500 if test "${GIT_CHECKOUT}" = "yes"; then
15502 GIT_CHECKOUT_FALSE
='#'
15504 GIT_CHECKOUT_TRUE
='#'
15505 GIT_CHECKOUT_FALSE
=
15508 if test "${enable_plugin_auth_pam}" = "yes"; then
15509 ENABLE_PLUGIN_AUTH_PAM_TRUE
=
15510 ENABLE_PLUGIN_AUTH_PAM_FALSE
='#'
15512 ENABLE_PLUGIN_AUTH_PAM_TRUE
='#'
15513 ENABLE_PLUGIN_AUTH_PAM_FALSE
=
15516 if test "${enable_plugin_down_root}" = "yes"; then
15517 ENABLE_PLUGIN_DOWN_ROOT_TRUE
=
15518 ENABLE_PLUGIN_DOWN_ROOT_FALSE
='#'
15520 ENABLE_PLUGIN_DOWN_ROOT_TRUE
='#'
15521 ENABLE_PLUGIN_DOWN_ROOT_FALSE
=
15525 plugindir
="${with_plugindir}"
15526 sampledir
="\$(docdir)/sample"
15530 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"
15532 ac_config_files
="$ac_config_files tests/t_client.sh"
15534 cat >confcache
<<\_ACEOF
15535 # This file is a shell script that caches the results of configure
15536 # tests run on this system so they can be shared between configure
15537 # scripts and configure runs, see configure's option --config-cache.
15538 # It is not useful on other systems. If it contains results you don't
15539 # want to keep, you may remove or edit it.
15541 # config.status only pays attention to the cache file if you give it
15542 # the --recheck option to rerun configure.
15544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15546 # following values.
15550 # The following way of writing the cache mishandles newlines in values,
15551 # but we know of no workaround that is simple, portable, and efficient.
15552 # So, we kill variables containing newlines.
15553 # Ultrix sh set writes to stderr and can't be redirected directly,
15554 # and sets the high bit in the cache file unless we assign to the vars.
15556 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15557 eval ac_val
=\$
$ac_var
15561 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15565 _ | IFS | as_nl
) ;; #(
15566 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15567 *) { eval $ac_var=; unset $ac_var;} ;;
15573 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15574 *${as_nl}ac_space
=\
*)
15575 # `set' does not quote correctly, so add quotes: double-quote
15576 # substitution turns \\\\ into \\, and sed turns \\ into \.
15579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15582 # `set' quotes correctly as required by POSIX, so do not add quotes.
15583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15594 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15596 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15597 if test -w "$cache_file"; then
15598 if test "x$cache_file" != "x/dev/null"; then
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15600 $as_echo "$as_me: updating cache $cache_file" >&6;}
15601 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15602 cat confcache
>"$cache_file"
15604 case $cache_file in #(
15606 mv -f confcache
"$cache_file"$$
&&
15607 mv -f "$cache_file"$$
"$cache_file" ;; #(
15609 mv -f confcache
"$cache_file" ;;
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15615 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15620 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15621 # Let make expand exec_prefix.
15622 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15624 DEFS
=-DHAVE_CONFIG_H
15629 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15630 # 1. Remove the extension, and $U if already installed.
15631 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15632 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15633 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15634 # will be set to the directory where LIBOBJS objects are built.
15635 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15636 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15638 LIBOBJS
=$ac_libobjs
15640 LTLIBOBJS
=$ac_ltlibobjs
15643 if test -n "$EXEEXT"; then
15645 am__EXEEXT_FALSE
='#'
15647 am__EXEEXT_TRUE
='#'
15651 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15652 as_fn_error $?
"conditional \"AMDEP\" was never defined.
15653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15655 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15656 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
15657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15659 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
15660 as_fn_error $?
"conditional \"WIN32\" was never defined.
15661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
15664 as_fn_error $?
"conditional \"GIT_CHECKOUT\" was never defined.
15665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15667 if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
15668 as_fn_error $?
"conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
15669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15671 if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
15672 as_fn_error $?
"conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
15673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15676 : "${CONFIG_STATUS=./config.status}"
15678 ac_clean_files_save
=$ac_clean_files
15679 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15683 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15685 # Generated by $as_me.
15686 # Run this file to recreate the current configuration.
15687 # Compiler output produced by configure, useful for debugging
15688 # configure, is in config.log if it exists.
15691 ac_cs_recheck=false
15694 SHELL=\${CONFIG_SHELL-$SHELL}
15697 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15698 ## -------------------- ##
15699 ## M4sh Initialization. ##
15700 ## -------------------- ##
15702 # Be more Bourne compatible
15703 DUALCASE
=1; export DUALCASE
# for MKS sh
15704 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15708 # is contrary to our usage. Disable this feature.
15709 alias -g '${1+"$@"}'='"$@"'
15710 setopt NO_GLOB_SUBST
15712 case `(set -o) 2>/dev/null` in #(
15724 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15725 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15728 # Prefer a ksh shell builtin over an external printf program on Solaris,
15729 # but without wasting forks for bash or zsh.
15730 if test -z "$BASH_VERSION$ZSH_VERSION" \
15731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15732 as_echo='print
-r --'
15733 as_echo_n='print
-rn --'
15734 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15735 as_echo='printf %s
\n'
15736 as_echo_n='printf %s
'
15738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15739 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15740 as_echo_n='/usr
/ucb
/echo -n'
15742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15743 as_echo_n_body='eval
15747 expr "X$arg" : "X\\(.*\\)$as_nl";
15748 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15750 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15752 export as_echo_n_body
15753 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15755 export as_echo_body
15756 as_echo='sh
-c $as_echo_body as_echo
'
15759 # The user is always right.
15760 if test "${PATH_SEPARATOR+set}" != set; then
15762 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15763 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15770 # We need space, tab and new line, in precisely that order. Quoting is
15771 # there to prevent editors from complaining about space-tab.
15772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15773 # splitting by setting IFS to empty value.)
15776 # Find who we are. Look in the path if we contain no directory separator.
15779 *[\\/]* ) as_myself=$0 ;;
15780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781 for as_dir in $PATH
15784 test -z "$as_dir" && as_dir=.
15785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15791 # We did not find ourselves, most probably we were run as `sh COMMAND'
15792 # in which case we are not to be found in the path.
15793 if test "x$as_myself" = x
; then
15796 if test ! -f "$as_myself"; then
15797 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15801 # Unset variables that we do not need and which cause bugs (e.g. in
15802 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15803 # suppresses any "Segmentation fault" message there. '((' could
15804 # trigger a bug in pdksh 5.2.14.
15805 for as_var
in BASH_ENV ENV MAIL MAILPATH
15806 do eval test x\
${$as_var+set} = xset \
15807 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15820 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15823 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15824 # ----------------------------------------
15825 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15826 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15827 # script with STATUS, using 1 if that was 0.
15830 as_status
=$1; test $as_status -eq 0 && as_status
=1
15832 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15833 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15835 $as_echo "$as_me: error: $2" >&2
15836 as_fn_exit
$as_status
15840 # as_fn_set_status STATUS
15841 # -----------------------
15842 # Set $? to STATUS, without forking.
15843 as_fn_set_status
()
15846 } # as_fn_set_status
15848 # as_fn_exit STATUS
15849 # -----------------
15850 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15854 as_fn_set_status
$1
15858 # as_fn_unset ax_cv_socklen_t_equiv
15859 # ---------------------------------
15860 # Portably unset VAR.
15863 { eval $1=; unset $1;}
15865 as_unset
=as_fn_unset
15866 # as_fn_append ax_cv_socklen_t_equiv VALUE
15867 # ----------------------------------------
15868 # Append the text in VALUE to the end of the definition contained in VAR. Take
15869 # advantage of any shell optimizations that allow amortized linear growth over
15870 # repeated appends, instead of the typical quadratic growth present in naive
15872 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15873 eval 'as_fn_append ()
15884 # as_fn_arith ARG...
15885 # ------------------
15886 # Perform arithmetic evaluation on the ARGs, and store the result in the
15887 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15888 # must be portable across $(()) and expr.
15889 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15890 eval 'as_fn_arith ()
15897 as_val
=`expr "$@" || test $? -eq 1`
15902 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15903 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15909 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15910 as_basename
=basename
15915 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15921 as_me
=`$as_basename -- "$0" ||
15922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15923 X"$0" : 'X\(//\)$' \| \
15924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15926 sed '/^.*\/\([^/][^/]*\)\/*$/{
15940 # Avoid depending upon Character Ranges.
15941 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15942 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15943 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15944 as_cr_digits
='0123456789'
15945 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15947 ECHO_C
= ECHO_N
= ECHO_T
=
15948 case `echo -n x` in #(((((
15950 case `echo 'xy\c'` in
15951 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15953 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15960 rm -f conf$$ conf$$.exe conf$$.
file
15961 if test -d conf$$.dir
; then
15962 rm -f conf$$.dir
/conf$$.
file
15965 mkdir conf$$.dir
2>/dev
/null
15967 if (echo >conf$$.
file) 2>/dev
/null
; then
15968 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15970 # ... but there are two gotchas:
15971 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15972 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15973 # In both cases, we have to default to `cp -p'.
15974 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15976 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15984 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15985 rmdir conf$$.dir
2>/dev
/null
15990 # Create "$as_dir" as a directory, including parents if necessary.
15995 -*) as_dir
=.
/$as_dir;;
15997 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16001 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16002 *) as_qdir
=$as_dir;;
16004 as_dirs
="'$as_qdir' $as_dirs"
16005 as_dir
=`$as_dirname -- "$as_dir" ||
16006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16007 X"$as_dir" : 'X\(//\)[^/]' \| \
16008 X"$as_dir" : 'X\(//\)$' \| \
16009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16010 $as_echo X"$as_dir" |
16011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16015 /^X\(\/\/\)[^/].*/{
16028 test -d "$as_dir" && break
16030 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16031 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16035 if mkdir
-p .
2>/dev
/null
; then
16036 as_mkdir_p
='mkdir -p "$as_dir"'
16038 test -d .
/-p && rmdir .
/-p
16042 if test -x / >/dev
/null
2>&1; then
16043 as_test_x
='test -x'
16045 if ls -dL / >/dev
/null
2>&1; then
16052 if test -d "$1"; then
16058 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16059 ???[sx]*):;;*)false;;esac;fi
16063 as_executable_p
=$as_test_x
16065 # Sed expression to map a string onto a valid CPP name.
16066 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16068 # Sed expression to map a string onto a valid variable name.
16069 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16073 ## ----------------------------------- ##
16074 ## Main body of $CONFIG_STATUS script. ##
16075 ## ----------------------------------- ##
16077 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16080 # Save the log message, to keep $0 and so on meaningful, and to
16081 # report actual input values of CONFIG_FILES etc. instead of their
16082 # values after options handling.
16084 This file was extended by OpenVPN $as_me 2.3.0, which was
16085 generated by GNU Autoconf 2.68. Invocation command line was
16087 CONFIG_FILES = $CONFIG_FILES
16088 CONFIG_HEADERS = $CONFIG_HEADERS
16089 CONFIG_LINKS = $CONFIG_LINKS
16090 CONFIG_COMMANDS = $CONFIG_COMMANDS
16093 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16098 case $ac_config_files in *"
16099 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16102 case $ac_config_headers in *"
16103 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16108 # Files that config.status was made for.
16109 config_files="$ac_config_files"
16110 config_headers="$ac_config_headers"
16111 config_commands="$ac_config_commands"
16115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16117 \`$as_me' instantiates files and other configuration actions
16118 from templates according to the current configuration. Unless the files
16119 and actions are specified as TAGs, all are instantiated by default.
16121 Usage: $0 [OPTION]... [TAG]...
16123 -h, --help print this help, then exit
16124 -V, --version print version number and configuration settings, then exit
16125 --config print configuration, then exit
16126 -q, --quiet, --silent
16127 do not print progress messages
16128 -d, --debug don't remove temporary files
16129 --recheck update $as_me by reconfiguring in the same conditions
16130 --file=FILE[:TEMPLATE]
16131 instantiate the configuration file FILE
16132 --header=FILE[:TEMPLATE]
16133 instantiate the configuration header FILE
16135 Configuration files:
16138 Configuration headers:
16141 Configuration commands:
16144 Report bugs to <openvpn-users@lists.sourceforge.net>."
16147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16148 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16150 OpenVPN config.status 2.3.0
16151 configured by $0, generated by GNU Autoconf 2.68,
16152 with options \\"\$ac_cs_config\\"
16154 Copyright (C) 2010 Free Software Foundation, Inc.
16155 This config.status script is free software; the Free Software Foundation
16156 gives unlimited permission to copy, distribute and modify it."
16163 test -n "\$AWK" || AWK=awk
16166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16167 # The default lists apply if the user does not specify any file.
16173 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16174 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16178 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16190 # Handling of the options.
16191 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16193 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16194 $as_echo "$ac_cs_version"; exit ;;
16195 --config |
--confi |
--conf |
--con |
--co |
--c )
16196 $as_echo "$ac_cs_config"; exit ;;
16197 --debug |
--debu |
--deb |
--de |
--d |
-d )
16199 --file |
--fil |
--fi |
--f )
16202 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16203 '') as_fn_error $?
"missing file argument" ;;
16205 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16206 ac_need_defaults
=false
;;
16207 --header |
--heade |
--head |
--hea )
16210 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16212 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16213 ac_need_defaults
=false
;;
16215 # Conflict between --help and --header
16216 as_fn_error $?
"ambiguous option: \`$1'
16217 Try \`$0 --help' for more information.";;
16218 --help |
--hel |
-h )
16219 $as_echo "$ac_cs_usage"; exit ;;
16220 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16221 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16224 # This is an error.
16225 -*) as_fn_error $?
"unrecognized option: \`$1'
16226 Try \`$0 --help' for more information." ;;
16228 *) as_fn_append ac_config_targets
" $1"
16229 ac_need_defaults
=false
;;
16235 ac_configure_extra_args
=
16237 if $ac_cs_silent; then
16239 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16244 if \$ac_cs_recheck; then
16245 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16248 CONFIG_SHELL='$SHELL'
16249 export CONFIG_SHELL
16254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16259 ## Running $as_me. ##
16265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16269 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16272 # The HP-UX ksh and POSIX shell print the target directory to stdout
16273 # if CDPATH is set.
16274 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16276 sed_quote_subst='$sed_quote_subst'
16277 double_quote_subst='$double_quote_subst'
16278 delay_variable_subst='$delay_variable_subst'
16279 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16280 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16281 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16282 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16283 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16284 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16285 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16286 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16287 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16288 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16289 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16290 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16291 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16292 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16293 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16294 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16295 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16296 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16297 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16298 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16299 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16300 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16301 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16302 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16303 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16304 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16305 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16306 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16307 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16308 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16309 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16310 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16311 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16312 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16313 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16314 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16315 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16316 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16317 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16318 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16319 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16320 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16321 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16322 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16323 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16324 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16325 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16326 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16327 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16328 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16329 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"`'
16330 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16331 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16332 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16333 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16334 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16335 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16336 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16337 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16338 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16339 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16340 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16341 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16342 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16343 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16344 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16345 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16346 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16347 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16348 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16349 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16350 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16351 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16352 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16353 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16354 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16355 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16356 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16357 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16358 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16359 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16360 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16361 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16362 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16363 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16364 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16365 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16366 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16367 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16368 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16369 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16370 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16371 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16372 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16373 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16374 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16375 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16376 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16377 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16378 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16379 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16380 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16381 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16382 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16383 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16384 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16385 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16386 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16387 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16388 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16389 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16390 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16391 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16392 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16393 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16394 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16395 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16396 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16397 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16398 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16399 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16400 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16401 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
16402 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
16403 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
16404 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16405 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
16406 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
16407 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
16408 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
16409 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
16410 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
16411 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
16412 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
16413 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
16414 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16415 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16416 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
16417 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
16418 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
16419 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16420 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16421 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
16422 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16423 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
16424 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16425 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16426 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16427 hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
16428 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
16429 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
16430 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
16431 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
16432 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
16433 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
16434 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
16435 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
16436 fix_srcfile_path_RC='`$ECHO "$fix_srcfile_path_RC" | $SED "$delay_single_quote_subst"`'
16437 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
16438 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
16439 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16440 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16441 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16442 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
16443 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
16446 LTCFLAGS='$LTCFLAGS'
16447 compiler='$compiler_DEFAULT'
16449 # A function that is used when there is no print builtin or printf.
16450 func_fallback_echo ()
16452 eval 'cat <<_LTECHO_EOF
16457 # Quote evaled strings.
16473 deplibs_check_method \
16482 lt_cv_sys_global_symbol_pipe \
16483 lt_cv_sys_global_symbol_to_cdecl \
16484 lt_cv_sys_global_symbol_to_c_name_address \
16485 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16486 lt_prog_compiler_no_builtin_flag \
16487 lt_prog_compiler_wl \
16488 lt_prog_compiler_pic \
16489 lt_prog_compiler_static \
16490 lt_cv_prog_compiler_c_o \
16498 export_dynamic_flag_spec \
16499 whole_archive_flag_spec \
16500 compiler_needs_object \
16502 allow_undefined_flag \
16503 no_undefined_flag \
16504 hardcode_libdir_flag_spec \
16505 hardcode_libdir_flag_spec_ld \
16506 hardcode_libdir_separator \
16511 variables_saved_for_relink \
16513 library_names_spec \
16515 install_override_mode \
16522 lt_prog_compiler_no_builtin_flag_RC \
16523 lt_prog_compiler_wl_RC \
16524 lt_prog_compiler_pic_RC \
16525 lt_prog_compiler_static_RC \
16526 lt_cv_prog_compiler_c_o_RC \
16527 export_dynamic_flag_spec_RC \
16528 whole_archive_flag_spec_RC \
16529 compiler_needs_object_RC \
16531 allow_undefined_flag_RC \
16532 no_undefined_flag_RC \
16533 hardcode_libdir_flag_spec_RC \
16534 hardcode_libdir_flag_spec_ld_RC \
16535 hardcode_libdir_separator_RC \
16536 fix_srcfile_path_RC \
16537 exclude_expsyms_RC \
16538 include_expsyms_RC \
16539 file_list_spec_RC; do
16540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16541 *[\\\\\\\`\\"\\\$]*)
16542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16550 # Double-quote double-evaled strings.
16551 for var in reload_cmds \
16552 old_postinstall_cmds \
16553 old_postuninstall_cmds \
16555 extract_expsyms_cmds \
16556 old_archive_from_new_cmds \
16557 old_archive_from_expsyms_cmds \
16559 archive_expsym_cmds \
16561 module_expsym_cmds \
16562 export_symbols_cmds \
16565 postuninstall_cmds \
16567 sys_lib_search_path_spec \
16568 sys_lib_dlsearch_path_spec \
16570 old_archive_cmds_RC \
16571 old_archive_from_new_cmds_RC \
16572 old_archive_from_expsyms_cmds_RC \
16574 archive_expsym_cmds_RC \
16576 module_expsym_cmds_RC \
16577 export_symbols_cmds_RC \
16578 prelink_cmds_RC; do
16579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16580 *[\\\\\\\`\\"\\\$]*)
16581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16589 ac_aux_dir='$ac_aux_dir'
16590 xsi_shell='$xsi_shell'
16591 lt_shell_append='$lt_shell_append'
16593 # See if we are running on zsh, and set the options which allow our
16594 # commands through without removal of \ escapes INIT.
16595 if test -n "\${ZSH_VERSION+set}" ; then
16596 setopt NO_GLOB_SUBST
16602 TIMESTAMP='$TIMESTAMP'
16613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16615 # Handling of arguments.
16616 for ac_config_target
in $ac_config_targets
16618 case $ac_config_target in
16619 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16620 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16621 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16622 "version.sh") CONFIG_FILES
="$CONFIG_FILES version.sh" ;;
16623 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16624 "build/Makefile") CONFIG_FILES
="$CONFIG_FILES build/Makefile" ;;
16625 "build/msvc/Makefile") CONFIG_FILES
="$CONFIG_FILES build/msvc/Makefile" ;;
16626 "build/msvc/msvc-generate/Makefile") CONFIG_FILES
="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
16627 "distro/Makefile") CONFIG_FILES
="$CONFIG_FILES distro/Makefile" ;;
16628 "distro/rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES distro/rpm/Makefile" ;;
16629 "distro/rpm/openvpn.spec") CONFIG_FILES
="$CONFIG_FILES distro/rpm/openvpn.spec" ;;
16630 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
16631 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16632 "src/compat/Makefile") CONFIG_FILES
="$CONFIG_FILES src/compat/Makefile" ;;
16633 "src/openvpn/Makefile") CONFIG_FILES
="$CONFIG_FILES src/openvpn/Makefile" ;;
16634 "src/openvpnserv/Makefile") CONFIG_FILES
="$CONFIG_FILES src/openvpnserv/Makefile" ;;
16635 "src/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/Makefile" ;;
16636 "src/plugins/auth-pam/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
16637 "src/plugins/down-root/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
16638 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
16639 "sample/Makefile") CONFIG_FILES
="$CONFIG_FILES sample/Makefile" ;;
16640 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16641 "tests/t_client.sh") CONFIG_FILES
="$CONFIG_FILES tests/t_client.sh" ;;
16643 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16648 # If the user did not use the arguments to specify the items to instantiate,
16649 # then the envvar interface is used. Set only those that are not.
16650 # We use the long form for the default assignment because of an extremely
16651 # bizarre bug on SunOS 4.1.3.
16652 if $ac_need_defaults; then
16653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16658 # Have a temporary directory for convenience. Make it in the build tree
16659 # simply because there is no reason against having it here, and in addition,
16660 # creating and moving files from /tmp can sometimes cause problems.
16661 # Hook for its removal unless debugging.
16662 # Note that there is a small window in which the directory will not be cleaned:
16663 # after its creation but before its name has been assigned to `$tmp'.
16667 trap 'exit_status=$?
16668 : "${ac_tmp:=$tmp}"
16669 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16671 trap 'as_fn_exit 1' 1 2 13 15
16673 # Create a (secure) tmp directory for tmp files.
16676 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16680 tmp
=.
/conf$$
-$RANDOM
16681 (umask 077 && mkdir
"$tmp")
16682 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16685 # Set up the scripts for CONFIG_FILES section.
16686 # No need to generate them if there are no CONFIG_FILES.
16687 # This happens for instance with `./config.status config.h'.
16688 if test -n "$CONFIG_FILES"; then
16691 ac_cr
=`echo X | tr X '\015'`
16692 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16693 # But we know of no other shell where ac_cr would be empty at this
16694 # point, so we can use a bashism as a fallback.
16695 if test "x$ac_cr" = x
; then
16696 eval ac_cr
=\$
\'\\r
\'
16698 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16699 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16702 ac_cs_awk_cr
=$ac_cr
16705 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16710 echo "cat >conf$$subs.awk <<_ACEOF" &&
16711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16713 } >conf$$subs.sh ||
16714 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16717 for ac_last_try in false false false false false :; do
16718 . ./conf$$subs.sh ||
16719 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16721 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16722 if test $ac_delim_n = $ac_delim_num; then
16724 elif $ac_last_try; then
16725 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16727 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16730 rm -f conf$$subs.sh
16732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16733 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16737 s/^/S["/; s
/!.
*/"]=/
16747 s/\(.\{148\}\)..*/\1/
16749 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16754 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16761 s/\(.\{148\}\)..*/\1/
16763 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16767 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16772 ' <conf$$subs.awk | sed '
16777 ' >>$CONFIG_STATUS || ac_write_fail=1
16778 rm -f conf$$subs.awk
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16781 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16782 for (key in S) S_is_set[key] = 1
16788 nfields = split(line, field, "@
")
16790 len = length(field[1])
16791 for (i = 2; i < nfields; i++) {
16793 keylen = length(key)
16794 if (S_is_set[key]) {
16796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16797 len += length(value) + length(field[++i])
16808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16809 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16810 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16813 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16814 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16817 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16818 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16819 # trailing colons and then remove the whole line if VPATH becomes empty
16820 # (actually we leave an empty line to preserve line numbers).
16821 if test "x
$srcdir" = x.; then
16822 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16841 fi # test -n "$CONFIG_FILES"
16843 # Set up the scripts for CONFIG_HEADERS section.
16844 # No need to generate them if there are no CONFIG_HEADERS.
16845 # This happens for instance with `./config.status Makefile'.
16846 if test -n "$CONFIG_HEADERS"; then
16847 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16851 # Transform confdefs.h into an awk script `defines.awk', embedded as
16852 # here-document in config.status, that substitutes the proper values into
16853 # config.h.in to produce config.h.
16855 # Create a delimiter string that does not exist in confdefs.h, to ease
16856 # handling of long lines.
16858 for ac_last_try in false false :; do
16859 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16860 if test -z "$ac_tt"; then
16862 elif $ac_last_try; then
16863 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16865 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16869 # For the awk script, D is an array of macro values keyed by name,
16870 # likewise P contains macro parameters if any. Preserve backslash
16871 # newline sequences.
16873 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16875 s/.\{148\}/&'"$ac_delim"'/g
16878 s/^[ ]*#[ ]*define[ ][ ]*/ /
16885 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16887 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16891 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16892 D["\
1"]=" \
3\\\\\\n
"\\/p
16894 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16899 s/.\{148\}/&'"$ac_delim"'/g
16904 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16907 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16909 ' <confdefs.h | sed '
16910 s/'"$ac_delim"'/"\\\
16911 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16914 for (key in D) D_is_set[key] = 1
16917 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16919 split(line, arg, " ")
16920 if (arg[1] == "#") {
16924 defundef
= substr
(arg
[1], 2)
16927 split(mac1
, mac2
, "(") #)
16929 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16930 if (D_is_set
[macro
]) {
16931 # Preserve the white space surrounding the "#".
16932 print prefix
"define", macro P
[macro
] D
[macro
]
16935 # Replace #undef with comments. This is necessary, for example,
16936 # in the case of _POSIX_SOURCE, which is predefined and required
16937 # on some systems where configure will not decide to define it.
16938 if (defundef
== "undef") {
16939 print
"/*", prefix defundef
, macro
, "*/"
16947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16948 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16949 fi # test -n "$CONFIG_HEADERS"
16952 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16957 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16959 case $ac_mode$ac_tag in
16961 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16962 :[FH
]-) ac_tag
=-:-;;
16963 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16980 -) ac_f
="$ac_tmp/stdin";;
16981 *) # Look for the file first in the build tree, then in the source tree
16982 # (if the path is not absolute). The absolute path cannot be DOS-style,
16983 # because $ac_f cannot contain `:'.
16987 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16989 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16991 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16992 as_fn_append ac_file_inputs
" '$ac_f'"
16995 # Let's still pretend it is `configure' which instantiates (i.e., don't
16996 # use $as_me), people would be surprised to read:
16997 # /* config.h. Generated by config.status. */
16998 configure_input
='Generated from '`
16999 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17001 if test x
"$ac_file" != x-
; then
17002 configure_input
="$ac_file. $configure_input"
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17004 $as_echo "$as_me: creating $ac_file" >&6;}
17006 # Neutralize special characters interpreted by sed in replacement strings.
17007 case $configure_input in #(
17008 *\
&* |
*\|
* |
*\\* )
17009 ac_sed_conf_input
=`$as_echo "$configure_input" |
17010 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17011 *) ac_sed_conf_input
=$configure_input;;
17015 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17016 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17021 ac_dir
=`$as_dirname -- "$ac_file" ||
17022 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17023 X"$ac_file" : 'X\(//\)[^/]' \| \
17024 X"$ac_file" : 'X\(//\)$' \| \
17025 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17026 $as_echo X"$ac_file" |
17027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17031 /^X\(\/\/\)[^/].*/{
17044 as_dir
="$ac_dir"; as_fn_mkdir_p
17048 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17050 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17051 # A ".." for each directory in $ac_dir_suffix.
17052 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17053 case $ac_top_builddir_sub in
17054 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17055 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17058 ac_abs_top_builddir
=$ac_pwd
17059 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17060 # for backward compatibility:
17061 ac_top_builddir
=$ac_top_build_prefix
17064 .
) # We are building in place.
17066 ac_top_srcdir
=$ac_top_builddir_sub
17067 ac_abs_top_srcdir
=$ac_pwd ;;
17068 [\\/]* | ?
:[\\/]* ) # Absolute name.
17069 ac_srcdir
=$srcdir$ac_dir_suffix;
17070 ac_top_srcdir
=$srcdir
17071 ac_abs_top_srcdir
=$srcdir ;;
17072 *) # Relative name.
17073 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17074 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17075 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17077 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17087 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17088 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17090 ac_MKDIR_P
=$MKDIR_P
17092 [\\/$
]* | ?
:[\\/]* ) ;;
17093 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17098 # If the template does not know about datarootdir, expand it.
17099 # FIXME: This hack should be removed a few years after 2.60.
17100 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17111 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17112 *datarootdir
*) ac_datarootdir_seen
=yes;;
17113 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17115 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17118 ac_datarootdir_hack='
17119 s&@datadir@&$datadir&g
17120 s&@docdir@&$docdir&g
17121 s&@infodir@&$infodir&g
17122 s&@localedir@&$localedir&g
17123 s&@mandir@&$mandir&g
17124 s&\\\${datarootdir}&$datarootdir&g' ;;
17128 # Neutralize VPATH when `$srcdir' = `.'.
17129 # Shell code in configure.ac might set extrasub.
17130 # FIXME: do we really want to maintain this feature?
17131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17132 ac_sed_extra="$ac_vpsub
17135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17137 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17138 s|@configure_input@|
$ac_sed_conf_input|
;t t
17139 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17140 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17141 s
&@srcdir@
&$ac_srcdir&;t t
17142 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17143 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17144 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17145 s
&@builddir@
&$ac_builddir&;t t
17146 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17147 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17148 s
&@INSTALL@
&$ac_INSTALL&;t t
17149 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17150 $ac_datarootdir_hack
17152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17153 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17156 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17158 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17160 which seems to be undefined. Please make sure it is defined" >&5
17161 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17162 which seems to be undefined. Please make sure it is defined" >&2;}
17164 rm -f "$ac_tmp/stdin"
17166 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17167 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17175 if test x"$ac_file" != x-; then
17177 $as_echo "/* $configure_input */" \
17178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17179 } >"$ac_tmp/config.h" \
17180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17181 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17183 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17186 mv "$ac_tmp/config.h" "$ac_file" \
17187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17190 $as_echo "/* $configure_input */" \
17191 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17192 || as_fn_error $? "could not create -" "$LINENO" 5
17194 # Compute "$ac_file"'s index
in $config_headers.
17197 for _am_header
in $config_headers :; do
17198 case $_am_header in
17199 $_am_arg |
$_am_arg:* )
17202 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17205 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17206 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17207 X"$_am_arg" : 'X\(//\)[^/]' \| \
17208 X"$_am_arg" : 'X\(//\)$' \| \
17209 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17210 $as_echo X"$_am_arg" |
17211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17215 /^X\(\/\/\)[^/].*/{
17227 s/.*/./; q'`/stamp-h
$_am_stamp_count
17230 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17231 $as_echo "$as_me: executing $ac_file commands" >&6;}
17236 case $ac_file$ac_mode in
17237 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17238 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17239 # are listed without --file. Let's play safe and only enable the eval
17240 # if we detect the quoting.
17241 case $CONFIG_FILES in
17242 *\'*) eval set x
"$CONFIG_FILES" ;;
17243 *) set x
$CONFIG_FILES ;;
17248 # Strip MF so we end up with the name of the file.
17249 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17250 # Check whether this is an Automake generated Makefile or not.
17251 # We used to match only the files named `Makefile.in', but
17252 # some people rename them; so instead we look at the file content.
17253 # Grep'ing the first line is not enough: some people post-process
17254 # each Makefile.in and add a new line on top of each file to say so.
17255 # Grep'ing the whole file is not good either: AIX grep has a line
17256 # limit of 2048, but all sed's we know have understand at least 4000.
17257 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17258 dirpart
=`$as_dirname -- "$mf" ||
17259 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17260 X"$mf" : 'X\(//\)[^/]' \| \
17261 X"$mf" : 'X\(//\)$' \| \
17262 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17268 /^X\(\/\/\)[^/].*/{
17284 # Extract the definition of DEPDIR, am__include, and am__quote
17285 # from the Makefile without running `make'.
17286 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17287 test -z "$DEPDIR" && continue
17288 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17289 test -z "am__include" && continue
17290 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17291 # When using ansi2knr, U may be empty or an underscore; expand it
17292 U
=`sed -n 's/^U = //p' < "$mf"`
17293 # Find all dependency output files, they are included files with
17294 # $(DEPDIR) in their names. We invoke sed twice because it is the
17295 # simplest approach to changing $(DEPDIR) to its actual value in the
17297 for file in `sed -n "
17298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17300 # Make sure the directory exists.
17301 test -f "$dirpart/$file" && continue
17302 fdir
=`$as_dirname -- "$file" ||
17303 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17304 X"$file" : 'X\(//\)[^/]' \| \
17305 X"$file" : 'X\(//\)$' \| \
17306 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17307 $as_echo X"$file" |
17308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17312 /^X\(\/\/\)[^/].*/{
17325 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17326 # echo "creating $dirpart/$file"
17327 echo '# dummy' > "$dirpart/$file"
17334 # See if we are running on zsh, and set the options which allow our
17335 # commands through without removal of \ escapes.
17336 if test -n "${ZSH_VERSION+set}" ; then
17337 setopt NO_GLOB_SUBST
17340 cfgfile
="${ofile}T"
17341 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17344 cat <<_LT_EOF >> "$cfgfile"
17347 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17348 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17350 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17352 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17353 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17355 # Written by Gordon Matzigkeit, 1996
17357 # This file is part of GNU Libtool.
17359 # GNU Libtool is free software; you can redistribute it and/or
17360 # modify it under the terms of the GNU General Public License as
17361 # published by the Free Software Foundation; either version 2 of
17362 # the License, or (at your option) any later version.
17364 # As a special exception to the GNU General Public License,
17365 # if you distribute this file as part of a program or library that
17366 # is built using GNU Libtool, you may include this file under the
17367 # same distribution terms that you use for the rest of that program.
17369 # GNU Libtool is distributed in the hope that it will be useful,
17370 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17371 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17372 # GNU General Public License for more details.
17374 # You should have received a copy of the GNU General Public License
17375 # along with GNU Libtool; see the file COPYING. If not, a copy
17376 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17377 # obtained by writing to the Free Software Foundation, Inc.,
17378 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17381 # The names of the tagged configurations supported by this script.
17382 available_tags="RC "
17384 # ### BEGIN LIBTOOL CONFIG
17386 # Which release of libtool.m4 was used?
17387 macro_version=$macro_version
17388 macro_revision=$macro_revision
17390 # Assembler program.
17393 # DLL creation program.
17394 DLLTOOL=$lt_DLLTOOL
17396 # Object dumper program.
17397 OBJDUMP=$lt_OBJDUMP
17399 # Whether or not to build shared libraries.
17400 build_libtool_libs=$enable_shared
17402 # Whether or not to build static libraries.
17403 build_old_libs=$enable_static
17405 # What type of objects to build.
17408 # Whether or not to optimize for fast installation.
17409 fast_install=$enable_fast_install
17411 # Shell to use when invoking shell scripts.
17414 # An echo program that protects backslashes.
17418 host_alias=$host_alias
17422 # The build system.
17423 build_alias=$build_alias
17427 # A sed program that does not truncate output.
17430 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17431 Xsed="\$SED -e 1s/^X//"
17433 # A grep program that handles long lines.
17439 # A literal string matcher.
17442 # A BSD- or MS-compatible name lister.
17445 # Whether we need soft or hard links.
17448 # What is the maximum length of a command?
17449 max_cmd_len=$max_cmd_len
17451 # Object file suffix (normally "o").
17454 # Executable file suffix (normally "").
17457 # whether the shell understands "unset".
17460 # turn spaces into newlines.
17463 # turn newlines into spaces.
17466 # Method to check whether dependent libraries are shared objects.
17467 deplibs_check_method=$lt_deplibs_check_method
17469 # Command to use when deplibs_check_method == "file_magic".
17470 file_magic_cmd=$lt_file_magic_cmd
17474 AR_FLAGS=$lt_AR_FLAGS
17476 # A symbol stripping program.
17479 # Commands used to install an old-style archive.
17481 old_postinstall_cmds=$lt_old_postinstall_cmds
17482 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17484 # Whether to use a lock for old archive extraction.
17485 lock_old_archive_extraction=$lock_old_archive_extraction
17490 # LTCC compiler flags.
17491 LTCFLAGS=$lt_CFLAGS
17493 # Take the output of nm and produce a listing of raw symbols and C names.
17494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17496 # Transform the output of nm in a proper C declaration.
17497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17499 # Transform the output of nm in a C name address pair.
17500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17502 # Transform the output of nm in a C name address pair when lib prefix is needed.
17503 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17505 # The name of the directory that contains temporary libtool files.
17508 # Used to examine libraries when file_magic_cmd begins with "file".
17509 MAGIC_CMD=$MAGIC_CMD
17511 # Must we lock files when doing compilation?
17512 need_locks=$lt_need_locks
17514 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17515 DSYMUTIL=$lt_DSYMUTIL
17517 # Tool to change global to local symbols on Mac OS X.
17520 # Tool to manipulate fat objects and archives on Mac OS X.
17523 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17526 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17527 OTOOL64=$lt_OTOOL64
17529 # Old archive suffix (normally "a").
17532 # Shared library suffix (normally ".so").
17533 shrext_cmds=$lt_shrext_cmds
17535 # The commands to extract the exported symbol list from a shared archive.
17536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17538 # Variables whose values should be saved in libtool wrapper scripts and
17539 # restored at link time.
17540 variables_saved_for_relink=$lt_variables_saved_for_relink
17542 # Do we need the "lib" prefix for modules?
17543 need_lib_prefix=$need_lib_prefix
17545 # Do we need a version for libraries?
17546 need_version=$need_version
17548 # Library versioning type.
17549 version_type=$version_type
17551 # Shared library runtime path variable.
17552 runpath_var=$runpath_var
17554 # Shared library path variable.
17555 shlibpath_var=$shlibpath_var
17557 # Is shlibpath searched before the hard-coded library search path?
17558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17560 # Format of library name prefix.
17561 libname_spec=$lt_libname_spec
17563 # List of archive names. First name is the real one, the rest are links.
17564 # The last name is the one that the linker finds with -lNAME
17565 library_names_spec=$lt_library_names_spec
17567 # The coded name of the library, if different from the real name.
17568 soname_spec=$lt_soname_spec
17570 # Permission mode override for installation of shared libraries.
17571 install_override_mode=$lt_install_override_mode
17573 # Command to use after installation of a shared archive.
17574 postinstall_cmds=$lt_postinstall_cmds
17576 # Command to use after uninstallation of a shared archive.
17577 postuninstall_cmds=$lt_postuninstall_cmds
17579 # Commands used to finish a libtool library installation in a directory.
17580 finish_cmds=$lt_finish_cmds
17582 # As "finish_cmds", except a single script fragment to be evaled but
17584 finish_eval=$lt_finish_eval
17586 # Whether we should hardcode library paths into libraries.
17587 hardcode_into_libs=$hardcode_into_libs
17589 # Compile-time system search path for libraries.
17590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17592 # Run-time system search path for libraries.
17593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17595 # Whether dlopen is supported.
17596 dlopen_support=$enable_dlopen
17598 # Whether dlopen of programs is supported.
17599 dlopen_self=$enable_dlopen_self
17601 # Whether dlopen of statically linked programs is supported.
17602 dlopen_self_static=$enable_dlopen_self_static
17604 # Commands to strip libraries.
17605 old_striplib=$lt_old_striplib
17606 striplib=$lt_striplib
17609 # The linker used to build libraries.
17612 # How to create reloadable object files.
17613 reload_flag=$lt_reload_flag
17614 reload_cmds=$lt_reload_cmds
17616 # Commands used to build an old-style archive.
17617 old_archive_cmds=$lt_old_archive_cmds
17619 # A language specific compiler.
17622 # Is the compiler the GNU compiler?
17625 # Compiler flag to turn off builtin functions.
17626 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17628 # How to pass a linker flag through the compiler.
17629 wl=$lt_lt_prog_compiler_wl
17631 # Additional compiler flags for building library objects.
17632 pic_flag=$lt_lt_prog_compiler_pic
17634 # Compiler flag to prevent dynamic linking.
17635 link_static_flag=$lt_lt_prog_compiler_static
17637 # Does compiler simultaneously support -c and -o options?
17638 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17640 # Whether or not to add -lc for building shared libraries.
17641 build_libtool_need_lc=$archive_cmds_need_lc
17643 # Whether or not to disallow shared libs when runtime libs are static.
17644 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17646 # Compiler flag to allow reflexive dlopens.
17647 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17649 # Compiler flag to generate shared objects directly from archives.
17650 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17652 # Whether the compiler copes with passing no objects directly.
17653 compiler_needs_object=$lt_compiler_needs_object
17655 # Create an old-style archive from a shared archive.
17656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17658 # Create a temporary old-style archive to link instead of a shared archive.
17659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17661 # Commands used to build a shared archive.
17662 archive_cmds=$lt_archive_cmds
17663 archive_expsym_cmds=$lt_archive_expsym_cmds
17665 # Commands used to build a loadable module if different from building
17666 # a shared archive.
17667 module_cmds=$lt_module_cmds
17668 module_expsym_cmds=$lt_module_expsym_cmds
17670 # Whether we are building with GNU ld or not.
17671 with_gnu_ld=$lt_with_gnu_ld
17673 # Flag that allows shared libraries with undefined symbols to be built.
17674 allow_undefined_flag=$lt_allow_undefined_flag
17676 # Flag that enforces no undefined symbols.
17677 no_undefined_flag=$lt_no_undefined_flag
17679 # Flag to hardcode \$libdir into a binary during linking.
17680 # This must work even if \$libdir does not exist
17681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17683 # If ld is used when linking, flag to hardcode \$libdir into a binary
17684 # during linking. This must work even if \$libdir does not exist.
17685 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17687 # Whether we need a single "-rpath" flag with a separated argument.
17688 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17690 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17691 # DIR into the resulting binary.
17692 hardcode_direct=$hardcode_direct
17694 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17695 # DIR into the resulting binary and the resulting library dependency is
17696 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17697 # library is relocated.
17698 hardcode_direct_absolute=$hardcode_direct_absolute
17700 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17701 # into the resulting binary.
17702 hardcode_minus_L=$hardcode_minus_L
17704 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17705 # into the resulting binary.
17706 hardcode_shlibpath_var=$hardcode_shlibpath_var
17708 # Set to "yes" if building a shared library automatically hardcodes DIR
17709 # into the library and all subsequent libraries and executables linked
17711 hardcode_automatic=$hardcode_automatic
17713 # Set to yes if linker adds runtime paths of dependent libraries
17714 # to runtime path list.
17715 inherit_rpath=$inherit_rpath
17717 # Whether libtool must link a program against all its dependency libraries.
17718 link_all_deplibs=$link_all_deplibs
17720 # Fix the shell variable \$srcfile for the compiler.
17721 fix_srcfile_path=$lt_fix_srcfile_path
17723 # Set to "yes" if exported symbols are required.
17724 always_export_symbols=$always_export_symbols
17726 # The commands to list exported symbols.
17727 export_symbols_cmds=$lt_export_symbols_cmds
17729 # Symbols that should not be listed in the preloaded symbols.
17730 exclude_expsyms=$lt_exclude_expsyms
17732 # Symbols that must always be exported.
17733 include_expsyms=$lt_include_expsyms
17735 # Commands necessary for linking programs (against libraries) with templates.
17736 prelink_cmds=$lt_prelink_cmds
17738 # Specify filename containing input files.
17739 file_list_spec=$lt_file_list_spec
17741 # How to hardcode a shared library path into an executable.
17742 hardcode_action=$hardcode_action
17744 # ### END LIBTOOL CONFIG
17750 cat <<\_LT_EOF
>> "$cfgfile"
17751 # AIX sometimes has problems with the GCC collect2 program. For some
17752 # reason, if we set the COLLECT_NAMES environment variable, the problems
17753 # vanish in a puff of smoke.
17754 if test "X${COLLECT_NAMES+set}" != Xset
; then
17756 export COLLECT_NAMES
17763 ltmain
="$ac_aux_dir/ltmain.sh"
17766 # We use sed instead of cat because bash on DJGPP gets confused if
17767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17768 # text mode, it properly converts lines to CR/LF. This bash problem
17769 # is reportedly fixed, but why not run on old versions too?
17770 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17771 ||
(rm -f "$cfgfile"; exit 1)
17775 cat << \_LT_EOF
>> "$cfgfile"
17777 # func_dirname file append nondir_replacement
17778 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17779 # otherwise set result to NONDIR_REPLACEMENT.
17783 */*) func_dirname_result
="${1%/*}${2}" ;;
17784 * ) func_dirname_result
="${3}" ;;
17788 # func_basename file
17791 func_basename_result
="${1##*/}"
17794 # func_dirname_and_basename file append nondir_replacement
17795 # perform func_basename and func_dirname in a single function
17797 # dirname: Compute the dirname of FILE. If nonempty,
17798 # add APPEND to the result, otherwise set result
17799 # to NONDIR_REPLACEMENT.
17800 # value returned in "$func_dirname_result"
17801 # basename: Compute filename of FILE.
17802 # value retuned in "$func_basename_result"
17803 # Implementation must be kept synchronized with func_dirname
17804 # and func_basename. For efficiency, we do not delegate to
17805 # those functions but instead duplicate the functionality here.
17806 func_dirname_and_basename
()
17809 */*) func_dirname_result
="${1%/*}${2}" ;;
17810 * ) func_dirname_result
="${3}" ;;
17812 func_basename_result
="${1##*/}"
17815 # func_stripname prefix suffix name
17816 # strip PREFIX and SUFFIX off of NAME.
17817 # PREFIX and SUFFIX must not contain globbing or regex special
17818 # characters, hashes, percent signs, but SUFFIX may contain a leading
17819 # dot (in which case that matches only a dot).
17822 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17823 # positional parameters, so assign one to ordinary parameter first.
17824 func_stripname_result
=${3}
17825 func_stripname_result
=${func_stripname_result#"${1}"}
17826 func_stripname_result
=${func_stripname_result%"${2}"}
17832 func_opt_split_opt
=${1%%=*}
17833 func_opt_split_arg
=${1#*=}
17840 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17841 *) func_lo2o_result
=${1} ;;
17845 # func_xform libobj-or-source
17848 func_xform_result
=${1%.*}.lo
17851 # func_arith arithmetic-term...
17854 func_arith_result
=$
(( $
* ))
17858 # STRING may not start with a hyphen.
17861 func_len_result
=${#1}
17866 *) # Bourne compatible functions.
17867 cat << \_LT_EOF
>> "$cfgfile"
17869 # func_dirname file append nondir_replacement
17870 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17871 # otherwise set result to NONDIR_REPLACEMENT.
17874 # Extract subdirectory from the argument.
17875 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17876 if test "X$func_dirname_result" = "X${1}"; then
17877 func_dirname_result
="${3}"
17879 func_dirname_result
="$func_dirname_result${2}"
17883 # func_basename file
17886 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17890 # func_stripname prefix suffix name
17891 # strip PREFIX and SUFFIX off of NAME.
17892 # PREFIX and SUFFIX must not contain globbing or regex special
17893 # characters, hashes, percent signs, but SUFFIX may contain a leading
17894 # dot (in which case that matches only a dot).
17895 # func_strip_suffix prefix name
17899 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17900 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17905 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17906 my_sed_long_arg
='1s/^-[^=]*=//'
17911 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17912 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17918 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17921 # func_xform libobj-or-source
17924 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17927 # func_arith arithmetic-term...
17930 func_arith_result
=`expr "$@"`
17934 # STRING may not start with a hyphen.
17937 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17943 case $lt_shell_append in
17945 cat << \_LT_EOF
>> "$cfgfile"
17947 # func_append var value
17948 # Append VALUE to the end of shell variable VAR.
17956 cat << \_LT_EOF
>> "$cfgfile"
17958 # func_append var value
17959 # Append VALUE to the end of shell variable VAR.
17970 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17971 ||
(rm -f "$cfgfile"; exit 1)
17973 mv -f "$cfgfile" "$ofile" ||
17974 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17978 cat <<_LT_EOF >> "$ofile"
17980 # ### BEGIN LIBTOOL TAG CONFIG: RC
17982 # The linker used to build libraries.
17985 # How to create reloadable object files.
17986 reload_flag=$lt_reload_flag_RC
17987 reload_cmds=$lt_reload_cmds_RC
17989 # Commands used to build an old-style archive.
17990 old_archive_cmds=$lt_old_archive_cmds_RC
17992 # A language specific compiler.
17995 # Is the compiler the GNU compiler?
17998 # Compiler flag to turn off builtin functions.
17999 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18001 # How to pass a linker flag through the compiler.
18002 wl=$lt_lt_prog_compiler_wl_RC
18004 # Additional compiler flags for building library objects.
18005 pic_flag=$lt_lt_prog_compiler_pic_RC
18007 # Compiler flag to prevent dynamic linking.
18008 link_static_flag=$lt_lt_prog_compiler_static_RC
18010 # Does compiler simultaneously support -c and -o options?
18011 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18013 # Whether or not to add -lc for building shared libraries.
18014 build_libtool_need_lc=$archive_cmds_need_lc_RC
18016 # Whether or not to disallow shared libs when runtime libs are static.
18017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18019 # Compiler flag to allow reflexive dlopens.
18020 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18022 # Compiler flag to generate shared objects directly from archives.
18023 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18025 # Whether the compiler copes with passing no objects directly.
18026 compiler_needs_object=$lt_compiler_needs_object_RC
18028 # Create an old-style archive from a shared archive.
18029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18031 # Create a temporary old-style archive to link instead of a shared archive.
18032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18034 # Commands used to build a shared archive.
18035 archive_cmds=$lt_archive_cmds_RC
18036 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18038 # Commands used to build a loadable module if different from building
18039 # a shared archive.
18040 module_cmds=$lt_module_cmds_RC
18041 module_expsym_cmds=$lt_module_expsym_cmds_RC
18043 # Whether we are building with GNU ld or not.
18044 with_gnu_ld=$lt_with_gnu_ld_RC
18046 # Flag that allows shared libraries with undefined symbols to be built.
18047 allow_undefined_flag=$lt_allow_undefined_flag_RC
18049 # Flag that enforces no undefined symbols.
18050 no_undefined_flag=$lt_no_undefined_flag_RC
18052 # Flag to hardcode \$libdir into a binary during linking.
18053 # This must work even if \$libdir does not exist
18054 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18056 # If ld is used when linking, flag to hardcode \$libdir into a binary
18057 # during linking. This must work even if \$libdir does not exist.
18058 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18060 # Whether we need a single "-rpath" flag with a separated argument.
18061 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18063 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18064 # DIR into the resulting binary.
18065 hardcode_direct=$hardcode_direct_RC
18067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18068 # DIR into the resulting binary and the resulting library dependency is
18069 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18070 # library is relocated.
18071 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18073 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18074 # into the resulting binary.
18075 hardcode_minus_L=$hardcode_minus_L_RC
18077 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18078 # into the resulting binary.
18079 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18081 # Set to "yes" if building a shared library automatically hardcodes DIR
18082 # into the library and all subsequent libraries and executables linked
18084 hardcode_automatic=$hardcode_automatic_RC
18086 # Set to yes if linker adds runtime paths of dependent libraries
18087 # to runtime path list.
18088 inherit_rpath=$inherit_rpath_RC
18090 # Whether libtool must link a program against all its dependency libraries.
18091 link_all_deplibs=$link_all_deplibs_RC
18093 # Fix the shell variable \$srcfile for the compiler.
18094 fix_srcfile_path=$lt_fix_srcfile_path_RC
18096 # Set to "yes" if exported symbols are required.
18097 always_export_symbols=$always_export_symbols_RC
18099 # The commands to list exported symbols.
18100 export_symbols_cmds=$lt_export_symbols_cmds_RC
18102 # Symbols that should not be listed in the preloaded symbols.
18103 exclude_expsyms=$lt_exclude_expsyms_RC
18105 # Symbols that must always be exported.
18106 include_expsyms=$lt_include_expsyms_RC
18108 # Commands necessary for linking programs (against libraries) with templates.
18109 prelink_cmds=$lt_prelink_cmds_RC
18111 # Specify filename containing input files.
18112 file_list_spec=$lt_file_list_spec_RC
18114 # How to hardcode a shared library path into an executable.
18115 hardcode_action=$hardcode_action_RC
18117 # ### END LIBTOOL TAG CONFIG: RC
18121 "tests/t_client.sh":F
) chmod +x
tests
/t_client.sh
;;
18129 ac_clean_files
=$ac_clean_files_save
18131 test $ac_write_fail = 0 ||
18132 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18135 # configure is writing to config.log, and then calls config.status.
18136 # config.status does its own redirection, appending to config.log.
18137 # Unfortunately, on DOS this fails, as config.log is still kept open
18138 # by configure, so config.status won't be able to write to it; its
18139 # output is simply discarded. So we exec the FD to /dev/null,
18140 # effectively closing config.log, so it can be properly (re)opened and
18141 # appended to by config.status. When coming back to configure, we
18142 # need to make the FD available again.
18143 if test "$no_create" != yes; then
18145 ac_config_status_args
=
18146 test "$silent" = yes &&
18147 ac_config_status_args
="$ac_config_status_args --quiet"
18149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18152 # would make configure fail if this is the last instruction.
18153 $ac_cs_success || as_fn_exit
1
18155 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18157 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}